Guest User

Untitled

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