navbar.css 4.7 KB

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