navbar.css 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. height: 20px;
  93. width: 2px;
  94. }
  95. /*------ navbar on blog page start ----*/
  96. .final-navbar .navbar-toggler {
  97. padding: 2px !important;
  98. }
  99. .blog-navbar .navbar-brand {
  100. color: #1C2D41;
  101. font-weight: 800;
  102. }
  103. .blog-navbar li a {
  104. color: #1C2D41;
  105. font-weight: 500;
  106. -webkit-transition: all 0.3s ease-out;
  107. transition: all 0.3s ease-out;
  108. }
  109. .blog-navbar .navbar-nav .active,
  110. .blog-navbar li a:hover {
  111. color: #2098d1;
  112. /* -webkit-transition: all 0.3s ease-out;
  113. transition: all 0.3s ease-out; */
  114. }
  115. /* ============= Device specific fixes ======= */
  116. /* Extra small devices (portrait phones, less than 576px) */
  117. /* No media query for `xs` since this is the default in Bootstrap */
  118. /* Extra large devices (large desktops, 1200px and up) */
  119. @media (max-width: 1400px) {
  120. }
  121. @media (max-width: 1200px) {
  122. }
  123. /* Large devices (desktops, 992px and up) */
  124. @media (max-width: 992px) {
  125. }
  126. /* Medium devices (tablets, 768px and up) */
  127. @media only screen and (max-width: 768px) {
  128. .final-navbar .navbar-nav .active,
  129. .final-navbar li a:hover {
  130. color: #2098d1;
  131. -webkit-transition: none;
  132. transition: none;
  133. border-bottom: none;
  134. background: transparent;
  135. }
  136. .final-navbar li a {
  137. border-bottom: none;
  138. }
  139. .navbar-collapse.show {
  140. box-shadow: 5px 10px 10px rgba(192, 204, 218, 0.3);
  141. transition: all 0.3s ease-out;
  142. }
  143. .dropdown-divider {
  144. border-top: 1px solid #c0ccda;
  145. }
  146. }
  147. /* Small devices (landscape phones, 576px and up) */
  148. @media only screen and (max-width: 576px) {
  149. }