index.less 11 KB

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