index.less 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535
  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. // --van-overlay-background: rgba(0, 0, 0, 0.5) !important;
  88. }
  89. * {
  90. padding: 0;
  91. margin: 0;
  92. border: 0;
  93. }
  94. #app {
  95. font-family: Avenir, Helvetica, Arial, sans-serif;
  96. -webkit-font-smoothing: antialiased;
  97. -moz-osx-font-smoothing: grayscale;
  98. color: #333;
  99. min-height: 100vh;
  100. // font-family: PingFangSC-Medium, PingFang SC;
  101. }
  102. body {
  103. background-color: #f6f6f6;
  104. user-select: none;
  105. margin-top: 0 !important;
  106. }
  107. .mb12 {
  108. margin-bottom: 12px !important;
  109. }
  110. .btnGroup {
  111. padding: 0 25px;
  112. padding-bottom: calc(20px + env(safe-area-inset-bottom));
  113. .van-button {
  114. font-size: 18px !important;
  115. font-weight: 500;
  116. }
  117. }
  118. .btnMore {
  119. padding-left: 13px;
  120. padding-right: 13px;
  121. display: flex !important;
  122. justify-content: center !important;
  123. // :global {
  124. .van-button {
  125. width: 100% !important;
  126. }
  127. .van-button + .van-button {
  128. margin-left: 15px;
  129. }
  130. // }
  131. }
  132. // .van-sticky {
  133. // transform: translateZ(0);
  134. // -webkit-transform: translateZ(0);
  135. // }
  136. // .van-sticky--fixed {
  137. // .btnGroup {
  138. // background-color: #fff;
  139. // padding-top: 15px;
  140. // }
  141. // }
  142. .form-control-icon {
  143. .van-cell__right-icon {
  144. color: #fff !important;
  145. }
  146. }
  147. .sticky {
  148. position: relative;
  149. .van-sticky {
  150. height: inherit !important;
  151. top: var(--van-sticky-z-index) !important;
  152. position: fixed;
  153. width: 100%;
  154. }
  155. :global(.van-sticky--fixed) {
  156. box-shadow: 10px 10px 10px var(--box-shadow-color);
  157. }
  158. }
  159. .van-toast {
  160. z-index: 9999 !important;
  161. }
  162. .van-sticky--fixed {
  163. position: fixed;
  164. z-index: 1999;
  165. }
  166. :root {
  167. --music-list-item-background-color: #fff;
  168. --music-list-item-title-color: #333;
  169. --music-list-item-desc-color: #333;
  170. --music-list-item-mate-color: #6a6a6a;
  171. --music-list-item-border-color: #f1f1f1;
  172. --music-list-item-vip-bg: #fff1cd;
  173. --music-list-item-vip-color: #ff6c00;
  174. --music-list-item-free-bg: #fff1e7;
  175. --music-list-item-free-color: #ff4700;
  176. --music-list-item-charge-bg: #e1f0ff;
  177. --music-list-item-charge-color: #0086ff;
  178. --van-overlay-background: rgba(0, 0, 0, 0.4);
  179. }
  180. // 加载动画
  181. .appRootToast {
  182. .van-overlay {
  183. // background: rgba(0, 0, 0, 0.4);
  184. background: #fff;
  185. // transition: all 0 ease;
  186. z-index: 2999 !important;
  187. }
  188. .van-fade-enter-from,
  189. .van-fade-enter-active {
  190. animation: none;
  191. }
  192. .van-toast__text {
  193. width: 100px;
  194. height: 100px;
  195. color: #fff;
  196. display: flex;
  197. align-items: center;
  198. flex-direction: column;
  199. justify-content: center;
  200. }
  201. .van-toast--text {
  202. // background-color: rgba(255, 255, 255, 1);
  203. // background-color: rgba(0, 0, 0, 0.9);
  204. background-color: transparent;
  205. // box-shadow: 0px 8px 20px 2px #f0f0f0;
  206. z-index: 2999 !important;
  207. }
  208. .toastAnimate {
  209. width: 70px;
  210. height: 70px;
  211. }
  212. }
  213. // 加载动画
  214. .appRootToastCenter {
  215. .van-overlay {
  216. background: rgba(0, 0, 0, 0.4);
  217. // background: #fff;
  218. // transition: all 0 ease;
  219. z-index: 2999 !important;
  220. }
  221. .van-fade-enter-from,
  222. .van-fade-enter-active {
  223. animation: none;
  224. }
  225. .van-toast__text {
  226. width: 100px;
  227. height: 100px;
  228. color: #fff;
  229. display: flex;
  230. align-items: center;
  231. flex-direction: column;
  232. justify-content: center;
  233. }
  234. .van-toast--text {
  235. background-color: rgba(255, 255, 255, 1);
  236. // background-color: rgba(0, 0, 0, 0.9);
  237. // background-color: transparent;
  238. // box-shadow: 0px 8px 20px 2px #f0f0f0;
  239. z-index: 2999 !important;
  240. }
  241. .toastAnimate {
  242. width: 70px;
  243. height: 70px;
  244. }
  245. }
  246. .cell-section {
  247. width: auto;
  248. border-radius: 6px;
  249. margin: 0 13px;
  250. padding: 15px 12px;
  251. }
  252. .van-cell__right-icon {
  253. font-size: 13px;
  254. font-weight: bold;
  255. color: #d8d8d8;
  256. }
  257. .van-field__control {
  258. font-size: 16px;
  259. }
  260. @font-face {
  261. font-family: 'DINA';
  262. src: url('./font/DIN_Alternate_Bold.ttf');
  263. }
  264. // 数据为空时,空样式居中显示
  265. .emptyRootContainer {
  266. display: flex;
  267. align-items: center;
  268. justify-content: center;
  269. min-height: 100vh;
  270. flex-direction: column;
  271. .o-result-container {
  272. flex: 1 auto;
  273. display: flex;
  274. align-items: center;
  275. }
  276. }
  277. input {
  278. caret-color: #ff8057;
  279. }
  280. .emptyFixedHeightContainer {
  281. position: absolute;
  282. left: 0;
  283. right: 0;
  284. bottom: 0;
  285. top: 0;
  286. display: flex;
  287. justify-content: center;
  288. align-items: center;
  289. padding: 0;
  290. .van-empty {
  291. transform: translateY(-15%);
  292. }
  293. }
  294. // grid item 右边的一根线
  295. .gridBorderRight::after {
  296. content: ' ';
  297. position: absolute;
  298. box-sizing: border-box;
  299. height: 40px;
  300. pointer-events: none;
  301. top: 50%;
  302. margin-top: -20px;
  303. right: 0;
  304. border: 1px solid var(--van-border-color);
  305. transform: scale(0.5);
  306. }
  307. // 搜索公用样式
  308. .popupBottomSearch {
  309. --van-picker-toolbar-height: 44px !important;
  310. .van-picker__toolbar {
  311. position: relative;
  312. &::after {
  313. position: absolute;
  314. box-sizing: border-box;
  315. content: ' ';
  316. pointer-events: none;
  317. right: var(--van-padding-md);
  318. bottom: 0;
  319. left: var(--van-padding-md);
  320. border-bottom: 1px solid var(--van-cell-border-color);
  321. transform: scaleY(0.5);
  322. }
  323. }
  324. .van-picker__columns {
  325. padding: 0 24px;
  326. }
  327. .van-picker-column {
  328. position: relative;
  329. z-index: 1;
  330. }
  331. .van-picker__frame {
  332. z-index: 0;
  333. &::after {
  334. background: #f2f2f2;
  335. border-radius: 8px;
  336. }
  337. }
  338. }
  339. .searchGroupInput {
  340. .van-search {
  341. padding-bottom: 0 !important;
  342. }
  343. }
  344. .searchGroup {
  345. padding: 0 13px !important;
  346. line-height: 44px;
  347. background-color: #fff;
  348. display: flex;
  349. align-items: center;
  350. justify-content: space-around;
  351. .searchItem {
  352. display: inline-block;
  353. font-size: 14px;
  354. font-weight: 400;
  355. color: #333333;
  356. // display: flex;
  357. // align-items: center;
  358. // flex: 1;
  359. display: flex;
  360. align-items: center;
  361. justify-content: center;
  362. &.searchItem-active {
  363. color: var(--van-primary);
  364. .arrow {
  365. // transform: rotateX(180deg);
  366. margin-top: -1px;
  367. background: url('../common/svg/arrow-active.png') no-repeat center center;
  368. background-size: 100%;
  369. }
  370. }
  371. span {
  372. max-width: 80px;
  373. white-space: nowrap;
  374. overflow: hidden;
  375. text-overflow: ellipsis;
  376. }
  377. &.searchItem-large {
  378. span {
  379. max-width: 120px;
  380. }
  381. }
  382. &.searchItem-normal {
  383. span {
  384. max-width: 100px;
  385. }
  386. }
  387. }
  388. .arrow {
  389. display: inline-block;
  390. background: url('../common/svg/arrow.png') no-repeat center center;
  391. background-size: contain;
  392. width: 9px;
  393. height: 5px;
  394. margin-left: 3px;
  395. }
  396. }
  397. .searchGroup-single {
  398. padding: 12px 13px !important;
  399. .searchItem {
  400. position: relative;
  401. box-sizing: border-box;
  402. max-width: 100%;
  403. padding: 0 24px 0 13px;
  404. background-color: #fff;
  405. border-radius: 16px;
  406. font-size: 14px;
  407. color: #333333;
  408. height: 32px;
  409. line-height: 32px;
  410. display: inline-flex;
  411. align-items: center;
  412. &::after {
  413. position: absolute;
  414. top: 50%;
  415. right: 13px;
  416. margin-top: -5px;
  417. border: 3px solid;
  418. border-color: transparent transparent #aaaaaa #aaaaaa;
  419. transform: rotate(-45deg);
  420. // transition: all 0.2s ease-in-out;
  421. opacity: 0.8;
  422. content: '';
  423. }
  424. &.searchItem-active {
  425. color: var(--van-primary-color);
  426. &::after {
  427. margin-top: -1px;
  428. transform: rotate(135deg);
  429. border-color: transparent transparent currentColor currentColor;
  430. }
  431. }
  432. span {
  433. max-width: 150px;
  434. white-space: nowrap;
  435. overflow: hidden;
  436. text-overflow: ellipsis;
  437. }
  438. }
  439. }
  440. .searchItem-left {
  441. position: relative;
  442. display: inline-block;
  443. font-size: 14px;
  444. // font-weight: 600;
  445. color: #333333;
  446. margin-right: 21px;
  447. &::after {
  448. position: absolute;
  449. top: 50%;
  450. right: -13px;
  451. margin-top: -5px;
  452. border: 3px solid;
  453. border-color: transparent transparent #aaaaaa #aaaaaa;
  454. transform: rotate(-45deg);
  455. // transition: all 0.2s ease-in-out;
  456. opacity: 0.8;
  457. content: '';
  458. }
  459. span {
  460. max-width: 70px;
  461. white-space: nowrap;
  462. overflow: hidden;
  463. text-overflow: ellipsis;
  464. }
  465. &.searchItem-active {
  466. color: var(--van-primary-color);
  467. &::after {
  468. margin-top: -1px;
  469. transform: rotate(135deg);
  470. border-color: transparent transparent currentColor currentColor;
  471. }
  472. }
  473. }
  474. // 下拉搜索
  475. .van-sheet_content {
  476. margin: 0 13px;
  477. padding-top: 10px;
  478. .van-sheet-item {
  479. line-height: 52px;
  480. font-size: 16px;
  481. font-weight: 500;
  482. color: #333333;
  483. text-align: center;
  484. }
  485. .van-sheet-item-active {
  486. background: #f2f2f2;
  487. border-radius: 8px;
  488. }
  489. }
  490. .van-action-sheet_bottom__cancel {
  491. margin: 0 13px;
  492. width: calc(100vw - 26px);
  493. line-height: 52px;
  494. padding: 0;
  495. color: #aaaaaa;
  496. }