Advertisement
Guest User

Untitled

a guest
Apr 24th, 2015
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. /* Responsive Navigation
  2. ---------------------------------------------------------------------------------------------------- */
  3.  
  4. /* Standard Navigation
  5. --------------------------------------------- */
  6.  
  7. nav {
  8. clear: both;
  9. }
  10.  
  11. /* Navigation toggles
  12. --------------------------------------------- */
  13.  
  14. .sub-menu-toggle,
  15. .menu-toggle {
  16. display: none;
  17. visibility: hidden;
  18. }
  19.  
  20. /* Navigation toggles - Ensure Menu Displays when Scaled Up
  21. --------------------------------------------- */
  22.  
  23. @media only screen and (min-width: 768px) {
  24.  
  25. nav {
  26. display: block !important;
  27. }
  28. }
  29.  
  30. /* Navigation toggles - Mobile (Change max width as you see fit)
  31. --------------------------------------------- */
  32.  
  33. @media only screen and (max-width: 767px) {
  34.  
  35. .menu-toggle,
  36. .sub-menu-toggle {
  37. display: block;
  38. font-size: 20px;
  39. font-size: 2rem;
  40. font-weight: 700;
  41. margin: 0 auto;
  42. overflow: hidden;
  43. padding: 20px;
  44. padding: 2rem;
  45. text-align: center;
  46. visibility: visible;
  47. }
  48.  
  49. button.menu-toggle,
  50. button.sub-menu-toggle {
  51. background-color: transparent;
  52. color: #999;
  53. }
  54.  
  55. .sub-menu-toggle {
  56. padding: 18px;
  57. padding: 1.8rem;
  58. position: absolute;
  59. right: 0;
  60. top: 0;
  61. }
  62.  
  63. .menu-toggle:before {
  64. content: "\2261";
  65. }
  66.  
  67. .menu-toggle.activated:before {
  68. content: "\2191";
  69. }
  70.  
  71. .sub-menu-toggle:before {
  72. content: "+";
  73. }
  74.  
  75. .sub-menu-toggle.activated:before {
  76. content: "-";
  77. }
  78.  
  79. nav {
  80. display: none;
  81. position: relative;
  82. }
  83.  
  84. .genesis-nav-menu .menu-item {
  85. background-color: #f5f5f5;
  86. display: block;
  87. position: relative;
  88. text-align: left;
  89. }
  90.  
  91. .genesis-nav-menu .menu-item:hover {
  92. position: relative;
  93. }
  94.  
  95. .genesis-nav-menu .sub-menu {
  96. clear: both;
  97. display: none;
  98. opacity: 1;
  99. position: static;
  100. width: 100%;
  101. }
  102.  
  103. .genesis-nav-menu .sub-menu a {
  104. border-left: 0;
  105. position: relative;
  106. width: auto;
  107. }
  108.  
  109. .genesis-nav-menu .sub-menu .sub-menu {
  110. margin: 0;
  111. }
  112.  
  113. .genesis-nav-menu .sub-menu .sub-menu a {
  114. background-color: #f5f5f5;
  115. padding-left: 30px;
  116. }
  117.  
  118. .genesis-nav-menu .sub-menu .sub-menu .sub-menu a {
  119. background-color: #fff;
  120. padding-left: 40px;
  121. }
  122.  
  123. .nav-primary a:hover,
  124. .nav-primary .current-menu-item > a {
  125. color: #333;
  126. }
  127.  
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement