index.module.less 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313
  1. .search {
  2. --van-cell-background-color: transparent;
  3. --van-cell-font-size: 16px;
  4. --van-cell-text-color: #333;
  5. --van-cell-value-color: #999;
  6. --van-cell-icon-size: 10px;
  7. --van-nav-bar-height: 20px;
  8. --base-bg: #f6f8f9;
  9. .sticky {
  10. :global(.van-sticky--fixed) {
  11. box-shadow: 10px 10px 10px var(--box-shadow-color);
  12. }
  13. >div {
  14. background-color: var(--base-bg);
  15. }
  16. }
  17. .title {
  18. padding-top: 16px;
  19. :global(.van-cell__value) {
  20. font-size: 12px;
  21. }
  22. }
  23. .keywordTitle {
  24. display: flex;
  25. align-items: center;
  26. justify-content: space-between;
  27. padding: 8px 9px;
  28. .t {
  29. font-size: 14px;
  30. font-weight: 500;
  31. color: #000000;
  32. line-height: 20px;
  33. }
  34. .remove {
  35. font-size: 16px;
  36. }
  37. }
  38. .keywords {
  39. margin-top: 10px;
  40. padding: 0 14px;
  41. display: flex;
  42. align-items: center;
  43. // .content::-webkit-scrollbar {
  44. // display: none;
  45. // }
  46. .content {
  47. flex: 1;
  48. // overflow: hidden;
  49. // overflow-x: auto;
  50. display: flex;
  51. flex-wrap: wrap;
  52. .searchKeyword {
  53. --van-tag-default-color: white;
  54. --van-tag-text-color: #313443;
  55. font-size: 14px;
  56. padding: 5px 14px;
  57. margin-right: 5px;
  58. margin-bottom: 10px;
  59. max-width: 100px;
  60. display: block;
  61. word-break: keep-all;
  62. }
  63. .arrowMore {
  64. width: 27px;
  65. height: 27px;
  66. border-radius: 50%;
  67. display: inline-flex;
  68. align-items: center;
  69. justify-content: center;
  70. background-color: #fff;
  71. font-size: 12px;
  72. color: #93959F;
  73. }
  74. }
  75. }
  76. .label {
  77. margin-right: 8px;
  78. font-size: 14px;
  79. :global {
  80. .van-list__loading,
  81. .van-list__finished-text,
  82. .van-list__error-text {
  83. width: 100%;
  84. }
  85. .iconfont-down {
  86. margin-left: 4px;
  87. }
  88. }
  89. }
  90. }
  91. .sticky {
  92. :global {
  93. .van-sticky {
  94. background: url('../../images/bg-image-search.png') no-repeat top center;
  95. background-size: 100% 214px;
  96. box-shadow: none !important;
  97. }
  98. .van-search__content {
  99. background: rgba(255, 255, 255, 0.5) !important;
  100. input::placeholder {
  101. color: rgba(0, 0, 0, 0.4) !important;
  102. }
  103. input {
  104. color: rgba(0, 0, 0, 0.4) !important;
  105. }
  106. .van-field__clear {
  107. color: rgba(0, 0, 0, 0.4) !important;
  108. }
  109. }
  110. }
  111. }
  112. .bgImg {
  113. position: fixed;
  114. top: 0;
  115. left: 0;
  116. width: 100%;
  117. height: 214px;
  118. // object-fit: cover;
  119. z-index: -1;
  120. }
  121. .tagTabs {
  122. --van-cell-background-color: transparent;
  123. --van-cell-font-size: 16px;
  124. --van-cell-text-color: #333;
  125. --van-cell-value-color: #999;
  126. --van-cell-icon-size: 10px;
  127. --van-tab-line-height: 22px;
  128. :global {
  129. .van-tab {
  130. font-size: 16px !important;
  131. color: #999999;
  132. }
  133. .van-tab--active {
  134. font-size: 16px !important;
  135. color: #131415;
  136. }
  137. .van-tabs__line {
  138. width: 24px;
  139. height: 4px;
  140. background: linear-gradient(90deg, #FF3C81 0%, rgba(255, 118, 166, 0.5) 100%) !important;
  141. border-radius: 36px 36px 0px 0px;
  142. bottom: 22px;
  143. }
  144. }
  145. }
  146. .hotMusic {
  147. padding-bottom: 20px;
  148. .swipeItem .swipeChild {
  149. // padding-left: 14px;
  150. margin: 0 7px;
  151. }
  152. .swipeItem:last-child .swipeChild {
  153. margin-right: 14px;
  154. }
  155. .swipeItem:first-child .swipeChild {
  156. margin-left: 14px;
  157. }
  158. .swipeItem {
  159. border-radius: 10px;
  160. overflow: hidden;
  161. }
  162. .swipeChild {
  163. background: url('../../images/music-bg.png') no-repeat top center #fff;
  164. background-size: contain;
  165. }
  166. .swipeTitle {
  167. font-size: 16px;
  168. font-weight: 500;
  169. color: #131415;
  170. line-height: 22px;
  171. padding: 12px 12px 16px;
  172. }
  173. .swipeContent {
  174. padding: 0 16px 8px;
  175. border-radius: 10px;
  176. }
  177. .swipe {
  178. font-size: 14px;
  179. color: #6A6C77;
  180. line-height: 20px;
  181. max-width: 80%;
  182. white-space: nowrap;
  183. overflow: hidden;
  184. text-overflow: ellipsis;
  185. padding: 8px 0;
  186. .num {
  187. display: inline-block;
  188. font-size: 16px;
  189. font-family: PingFangSC-Medium, PingFang SC;
  190. font-weight: 600;
  191. color: #8A8C95;
  192. // margin-right: 20px;
  193. width: 21px;
  194. }
  195. .hot {
  196. display: inline-block;
  197. width: 16px;
  198. line-height: 16px;
  199. text-align: center;
  200. background: #FE2451;
  201. border-radius: 4px;
  202. font-size: 12px;
  203. font-weight: 500;
  204. color: #FFFFFF;
  205. vertical-align: middle;
  206. margin-left: 4px;
  207. transform: scale(0.9);
  208. }
  209. &.swipeTop {
  210. color: #131415;
  211. .num {
  212. color: #FE2451;
  213. }
  214. }
  215. }
  216. }
  217. // 搜索结果样式
  218. .searchResult {
  219. position: fixed;
  220. top: 0;
  221. z-index: 98;
  222. left: 0;
  223. right: 0;
  224. overflow: hidden;
  225. bottom: 0;
  226. padding-top: var(--header-height);
  227. background: url('../../images/bg-image-search.png') no-repeat top center #fafafa;
  228. background-size: 100% 214px;
  229. }
  230. .searchGroups {
  231. padding-top: 10px;
  232. height: 100%;
  233. overflow-y: auto;
  234. overflow-x: hidden;
  235. font-size: 15px;
  236. color: #131415;
  237. line-height: 21px;
  238. .searchItem {
  239. display: flex;
  240. align-items: center;
  241. padding: 0 12px 20px;
  242. .rName {
  243. width: 90%;
  244. overflow: hidden;
  245. white-space: nowrap;
  246. text-overflow: ellipsis;
  247. }
  248. span span {
  249. color: #FE2451;
  250. }
  251. }
  252. .iconSearch {
  253. width: 16px;
  254. height: 16px;
  255. margin-right: 10px;
  256. }
  257. }