header.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  1. .navbar-toggler span {
  2. background-color: #1B1B1B;
  3. }
  4. /*--/ Hamburger Navbar /--*/
  5. .navbar-toggler {
  6. position: relative;
  7. }
  8. .navbar-toggler:focus,
  9. .navbar-toggler:active {
  10. outline: 0;
  11. }
  12. .navbar-toggler span {
  13. display: block;
  14. background-color: #000;
  15. height: 3px;
  16. width: 25px;
  17. margin-top: 4px;
  18. margin-bottom: 4px;
  19. transform: rotate(0deg);
  20. left: 0;
  21. opacity: 1;
  22. }
  23. .navbar-toggler span:nth-child(1),
  24. .navbar-toggler span:nth-child(3) {
  25. transition: transform .35s ease-in-out;
  26. }
  27. .navbar-toggler:not(.collapsed) span:nth-child(1) {
  28. position: absolute;
  29. left: 12px;
  30. top: 18px;
  31. transform: rotate(135deg);
  32. opacity: 0.9;
  33. }
  34. .navbar-toggler:not(.collapsed) span:nth-child(2) {
  35. height: 17px;
  36. visibility: hidden;
  37. background-color: transparent;
  38. }
  39. .navbar-toggler:not(.collapsed) span:nth-child(3) {
  40. position: absolute;
  41. left: 12px;
  42. top: 18px;
  43. transform: rotate(-135deg);
  44. opacity: 0.9;
  45. }
  46. #mainNav {
  47. position: absolute;
  48. border-bottom: 1px solid #e9ecef;
  49. background-color: white;
  50. font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  51. }
  52. #mainNav .navbar-brand {
  53. font-weight: 800;
  54. color: #343a40;
  55. }
  56. #mainNav .navbar-toggler {
  57. font-size: 12px;
  58. font-weight: 800;
  59. padding: 13px;
  60. text-transform: uppercase;
  61. color: #343a40;
  62. border-color: #fff;
  63. }
  64. #mainNav .navbar-nav > li.nav-item > a {
  65. font-size: 12px;
  66. font-weight: 800;
  67. letter-spacing: 1px;
  68. text-transform: uppercase;
  69. }
  70. @media only screen and (min-width: 992px) {
  71. #mainNav {
  72. border-bottom: 1px solid transparent;
  73. background: transparent;
  74. }
  75. #mainNav .navbar-brand {
  76. padding: 10px 20px;
  77. color: #fff;
  78. }
  79. #mainNav .navbar-brand:focus, #mainNav .navbar-brand:hover {
  80. color: rgba(255, 255, 255, 0.8);
  81. }
  82. #mainNav .navbar-nav > li.nav-item > a {
  83. padding: 10px 20px;
  84. color: #fff;
  85. }
  86. #mainNav .navbar-nav > li.nav-item > a:focus, #mainNav .navbar-nav > li.nav-item > a:hover {
  87. color: rgba(255, 255, 255, 0.8);
  88. }
  89. }
  90. @media only screen and (min-width: 992px) {
  91. #mainNav {
  92. transition: background-color 0.2s;
  93. /* Force Hardware Acceleration in WebKit */
  94. transform: translate3d(0, 0, 0);
  95. -webkit-backface-visibility: hidden;
  96. backface-visibility: hidden;
  97. }
  98. #mainNav.is-fixed {
  99. /* when the user scrolls down, we hide the header right above the viewport */
  100. position: fixed;
  101. top: -67px;
  102. transition: transform 0.2s;
  103. background-color: rgba(240, 240, 240, 0.9);
  104. }
  105. #mainNav.is-fixed .navbar-brand {
  106. color: #212529;
  107. }
  108. #mainNav.is-fixed .navbar-brand:focus, #mainNav.is-fixed .navbar-brand:hover {
  109. color: #0085A1;
  110. }
  111. #mainNav.is-fixed .navbar-nav > li.nav-item > a {
  112. color: #212529;
  113. }
  114. #mainNav.is-fixed .navbar-nav > li.nav-item > a:focus, #mainNav.is-fixed .navbar-nav > li.nav-item > a:hover {
  115. color: #0085A1;
  116. }
  117. #mainNav.is-visible {
  118. /* if the user changes the scrolling direction, we show the header */
  119. transform: translate3d(0, 100%, 0);
  120. }
  121. #mainNav.is-fixed .search-icon:after {
  122. background-color: #000000 !important;
  123. }
  124. #mainNav.is-fixed .search-icon:before {
  125. background-color: #000000 !important;
  126. }
  127. #mainNav.is-fixed .search-icon {
  128. border: 3px solid #000000 !important;
  129. }
  130. #mainNav.is-fixed .search:before {
  131. background-color: #000000 !important;
  132. }
  133. #mainNav.is-fixed .search-box {
  134. color: #000000 !important;
  135. }
  136. }
  137. * {
  138. box-sizing: border-box;
  139. }
  140. .search {
  141. width: 40px;
  142. height: 40px;
  143. background-color: transparent;
  144. position: relative;
  145. overflow: hidden;
  146. transition: all 0.5s ease;
  147. }
  148. .search:before {
  149. content: '';
  150. display: block;
  151. width: 3px;
  152. height: 100%;
  153. position: relative;
  154. background-color: #ffffff;
  155. transition: all 0.5s ease;
  156. }
  157. .search.open {
  158. width: 420px;
  159. }
  160. .search.open:before {
  161. height: 24px;
  162. margin: 8px 0 20px 30px;
  163. position: absolute;
  164. }
  165. .search-box {
  166. width: 100%;
  167. height: 100%;
  168. box-shadow: none;
  169. border: none;
  170. background: transparent;
  171. color: #fff;
  172. padding: 7px 100px 12px 45px;
  173. font-size: 20px;
  174. }
  175. .search-box:focus {
  176. outline: none;
  177. }
  178. .search-button {
  179. width: 60px;
  180. height: 80px;
  181. display: block;
  182. position: absolute;
  183. right: 0;
  184. top: 0;
  185. padding: 6px;
  186. cursor: pointer;
  187. }
  188. .search-icon {
  189. width: 20px;
  190. height: 20px;
  191. border-radius: 40px;
  192. border: 3px solid #ffffff;
  193. display: block;
  194. position: relative;
  195. margin-left: 22px;
  196. transition: all 0.5s ease;
  197. }
  198. .search-icon:before {
  199. content: '';
  200. width: 3px;
  201. height: 10px;
  202. position: absolute;
  203. right: -3px;
  204. top: 12px;
  205. display: block;
  206. background-color: #ffffff;
  207. transform: rotate(-45deg);
  208. transition: all 0.5s ease;
  209. }
  210. .search-icon:after {
  211. content: '';
  212. width: 3px;
  213. height: 10px;
  214. position: absolute;
  215. right: -9px;
  216. top: 18px;
  217. display: block;
  218. background-color: #ffffff;
  219. transform: rotate(-45deg);
  220. transition: all 0.5s ease;
  221. }
  222. .open .search-icon {
  223. margin: 0;
  224. width: 30px;
  225. height: 30px;
  226. border-radius: 60px;
  227. }
  228. .open .search-icon:before {
  229. transform: rotate(52deg);
  230. right: 9px;
  231. top: 10px;
  232. height: 9px;
  233. }
  234. .open .search-icon:after {
  235. transform: rotate(-230deg);
  236. right: 9px;
  237. top: 6px;
  238. height: 9px;
  239. }