navbar.css 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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: 800;
  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: 800;
  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. /* Extra small devices (portrait phones, less than 576px) */
  105. /* No media query for `xs` since this is the default in Bootstrap */
  106. /* Extra large devices (large desktops, 1200px and up) */
  107. @media (max-width: 1400px) {
  108. }
  109. @media (max-width: 1200px) {
  110. }
  111. /* Large devices (desktops, 992px and up) */
  112. @media (max-width: 992px) {
  113. }
  114. /* Medium devices (tablets, 768px and up) */
  115. @media only screen and (max-width: 768px) {
  116. .top-navbar .container {
  117. max-width: 100%;
  118. padding: 0;
  119. }
  120. .initial-navbar .navbar-nav .active,
  121. .initial-navbar li a:hover {
  122. color: #2098d1;
  123. transition: all 0.3s ease-out;
  124. -webkit-transition: all 0.3s ease-out;
  125. }
  126. .final-navbar .navbar-nav .active,
  127. .final-navbar li a:hover {
  128. color: #2098d1;
  129. transition: none;
  130. -webkit-transition: none;
  131. border-bottom: none;
  132. background: transparent;
  133. }
  134. .final-navbar li a {
  135. border-bottom: none;
  136. }
  137. .final-navbar .navbar-collapse.show {
  138. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  139. transition: all 0.3s ease-out;
  140. -webkit-transition: all 0.3s ease-out;
  141. }
  142. .dropdown-divider {
  143. border-top: 1px solid #c0ccda;
  144. }
  145. #top-navbar-divider {
  146. background: rgba(0, 0, 0, 0.6);
  147. height: auto;
  148. width: auto;
  149. margin-right: 15px;
  150. }
  151. }
  152. /* Small devices (landscape phones, 576px and up) */
  153. @media only screen and (max-width: 576px) {
  154. }