navbar.css 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. padding: 0;
  117. }
  118. .initial-navbar .navbar-nav .active,
  119. .initial-navbar li a:hover {
  120. color: #2098d1;
  121. transition: all 0.3s ease-out;
  122. -webkit-transition: all 0.3s ease-out;
  123. }
  124. .final-navbar .navbar-nav .active,
  125. .final-navbar li a:hover {
  126. color: #2098d1;
  127. transition: none;
  128. -webkit-transition: none;
  129. border-bottom: none;
  130. background: transparent;
  131. }
  132. .final-navbar li a {
  133. border-bottom: none;
  134. }
  135. .final-navbar .navbar-collapse.show {
  136. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  137. transition: all 0.3s ease-out;
  138. -webkit-transition: all 0.3s ease-out;
  139. }
  140. .dropdown-divider {
  141. border-top: 1px solid #c0ccda;
  142. }
  143. #top-navbar-divider {
  144. background: rgba(0, 0, 0, 0.6);
  145. height: auto;
  146. width: auto;
  147. margin-right: 15px;
  148. }
  149. }
  150. /* Large devices (desktops, 992px and up) */
  151. @media (max-width: 992px) {
  152. .top-navbar .container {
  153. max-width: 100%;
  154. padding: 0;
  155. }
  156. .initial-navbar .navbar-nav .active,
  157. .initial-navbar li a:hover {
  158. color: #2098d1;
  159. transition: all 0.3s ease-out;
  160. -webkit-transition: all 0.3s ease-out;
  161. }
  162. .final-navbar .navbar-nav .active,
  163. .final-navbar li a:hover {
  164. color: #2098d1;
  165. transition: none;
  166. -webkit-transition: none;
  167. border-bottom: none;
  168. background: transparent;
  169. }
  170. .final-navbar li a {
  171. border-bottom: none;
  172. }
  173. .final-navbar .navbar-collapse.show {
  174. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  175. transition: all 0.3s ease-out;
  176. -webkit-transition: all 0.3s ease-out;
  177. }
  178. .dropdown-divider {
  179. border-top: 1px solid #c0ccda;
  180. }
  181. #top-navbar-divider {
  182. background: rgba(0, 0, 0, 0.6);
  183. height: auto;
  184. width: auto;
  185. margin-right: 15px;
  186. }
  187. }
  188. /* Medium devices (tablets, 768px and up) */
  189. @media only screen and (max-width: 768px) {
  190. .top-navbar .container {
  191. max-width: 100%;
  192. padding: 0;
  193. }
  194. .initial-navbar .navbar-nav .active,
  195. .initial-navbar li a:hover {
  196. color: #2098d1;
  197. transition: all 0.3s ease-out;
  198. -webkit-transition: all 0.3s ease-out;
  199. }
  200. .final-navbar .navbar-nav .active,
  201. .final-navbar li a:hover {
  202. color: #2098d1;
  203. transition: none;
  204. -webkit-transition: none;
  205. border-bottom: none;
  206. background: transparent;
  207. }
  208. .final-navbar li a {
  209. border-bottom: none;
  210. }
  211. .final-navbar .navbar-collapse.show {
  212. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  213. transition: all 0.3s ease-out;
  214. -webkit-transition: all 0.3s ease-out;
  215. }
  216. .dropdown-divider {
  217. border-top: 1px solid #c0ccda;
  218. }
  219. #top-navbar-divider {
  220. background: rgba(0, 0, 0, 0.6);
  221. height: auto;
  222. width: auto;
  223. margin-right: 15px;
  224. }
  225. }
  226. /* Small devices (landscape phones, 576px and up) */
  227. @media only screen and (max-width: 576px) {
  228. .final-navbar {
  229. padding: 0;
  230. }
  231. }
  232. /* iPhoneX, iPhone 6,7,8 */
  233. @media only screen and (max-width: 375px) {
  234. }
  235. /* Galaxy S5, Moto G4 */
  236. @media only screen and (max-width: 360px) {
  237. }
  238. /* iPhone 5 or before */
  239. @media only screen and (max-width: 320px) {
  240. }