navbar.css 4.9 KB

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