navbar.css 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. .top-navbar {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. width: 100%;
  6. height: 50px;
  7. z-index: 99999;
  8. transition: all 0.4s ease-out;
  9. -webkit-transition: all 0.4s ease-out;
  10. margin: 0;
  11. padding-top: 0.1rem;
  12. text-align: center;
  13. }
  14. /* --- initial state start ------ */
  15. .initial-navbar {
  16. background-color: transparent;
  17. }
  18. .initial-navbar .navbar-brand {
  19. color: #c0ccda;
  20. font-weight: 600;
  21. }
  22. .initial-navbar li a {
  23. color: #c0ccda;
  24. }
  25. .initial-navbar .navbar-nav .active,
  26. .initial-navbar li a:hover {
  27. color: #f9fafc;
  28. transition: all 0.3s ease-out;
  29. -webkit-transition: all 0.3s ease-out;
  30. }
  31. .navbar-collapse {
  32. margin-top: -5px;
  33. }
  34. .navbar-collapse.show,
  35. .navbar-collapse.collapsing {
  36. background-color: #f9fafc;
  37. padding-left: 1rem;
  38. }
  39. /* --- initial state end ------ */
  40. /* --- state after scroll start --- */
  41. .final-navbar {
  42. background-color: #f9fafc;
  43. color: #1c2d41;
  44. transition: all 0.3s ease-out;
  45. -webkit-transition: all 0.3s ease-out;
  46. }
  47. .final-navbar .navbar-brand {
  48. color: #1c2d41;
  49. font-weight: 600;
  50. }
  51. .final-navbar li a {
  52. color: #1c2d41;
  53. font-weight: 500;
  54. transition: all 0.3s ease-out;
  55. -webkit-transition: all 0.3s ease-out;
  56. border-bottom: 2px solid#F9FAFC;
  57. }
  58. .final-navbar .navbar-nav .active,
  59. .final-navbar li a:hover {
  60. color: #2098d1;
  61. transition: all 0.3s ease-out;
  62. -webkit-transition: all 0.3s ease-out;
  63. border-bottom: 2px solid #2098d1;
  64. background: rgb(2, 0, 36);
  65. background: linear-gradient(
  66. 90deg,
  67. rgba(2, 0, 36, 1) 0%,
  68. rgba(34, 136, 168, 0.1) 0%
  69. );
  70. }
  71. .navbar-collapse.show li a,
  72. .navbar-collapse.collapsing li a {
  73. color: #1c2d41;
  74. font-weight: 500;
  75. transition: all 0.3s ease-out;
  76. -webkit-transition: all 0.3s ease-out;
  77. }
  78. .navbar-collapse.show .navbar-nav .active,
  79. .navbar-collapse.show .navbar-nav a:hover {
  80. color: #2098d1;
  81. }
  82. #top-navbar-divider {
  83. margin-top: 10px;
  84. }
  85. /* --- state after scroll end --- */
  86. #top-navbar-divider {
  87. background: rgba(192, 204, 218, 0.8);
  88. height: 20px;
  89. width: 2px;
  90. }
  91. .final-navbar #top-navbar-divider {
  92. background: rgba(0, 0, 0, 0.6);
  93. }
  94. #top-navbar-divider {
  95. height: 20px;
  96. width: 2px;
  97. }
  98. .navbar-brand img {
  99. width: 42px;
  100. padding: 5px;
  101. margin-left: -10px;
  102. }
  103. /* ============= Device specific fixes ======= */
  104. /* Large screens such as TV */
  105. @media only screen and (min-width: 1824px) {
  106. }
  107. /* Extra large devices (large desktops, 1200px and up) */
  108. @media (max-width: 1400px) {
  109. }
  110. @media (max-width: 1200px) {
  111. }
  112. /* IPad Pro */
  113. @media (max-width: 1024px) {
  114. .top-navbar .container {
  115. max-width: 100%;
  116. }
  117. .initial-navbar .navbar-nav .active,
  118. .initial-navbar li a:hover {
  119. color: #2098d1;
  120. transition: all 0.3s ease-out;
  121. -webkit-transition: all 0.3s ease-out;
  122. }
  123. .final-navbar .navbar-nav .active,
  124. .final-navbar li a:hover {
  125. color: #2098d1;
  126. transition: none;
  127. -webkit-transition: none;
  128. border-bottom: none;
  129. background: transparent;
  130. }
  131. .final-navbar li a {
  132. border-bottom: none;
  133. }
  134. .final-navbar .navbar-collapse.show {
  135. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  136. transition: all 0.3s ease-out;
  137. -webkit-transition: all 0.3s ease-out;
  138. }
  139. .dropdown-divider {
  140. border-top: 1px solid #c0ccda;
  141. }
  142. #top-navbar-divider {
  143. background: rgba(0, 0, 0, 0.6);
  144. height: auto;
  145. width: auto;
  146. margin-right: 15px;
  147. }
  148. }
  149. /* Large devices (desktops, 992px and up) */
  150. @media (max-width: 992px) {
  151. .initial-navbar .navbar-nav .active,
  152. .initial-navbar li a:hover {
  153. color: #2098d1;
  154. transition: all 0.3s ease-out;
  155. -webkit-transition: all 0.3s ease-out;
  156. }
  157. .final-navbar .navbar-nav .active,
  158. .final-navbar li a:hover {
  159. color: #2098d1;
  160. transition: none;
  161. -webkit-transition: none;
  162. border-bottom: none;
  163. background: transparent;
  164. }
  165. .final-navbar li a {
  166. border-bottom: none;
  167. }
  168. .final-navbar .navbar-collapse.show {
  169. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  170. transition: all 0.3s ease-out;
  171. -webkit-transition: all 0.3s ease-out;
  172. }
  173. .dropdown-divider {
  174. border-top: 1px solid #c0ccda;
  175. }
  176. #top-navbar-divider {
  177. background: rgba(0, 0, 0, 0.6);
  178. height: auto;
  179. width: auto;
  180. margin-right: 15px;
  181. }
  182. }
  183. /* Medium devices (tablets, 768px and up) */
  184. @media only screen and (max-width: 768px) {
  185. .initial-navbar .navbar-nav .active,
  186. .initial-navbar li a:hover {
  187. color: #2098d1;
  188. transition: all 0.3s ease-out;
  189. -webkit-transition: all 0.3s ease-out;
  190. }
  191. .final-navbar .navbar-nav .active,
  192. .final-navbar li a:hover {
  193. color: #2098d1;
  194. transition: none;
  195. -webkit-transition: none;
  196. border-bottom: none;
  197. background: transparent;
  198. }
  199. .final-navbar li a {
  200. border-bottom: none;
  201. }
  202. .final-navbar .navbar-collapse.show {
  203. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  204. transition: all 0.3s ease-out;
  205. -webkit-transition: all 0.3s ease-out;
  206. }
  207. .dropdown-divider {
  208. border-top: 1px solid #c0ccda;
  209. }
  210. #top-navbar-divider {
  211. background: rgba(0, 0, 0, 0.6);
  212. height: auto;
  213. width: auto;
  214. margin-right: 15px;
  215. }
  216. }
  217. /* Small devices (landscape phones, 576px and up) */
  218. @media only screen and (max-width: 576px) {
  219. }
  220. /* iPhoneX, iPhone 6,7,8 */
  221. @media only screen and (max-width: 375px) {
  222. }
  223. /* Galaxy S5, Moto G4 */
  224. @media only screen and (max-width: 360px) {
  225. }
  226. /* iPhone 5 or before */
  227. @media only screen and (max-width: 320px) {
  228. }