fonts.css 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @font-face {
  2. font-family: 'ninjaforms';
  3. src: url('../fonts/ninjaforms.eot');
  4. src: local('☺'), url('../fonts/ninjaforms.woff') format('woff'), url('../fonts/ninjaforms.ttf') format('truetype'), url('../fonts/ninjaforms.svg') format('svg');
  5. font-weight: normal;
  6. font-style: normal;
  7. }
  8. /* dashboard icon */
  9. #toplevel_page_ninja-forms .wp-menu-image img {
  10. display: none;
  11. }
  12. #toplevel_page_ninja-forms .wp-menu-image:before {
  13. font-family: 'ninjaforms'!important; /* this assumes you've loaded Genericons in your admin */
  14. content: 'a'; /* replace this with your icon */
  15. font-size: 20px;
  16. position: relative;
  17. left: 5px; /* positions the icon */
  18. top: 4px; /* positions the icon */
  19. color: #aaa;
  20. }
  21. .branch-3-8 #toplevel_page_ninja-forms .wp-menu-image:before,
  22. .branch-3-9 #toplevel_page_ninja-forms .wp-menu-image:before {
  23. left: 0; /* positions the icon */
  24. top: 0; /* positions the icon */
  25. }
  26. #toplevel_page_ninja-forms:hover .wp-menu-image:before, .wp-has-current-submenu#toplevel_page_ninja-forms .wp-menu-image:before {
  27. color: #21759b;
  28. }
  29. div#icon-edit.icon32-posts-book-review {
  30. background-image: none;
  31. }
  32. div#icon-edit.icon32-posts-book-review:after {
  33. font-family: 'ninjaforms'!important;
  34. content: 'a'; /* replace this with your icon */
  35. color: #555;
  36. font-size: 32px;
  37. position: relative;
  38. top: -5px; /* positions the icon */
  39. left: 5px; /* positions the icon */
  40. }
  41. /* this adds support for MP6 & future WP (3.7/8, whichever gets the dashboard css update) */
  42. /* this is largely thanks to: https://github.com/Gizburdt/Wordpress-Cuztom-Helper/issues/152#issuecomment-17490472 */
  43. .mp6 #adminmenu #toplevel_page_ninja-forms div.wp-menu-image:before {
  44. font-family: 'ninjaforms'!important;
  45. content: 'a'; /* replace this with your icon */
  46. left: 0; /* resets the positioning for MP6/future WP */
  47. top: 0; /* resets the positioning for MP6/future WP */
  48. text-shadow: none;
  49. }