utils.scss 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908
  1. /* iconfont */
  2. //@import "/utils/iconfont.scss";
  3. .container, input {
  4. font-family: PingFang-Medium,
  5. PingFangSC-Regular,
  6. Heiti,
  7. Heiti SC,
  8. DroidSans,
  9. DroidSansFallback,
  10. "Microsoft YaHei",
  11. sans-serif;
  12. -webkit-font-smoothing: antialiased;
  13. }
  14. .b-f {
  15. background: #fff;
  16. }
  17. .tf-180 {
  18. -moz-transform: rotate(-180deg);
  19. -ms-transform: rotate(-180deg);
  20. -o-transform: rotate(-180deg);
  21. transform: rotate(-180deg);
  22. }
  23. .tf-90 {
  24. -moz-transform: rotate(90deg);
  25. -ms-transform: rotate(90deg);
  26. -o-transform: rotate(90deg);
  27. transform: rotate(90deg);
  28. }
  29. .dis-block {
  30. display: block;
  31. }
  32. .dis-flex {
  33. display: flex !important;
  34. /* flex-wrap: wrap; */
  35. }
  36. .flex-wrap {
  37. flex-wrap: wrap;
  38. }
  39. .flex-box {
  40. flex: 1;
  41. }
  42. .flex-dir-row {
  43. display: flex !important;
  44. flex-direction: row;
  45. }
  46. .flex-dir-column {
  47. display: flex !important;
  48. flex-direction: column;
  49. }
  50. .flex-x-center {
  51. /* display: flex; */
  52. justify-content: center;
  53. }
  54. .flex-x-between {
  55. justify-content: space-between;
  56. }
  57. .flex-x-around {
  58. justify-content: space-around;
  59. }
  60. .flex-x-end {
  61. justify-content: flex-end;
  62. }
  63. .flex-y-center {
  64. align-items: center;
  65. }
  66. .flex-y-end {
  67. align-items: flex-end;
  68. }
  69. .flex-x-y-center {
  70. justify-content: center;
  71. align-items: center;
  72. }
  73. .flex-two {
  74. box-sizing: border-box;
  75. flex: 0 0 50%;
  76. }
  77. .flex-three {
  78. float: left;
  79. width: 33.3%;
  80. }
  81. .flex-four {
  82. box-sizing: border-box;
  83. flex: 0 0 25%;
  84. }
  85. .flex-five {
  86. box-sizing: border-box;
  87. flex: 0 0 20%;
  88. }
  89. .flex-six {
  90. float: left;
  91. width: 66.6%;
  92. }
  93. .flex-seven {
  94. box-sizing: border-box;
  95. flex: 0 0 75%;
  96. }
  97. .t-l {
  98. text-align: left;
  99. }
  100. .t-c {
  101. text-align: center;
  102. }
  103. .t-r {
  104. text-align: right;
  105. }
  106. .p-a {
  107. position: absolute;
  108. }
  109. .p-r {
  110. position: relative;
  111. }
  112. .fl {
  113. float: left;
  114. }
  115. .fr {
  116. float: right;
  117. }
  118. .clearfix::after {
  119. clear: both;
  120. content: " ";
  121. display: table;
  122. }
  123. .oh {
  124. overflow: hidden;
  125. }
  126. .tb-lr-center {
  127. display: -webkit-box;
  128. display: -ms-flexbox;
  129. display: flex !important;
  130. -webkit-box-pack: center;
  131. -ms-flex-pack: center;
  132. justify-content: center;
  133. -webkit-box-align: center;
  134. -ms-flex-align: center;
  135. align-items: center;
  136. }
  137. .f-100 {
  138. font-size: 100rpx;
  139. }
  140. .f-40 {
  141. font-size: 40rpx;
  142. }
  143. .f-38 {
  144. font-size: 38rpx;
  145. }
  146. .f-36 {
  147. font-size: 36rpx;
  148. }
  149. .f-34 {
  150. font-size: 34rpx;
  151. }
  152. .f-32 {
  153. font-size: 32rpx;
  154. }
  155. .f-31 {
  156. font-size: 31rpx;
  157. }
  158. .f-30 {
  159. font-size: 30rpx;
  160. }
  161. .f-29 {
  162. font-size: 29rpx;
  163. }
  164. .f-28 {
  165. font-size: 28rpx;
  166. }
  167. .lh-28 {
  168. line-height: 28rpx;
  169. }
  170. .f-26 {
  171. font-size: 26rpx;
  172. }
  173. .f-25 {
  174. font-size: 25rpx;
  175. }
  176. .f-24 {
  177. font-size: 24rpx;
  178. }
  179. .f-22 {
  180. font-size: 22rpx;
  181. }
  182. .f-20 {
  183. font-size: 20rpx;
  184. }
  185. .f-18 {
  186. font-size: 18rpx;
  187. }
  188. .f-16 {
  189. font-size: 16rpx;
  190. }
  191. .f-w {
  192. font-weight: 700;
  193. }
  194. .f-n {
  195. font-weight: 400;
  196. }
  197. .col-f {
  198. color: #fff;
  199. }
  200. .col-3 {
  201. color: #333;
  202. }
  203. .col-6 {
  204. color: #666;
  205. }
  206. .col-7 {
  207. color: #777;
  208. }
  209. .col-8 {
  210. color: #888;
  211. }
  212. .col-9 {
  213. color: #999;
  214. }
  215. .col-m {
  216. color: #fa2209 !important;
  217. }
  218. .col-s {
  219. color: #be0117 !important;
  220. }
  221. .col-white {
  222. color: white !important;
  223. }
  224. .col-green {
  225. color: #0ed339 !important;
  226. }
  227. .col-primary {
  228. color: #2979ff;
  229. }
  230. .col-primary-d {
  231. color: #2b85e4;
  232. }
  233. .col-error {
  234. color: #fa3534;
  235. }
  236. .col-error-d {
  237. color: #dd6161;
  238. }
  239. .col-warning {
  240. color: #ff9900;
  241. }
  242. .col-warning-d {
  243. color: #f29100;
  244. }
  245. .col-success {
  246. color: #19be6b;
  247. }
  248. .col-success-d {
  249. color: #18b566;
  250. }
  251. .col-info-d {
  252. color: #82848a;
  253. }
  254. .col-info-m {
  255. color: #c8c9cc;
  256. }
  257. .col-info-l {
  258. color: #f4f4f5;
  259. }
  260. .col-info {
  261. color: #909399;
  262. }
  263. .c-g-white {
  264. background-color: white;
  265. }
  266. .c-g-black {
  267. background-color: #151515;
  268. }
  269. .c-g-container {
  270. background-color: #f7f7f7;
  271. }
  272. .c-g-info {
  273. background-color: #909399;
  274. }
  275. .c-g-info-d {
  276. background-color: #767a82;
  277. }
  278. .c-g-info-m {
  279. background-color: #c8c9cc;
  280. }
  281. .c-g-info-l {
  282. background-color: #f4f4f5;
  283. }
  284. .c-g-primary-m {
  285. background-color: #a0cfff;
  286. }
  287. .c-g-primary-l {
  288. background-color: #ecf5ff;
  289. }
  290. .c-g-primary-g {
  291. background-image: linear-gradient(#a0cfff, #ecf5ff);
  292. }
  293. .c-g-warning-m {
  294. background-color: #fcbd71;
  295. }
  296. .c-g-warning-l {
  297. background-color: #fdf6ec;
  298. }
  299. .c-g-warning-g {
  300. background-image: linear-gradient(#fcbd71, #fdf6ec);
  301. }
  302. .c-g-success-m {
  303. background-color: #71d5a1;
  304. }
  305. .c-g-success-l {
  306. background-color: #dbf1e1;
  307. }
  308. .c-g-success-g {
  309. background-image: linear-gradient(#71d5a1, #dbf1e1);
  310. }
  311. .cont-box {
  312. padding: 20rpx;
  313. }
  314. .cont-bot {
  315. margin-bottom: 120rpx;
  316. }
  317. .padding-box {
  318. padding: 0 24rpx;
  319. box-sizing: border-box;
  320. }
  321. .p-10 {
  322. padding: 10rpx;
  323. }
  324. .p-15 {
  325. padding: 15rpx;
  326. }
  327. .p-20 {
  328. padding: 20rpx;
  329. }
  330. .p-30 {
  331. padding: 30rpx;
  332. }
  333. .p-40 {
  334. padding: 40rpx;
  335. }
  336. .p-50 {
  337. padding: 50rpx;
  338. }
  339. .p-60 {
  340. padding: 60rpx;
  341. }
  342. .p-70 {
  343. padding: 70rpx;
  344. }
  345. .p-t-20 {
  346. padding-top: 20rpx;
  347. }
  348. .p-t-30 {
  349. padding-top: 30rpx;
  350. }
  351. .p-t-40 {
  352. padding-top: 40rpx;
  353. }
  354. .p-b-t-10 {
  355. padding-top: 10rpx;
  356. padding-bottom: 10rpx;
  357. }
  358. .p-b-t-20 {
  359. padding-top: 20rpx;
  360. padding-bottom: 20rpx;
  361. }
  362. .p-b-t-30 {
  363. padding-top: 30rpx;
  364. padding-bottom: 30rpx;
  365. }
  366. .p-b-t-40 {
  367. padding-top: 40rpx;
  368. padding-bottom: 40rpx;
  369. }
  370. .p-b-t-50 {
  371. padding-top: 50rpx;
  372. padding-bottom: 50rpx;
  373. }
  374. .p-b-t-60 {
  375. padding-top: 60rpx;
  376. padding-bottom: 60rpx;
  377. }
  378. .p-b-0 {
  379. padding-bottom: 0;
  380. }
  381. .p-b-20 {
  382. padding-bottom: 20rpx;
  383. }
  384. .p-b-30 {
  385. padding-bottom: 30rpx;
  386. }
  387. .p-b-100 {
  388. padding-bottom: 100rpx;
  389. }
  390. .p-l-r-10 {
  391. padding-left: 10rpx;
  392. padding-right: 10rpx;
  393. }
  394. .p-l-r-15 {
  395. padding-left: 15rpx;
  396. padding-right: 15rpx;
  397. }
  398. .p-l-r-20 {
  399. padding-left: 20rpx;
  400. padding-right: 20rpx;
  401. }
  402. .p-l-r-30 {
  403. padding-left: 30rpx;
  404. padding-right: 30rpx;
  405. }
  406. .p-l-r-40 {
  407. padding-left: 40rpx;
  408. padding-right: 40rpx;
  409. }
  410. .p-l-r-60 {
  411. padding-left: 60rpx;
  412. padding-right: 60rpx;
  413. }
  414. .p-l-10 {
  415. padding-left: 10rpx;
  416. }
  417. .p-l-20 {
  418. padding-left: 20rpx;
  419. }
  420. .p-l-30 {
  421. padding-left: 30rpx;
  422. }
  423. .p-l-60 {
  424. padding-left: 60rpx;
  425. }
  426. .p-r-20 {
  427. padding-right: 20rpx;
  428. }
  429. .p-r-60 {
  430. padding-right: 60rpx;
  431. }
  432. .m-10 {
  433. margin: 10rpx;
  434. }
  435. .m-20 {
  436. margin: 20rpx;
  437. }
  438. .m-t-4 {
  439. margin-top: 4rpx;
  440. }
  441. .m-t-10 {
  442. margin-top: 10rpx;
  443. }
  444. .m-t-20 {
  445. margin-top: 20rpx;
  446. }
  447. .m-t-30 {
  448. margin-top: 30rpx;
  449. }
  450. .m-t-40 {
  451. margin-top: 40rpx;
  452. }
  453. .m-t-50 {
  454. margin-top: 50rpx;
  455. }
  456. .m-t-60 {
  457. margin-top: 60rpx;
  458. }
  459. .m-t-100 {
  460. margin-top: 100rpx;
  461. }
  462. .m-l-10 {
  463. margin-left: 10rpx;
  464. }
  465. .m-l-20 {
  466. margin-left: 20rpx;
  467. }
  468. .m-l-30 {
  469. margin-left: 30rpx;
  470. }
  471. .m-l-40 {
  472. margin-left: 40rpx;
  473. }
  474. .m-l-50 {
  475. margin-left: 50rpx;
  476. }
  477. .m-l-60 {
  478. margin-left: 60rpx;
  479. }
  480. .m-r-10 {
  481. margin-right: 10rpx;
  482. }
  483. .m-r-20 {
  484. margin-right: 20rpx;
  485. }
  486. .m-l-r-10 {
  487. margin-left: 10rpx;
  488. margin-right: 10rpx;
  489. }
  490. .m-l-r-30 {
  491. margin-left: 30rpx;
  492. margin-right: 30rpx;
  493. }
  494. .m-b-5 {
  495. margin-bottom: 5rpx;
  496. }
  497. .m-b-10 {
  498. margin-bottom: 10rpx;
  499. }
  500. .m-b-20 {
  501. margin-bottom: 20rpx;
  502. }
  503. .m-b-30 {
  504. margin-bottom: 30rpx;
  505. }
  506. .m-b-40 {
  507. margin-bottom: 40rpx;
  508. }
  509. .m-b-50 {
  510. margin-bottom: 40rpx;
  511. }
  512. .m-b-60 {
  513. margin-bottom: 40rpx;
  514. }
  515. .m-b-70 {
  516. margin-bottom: 40rpx;
  517. }
  518. .m-b-80 {
  519. margin-bottom: 40rpx;
  520. }
  521. .m-t-b-10 {
  522. margin-top: 10rpx;
  523. margin-bottom: 10rpx;
  524. }
  525. .m-t-b-20 {
  526. margin-top: 20rpx;
  527. margin-bottom: 20rpx;
  528. }
  529. .m-t-b-30 {
  530. margin-top: 30rpx;
  531. margin-bottom: 30rpx;
  532. }
  533. .oneline-hide {
  534. overflow: hidden;
  535. text-overflow: ellipsis;
  536. white-space: nowrap;
  537. }
  538. .twoline-hide {
  539. display: -webkit-box;
  540. word-break: break-all;
  541. text-overflow: ellipsis;
  542. overflow: hidden;
  543. -webkit-box-orient: vertical;
  544. -webkit-line-clamp: 2;
  545. }
  546. .b-r {
  547. border-right: 1rpx solid #eee;
  548. }
  549. .b-b {
  550. border-bottom: 1rpx solid #eee;
  551. }
  552. .b-t {
  553. border-top: 1rpx solid #eee;
  554. }
  555. .ts-1 {
  556. -moz-transition: all 0.1s;
  557. -o-transition: all 0.1s;
  558. transition: all 0.1s;
  559. }
  560. .ts-2 {
  561. -moz-transition: all 0.2s;
  562. -o-transition: all 0.2s;
  563. transition: all 0.2s;
  564. }
  565. .ts-3 {
  566. -moz-transition: all 0.3s;
  567. -o-transition: all 0.3s;
  568. transition: all 0.3s;
  569. }
  570. .ts-5 {
  571. -moz-transition: all 0.5s;
  572. -o-transition: all 0.5s;
  573. transition: all 0.5s;
  574. }
  575. /* 无样式button (用于伪submit) */
  576. .btn-normal {
  577. display: block;
  578. margin: 0;
  579. padding: 0;
  580. line-height: normal;
  581. background: none;
  582. border-radius: 0;
  583. box-shadow: none;
  584. border: none;
  585. font-size: unset;
  586. text-align: unset;
  587. overflow: visible;
  588. color: inherit;
  589. }
  590. .btn-normal:after {
  591. border: none;
  592. }
  593. .btn-normal.button-hover {
  594. color: inherit;
  595. }
  596. button:after {
  597. content: none;
  598. border: none;
  599. }
  600. .width-30 {
  601. width: 30%;
  602. }
  603. .width-35 {
  604. width: 35%;
  605. }
  606. .width-40 {
  607. width: 40%;
  608. }
  609. .width-45 {
  610. width: 45%;
  611. }
  612. .width-50 {
  613. width: 50%;
  614. }
  615. .width-60 {
  616. width: 60%;
  617. }
  618. .width-70 {
  619. width: 70%;
  620. }
  621. .width-80 {
  622. width: 80%;
  623. }
  624. .width-90 {
  625. width: 90%;
  626. }
  627. .width-100 {
  628. width: 100%;
  629. }
  630. .height-100 {
  631. height: 100%;
  632. }
  633. .height-full {
  634. height: 100vh;
  635. }
  636. .height-half {
  637. height: 50vh;
  638. }
  639. /* 开头空两格 */
  640. .t-indent {
  641. text-indent: 2em;
  642. }
  643. .t-bold {
  644. font-weight: bold;
  645. }
  646. .t-bold-i {
  647. font-weight: bold !important;
  648. }
  649. /* 圆形 */
  650. .border-round {
  651. border-radius: 50%;
  652. }
  653. /* 圆角矩形 */
  654. .border-round-5 {
  655. border-radius: 5px;
  656. }
  657. .border-round-10 {
  658. border-radius: 10px;
  659. }
  660. .border-round-20 {
  661. border-radius: 20px;
  662. }
  663. .border-round-25 {
  664. border-radius: 25px;
  665. }
  666. .border-round-50 {
  667. border-radius: 50px;
  668. }
  669. .border-r-t-20 {
  670. border-top-left-radius: 20px;
  671. border-top-right-radius: 20px;
  672. }
  673. /* 边框 */
  674. .border-i {
  675. border-width: 1px;
  676. border-color: #909399;
  677. border-style: solid;
  678. }
  679. .border-i-m {
  680. border-width: 1px;
  681. border-color: #c8c9cc;
  682. border-style: solid;
  683. }
  684. .border-t-i {
  685. border-top-width: 1px;
  686. border-top-color: #909399;
  687. border-top-style: solid;
  688. }
  689. .border-t-i-l {
  690. border-top-width: 1px;
  691. border-top-color: #f4f4f5;
  692. border-top-style: solid;
  693. }
  694. .border-b-i-m {
  695. border-bottom-width: 1px;
  696. border-bottom-color: #c8c9cc;
  697. border-bottom-style: solid;
  698. }
  699. .border-t-i-m {
  700. border-top-width: 1px;
  701. border-top-color: #c8c9cc;
  702. border-top-style: solid;
  703. }
  704. .border-black {
  705. border-width: 1px;
  706. border-color: black;
  707. border-style: solid;
  708. }
  709. /* 阴影 */
  710. .shadow-light {
  711. box-shadow: 0 0 5px 1px lightgrey;
  712. }
  713. /* 居顶 */
  714. .top-0 {
  715. top: 0,
  716. }
  717. /* 居底 */
  718. .bottom-20 {
  719. position: absolute;
  720. bottom: 20rpx;
  721. }
  722. .bottom-left-30 {
  723. position: absolute;
  724. left: 30rpx;
  725. bottom: 30rpx;
  726. }
  727. .bottom-right-40 {
  728. position: absolute;
  729. bottom: 40rpx;
  730. right: 40rpx;
  731. }
  732. .bottom-0 {
  733. position: absolute;
  734. bottom: 0;
  735. }
  736. .bottom-40-f {
  737. position: fixed;
  738. bottom: 40rpx;
  739. }
  740. .top-right {
  741. top: 0;
  742. right: 0;
  743. }
  744. .right-20 {
  745. position: absolute;
  746. right: 20px;
  747. }
  748. /* 一行文本 */
  749. .line-1 {
  750. white-space: nowrap;
  751. overflow: hidden;
  752. text-overflow: ellipsis;
  753. }
  754. .nowrap {
  755. white-space: nowrap;
  756. }
  757. /* 透明度 */
  758. .opacity-02 {
  759. opacity: 0.2;
  760. }
  761. .opacity-06 {
  762. opacity: 0.6;
  763. }
  764. .no-visible {
  765. visibility: hidden;
  766. }