common.css 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394
  1. body {
  2. background-color: #F5F5F5;
  3. }
  4. view,text {
  5. font-size: 24rpx;
  6. color: #333;
  7. }
  8. image {
  9. display: block;
  10. }
  11. /* 隐藏scroll-view 滚动条 */
  12. ::-webkit-scrollbar {
  13. display: none;
  14. }
  15. .iPhone-bottom {
  16. padding-bottom: constant(safe-area-inset-bottom);
  17. padding-bottom: env(safe-area-inset-bottom);
  18. }
  19. /* 不换行 */
  20. .view-nowrap{
  21. white-space: nowrap;
  22. }
  23. /* 自动换行 */
  24. .view-word-wrap{
  25. white-space: pre-wrap;
  26. word-wrap: break-word;
  27. }
  28. /*超出三行... */
  29. .text-overflow-ellipsis-t {
  30. text-overflow: -o-ellipsis-lastline;
  31. overflow: hidden;
  32. text-overflow: ellipsis;
  33. display: -webkit-box;
  34. -webkit-line-clamp: 3;
  35. line-clamp: 3;
  36. -webkit-box-orient: vertical;
  37. white-space: pre-wrap;
  38. word-wrap: break-word;
  39. }
  40. /*超出两行... */
  41. .text-overflow-ellipsis {
  42. text-overflow: -o-ellipsis-lastline;
  43. overflow: hidden;
  44. text-overflow: ellipsis;
  45. display: -webkit-box;
  46. -webkit-line-clamp: 2;
  47. line-clamp: 2;
  48. -webkit-box-orient: vertical;
  49. white-space: pre-wrap;
  50. word-wrap: break-word;
  51. }
  52. /*超出一行... */
  53. .text-overflow-ellipsis-one {
  54. white-space: nowrap;
  55. text-overflow: ellipsis;
  56. overflow: hidden;
  57. word-break: break-all;
  58. }
  59. /* 内部盒子 */
  60. .box-border-box{
  61. box-sizing: border-box;
  62. }
  63. .flex-common-css {
  64. width: 100%;
  65. height: 100vh;
  66. display: flex;
  67. flex-direction: column;
  68. }
  69. .flex-index-css {
  70. width: 100%;
  71. height: 100%;
  72. display: flex;
  73. flex-direction: column;
  74. }
  75. .flex-direction {
  76. display: flex;
  77. flex-direction: column;
  78. }
  79. .display-flex {
  80. display: flex;
  81. }
  82. .flex-justify-space {
  83. display: flex;
  84. justify-content: space-between;
  85. }
  86. .flex-justify-around {
  87. display: flex;
  88. justify-content: space-around;
  89. }
  90. .flex-justify-center {
  91. display: flex;
  92. justify-content: center;
  93. }
  94. .flex-justify-end {
  95. display: flex;
  96. justify-content: flex-end;
  97. }
  98. .flex-justify-start {
  99. display: flex;
  100. justify-content: flex-start;
  101. }
  102. .align-items-center {
  103. display: flex;
  104. align-items: center;
  105. }
  106. .align-items-flex-end {
  107. display: flex;
  108. align-items: flex-end;
  109. }
  110. .flex-wrap-wrap {
  111. display: flex;
  112. flex-wrap: wrap;
  113. }
  114. .common-view-css{
  115. width: 100%;
  116. flex: 1;
  117. }
  118. .scroll-view-css {
  119. width: 100%;
  120. flex: 1;
  121. overflow: auto;
  122. }
  123. .box-sizing-border {
  124. box-sizing: border-box;
  125. }
  126. .text-align-center {
  127. text-align: center;
  128. }
  129. .text-align-right {
  130. text-align: right;
  131. }
  132. .text-align-left {
  133. text-align: left;
  134. }
  135. .flex-1{
  136. flex: 1;
  137. }
  138. .flex-shrink0{
  139. flex-shrink: 0;
  140. }
  141. /* 字体大小 */
  142. .fs-20{
  143. font-size: 20rpx;
  144. }
  145. .fs-22{
  146. font-size: 22rpx;
  147. }
  148. .fs-24{
  149. font-size: 24rpx;
  150. }
  151. .fs-26{
  152. font-size: 26rpx;
  153. }
  154. .fs-28{
  155. font-size: 28rpx;
  156. }
  157. .fs-30{
  158. font-size: 30rpx;
  159. }
  160. .fs-32{
  161. font-size: 32rpx;
  162. }
  163. .fs-34{
  164. font-size: 34rpx;
  165. }
  166. .fs-36{
  167. font-size: 36rpx;
  168. }
  169. .fs-48{
  170. font-size: 48rpx;
  171. }
  172. /* 字体下面横线 */
  173. .text-underline{
  174. text-decoration: underline;
  175. }
  176. /* 字体中间横线 */
  177. .text-line-through{
  178. text-decoration:line-through
  179. }
  180. /* 字体粗细 */
  181. .fw-b{
  182. font-weight: bold;
  183. }
  184. .fw-400{
  185. font-weight: 400;
  186. }
  187. .fw-500{
  188. font-weight: 500;
  189. }
  190. .fw-600{
  191. font-weight: 600;
  192. }
  193. /* 字体颜色 */
  194. .fc-f{
  195. color: #fff;
  196. }
  197. .fc-0{
  198. color: #000;
  199. }
  200. .fc-3{
  201. color: #333;
  202. }
  203. .fc-6{
  204. color: #666;
  205. }
  206. .fc-9{
  207. color: #999;
  208. }
  209. .fc-41ABF5{
  210. color: #41ABF5;
  211. }
  212. .fc-FB3D03{
  213. color: #FB3D03;
  214. }
  215. .fc-FF7F00{
  216. color: #FF7F00;
  217. }
  218. /* 背景颜色 */
  219. .bgc-f{
  220. background-color: #fff;
  221. }
  222. .bgc-3{
  223. background-color: #333;
  224. }
  225. .bgc-9{
  226. background-color: #999;
  227. }
  228. .bgc-4FB3EF{
  229. background-color: #4FB3EF;
  230. }
  231. .bgc-41ABF5{
  232. background-color: #41ABF5;
  233. }
  234. .bgc-B3DDFB{
  235. background-color: #B3DDFB;
  236. }
  237. .bgc-ECF7FE{
  238. background-color: #ECF7FE;
  239. }
  240. .bgc-FCE7E2{
  241. background-color: #FCE7E2;
  242. }
  243. .bgc-E6E6E6{
  244. background-color: #E6E6E6;
  245. }
  246. .bgc-F6F6F6{
  247. background-color: #F6F6F6;
  248. }
  249. /* 圆角 */
  250. .b-rad-20{
  251. border-radius: 20rpx;
  252. }
  253. .b-rad-200{
  254. border-radius: 200rpx;
  255. }
  256. /* 内边距 */
  257. .p-8{
  258. padding: 8rpx;
  259. }
  260. .p-24{
  261. padding: 24rpx;
  262. }
  263. .p-t-10 {
  264. padding-top: 10rpx;
  265. }
  266. .p-b-20 {
  267. padding-bottom: 20rpx;
  268. }
  269. .plr-12{
  270. padding: 0 12rpx;
  271. }
  272. .plr-24{
  273. padding: 0 24rpx;
  274. }
  275. /* 外边距 */
  276. .m-24{
  277. margin: 24rpx;
  278. }
  279. .ml-2{
  280. margin-left: 2rpx;
  281. }
  282. .ml-10{
  283. margin-left: 10rpx;
  284. }
  285. .ml-40{
  286. margin-left: 40rpx;
  287. }
  288. .mr-8{
  289. margin-right: 8rpx;
  290. }
  291. .mr-12{
  292. margin-right: 12rpx;
  293. }
  294. .mr-16{
  295. margin-right: 16rpx;
  296. }
  297. .mr-18{
  298. margin-right: 18rpx;
  299. }
  300. .mr-20{
  301. margin-right: 20px;
  302. }
  303. .mr-24{
  304. margin-right: 24rpx;
  305. }
  306. .mr-40{
  307. margin-right: 40px;
  308. }
  309. .mb-4{
  310. margin-bottom: 4rpx;
  311. }
  312. .mb-8{
  313. margin-bottom: 8rpx;
  314. }
  315. .mb-12{
  316. margin-bottom: 12rpx;
  317. }
  318. .mb-16{
  319. margin-bottom: 16rpx;
  320. }
  321. .mb-18{
  322. margin-bottom: 18rpx;
  323. }
  324. .mb-20{
  325. margin-bottom: 20rpx;
  326. }
  327. .mb-22{
  328. margin-bottom: 22rpx;
  329. }
  330. .mb-24{
  331. margin-bottom: 24rpx;
  332. }
  333. .mb-26{
  334. margin-bottom: 26rpx;
  335. }
  336. .mb-28{
  337. margin-bottom: 28rpx;
  338. }
  339. .mb-32{
  340. margin-bottom: 32rpx;
  341. }
  342. .mb-48{
  343. margin-bottom: 48rpx;
  344. }
  345. .mb-50{
  346. margin-bottom: 50rpx;
  347. }
  348. .mb-60{
  349. margin-bottom: 60rpx;
  350. }
  351. .mb-64{
  352. margin-bottom: 64rpx;
  353. }
  354. /* 宽度 */
  355. .w-100{
  356. width: 100rpx;
  357. }
  358. .w-200{
  359. width: 200rpx;
  360. }
  361. .w-10030{
  362. width: 30%;
  363. }