index.scss 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. #hotListWrap {
  2. display: flex;
  3. flex-direction: column;
  4. position: absolute;
  5. top: 0;
  6. right: -400px;
  7. width: 356px;
  8. max-width: 50%;
  9. height: 100%;
  10. transition: right 0.4s, width 0.5s;
  11. background: rgba(34, 36, 37, 0.7);
  12. z-index: var(--z-index-popper);
  13. }
  14. .hotListActive {
  15. right: 0 !important;
  16. }
  17. #hotListTitle {
  18. position: relative;
  19. width: 100%;
  20. height: 15%;
  21. opacity: 0.8;
  22. display: flex;
  23. flex-direction: column;
  24. justify-content: center;
  25. text-align: center;
  26. }
  27. #hotListContent {
  28. width: 100%;
  29. flex-grow: 1;
  30. height: 100%;
  31. overflow-y: scroll;
  32. overflow-x: hidden;
  33. }
  34. #hotListBottom {
  35. position: relative;
  36. height: 20%;
  37. }
  38. #hotListClose {
  39. position: absolute;
  40. width: 26px;
  41. right: 64px;
  42. bottom: 64px;
  43. cursor: pointer;
  44. }
  45. #hotListContent ul {
  46. padding: 40px 30px;
  47. font-size: 18px;
  48. letter-spacing: 3px;
  49. }
  50. #hotListContent ul li {
  51. height: 68px;
  52. line-height: 68px;
  53. text-align: right;
  54. color: #979cab;
  55. padding: 0 25px;
  56. transition: color 0.3s, background 0.6s;
  57. border-radius: 10px;
  58. overflow: hidden;
  59. white-space: nowrap;
  60. text-overflow: ellipsis;
  61. }
  62. #hotListContent ul li:hover {
  63. color: white;
  64. }
  65. #hotListContent ul li.active {
  66. color: black;
  67. background: #f3f5f9;
  68. }
  69. #hotListText {
  70. font-size: 22px;
  71. letter-spacing: 4px;
  72. color: white;
  73. }
  74. #hotListIcon {
  75. width: 34px;
  76. margin-left: 48px;
  77. }
  78. #hotListContent::-webkit-scrollbar {
  79. width: 6px;
  80. }
  81. #hotListContent::-webkit-scrollbar-thumb {
  82. border-radius: 10px;
  83. background-color: #979cab;
  84. }
  85. #hotListContent::-webkit-scrollbar-track {
  86. border-radius: 10px;
  87. }
  88. @media only screen and (max-width: 910px) {
  89. #hotListWrap {
  90. top: -320px;
  91. right: 0;
  92. width: 100%;
  93. max-width: 100%;
  94. height: 250px;
  95. transition: top 0.4s, width 0.5s;
  96. background: rgba(34, 36, 37, 0.9);
  97. }
  98. .hotListActive {
  99. top: 0 !important;
  100. }
  101. #hotListTitle {
  102. height: 40%;
  103. position: relative;
  104. background: none;
  105. opacity: 1;
  106. }
  107. #hotListText {
  108. font-size: 20px;
  109. letter-spacing: 3px;
  110. font-weight: 100;
  111. position: absolute;
  112. top: 50%;
  113. left: 50%;
  114. transform: translate(-50%, -50%);
  115. }
  116. #hotListIcon {
  117. width: 24px;
  118. margin-left: 26px;
  119. position: absolute;
  120. top: 50%;
  121. left: 50%;
  122. transform: translate(165%, -50%);
  123. }
  124. #hotListContent ul li {
  125. text-align: center;
  126. height: 40px;
  127. line-height: 40px;
  128. }
  129. #hotListContent ul {
  130. padding: 0 30px;
  131. font-size: 16px;
  132. }
  133. #hotListBottom {
  134. display: none;
  135. height: 15%;
  136. /* background: rgba(34, 36, 37,0.9); */
  137. background: none;
  138. display: flex;
  139. justify-content: center;
  140. align-items: center;
  141. }
  142. #hotListClose {
  143. display: none;
  144. position: initial;
  145. width: 18px;
  146. }
  147. #hotListContent ul li.active {
  148. color: white;
  149. background: none;
  150. }
  151. }