Advertisement
Guest User

CSS menus mobile

a guest
Jun 16th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.45 KB | None | 0 0
  1. /*-----------------------------------------------------------------------------------*/
  2. /* 2b. MOBILE MENU
  3. /*-----------------------------------------------------------------------------------*/
  4. .mobile-menu {
  5. display:none;
  6. }
  7. #slide-buttons {
  8. background-color: #0097a7;
  9. border-radius: 50%;
  10. color: #ffffff;
  11. height: 40px;
  12. width: 40px;
  13. line-height: 46px;
  14. border: none;
  15. font-size: 22px;
  16. padding: 0;
  17. position: relative;
  18. -webkit-transition: all .2s ease-in-out;
  19. -o-transition: all .2s ease-in-out;
  20. transition: all .2s ease-in-out;
  21. }
  22. .c-menu {
  23. position: fixed;
  24. z-index: 200;
  25. background-color: #0097a7;
  26. -webkit-transition: -webkit-transform 0.3s;
  27. transition: transform 0.3s;
  28. }
  29. .c-menu--slide-right {
  30. width: 100%;
  31. height: 100%;
  32. }
  33. @media all and (min-width: 320px) {
  34. .c-menu--slide-right {
  35. width: 300px;
  36. }
  37. }
  38. .c-menu--slide-right {
  39. top: 0;
  40. right: 0;
  41. -webkit-transform: translateX(100%);
  42. -ms-transform: translateX(100%);
  43. transform: translateX(100%);
  44. }
  45. @media all and (min-width: 320px) {
  46. .c-menu--slide-right {
  47. -webkit-transform: translateX(300px);
  48. -ms-transform: translateX(300px);
  49. transform: translateX(300px);
  50. }
  51. }
  52. .c-menu--slide-right.is-active {
  53. -webkit-transform: translateX(0);
  54. -ms-transform: translateX(0);
  55. transform: translateX(0);
  56. }
  57. .c-menu__close {
  58. margin-right: 10px !Important;
  59. background-color: #ffffff;
  60. border-radius: 50%;
  61. color: #0097a7;
  62. height: 40px;
  63. width: 40px;
  64. line-height: 46px;
  65. border: none;
  66. font-size: 22px;
  67. padding: 0;
  68. position: relative;
  69. -webkit-transition: all .2s ease-in-out;
  70. -o-transition: all .2s ease-in-out;
  71. transition: all .2s ease-in-out;
  72. }
  73. .slide-overlay {
  74. position: fixed;
  75. z-index: 100;
  76. top: 0;
  77. left: 0;
  78. overflow: hidden;
  79. width: 0;
  80. height: 0;
  81. background-color: #000;
  82. opacity: 0;
  83. -webkit-transition: opacity 0.3s, width 0s 0.3s, height 0s 0.3s;
  84. transition: opacity 0.3s, width 0s 0.3s, height 0s 0.3s;
  85. }
  86. .slide-overlay.is-active {
  87. width: 100%;
  88. height: 100%;
  89. opacity: 0.7;
  90. -webkit-transition: opacity 0.3s;
  91. transition: opacity 0.3s;
  92. }
  93. .logo-menu-right img {
  94. display: inline-block;
  95. }
  96. .menus-mobile {
  97. padding: 25px 20px;
  98. text-align: left;
  99. list-style: none;
  100. }
  101. .menus-mobile li a {
  102. color: #ffffff;
  103. font-family:'Dosis', sans-serif;
  104. font-size: 18px;
  105. font-weight: 700;
  106. text-transform: uppercase;
  107. border-bottom: 1px solid #40b1bd;
  108. width: 100%;
  109. display: block;
  110. padding-bottom: 10px;
  111. margin-bottom: 10px;
  112. }
  113. .menus-mobile ul.children {
  114. padding: 0;
  115. list-style: none;
  116. }
  117. .menus-mobile ul.children li a {
  118. font-size: 16px;
  119. padding-left: 10px;
  120. }
  121. .menus-mobile li a:hover, .menus-mobile ul.children li a:hover {
  122. opacity: 0.7;
  123. }
  124. .logo-menu-right {
  125. margin: 15px 0px;
  126. }
  127. /* Sub Menu */
  128. ul.menus-mobile li.page_item_has_children ul.children, ul.menus-mobile li.menu-item-has-children ul.sub-menu {
  129. display: none;
  130. }
  131. ul.menus-mobile li.page_item_has_children:hover ul.children, ul.menus-mobile li.menu-item-has-children:hover ul.sub-menu {
  132. display: block;
  133. }
  134. ul.menus-mobile li.page_item_has_children ul.children, ul.menus-mobile li.menu-item-has-children ul.sub-menu {
  135. position: relative;
  136. text-align: left;
  137. padding-left: 10px;
  138. list-style: none;
  139. }
  140. ul.menus-mobile li.page_item_has_children ul.children li, ul.menus-mobile li.menu-item-has-children ul.sub-menu li {
  141. margin: 0 !important;
  142. width: 100%;
  143. }
  144. ul.menus-mobile li.page_item_has_children ul.children li a, ul.menus-mobile li.menu-item-has-children ul.sub-menu li a {
  145. background-color: transparent !important;
  146. color: #ffffff;
  147. padding: 0 !important;
  148. }
  149. ul.menus-mobile li.page_item_has_children ul.children li a:hover, ul.menus-mobile li.menu-item-has-children ul.sub-menu li a:hover {
  150. background-color: transparent !important;
  151. color: #ffffff;
  152. opacity: 0.7;
  153. }
  154. ul.menus-mobile li.page_item_has_children ul.children li a:after, ul.menus-mobile li.page_item_has_children ul.children li a:hover:after, ul.menus-mobile li.menu-item-has-children ul.sub-menu li a:after, ul.menus-mobile li.menu-item-has-children ul.sub-menu li a:hover:after {
  155. display: none;
  156. }
  157. :-ms-input-placeholder.sb-search-input {
  158. text-indent: 9999px;
  159. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement