navbar.css 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .top-navbar {
  2. position: fixed;
  3. left: 0;
  4. top: 0;
  5. width: 100%;
  6. height: 50px;
  7. z-index: 99999;
  8. -webkit-transition: all 0.4s ease-out;
  9. 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: none;
  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. -webkit-transition: all 0.3s ease-out;
  29. transition: all 0.3s ease-out;
  30. }
  31. .navbar-collapse.show,
  32. .navbar-collapse.collapsing {
  33. background-color: #f9fafc;
  34. padding-left: 1rem;
  35. }
  36. /* --- initial state end ------ */
  37. /* --- state after scroll start --- */
  38. .final-navbar {
  39. background-color: #f9fafc;
  40. color: #1c2d41;
  41. -webkit-transition: all 0.3s ease-out;
  42. transition: all 0.3s ease-out;
  43. }
  44. .final-navbar .navbar-brand {
  45. color: #1c2d41;
  46. font-weight: 800;
  47. }
  48. .final-navbar li a {
  49. color: #1c2d41;
  50. font-weight: 500;
  51. -webkit-transition: all 0.3s ease-out;
  52. transition: all 0.3s ease-out;
  53. border-bottom: 2px solid#F9FAFC;
  54. }
  55. .final-navbar .navbar-nav .active,
  56. .final-navbar li a:hover {
  57. color: #2098d1;
  58. -webkit-transition: all 0.3s ease-out;
  59. transition: all 0.3s ease-out;
  60. border-bottom: 2px solid #2098d1;
  61. background: rgb(2, 0, 36);
  62. background: linear-gradient(
  63. 90deg,
  64. rgba(2, 0, 36, 1) 0%,
  65. rgba(34, 136, 168, 0.1) 0%
  66. );
  67. }
  68. .navbar-collapse.show li a,
  69. .navbar-collapse.collapsing li a {
  70. color: #1c2d41;
  71. font-weight: 500;
  72. -webkit-transition: all 0.3s ease-out;
  73. transition: all 0.3s ease-out;
  74. }
  75. .navbar-collapse.show .navbar-nav .active,
  76. .navbar-collapse.show .navbar-nav a:hover {
  77. color: #2098d1;
  78. /* -webkit-transition: all 0.3s ease-out;
  79. transition: all 0.3s ease-out; */
  80. }
  81. #top-navbar-divider {
  82. margin-top: 10px;
  83. }
  84. /* --- state after scroll end --- */
  85. #top-navbar-divider {
  86. background: rgba(192, 204, 218, 0.8);
  87. height: 20px;
  88. width: 2px;
  89. }
  90. .final-navbar #top-navbar-divider {
  91. background: rgba(0, 0, 0, 0.6);
  92. }
  93. #top-navbar-divider {
  94. height: 20px;
  95. width: 2px;
  96. }
  97. /*------ navbar on blog page start ----*/
  98. .final-navbar .navbar-toggler {
  99. padding: 2px !important;
  100. }
  101. .blog-navbar .navbar-brand {
  102. color: #1c2d41;
  103. font-weight: 800;
  104. }
  105. .blog-navbar li a {
  106. color: #1c2d41;
  107. font-weight: 500;
  108. -webkit-transition: all 0.3s ease-out;
  109. transition: all 0.3s ease-out;
  110. }
  111. .blog-navbar .navbar-nav .active,
  112. .blog-navbar li a:hover {
  113. color: #2098d1;
  114. /* -webkit-transition: all 0.3s ease-out;
  115. transition: all 0.3s ease-out; */
  116. }
  117. /* ============= Device specific fixes ======= */
  118. /* Extra small devices (portrait phones, less than 576px) */
  119. /* No media query for `xs` since this is the default in Bootstrap */
  120. /* Extra large devices (large desktops, 1200px and up) */
  121. @media (max-width: 1400px) {
  122. }
  123. @media (max-width: 1200px) {
  124. }
  125. /* Large devices (desktops, 992px and up) */
  126. @media (max-width: 992px) {
  127. }
  128. /* Medium devices (tablets, 768px and up) */
  129. @media only screen and (max-width: 768px) {
  130. .final-navbar .navbar-nav .active,
  131. .final-navbar li a:hover {
  132. color: #2098d1;
  133. -webkit-transition: none;
  134. transition: none;
  135. border-bottom: none;
  136. background: transparent;
  137. }
  138. .final-navbar li a {
  139. border-bottom: none;
  140. }
  141. .navbar-collapse.show {
  142. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  143. transition: all 0.3s ease-out;
  144. }
  145. .dropdown-divider {
  146. border-top: 1px solid #c0ccda;
  147. }
  148. #top-navbar-divider {
  149. background: rgba(0, 0, 0, 0.6);
  150. height: auto;
  151. width: auto;
  152. margin-right: 15px;
  153. }
  154. }
  155. /* Small devices (landscape phones, 576px and up) */
  156. @media only screen and (max-width: 576px) {
  157. }