utils.scss 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. .container, input {
  2. font-family: PingFang-Medium,
  3. PingFangSC-Regular,
  4. Heiti,
  5. Heiti SC,
  6. DroidSans,
  7. DroidSansFallback,
  8. "Microsoft YaHei",
  9. sans-serif;
  10. -webkit-font-smoothing: antialiased;
  11. }
  12. .b-f {
  13. background: #fff;
  14. }
  15. .tf-180 {
  16. transform: rotate(-180deg);
  17. }
  18. .tf-90 {
  19. transform: rotate(90deg);
  20. }
  21. .dis-block {
  22. display: block;
  23. }
  24. .dis-flex {
  25. display: flex !important;
  26. /* flex-wrap: wrap; */
  27. }
  28. .flex-box {
  29. flex: 1;
  30. }
  31. .flex-dir-row {
  32. flex-direction: row;
  33. }
  34. .flex-dir-column {
  35. flex-direction: column;
  36. }
  37. .flex-x-center {
  38. /* display: flex; */
  39. justify-content: center;
  40. }
  41. .flex-x-between {
  42. justify-content: space-between;
  43. }
  44. .flex-x-around {
  45. justify-content: space-around;
  46. }
  47. .flex-x-end {
  48. justify-content: flex-end;
  49. }
  50. .flex-y-center {
  51. align-items: center;
  52. }
  53. .flex-y-end {
  54. align-items: flex-end;
  55. }
  56. .flex-five {
  57. box-sizing: border-box;
  58. flex: 0 0 50%;
  59. }
  60. .flex-three {
  61. float: left;
  62. width: 33.3%;
  63. }
  64. .flex-four {
  65. box-sizing: border-box;
  66. flex: 0 0 25%;
  67. }
  68. .t-l {
  69. text-align: left;
  70. }
  71. .t-c {
  72. text-align: center;
  73. }
  74. .t-r {
  75. text-align: right;
  76. }
  77. .p-a {
  78. position: absolute;
  79. }
  80. .p-r {
  81. position: relative;
  82. }
  83. .fl {
  84. float: left;
  85. }
  86. .fr {
  87. float: right;
  88. }
  89. .clearfix::after {
  90. clear: both;
  91. content: " ";
  92. display: table;
  93. }
  94. .f-36 {
  95. font-size: 36rpx;
  96. }
  97. .f-34 {
  98. font-size: 34rpx;
  99. }
  100. .f-32 {
  101. font-size: 32rpx;
  102. }
  103. .f-31 {
  104. font-size: 31rpx;
  105. }
  106. .f-30 {
  107. font-size: 30rpx;
  108. }
  109. .f-29 {
  110. font-size: 29rpx;
  111. }
  112. .f-28 {
  113. font-size: 28rpx;
  114. }
  115. .f-26 {
  116. font-size: 26rpx;
  117. }
  118. .f-25 {
  119. font-size: 25rpx;
  120. }
  121. .f-24 {
  122. font-size: 24rpx;
  123. }
  124. .f-22 {
  125. font-size: 22rpx;
  126. }
  127. .col-f {
  128. color: #fff;
  129. }
  130. .col-3 {
  131. color: #333;
  132. }
  133. .col-6 {
  134. color: #666;
  135. }
  136. .col-7 {
  137. color: #777;
  138. }
  139. .col-8 {
  140. color: #888;
  141. }
  142. .col-9 {
  143. color: #999;
  144. }
  145. .col-m {
  146. color: $main-bg !important;
  147. }
  148. .col-s {
  149. color: #be0117 !important;
  150. }
  151. .col-green {
  152. color: #0ed339 !important;
  153. }
  154. .cont-box {
  155. padding: 20rpx;
  156. }
  157. .cont-bot {
  158. margin-bottom: 120rpx;
  159. }
  160. .padding-box {
  161. padding: 0 24rpx;
  162. box-sizing: border-box;
  163. }
  164. .pl-12 {
  165. padding-left: 12px;
  166. }
  167. .pr-12 {
  168. padding-right: 12px;
  169. }
  170. .pr-6 {
  171. padding-right: 6px;
  172. }
  173. .m-top4 {
  174. margin-top: 4rpx;
  175. }
  176. .m-top10 {
  177. margin-top: 10rpx;
  178. }
  179. .m-top20 {
  180. margin-top: 25rpx;
  181. }
  182. .m-top30 {
  183. margin-top: 30rpx;
  184. }
  185. .m-l-10 {
  186. margin-left: 10rpx;
  187. }
  188. .m-l-20 {
  189. margin-left: 20rpx;
  190. }
  191. .m-r-6 {
  192. margin-right: 6rpx;
  193. }
  194. .m-r-10 {
  195. margin-right: 10rpx;
  196. }
  197. .p-bottom {
  198. padding-bottom: 112rpx;
  199. }
  200. .oneline-hide {
  201. overflow: hidden;
  202. text-overflow: ellipsis;
  203. white-space: nowrap;
  204. }
  205. .twoline-hide {
  206. display: -webkit-box;
  207. word-break: break-all;
  208. text-overflow: ellipsis;
  209. overflow: hidden;
  210. -webkit-box-orient: vertical;
  211. -webkit-line-clamp: 2;
  212. }
  213. .b-r {
  214. border-right: 1rpx solid #eee;
  215. }
  216. .b-b {
  217. border-bottom: 1rpx solid #eee;
  218. }
  219. .b-t {
  220. border-top: 1rpx solid #eee;
  221. }
  222. .ts-1 {
  223. -moz-transition: all 0.1s;
  224. -o-transition: all 0.1s;
  225. transition: all 0.1s;
  226. }
  227. .ts-2 {
  228. -moz-transition: all 0.2s;
  229. -o-transition: all 0.2s;
  230. transition: all 0.2s;
  231. }
  232. .ts-3 {
  233. -moz-transition: all 0.3s;
  234. -o-transition: all 0.3s;
  235. transition: all 0.3s;
  236. }
  237. .ts-5 {
  238. -moz-transition: all 0.5s;
  239. -o-transition: all 0.5s;
  240. transition: all 0.5s;
  241. }
  242. /* 无样式button (用于伪submit) */
  243. .btn-normal {
  244. display: block;
  245. margin: 0;
  246. padding: 0;
  247. line-height: normal;
  248. background: none;
  249. border-radius: 0;
  250. box-shadow: none;
  251. border: none;
  252. font-size: unset;
  253. text-align: unset;
  254. overflow: visible;
  255. color: inherit;
  256. }
  257. .btn-normal:after {
  258. border: none;
  259. }
  260. .btn-normal.button-hover {
  261. color: inherit;
  262. }
  263. button:after {
  264. content: none;
  265. border: none;
  266. }