tool.css 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  1. @charset "UTF-8";
  2. /***********
  3. 常用样式库 v1
  4. 包含颜色、亮度、宽高、flex、gird、margin、padding、圆角、字体、动画
  5. ***********/
  6. /***********颜色:背景、文本***********/
  7. .bg-red {
  8. background-color: #ff0000;
  9. color: #fff;
  10. }
  11. .txt-red {
  12. color: #ff0000;
  13. }
  14. .bg-orange {
  15. background-color: #f37b1d;
  16. color: #fff;
  17. }
  18. .txt-orange {
  19. color: #f37b1d;
  20. }
  21. .bg-yellow {
  22. background-color: #fbbd08;
  23. color: #fff;
  24. }
  25. .txt-yellow {
  26. color: #fbbd08;
  27. }
  28. .bg-olive {
  29. background-color: #8dc63f;
  30. color: #fff;
  31. }
  32. .txt-olive {
  33. color: #8dc63f;
  34. }
  35. .bg-green {
  36. background-color: #39b54a;
  37. color: #fff;
  38. }
  39. .txt-green {
  40. color: #39b54a;
  41. }
  42. .bg-cyan {
  43. background-color: #1cbbb4;
  44. color: #fff;
  45. }
  46. .txt-cyan {
  47. color: #1cbbb4;
  48. }
  49. .bg-blue {
  50. background-color: #0081ff;
  51. color: #fff;
  52. }
  53. .txt-blue {
  54. color: #0081ff;
  55. }
  56. .bg-purple {
  57. background-color: #6739b6;
  58. color: #fff;
  59. }
  60. .txt-purple {
  61. color: #6739b6;
  62. }
  63. .bg-mauve {
  64. background-color: #9c26b0;
  65. color: #fff;
  66. }
  67. .txt-mauve {
  68. color: #9c26b0;
  69. }
  70. .bg-pink {
  71. background-color: #e03997;
  72. color: #fff;
  73. }
  74. .txt-pink {
  75. color: #e03997;
  76. }
  77. .bg-brown {
  78. background-color: #a5673f;
  79. color: #fff;
  80. }
  81. .txt-brown {
  82. color: #a5673f;
  83. }
  84. .bg-grey {
  85. background-color: #8799a3;
  86. color: #fff;
  87. }
  88. .txt-grey {
  89. color: #8799a3;
  90. }
  91. .bg-black {
  92. background-color: #333333;
  93. color: #fff;
  94. }
  95. .txt-black {
  96. color: #333333;
  97. }
  98. .bg-darkGray {
  99. background-color: #666666;
  100. color: #fff;
  101. }
  102. .txt-darkGray {
  103. color: #666666;
  104. }
  105. .bg-gray {
  106. background-color: #aaaaaa;
  107. color: #000;
  108. }
  109. .txt-gray {
  110. color: #aaaaaa;
  111. }
  112. .bg-ghostWhite {
  113. background-color: #f1f1f1;
  114. color: #000;
  115. }
  116. .txt-ghostWhite {
  117. color: #f1f1f1;
  118. }
  119. .bg-white {
  120. background-color: #ffffff;
  121. color: #000;
  122. }
  123. .txt-white {
  124. color: #ffffff;
  125. }
  126. .txt-2hide{
  127. word-break: break-all;
  128. text-overflow: ellipsis;
  129. display: -webkit-box;
  130. -webkit-box-orient: vertical;
  131. -webkit-line-clamp: 2;
  132. overflow: hidden;
  133. }
  134. /***********宽度***********/
  135. .wid-1 {
  136. width: 1%;
  137. }
  138. .wid-2 {
  139. width: 2%;
  140. }
  141. .wid-3 {
  142. width: 3%;
  143. }
  144. .wid-4 {
  145. width: 4%;
  146. }
  147. .wid-5 {
  148. width: 5%;
  149. }
  150. .wid-10 {
  151. width: 10%;
  152. }
  153. .wid-20 {
  154. width: 20%;
  155. }
  156. .wid-30 {
  157. width: 30%;
  158. }
  159. .wid-40 {
  160. width: 40%;
  161. }
  162. .wid-50 {
  163. width: 50%;
  164. }
  165. .wid-60 {
  166. width: 60%;
  167. }
  168. .wid-70 {
  169. width: 70%;
  170. }
  171. .wid-80 {
  172. width: 80%;
  173. }
  174. .wid-90 {
  175. width: 90%;
  176. }
  177. .wid-100 {
  178. width: 100%;
  179. }
  180. /***********高度***********/
  181. .hei-100 {
  182. height: 100%;
  183. }
  184. .hei-50 {
  185. height: 50%;
  186. }
  187. .wh-100 {
  188. height: 100%;
  189. width: 100%;
  190. }
  191. /***********margin***********/
  192. .mt-10 {
  193. margin-top: 10rpx;
  194. }
  195. .mt-20 {
  196. margin-top: 20rpx;
  197. }
  198. .mt-30 {
  199. margin-top: 30rpx;
  200. }
  201. .mt-40 {
  202. margin-top: 40rpx;
  203. }
  204. .mt-50 {
  205. margin-top: 50rpx;
  206. }
  207. .mt-60 {
  208. margin-top: 60rpx;
  209. }
  210. .mt-70 {
  211. margin-top: 70rpx;
  212. }
  213. .mt-80 {
  214. margin-top: 80rpx;
  215. }
  216. .mt-90 {
  217. margin-top: 90rpx;
  218. }
  219. .mt-100 {
  220. margin-top: 100rpx;
  221. }
  222. /***********padding***********/
  223. .pd-5 {
  224. padding: 5rpx;
  225. }
  226. .pd-10 {
  227. padding: 10rpx;
  228. }
  229. .pd-15 {
  230. padding: 15rpx;
  231. }
  232. .pd-20 {
  233. padding: 20rpx;
  234. }
  235. .pd-30 {
  236. padding: 30rpx;
  237. }
  238. .pd-40 {
  239. padding: 40rpx;
  240. }
  241. /***********圆角***********/
  242. .round-5 {
  243. border-radius: 5rpx;
  244. }
  245. .round-10 {
  246. border-radius: 10rpx;
  247. }
  248. .round-15 {
  249. border-radius: 15rpx;
  250. }
  251. .round-20 {
  252. border-radius: 20rpx;
  253. }
  254. .round-50 {
  255. border-radius: 50%;
  256. }
  257. /***********Flex布局***********/
  258. .row {
  259. display: -webkit-box;
  260. display: -ms-flexbox;
  261. display: flex;
  262. -webkit-box-orient: horizontal;
  263. -webkit-box-direction: normal;
  264. -ms-flex-direction: row;
  265. flex-direction: row;
  266. }
  267. .column {
  268. display: -webkit-box;
  269. display: -ms-flexbox;
  270. display: flex;
  271. -webkit-box-orient: vertical;
  272. -webkit-box-direction: normal;
  273. -ms-flex-direction: column;
  274. flex-direction: column;
  275. }
  276. .y-center {
  277. -webkit-box-align: center;
  278. -ms-flex-align: center;
  279. align-items: center;
  280. }
  281. .x-center {
  282. -webkit-box-pack: center;
  283. -ms-flex-pack: center;
  284. justify-content: center;
  285. }
  286. .flex-center {
  287. -webkit-box-align: center;
  288. -ms-flex-align: center;
  289. align-items: center;
  290. -webkit-box-pack: center;
  291. -ms-flex-pack: center;
  292. justify-content: center;
  293. }
  294. .flex-start {
  295. -webkit-box-pack: start;
  296. -ms-flex-pack: start;
  297. justify-content: flex-start;
  298. }
  299. .flex-end {
  300. -webkit-box-pack: end;
  301. -ms-flex-pack: end;
  302. justify-content: flex-end;
  303. }
  304. .flex-between {
  305. -webkit-box-pack: justify;
  306. -ms-flex-pack: justify;
  307. justify-content: space-between;
  308. }
  309. .flex-around {
  310. -ms-flex-pack: distribute;
  311. justify-content: space-around;
  312. }
  313. .flex-wrap {
  314. -ms-flex-wrap: wrap;
  315. flex-wrap: wrap;
  316. }
  317. /***********grid***********/
  318. .grid {
  319. display: -ms-grid;
  320. display: grid;
  321. -ms-flex-wrap: wrap;
  322. flex-wrap: wrap;
  323. }
  324. .grid.col-1 > view {
  325. width: 100%;
  326. }
  327. .grid.col-2 > view {
  328. width: 50%;
  329. }
  330. .grid.col-3 > view {
  331. width: 33.33333%;
  332. }
  333. .grid.col-4 > view {
  334. width: 25%;
  335. }
  336. .grid.col-5 > view {
  337. width: 20%;
  338. }
  339. /***********文本***********/
  340. .txt-sm {
  341. font-size: 22rpx;
  342. }
  343. .txt-df {
  344. font-size: 28rpx;
  345. }
  346. .txt-lg {
  347. font-size: 32rpx;
  348. }
  349. .txt-xl {
  350. font-size: 36rpx;
  351. }
  352. .txt-xxl {
  353. font-size: 42rpx;
  354. }
  355. .txt-sl {
  356. font-size: 56rpx;
  357. }
  358. .txt-sxl {
  359. font-size: 88rpx;
  360. }
  361. .txt-left {
  362. text-align: left;
  363. }
  364. .txt-right {
  365. text-align: right;
  366. }
  367. .txt-center {
  368. text-align: center;
  369. }
  370. .txt-bold {
  371. font-weight: 800;
  372. }
  373. .txt-space-3 {
  374. letter-spacing: 3rpx;
  375. }
  376. .txt-Abc {
  377. text-transform: Capitalize;
  378. }
  379. .txt-ABC {
  380. text-transform: Uppercase;
  381. }
  382. .txt-abc {
  383. text-transform: Lowercase;
  384. }
  385. .txtHide {
  386. text-overflow: ellipsis;
  387. white-space: nowrap;
  388. overflow: hidden;
  389. }
  390. /***********animation***********/
  391. [class*=ani-] {
  392. -webkit-animation-duration: .5s;
  393. animation-duration: .5s;
  394. -webkit-animation-timing-function: ease-out;
  395. animation-timing-function: ease-out;
  396. -webkit-animation-fill-mode: both;
  397. animation-fill-mode: both;
  398. }
  399. .ani-fade {
  400. -webkit-animation: fade;
  401. animation: fade;
  402. -webkit-animation-duration: .8s;
  403. animation-duration: .8s;
  404. -webkit-animation-timing-function: linear;
  405. animation-timing-function: linear;
  406. }
  407. .ani-scale-up {
  408. -webkit-animation: scale-up;
  409. animation: scale-up;
  410. }
  411. .ani-scale-down {
  412. -webkit-animation: scale-down;
  413. animation: scale-down;
  414. }
  415. .ani-slide-top {
  416. -webkit-animation: slide-top;
  417. animation: slide-top;
  418. }
  419. .ani-slide-bottom {
  420. -webkit-animation: slide-bottom;
  421. animation: slide-bottom;
  422. }
  423. .ani-slide-left {
  424. -webkit-animation: slide-left;
  425. animation: slide-left;
  426. }
  427. .ani-slide-right {
  428. -webkit-animation: slide-right;
  429. animation: slide-right;
  430. }
  431. .ani-shake {
  432. -webkit-animation: shake;
  433. animation: shake;
  434. }
  435. @-webkit-keyframes fade {
  436. 0% {
  437. opacity: 0;
  438. }
  439. 100% {
  440. opacity: 1;
  441. }
  442. }
  443. @keyframes fade {
  444. 0% {
  445. opacity: 0;
  446. }
  447. 100% {
  448. opacity: 1;
  449. }
  450. }
  451. @-webkit-keyframes scale-up {
  452. 0% {
  453. opacity: 0;
  454. -webkit-transform: scale(0.2);
  455. transform: scale(0.2);
  456. }
  457. 100% {
  458. opacity: 1;
  459. -webkit-transform: scale(1);
  460. transform: scale(1);
  461. }
  462. }
  463. @keyframes scale-up {
  464. 0% {
  465. opacity: 0;
  466. -webkit-transform: scale(0.2);
  467. transform: scale(0.2);
  468. }
  469. 100% {
  470. opacity: 1;
  471. -webkit-transform: scale(1);
  472. transform: scale(1);
  473. }
  474. }
  475. @-webkit-keyframes scale-down {
  476. 0% {
  477. opacity: 0;
  478. -webkit-transform: scale(1.8);
  479. transform: scale(1.8);
  480. }
  481. 100% {
  482. opacity: 1;
  483. -webkit-transform: scale(1);
  484. transform: scale(1);
  485. }
  486. }
  487. @keyframes scale-down {
  488. 0% {
  489. opacity: 0;
  490. -webkit-transform: scale(1.8);
  491. transform: scale(1.8);
  492. }
  493. 100% {
  494. opacity: 1;
  495. -webkit-transform: scale(1);
  496. transform: scale(1);
  497. }
  498. }
  499. @-webkit-keyframes slide-top {
  500. 0% {
  501. opacity: 0;
  502. -webkit-transform: translateY(-100%);
  503. transform: translateY(-100%);
  504. }
  505. 100% {
  506. opacity: 1;
  507. -webkit-transform: translateY(0);
  508. transform: translateY(0);
  509. }
  510. }
  511. @keyframes slide-top {
  512. 0% {
  513. opacity: 0;
  514. -webkit-transform: translateY(-100%);
  515. transform: translateY(-100%);
  516. }
  517. 100% {
  518. opacity: 1;
  519. -webkit-transform: translateY(0);
  520. transform: translateY(0);
  521. }
  522. }
  523. @-webkit-keyframes slide-bottom {
  524. 0% {
  525. opacity: 0;
  526. -webkit-transform: translateY(100%);
  527. transform: translateY(100%);
  528. }
  529. 100% {
  530. opacity: 1;
  531. -webkit-transform: translateY(0);
  532. transform: translateY(0);
  533. }
  534. }
  535. @keyframes slide-bottom {
  536. 0% {
  537. opacity: 0;
  538. -webkit-transform: translateY(100%);
  539. transform: translateY(100%);
  540. }
  541. 100% {
  542. opacity: 1;
  543. -webkit-transform: translateY(0);
  544. transform: translateY(0);
  545. }
  546. }
  547. @-webkit-keyframes shake {
  548. 0%,
  549. 100% {
  550. -webkit-transform: translateX(0);
  551. transform: translateX(0);
  552. }
  553. 10% {
  554. -webkit-transform: translateX(-9px);
  555. transform: translateX(-9px);
  556. }
  557. 20% {
  558. -webkit-transform: translateX(8px);
  559. transform: translateX(8px);
  560. }
  561. 30% {
  562. -webkit-transform: translateX(-7px);
  563. transform: translateX(-7px);
  564. }
  565. 40% {
  566. -webkit-transform: translateX(6px);
  567. transform: translateX(6px);
  568. }
  569. 50% {
  570. -webkit-transform: translateX(-5px);
  571. transform: translateX(-5px);
  572. }
  573. 60% {
  574. -webkit-transform: translateX(4px);
  575. transform: translateX(4px);
  576. }
  577. 70% {
  578. -webkit-transform: translateX(-3px);
  579. transform: translateX(-3px);
  580. }
  581. 80% {
  582. -webkit-transform: translateX(2px);
  583. transform: translateX(2px);
  584. }
  585. 90% {
  586. -webkit-transform: translateX(-1px);
  587. transform: translateX(-1px);
  588. }
  589. }
  590. @keyframes shake {
  591. 0%,
  592. 100% {
  593. -webkit-transform: translateX(0);
  594. transform: translateX(0);
  595. }
  596. 10% {
  597. -webkit-transform: translateX(-9px);
  598. transform: translateX(-9px);
  599. }
  600. 20% {
  601. -webkit-transform: translateX(8px);
  602. transform: translateX(8px);
  603. }
  604. 30% {
  605. -webkit-transform: translateX(-7px);
  606. transform: translateX(-7px);
  607. }
  608. 40% {
  609. -webkit-transform: translateX(6px);
  610. transform: translateX(6px);
  611. }
  612. 50% {
  613. -webkit-transform: translateX(-5px);
  614. transform: translateX(-5px);
  615. }
  616. 60% {
  617. -webkit-transform: translateX(4px);
  618. transform: translateX(4px);
  619. }
  620. 70% {
  621. -webkit-transform: translateX(-3px);
  622. transform: translateX(-3px);
  623. }
  624. 80% {
  625. -webkit-transform: translateX(2px);
  626. transform: translateX(2px);
  627. }
  628. 90% {
  629. -webkit-transform: translateX(-1px);
  630. transform: translateX(-1px);
  631. }
  632. }
  633. @-webkit-keyframes slide-left {
  634. 0% {
  635. opacity: 0;
  636. -webkit-transform: translateX(-100%);
  637. transform: translateX(-100%);
  638. }
  639. 100% {
  640. opacity: 1;
  641. -webkit-transform: translateX(0);
  642. transform: translateX(0);
  643. }
  644. }
  645. @keyframes slide-left {
  646. 0% {
  647. opacity: 0;
  648. -webkit-transform: translateX(-100%);
  649. transform: translateX(-100%);
  650. }
  651. 100% {
  652. opacity: 1;
  653. -webkit-transform: translateX(0);
  654. transform: translateX(0);
  655. }
  656. }
  657. @-webkit-keyframes slide-right {
  658. 0% {
  659. opacity: 0;
  660. -webkit-transform: translateX(100%);
  661. transform: translateX(100%);
  662. }
  663. 100% {
  664. opacity: 1;
  665. -webkit-transform: translateX(0);
  666. transform: translateX(0);
  667. }
  668. }
  669. @keyframes slide-right {
  670. 0% {
  671. opacity: 0;
  672. -webkit-transform: translateX(100%);
  673. transform: translateX(100%);
  674. }
  675. 100% {
  676. opacity: 1;
  677. -webkit-transform: translateX(0);
  678. transform: translateX(0);
  679. }
  680. }
  681. /***********辅助交互***********/
  682. .btnClick {
  683. position: relative;
  684. }
  685. .btnClick:active {
  686. -webkit-transform: translate(1px, 1px);
  687. transform: translate(1px, 1px);
  688. }
  689. .pageShow {
  690. opacity: 1;
  691. z-index: 999;
  692. }
  693. .pageHide {
  694. opacity: 0;
  695. z-index: -999;
  696. }
  697. .shadow {
  698. position: relative;
  699. -webkit-box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
  700. box-shadow: 0 0 10rpx rgba(0, 0, 0, 0.1);
  701. }
  702. /*# sourceMappingURL=tt.css.map */