main.wxss 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. .u-line-1 {
  15. display: -webkit-box !important;
  16. overflow: hidden;
  17. text-overflow: ellipsis;
  18. word-break: break-all;
  19. -webkit-line-clamp: 1;
  20. -webkit-box-orient: vertical !important;
  21. }
  22. .u-line-2 {
  23. display: -webkit-box !important;
  24. overflow: hidden;
  25. text-overflow: ellipsis;
  26. word-break: break-all;
  27. -webkit-line-clamp: 2;
  28. -webkit-box-orient: vertical !important;
  29. }
  30. .u-line-3 {
  31. display: -webkit-box !important;
  32. overflow: hidden;
  33. text-overflow: ellipsis;
  34. word-break: break-all;
  35. -webkit-line-clamp: 3;
  36. -webkit-box-orient: vertical !important;
  37. }
  38. .u-line-4 {
  39. display: -webkit-box !important;
  40. overflow: hidden;
  41. text-overflow: ellipsis;
  42. word-break: break-all;
  43. -webkit-line-clamp: 4;
  44. -webkit-box-orient: vertical !important;
  45. }
  46. .u-line-5 {
  47. display: -webkit-box !important;
  48. overflow: hidden;
  49. text-overflow: ellipsis;
  50. word-break: break-all;
  51. -webkit-line-clamp: 5;
  52. -webkit-box-orient: vertical !important;
  53. }
  54. .u-border {
  55. border-width: 0.5px !important;
  56. border-color: #dadbde !important;
  57. border-style: solid;
  58. }
  59. .u-border-top {
  60. border-top-width: 0.5px !important;
  61. border-color: #dadbde !important;
  62. border-top-style: solid;
  63. }
  64. .u-border-left {
  65. border-left-width: 0.5px !important;
  66. border-color: #dadbde !important;
  67. border-left-style: solid;
  68. }
  69. .u-border-right {
  70. border-right-width: 0.5px !important;
  71. border-color: #dadbde !important;
  72. border-right-style: solid;
  73. }
  74. .u-border-bottom {
  75. border-bottom-width: 0.5px !important;
  76. border-color: #dadbde !important;
  77. border-bottom-style: solid;
  78. }
  79. .u-border-top-bottom {
  80. border-top-width: 0.5px !important;
  81. border-bottom-width: 0.5px !important;
  82. border-color: #dadbde !important;
  83. border-top-style: solid;
  84. border-bottom-style: solid;
  85. }
  86. .u-reset-button {
  87. padding: 0;
  88. background-color: transparent;
  89. font-size: inherit;
  90. line-height: inherit;
  91. color: inherit;
  92. }
  93. .u-reset-button::after {
  94. border: none;
  95. }
  96. .u-hover-class {
  97. opacity: 0.7;
  98. }
  99. .u-primary-light {
  100. color: #ecf5ff;
  101. }
  102. .u-warning-light {
  103. color: #fdf6ec;
  104. }
  105. .u-success-light {
  106. color: #f5fff0;
  107. }
  108. .u-error-light {
  109. color: #fef0f0;
  110. }
  111. .u-info-light {
  112. color: #f4f4f5;
  113. }
  114. .u-primary-light-bg {
  115. background-color: #ecf5ff;
  116. }
  117. .u-warning-light-bg {
  118. background-color: #fdf6ec;
  119. }
  120. .u-success-light-bg {
  121. background-color: #f5fff0;
  122. }
  123. .u-error-light-bg {
  124. background-color: #fef0f0;
  125. }
  126. .u-info-light-bg {
  127. background-color: #f4f4f5;
  128. }
  129. .u-primary-dark {
  130. color: #398ade;
  131. }
  132. .u-warning-dark {
  133. color: #f1a532;
  134. }
  135. .u-success-dark {
  136. color: #53c21d;
  137. }
  138. .u-error-dark {
  139. color: #e45656;
  140. }
  141. .u-info-dark {
  142. color: #767a82;
  143. }
  144. .u-primary-dark-bg {
  145. background-color: #398ade;
  146. }
  147. .u-warning-dark-bg {
  148. background-color: #f1a532;
  149. }
  150. .u-success-dark-bg {
  151. background-color: #53c21d;
  152. }
  153. .u-error-dark-bg {
  154. background-color: #e45656;
  155. }
  156. .u-info-dark-bg {
  157. background-color: #767a82;
  158. }
  159. .u-primary-disabled {
  160. color: #9acafc;
  161. }
  162. .u-warning-disabled {
  163. color: #f9d39b;
  164. }
  165. .u-success-disabled {
  166. color: #a9e08f;
  167. }
  168. .u-error-disabled {
  169. color: #f7b2b2;
  170. }
  171. .u-info-disabled {
  172. color: #c4c6c9;
  173. }
  174. .u-primary {
  175. color: #3c9cff;
  176. }
  177. .u-warning {
  178. color: #f9ae3d;
  179. }
  180. .u-success {
  181. color: #5ac725;
  182. }
  183. .u-error {
  184. color: #f56c6c;
  185. }
  186. .u-info {
  187. color: #909399;
  188. }
  189. .u-primary-bg {
  190. background-color: #3c9cff;
  191. }
  192. .u-warning-bg {
  193. background-color: #f9ae3d;
  194. }
  195. .u-success-bg {
  196. background-color: #5ac725;
  197. }
  198. .u-error-bg {
  199. background-color: #f56c6c;
  200. }
  201. .u-info-bg {
  202. background-color: #909399;
  203. }
  204. .u-main-color {
  205. color: #303133;
  206. }
  207. .u-content-color {
  208. color: #606266;
  209. }
  210. .u-tips-color {
  211. color: #909193;
  212. }
  213. .u-light-color {
  214. color: #c0c4cc;
  215. }
  216. .u-safe-area-inset-top {
  217. padding-top: 0;
  218. padding-top: constant(safe-area-inset-top);
  219. padding-top: env(safe-area-inset-top);
  220. }
  221. .u-safe-area-inset-right {
  222. padding-right: 0;
  223. padding-right: constant(safe-area-inset-right);
  224. padding-right: env(safe-area-inset-right);
  225. }
  226. .u-safe-area-inset-bottom {
  227. padding-bottom: 0;
  228. padding-bottom: constant(safe-area-inset-bottom);
  229. padding-bottom: env(safe-area-inset-bottom);
  230. }
  231. .u-safe-area-inset-left {
  232. padding-left: 0;
  233. padding-left: constant(safe-area-inset-left);
  234. padding-left: env(safe-area-inset-left);
  235. }
  236. ::-webkit-scrollbar {
  237. display: none;
  238. width: 0 !important;
  239. height: 0 !important;
  240. -webkit-appearance: none;
  241. background: transparent;
  242. }
  243. /* 颜色变量 */
  244. /* 行为相关颜色 */
  245. /* 文字基本颜色 */
  246. /* 背景颜色 */
  247. /* 边框颜色 */
  248. /* 尺寸变量 */
  249. /* 文字尺寸 */
  250. /* 图片尺寸 */
  251. /* Border Radius */
  252. /* 水平间距 */
  253. /* 垂直间距 */
  254. /* 透明度 */
  255. /* 文章场景相关 */
  256. /*每个页面公共css */
  257. .bg {
  258. position: fixed;
  259. width: 100vw;
  260. height: 100vh;
  261. z-index: -1;
  262. }
  263. .u-line-1 {
  264. display: -webkit-box !important;
  265. overflow: hidden;
  266. text-overflow: ellipsis;
  267. word-break: break-all;
  268. -webkit-line-clamp: 1;
  269. -webkit-box-orient: vertical !important;
  270. }
  271. .u-line-2 {
  272. display: -webkit-box !important;
  273. overflow: hidden;
  274. text-overflow: ellipsis;
  275. word-break: break-all;
  276. -webkit-line-clamp: 2;
  277. -webkit-box-orient: vertical !important;
  278. }
  279. .u-line-3 {
  280. display: -webkit-box !important;
  281. overflow: hidden;
  282. text-overflow: ellipsis;
  283. word-break: break-all;
  284. -webkit-line-clamp: 3;
  285. -webkit-box-orient: vertical !important;
  286. }
  287. .u-line-4 {
  288. display: -webkit-box !important;
  289. overflow: hidden;
  290. text-overflow: ellipsis;
  291. word-break: break-all;
  292. -webkit-line-clamp: 4;
  293. -webkit-box-orient: vertical !important;
  294. }
  295. .u-line-5 {
  296. display: -webkit-box !important;
  297. overflow: hidden;
  298. text-overflow: ellipsis;
  299. word-break: break-all;
  300. -webkit-line-clamp: 5;
  301. -webkit-box-orient: vertical !important;
  302. }
  303. .u-border {
  304. border-width: 0.5px !important;
  305. border-color: #dadbde !important;
  306. border-style: solid;
  307. }
  308. .u-border-top {
  309. border-top-width: 0.5px !important;
  310. border-color: #dadbde !important;
  311. border-top-style: solid;
  312. }
  313. .u-border-left {
  314. border-left-width: 0.5px !important;
  315. border-color: #dadbde !important;
  316. border-left-style: solid;
  317. }
  318. .u-border-right {
  319. border-right-width: 0.5px !important;
  320. border-color: #dadbde !important;
  321. border-right-style: solid;
  322. }
  323. .u-border-bottom {
  324. border-bottom-width: 0.5px !important;
  325. border-color: #dadbde !important;
  326. border-bottom-style: solid;
  327. }
  328. .u-border-top-bottom {
  329. border-top-width: 0.5px !important;
  330. border-bottom-width: 0.5px !important;
  331. border-color: #dadbde !important;
  332. border-top-style: solid;
  333. border-bottom-style: solid;
  334. }
  335. .u-reset-button {
  336. padding: 0;
  337. background-color: transparent;
  338. font-size: inherit;
  339. line-height: inherit;
  340. color: inherit;
  341. }
  342. .u-reset-button::after {
  343. border: none;
  344. }
  345. .u-hover-class {
  346. opacity: 0.7;
  347. }
  348. .u-primary-light {
  349. color: #ecf5ff;
  350. }
  351. .u-warning-light {
  352. color: #fdf6ec;
  353. }
  354. .u-success-light {
  355. color: #f5fff0;
  356. }
  357. .u-error-light {
  358. color: #fef0f0;
  359. }
  360. .u-info-light {
  361. color: #f4f4f5;
  362. }
  363. .u-primary-light-bg {
  364. background-color: #ecf5ff;
  365. }
  366. .u-warning-light-bg {
  367. background-color: #fdf6ec;
  368. }
  369. .u-success-light-bg {
  370. background-color: #f5fff0;
  371. }
  372. .u-error-light-bg {
  373. background-color: #fef0f0;
  374. }
  375. .u-info-light-bg {
  376. background-color: #f4f4f5;
  377. }
  378. .u-primary-dark {
  379. color: #398ade;
  380. }
  381. .u-warning-dark {
  382. color: #f1a532;
  383. }
  384. .u-success-dark {
  385. color: #53c21d;
  386. }
  387. .u-error-dark {
  388. color: #e45656;
  389. }
  390. .u-info-dark {
  391. color: #767a82;
  392. }
  393. .u-primary-dark-bg {
  394. background-color: #398ade;
  395. }
  396. .u-warning-dark-bg {
  397. background-color: #f1a532;
  398. }
  399. .u-success-dark-bg {
  400. background-color: #53c21d;
  401. }
  402. .u-error-dark-bg {
  403. background-color: #e45656;
  404. }
  405. .u-info-dark-bg {
  406. background-color: #767a82;
  407. }
  408. .u-primary-disabled {
  409. color: #9acafc;
  410. }
  411. .u-warning-disabled {
  412. color: #f9d39b;
  413. }
  414. .u-success-disabled {
  415. color: #a9e08f;
  416. }
  417. .u-error-disabled {
  418. color: #f7b2b2;
  419. }
  420. .u-info-disabled {
  421. color: #c4c6c9;
  422. }
  423. .u-primary {
  424. color: #3c9cff;
  425. }
  426. .u-warning {
  427. color: #f9ae3d;
  428. }
  429. .u-success {
  430. color: #5ac725;
  431. }
  432. .u-error {
  433. color: #f56c6c;
  434. }
  435. .u-info {
  436. color: #909399;
  437. }
  438. .u-primary-bg {
  439. background-color: #3c9cff;
  440. }
  441. .u-warning-bg {
  442. background-color: #f9ae3d;
  443. }
  444. .u-success-bg {
  445. background-color: #5ac725;
  446. }
  447. .u-error-bg {
  448. background-color: #f56c6c;
  449. }
  450. .u-info-bg {
  451. background-color: #909399;
  452. }
  453. .u-main-color {
  454. color: #303133;
  455. }
  456. .u-content-color {
  457. color: #606266;
  458. }
  459. .u-tips-color {
  460. color: #909193;
  461. }
  462. .u-light-color {
  463. color: #c0c4cc;
  464. }
  465. .u-safe-area-inset-top {
  466. padding-top: 0;
  467. padding-top: constant(safe-area-inset-top);
  468. padding-top: env(safe-area-inset-top);
  469. }
  470. .u-safe-area-inset-right {
  471. padding-right: 0;
  472. padding-right: constant(safe-area-inset-right);
  473. padding-right: env(safe-area-inset-right);
  474. }
  475. .u-safe-area-inset-bottom {
  476. padding-bottom: 0;
  477. padding-bottom: constant(safe-area-inset-bottom);
  478. padding-bottom: env(safe-area-inset-bottom);
  479. }
  480. .u-safe-area-inset-left {
  481. padding-left: 0;
  482. padding-left: constant(safe-area-inset-left);
  483. padding-left: env(safe-area-inset-left);
  484. }
  485. ::-webkit-scrollbar {
  486. display: none;
  487. width: 0 !important;
  488. height: 0 !important;
  489. -webkit-appearance: none;
  490. background: transparent;
  491. }
  492. .u-block {
  493. padding: 14px;
  494. }
  495. .u-block__section {
  496. margin-bottom: 10px;
  497. }
  498. .u-block__title {
  499. margin-top: 10px;
  500. font-size: 15px;
  501. color: #606266;
  502. margin-bottom: 10px;
  503. }
  504. .u-block__flex {
  505. display: flex;
  506. }
  507. .u-cell-icon {
  508. width: 36rpx;
  509. height: 36rpx;
  510. margin-right: 8rpx;
  511. }
  512. .u-page {
  513. padding: 15px 15px 40px 15px;
  514. }
  515. .u-demo-block {
  516. flex: 1;
  517. margin-bottom: 23px;
  518. }
  519. .u-demo-block__content {
  520. display: flex;
  521. flex-direction: column;
  522. }
  523. .u-demo-block__title {
  524. font-size: 14px;
  525. color: #8f9ca2;
  526. margin-bottom: 8px;
  527. display: flex;
  528. flex-direction: row;
  529. }
  530. page {
  531. background-color: #fff;
  532. }
  533. /* 横向靠左 */
  534. .all-row-start {
  535. display: flex;
  536. flex-direction: row;
  537. align-items: center;
  538. justify-content: flex-start;
  539. }
  540. /* 横向靠右 */
  541. .all-row-end {
  542. display: flex;
  543. flex-direction: row;
  544. align-items: center;
  545. justify-content: flex-end;
  546. }
  547. /* 横向居中 */
  548. .all-row-center {
  549. display: flex;
  550. flex-direction: row;
  551. align-items: center;
  552. justify-content: center;
  553. }
  554. /* 纵向靠上 */
  555. .all-col-start {
  556. display: flex;
  557. flex-direction: column;
  558. align-items: center;
  559. justify-content: flex-start;
  560. }
  561. /* 纵向靠下 */
  562. .all-col-end {
  563. display: flex;
  564. flex-direction: column;
  565. align-items: center;
  566. justify-content: flex-end;
  567. }
  568. /* 纵向居中 */
  569. .all-col-center {
  570. display: flex;
  571. flex-direction: column;
  572. align-items: center;
  573. justify-content: center;
  574. }
  575. .u-flex {
  576. display: flex;
  577. flex-direction: row;
  578. align-items: center;
  579. }
  580. .u-warp {
  581. flex-wrap: wrap;
  582. }
  583. .u-flex-col {
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. }
  588. .u-flex-wrap {
  589. flex-wrap: wrap;
  590. }
  591. .u-flex-nowrap {
  592. flex-wrap: nowrap;
  593. }
  594. .u-col-center {
  595. align-items: center;
  596. }
  597. .u-col-top {
  598. align-items: flex-start;
  599. }
  600. .u-col-bottom {
  601. align-items: flex-end;
  602. }
  603. .u-row-center {
  604. justify-content: center;
  605. }
  606. .u-row-left {
  607. justify-content: flex-start;
  608. }
  609. .u-row-right {
  610. justify-content: flex-end;
  611. }
  612. .u-row-between {
  613. justify-content: space-between;
  614. }
  615. .u-row-around {
  616. justify-content: space-around;
  617. }