index.css 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. .topNav {
  2. /* @apply bg-black/[.2] */
  3. background: rgba(0, 0, 0, 0.6);
  4. }
  5. .mr160 {
  6. margin-right: 140px;
  7. }
  8. .wall {
  9. height: 60px;
  10. }
  11. .logoWrap {
  12. margin-left: 44px;
  13. margin-right: 80px;
  14. width: 304px;
  15. height: 47px;
  16. cursor: pointer;
  17. overflow: hidden;
  18. }
  19. .top.headerSection {
  20. display: flex;
  21. flex-direction: row;
  22. align-items: center;
  23. justify-content: space-between;
  24. position: fixed;
  25. width: 100%;
  26. top: 0px;
  27. z-index: 1200;
  28. height: 62px;
  29. line-height: 62px;
  30. background-color: rgba(0, 0, 0, 0.4) !important;
  31. animation:none;
  32. border-bottom: none;
  33. /* animation-name: navAnimat;
  34. animation-duration: 1s;
  35. animation-timing-function: linear;
  36. animation-fill-mode: forwards; */
  37. }
  38. .isdark.headerSection {
  39. background-color: #252627!important;
  40. animation:none;
  41. /* isdark */
  42. }
  43. .isdark .normalItem {
  44. color: #fff;
  45. }
  46. .headerSection {
  47. display: flex;
  48. flex-direction: row;
  49. align-items: center;
  50. justify-content: space-between;
  51. position: fixed;
  52. width: 100%;
  53. top: 0px;
  54. z-index: 1200;
  55. height: 62px;
  56. line-height: 62px;
  57. animation-name: navAnimat;
  58. animation-duration: .4s;
  59. animation-timing-function: linear;
  60. animation-fill-mode: forwards;
  61. background-color: #fff;
  62. border-bottom: 1px solid #EAEAEA;
  63. }
  64. .top .normalItem {
  65. color: #fff;
  66. }
  67. @keyframes navAnimat {
  68. 0% {
  69. opacity: 0;
  70. }
  71. 25% {
  72. opacity: .25;
  73. }
  74. 50% {
  75. opacity: .5;
  76. }
  77. 100% {
  78. opacity: 1;
  79. /* opacity: 1; */
  80. }
  81. }
  82. .top {
  83. background-color: rgba(0, 0, 0, 0.2) !important;
  84. }
  85. .top.header-container {
  86. border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  87. }
  88. .normalItem {
  89. color: #333;
  90. }
  91. .activeItem {
  92. color: var(--theme-color) !important;
  93. font-weight: 600;
  94. }
  95. .activeItem::after {
  96. position: absolute;
  97. content: "";
  98. left: 51%;
  99. width: 102%;
  100. height: 3px;
  101. margin-left: -51%;
  102. background-color: var(--theme-color);
  103. z-index: 100;
  104. /* transform: scaleX(0);
  105. transform-origin: left;
  106. transition: transform .15s ease; */
  107. animation-name: showLine;
  108. animation-duration: .15s;
  109. animation-timing-function: linear;
  110. animation-direction: alternate;
  111. animation-fill-mode: forwards;
  112. border-radius: 2px;
  113. bottom: 14px;
  114. }
  115. @keyframes showLine {
  116. 0% {
  117. width: 0%;
  118. }
  119. 25% {
  120. width: 25%;
  121. /* transform: scale(.25); */
  122. }
  123. 50% {
  124. width: 50%;
  125. /* transform: scale(.5); */
  126. }
  127. 100% {
  128. width: 102%;
  129. /* transform: scale(1); */
  130. }
  131. }
  132. /* .activeItem::after {
  133. transform: scaleX(1) !important;
  134. } */
  135. /* .activeItem:active::after {
  136. transform: scaleX(1) !important;
  137. } */
  138. .itemCenter {
  139. position: relative;
  140. margin-right: 40px;
  141. line-height: 62px;
  142. height: 62px;
  143. font-size: 20px;
  144. font-weight: 600;
  145. display: inline-block;
  146. }
  147. .navWrap {
  148. position: fixed;
  149. width: 100%;
  150. top: 0px;
  151. z-index: 1200;
  152. }
  153. .rightWrap {
  154. margin-right: 44px;
  155. }
  156. .rightWrap .logoBtn {
  157. width: 107px;
  158. height: 40px;
  159. background: #2DC7AA;
  160. border-radius: 20px;
  161. font-size: 16px;
  162. }
  163. .wall {
  164. height: 60px;
  165. }