index.module.scss 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. .A3hotList {
  2. position: absolute;
  3. top: 50%;
  4. right: 0;
  5. transform: translate(0, -50%);
  6. width: 350px;
  7. height: 100%;
  8. z-index: 30001;
  9. display: flex;
  10. align-items: center;
  11. justify-content: flex-end;
  12. :global {
  13. .A3main {
  14. display: flex;
  15. flex-direction: column;
  16. align-items: center;
  17. justify-content: flex-start;
  18. gap: 10px;
  19. width: 350px;
  20. height: 100%;
  21. background: url('../../assets/img/hotlist_bg.png') no-repeat;
  22. background-size: 100% 100%;
  23. color: #d3a55cd6;
  24. font-size: 17px;
  25. font-weight: 500;
  26. padding-bottom: 70px;
  27. // 隐藏滚动条
  28. &::-webkit-scrollbar {
  29. display: none;
  30. }
  31. .A3title {
  32. padding: 40px 0 10px 0;
  33. font-size: 30px;
  34. font-weight: 500;
  35. color: #e6aa4a;
  36. }
  37. .itemBox{
  38. width: 93%;
  39. height: 86%;
  40. overflow: auto;
  41. display: flex;
  42. flex-direction: column;
  43. gap: 28px;
  44. &::-webkit-scrollbar {
  45. display: none;
  46. }
  47. .A3item {
  48. display: flex;
  49. align-items: center;
  50. justify-content: center;
  51. width: 100%;
  52. height: fit-content;
  53. padding: 4px 10px;
  54. cursor: pointer;
  55. min-width: 0; // 保持这个重要属性
  56. font-size: 20px;
  57. span {
  58. white-space: nowrap;
  59. text-overflow: ellipsis;
  60. overflow: hidden;
  61. width: 100%;
  62. text-align: center;
  63. display: block;
  64. }
  65. &:hover {
  66. background-color: rgba(44, 43, 42, 0.5);
  67. }
  68. }
  69. }
  70. .A3close {
  71. position: fixed;
  72. bottom: 0;
  73. width: 90%;
  74. height: 60px;
  75. margin: 10px;
  76. background-color: transparent;
  77. border-top: 1px solid rgba(43, 31, 23, 0.1);
  78. display: flex;
  79. align-items: center;
  80. justify-content: center;
  81. cursor: pointer;
  82. &:hover {
  83. opacity: 1;
  84. }
  85. img {
  86. width: 38px;
  87. height: 38px;
  88. opacity: 0.6;
  89. }
  90. }
  91. }
  92. }
  93. }
  94. @media screen and (max-width: 1000px) {
  95. .A3hotList {
  96. width: 94%;
  97. height: 98%;
  98. top: 0%;
  99. transform: translateX(-3%);
  100. :global {
  101. html .cad {
  102. z-index: -1;
  103. }
  104. .A3main {
  105. width: 100%;
  106. height: 100%;
  107. padding-bottom: 20px;
  108. .A3title {
  109. padding: 20px 0 10px 0;
  110. font-size: 26px;
  111. }
  112. .itemBox {
  113. height: 84%;
  114. .A3item {
  115. font-size: 18px;
  116. padding: 10px 3px;
  117. &:touch {
  118. background-color: rgba(163, 143, 116, 1);
  119. }
  120. }
  121. }
  122. .A3close {
  123. bottom: 10px;
  124. background-color: transparent;
  125. height: 40px;
  126. & img {
  127. opacity: 1;
  128. }
  129. }
  130. }
  131. }
  132. }
  133. }