index.less 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526
  1. @import url('./iconfont/iconfont.css');
  2. :root {
  3. // Color Palette
  4. // --van-black: #000;
  5. // --van-white: #fff;
  6. // --van-gray-1: #f7f8fa;
  7. // --van-gray-2: #f2f3f5;
  8. // --van-gray-3: #ebedf0;
  9. // --van-gray-4: #dcdee0;
  10. // --van-gray-5: #c8c9cc;
  11. // --van-gray-6: #969799;
  12. // --van-gray-7: #646566;
  13. --van-gray-8: #333;
  14. // --van-red: #ee0a24;
  15. // --van-blue: #1989fa;
  16. --van-primary: #ff8057 !important;
  17. --van-picker-confirm-action-color: #ff8057 !important;
  18. --van-primary-text: #f67146 !important;
  19. // --van-popover-light-text-color: var(--van-primary) !important;
  20. // --van-orange: #ff976a;
  21. // --van-orange-dark: #ed6a0c;
  22. // --van-orange-light: #fffbe8;
  23. // --van-green: #07c160;
  24. // // Gradient Colors
  25. // --van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);
  26. // --van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);
  27. // // Component Colors
  28. --van-primary-color: var(--van-primary) !important;
  29. // --van-success-color: var(--van-green);
  30. // --van-danger-color: var(--van-red);
  31. // --van-warning-color: var(--van-orange);
  32. // --van-text-color: var(--van-gray-8);
  33. // --van-text-color-2: var(--van-gray-6);
  34. // --van-text-color-3: var(--van-gray-5);
  35. // --van-text-link-color: #576b95;
  36. // --van-active-color: var(--van-gray-2);
  37. // --van-active-opacity: 0.6;
  38. // --van-disabled-opacity: 0.5;
  39. // --van-background-color: var(--van-gray-1);
  40. // --van-background-color-light: var(--van-white);
  41. // // Padding
  42. // --van-padding-base: 4px;
  43. // --van-padding-xs: 8px;
  44. // --van-padding-sm: 12px;
  45. // --van-padding-md: 16px;
  46. // --van-padding-lg: 24px;
  47. // --van-padding-xl: 32px;
  48. // // Font
  49. // --van-font-size-xs: 10px;
  50. // --van-font-size-sm: 12px;
  51. // --van-font-size-md: 14px;
  52. // --van-font-size-lg: 16px;
  53. // --van-font-weight-bold: 500;
  54. // --van-line-height-xs: 14px;
  55. // --van-line-height-sm: 18px;
  56. // --van-line-height-md: 20px;
  57. // --van-line-height-lg: 22px;
  58. // --van-base-font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue',
  59. // Helvetica, Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB',
  60. // 'Microsoft Yahei', sans-serif;
  61. // --van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue,
  62. // Arial, sans-serif;
  63. // // Animation
  64. // --van-animation-duration-base: 0.3s;
  65. // --van-animation-duration-fast: 0.2s;
  66. // --van-animation-timing-function-enter: ease-out;
  67. // --van-animation-timing-function-leave: ease-in;
  68. // // Border
  69. // --van-border-color: var(--van-gray-3);
  70. // --van-border-width-base: 1px;
  71. // --van-border-radius-sm: 2px;
  72. // --van-border-radius-md: 4px;
  73. // --van-border-radius-lg: 8px;
  74. // --van-border-radius-max: 999px;
  75. --van-cell-group-inset-padding: 0 13px;
  76. --van-tag-default-color: #f8f8f8 !important;
  77. --van-tag-text-default-color: #c0c0c0;
  78. --van-tabs-bottom-bar-width: 20px;
  79. --col-background-color: #f6f8f9;
  80. --white: #fff;
  81. --tips-color: #999;
  82. --strong--color: #ff4e19;
  83. --box-shadow-color: rgba(0, 0, 0, 0.05);
  84. --tag-border-color: #2dc7aa;
  85. --tag-bg-color: #e9fff8;
  86. --tag-color: #2dc7aa;
  87. }
  88. * {
  89. padding: 0;
  90. margin: 0;
  91. border: 0;
  92. }
  93. #app {
  94. font-family: Avenir, Helvetica, Arial, sans-serif;
  95. -webkit-font-smoothing: antialiased;
  96. -moz-osx-font-smoothing: grayscale;
  97. color: #2c3e50;
  98. min-height: 100vh;
  99. font-family: PingFangSC-Medium, PingFang SC;
  100. }
  101. body {
  102. background-color: #f6f8f9;
  103. user-select: none;
  104. margin-top: 0 !important;
  105. }
  106. .mb12 {
  107. margin-bottom: 12px !important;
  108. }
  109. .btnGroup {
  110. padding: 0 25px;
  111. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  112. .van-button {
  113. font-size: 16px !important;
  114. font-weight: 500;
  115. }
  116. }
  117. .btnMore {
  118. padding-left: 13px;
  119. padding-right: 13px;
  120. display: flex !important;
  121. justify-content: center !important;
  122. // :global {
  123. .van-button {
  124. width: 100% !important;
  125. }
  126. .van-button + .van-button {
  127. margin-left: 15px;
  128. }
  129. // }
  130. }
  131. // .van-sticky {
  132. // transform: translateZ(0);
  133. // -webkit-transform: translateZ(0);
  134. // }
  135. // .van-sticky--fixed {
  136. // .btnGroup {
  137. // background-color: #fff;
  138. // padding-top: 15px;
  139. // }
  140. // }
  141. .sticky {
  142. position: relative;
  143. .van-sticky {
  144. height: inherit !important;
  145. top: var(--van-sticky-z-index) !important;
  146. position: fixed;
  147. width: 100%;
  148. }
  149. :global(.van-sticky--fixed) {
  150. box-shadow: 10px 10px 10px var(--box-shadow-color);
  151. }
  152. }
  153. .van-toast {
  154. z-index: 9999 !important;
  155. }
  156. .van-sticky--fixed {
  157. position: fixed;
  158. z-index: 1999;
  159. }
  160. :root {
  161. --music-list-item-background-color: #fff;
  162. --music-list-item-title-color: #333;
  163. --music-list-item-desc-color: #333;
  164. --music-list-item-mate-color: #6a6a6a;
  165. --music-list-item-border-color: #f1f1f1;
  166. --music-list-item-vip-bg: #fff1cd;
  167. --music-list-item-vip-color: #ff6c00;
  168. --music-list-item-free-bg: #fff1e7;
  169. --music-list-item-free-color: #ff4700;
  170. --music-list-item-charge-bg: #e1f0ff;
  171. --music-list-item-charge-color: #0086ff;
  172. --van-overlay-background: rgba(0, 0, 0, 0.4);
  173. }
  174. // 加载动画
  175. .appRootToast {
  176. .van-overlay {
  177. // background: rgba(0, 0, 0, 0.4);
  178. background: #fff;
  179. // transition: all 0 ease;
  180. z-index: 2999 !important;
  181. }
  182. .van-fade-enter-from,
  183. .van-fade-enter-active {
  184. animation: none;
  185. }
  186. .van-toast__text {
  187. width: 100px;
  188. height: 100px;
  189. color: #fff;
  190. display: flex;
  191. align-items: center;
  192. flex-direction: column;
  193. justify-content: center;
  194. }
  195. .van-toast--text {
  196. // background-color: rgba(255, 255, 255, 1);
  197. // background-color: rgba(0, 0, 0, 0.9);
  198. background-color: transparent;
  199. // box-shadow: 0px 8px 20px 2px #f0f0f0;
  200. z-index: 2999 !important;
  201. }
  202. .toastAnimate {
  203. width: 70px;
  204. height: 70px;
  205. }
  206. }
  207. // 加载动画
  208. .appRootToastCenter {
  209. .van-overlay {
  210. background: rgba(0, 0, 0, 0.4);
  211. // background: #fff;
  212. // transition: all 0 ease;
  213. z-index: 2999 !important;
  214. }
  215. .van-fade-enter-from,
  216. .van-fade-enter-active {
  217. animation: none;
  218. }
  219. .van-toast__text {
  220. width: 100px;
  221. height: 100px;
  222. color: #fff;
  223. display: flex;
  224. align-items: center;
  225. flex-direction: column;
  226. justify-content: center;
  227. }
  228. .van-toast--text {
  229. background-color: rgba(255, 255, 255, 1);
  230. // background-color: rgba(0, 0, 0, 0.9);
  231. // background-color: transparent;
  232. // box-shadow: 0px 8px 20px 2px #f0f0f0;
  233. z-index: 2999 !important;
  234. }
  235. .toastAnimate {
  236. width: 70px;
  237. height: 70px;
  238. }
  239. }
  240. .cell-section {
  241. width: auto;
  242. border-radius: 6px;
  243. margin: 0 13px;
  244. padding: 15px 12px;
  245. }
  246. .van-cell__right-icon {
  247. font-size: 13px;
  248. font-weight: bold;
  249. color: #d8d8d8;
  250. }
  251. .van-field__control {
  252. font-size: 16px;
  253. }
  254. @font-face {
  255. font-family: 'DINA';
  256. src: url('./font/DIN_Alternate_Bold.ttf');
  257. }
  258. // 数据为空时,空样式居中显示
  259. .emptyRootContainer {
  260. display: flex;
  261. align-items: center;
  262. justify-content: center;
  263. min-height: 100vh;
  264. flex-direction: column;
  265. .o-result-container {
  266. flex: 1 auto;
  267. display: flex;
  268. align-items: center;
  269. }
  270. }
  271. input {
  272. caret-color: #ff8057;
  273. }
  274. .emptyFixedHeightContainer {
  275. position: absolute;
  276. left: 0;
  277. right: 0;
  278. bottom: 0;
  279. top: 0;
  280. display: flex;
  281. justify-content: center;
  282. align-items: center;
  283. padding: 0;
  284. .van-empty {
  285. transform: translateY(-15%);
  286. }
  287. }
  288. // grid item 右边的一根线
  289. .gridBorderRight::after {
  290. content: ' ';
  291. position: absolute;
  292. box-sizing: border-box;
  293. height: 40px;
  294. pointer-events: none;
  295. top: 50%;
  296. margin-top: -20px;
  297. right: 0;
  298. border: 1px solid var(--van-border-color);
  299. transform: scale(0.5);
  300. }
  301. // 搜索公用样式
  302. .popupBottomSearch {
  303. --van-picker-toolbar-height: 44px !important;
  304. .van-picker__toolbar {
  305. position: relative;
  306. &::after {
  307. position: absolute;
  308. box-sizing: border-box;
  309. content: ' ';
  310. pointer-events: none;
  311. right: var(--van-padding-md);
  312. bottom: 0;
  313. left: var(--van-padding-md);
  314. border-bottom: 1px solid var(--van-cell-border-color);
  315. transform: scaleY(0.5);
  316. }
  317. }
  318. .van-picker-column {
  319. position: relative;
  320. z-index: 1;
  321. }
  322. .van-picker__frame {
  323. z-index: 0;
  324. &::after {
  325. background: #f2f2f2;
  326. border-radius: 8px;
  327. }
  328. }
  329. }
  330. .searchGroupInput {
  331. .van-search {
  332. padding-bottom: 0 !important;
  333. }
  334. }
  335. .searchGroup {
  336. padding: 0 13px !important;
  337. line-height: 44px;
  338. background-color: #fff;
  339. display: flex;
  340. align-items: center;
  341. justify-content: space-around;
  342. .searchItem {
  343. display: inline-block;
  344. font-size: 14px;
  345. font-weight: 600;
  346. color: #333333;
  347. // display: flex;
  348. // align-items: center;
  349. flex: 1;
  350. display: flex;
  351. align-items: center;
  352. justify-content: center;
  353. &.searchItem-active {
  354. color: var(--van-primary);
  355. .arrow {
  356. transform: rotateX(180deg);
  357. margin-top: -1px;
  358. background: url('../common/svg/arrow-active.svg') no-repeat center center;
  359. background-size: 100%;
  360. }
  361. }
  362. span {
  363. max-width: 80px;
  364. white-space: nowrap;
  365. overflow: hidden;
  366. text-overflow: ellipsis;
  367. }
  368. &.searchItem-large {
  369. span {
  370. max-width: 120px;
  371. }
  372. }
  373. &.searchItem-normal {
  374. span {
  375. max-width: 100px;
  376. }
  377. }
  378. }
  379. .arrow {
  380. display: inline-block;
  381. background-size: 100%;
  382. background: url('../common/svg/arrow.svg') no-repeat center center;
  383. width: 9px;
  384. height: 5px;
  385. margin-left: 4px;
  386. }
  387. }
  388. .searchGroup-single {
  389. padding: 12px 13px !important;
  390. .searchItem {
  391. position: relative;
  392. box-sizing: border-box;
  393. max-width: 100%;
  394. padding: 0 24px 0 13px;
  395. background-color: #fff;
  396. border-radius: 16px;
  397. font-size: 14px;
  398. color: #333333;
  399. line-height: 32px;
  400. display: inline-flex;
  401. align-items: center;
  402. &::after {
  403. position: absolute;
  404. top: 50%;
  405. right: 13px;
  406. margin-top: -5px;
  407. border: 3px solid;
  408. border-color: transparent transparent #aaaaaa #aaaaaa;
  409. transform: rotate(-45deg);
  410. // transition: all 0.2s ease-in-out;
  411. opacity: 0.8;
  412. content: '';
  413. }
  414. &.searchItem-active {
  415. color: var(--van-primary-color);
  416. &::after {
  417. margin-top: -1px;
  418. transform: rotate(135deg);
  419. border-color: transparent transparent currentColor currentColor;
  420. }
  421. }
  422. span {
  423. max-width: 150px;
  424. white-space: nowrap;
  425. overflow: hidden;
  426. text-overflow: ellipsis;
  427. }
  428. }
  429. }
  430. .searchItem-left {
  431. position: relative;
  432. display: inline-block;
  433. font-size: 14px;
  434. font-weight: 600;
  435. color: #333333;
  436. margin-right: 21px;
  437. &::after {
  438. position: absolute;
  439. top: 50%;
  440. right: -13px;
  441. margin-top: -5px;
  442. border: 3px solid;
  443. border-color: transparent transparent #aaaaaa #aaaaaa;
  444. transform: rotate(-45deg);
  445. // transition: all 0.2s ease-in-out;
  446. opacity: 0.8;
  447. content: '';
  448. }
  449. span {
  450. max-width: 70px;
  451. white-space: nowrap;
  452. overflow: hidden;
  453. text-overflow: ellipsis;
  454. }
  455. &.searchItem-active {
  456. color: var(--van-primary-color);
  457. &::after {
  458. margin-top: -1px;
  459. transform: rotate(135deg);
  460. border-color: transparent transparent currentColor currentColor;
  461. }
  462. }
  463. }
  464. // 下拉搜索
  465. .van-sheet_content {
  466. margin: 0 13px;
  467. padding-top: 10px;
  468. .van-sheet-item {
  469. line-height: 52px;
  470. font-size: 16px;
  471. font-weight: 500;
  472. color: #333333;
  473. text-align: center;
  474. }
  475. .van-sheet-item-active {
  476. background: #f2f2f2;
  477. border-radius: 8px;
  478. }
  479. }
  480. .van-action-sheet_bottom__cancel {
  481. margin: 0 13px;
  482. width: calc(100vw - 26px);
  483. line-height: 52px;
  484. padding: 0;
  485. color: #aaaaaa;
  486. }