Guest User

Untitled

a guest
Dec 13th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.54 KB | None | 0 0
  1. /**
  2. * Design Shack Respnsive Menu
  3. */
  4.  
  5.  
  6. * {
  7. padding: 0;
  8. margin: 0;
  9.  
  10. -webkit-box-sizing: border-box;
  11. -moz-box-sizing: border-box;
  12. box-sizing: border-box;
  13. }
  14.  
  15. nav {
  16. width: 90%;
  17. margin: 0 auto;
  18. overflow: hidden;
  19. }
  20.  
  21. nav ul {
  22. list-style: none;
  23. overflow: hidden;
  24. }
  25.  
  26. nav li a {
  27. background: #404751;
  28. border-right: 1px solid #fff;
  29. color: #fff;
  30. display: block;
  31. float: left;
  32. font: 400 13px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
  33. padding: 10px;
  34. text-align: center;
  35. text-decoration: none;
  36. text-transform: uppercase;
  37. width: 12.5%;
  38.  
  39. /*TRANSISTIONS*/
  40. -webkit-transition: background 0.5s ease;
  41. -moz-transition: background 0.5s ease;
  42. -o-transition: background 0.5s ease;
  43. -ms-transition: background 0.5s ease;
  44. transition: background 0.5s ease;
  45. }
  46.  
  47. /*HOVER*/
  48. nav li a:hover {
  49. background: #222;
  50. }
  51.  
  52. /*SMALL*/
  53. nav small {
  54. font: 100 11px/1 Helvetica, Verdana, Arial, sans-serif;
  55. text-transform: none;
  56. color: #aaa;
  57. }
  58.  
  59. /*BORDER FIX*/
  60. nav li:last-child a {
  61. border: none;
  62. }
  63.  
  64. /*ORANGE MENU*/
  65. nav .orange {
  66. margin-top: 50px;
  67. }
  68.  
  69. .orange li a {
  70. background: #404751;
  71. }
  72.  
  73. .orange small {
  74. color: white;
  75. }
  76.  
  77. .orange li a:hover {
  78. background: #F16529;
  79. }
  80.  
  81. /*RED MENU*/
  82.  
  83. nav .red {
  84. margin-top: 50px;
  85. }
  86.  
  87. .red li a {
  88. background: #5C0002;
  89. }
  90.  
  91. .red small {
  92. color: white;
  93. }
  94.  
  95. .red li a:hover {
  96. background: #a60306;
  97. }
  98.  
  99. /* MEDIA QUERIES*/
  100. @media only screen and (max-width : 1220px),
  101. only screen and (max-device-width : 1220px){
  102. nav li a {
  103. font: 400 10px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
  104. }
  105.  
  106. nav small {
  107. font: 100 10px/1 Helvetica, Verdana, Arial, sans-serif;
  108. }
  109. }
  110.  
  111. @media only screen and (max-width : 930px),
  112. only screen and (max-device-width : 930px){
  113. nav li a {
  114. width: 25%;
  115. border-bottom: 1px solid #fff;
  116. font: 400 11px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
  117. }
  118.  
  119. nav li:last-child a, nav li:nth-child(4) a {
  120. border-right: none;
  121. }
  122.  
  123. nav li:nth-child(5) a, nav li:nth-child(6) a, nav li:nth-child(7) a, nav li:nth-child(8) a {
  124. border-bottom: none;
  125. }
  126. }
  127.  
  128. @media only screen and (max-width : 580px),
  129. only screen and (max-device-width : 580px){
  130. nav li a {
  131. width: 50%;
  132. font: 400 12px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
  133. padding-top: 12px;
  134. padding-bottom: 12px;
  135. }
  136.  
  137. nav li:nth-child(even) a {
  138. border-right: none;
  139. }
  140.  
  141. nav li:nth-child(5) a, nav li:nth-child(6) a {
  142. border-bottom: 1px solid #fff;
  143. }
  144. }
  145.  
  146. @media only screen and (max-width : 320px),
  147. only screen and (max-device-width : 320px){
  148. nav li a {
  149. font: 400 11px/1.4 'Cutive', Helvetica, Verdana, Arial, sans-serif;
  150. }
  151. }
Add Comment
Please, Sign In to add comment