common.css 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  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-48{
  167. font-size: 48rpx;
  168. }
  169. /* 字体下面横线 */
  170. .text-underline{
  171. text-decoration: underline;
  172. }
  173. /* 字体中间横线 */
  174. .text-line-through{
  175. text-decoration:line-through
  176. }
  177. /* 字体粗细 */
  178. .fw-b{
  179. font-weight: bold;
  180. }
  181. .fw-400{
  182. font-weight: 400;
  183. }
  184. .fw-500{
  185. font-weight: 500;
  186. }
  187. .fw-600{
  188. font-weight: 600;
  189. }
  190. /* 字体颜色 */
  191. .fc-f{
  192. color: #fff;
  193. }
  194. .fc-0{
  195. color: #000;
  196. }
  197. .fc-3{
  198. color: #333;
  199. }
  200. .fc-6{
  201. color: #666;
  202. }
  203. .fc-9{
  204. color: #999;
  205. }
  206. .fc-41ABF5{
  207. color: #41ABF5;
  208. }
  209. .fc-FB3D03{
  210. color: #FB3D03;
  211. }
  212. .fc-FF7F00{
  213. color: #FF7F00;
  214. }
  215. .fc-41ABF5{
  216. color: #41ABF5;
  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-41ABF5{
  229. background-color: #41ABF5;
  230. }
  231. .bgc-FCE7E2{
  232. background-color: #FCE7E2;
  233. }
  234. .bgc-E6E6E6{
  235. background-color: #E6E6E6;
  236. }
  237. /* 圆角 */
  238. .b-rad-20{
  239. border-radius: 20rpx;
  240. }
  241. /* 内边距 */
  242. .p-8{
  243. padding: 8rpx;
  244. }
  245. .p-24{
  246. padding: 24rpx;
  247. }
  248. .p-t-10 {
  249. padding-top: 10rpx;
  250. }
  251. .p-b-20 {
  252. padding-bottom: 20rpx;
  253. }
  254. .plr-12{
  255. padding: 0 12rpx;
  256. }
  257. .plr-24{
  258. padding: 0 24rpx;
  259. }
  260. /* 外边距 */
  261. .m-24{
  262. margin: 24rpx;
  263. }
  264. .ml-10{
  265. margin-left: 10rpx;
  266. }
  267. .mr-8{
  268. margin-right: 8rpx;
  269. }
  270. .mr-12{
  271. margin-right: 12rpx;
  272. }
  273. .mr-24{
  274. margin-right: 24rpx;
  275. }
  276. .mb-4{
  277. margin-bottom: 4rpx;
  278. }
  279. .mb-8{
  280. margin-bottom: 8rpx;
  281. }
  282. .mb-12{
  283. margin-bottom: 12rpx;
  284. }
  285. .mb-18{
  286. margin-bottom: 18rpx;
  287. }
  288. .mb-20{
  289. margin-bottom: 20rpx;
  290. }
  291. .mb-22{
  292. margin-bottom: 22rpx;
  293. }
  294. .mb-24{
  295. margin-bottom: 24rpx;
  296. }
  297. .mb-32{
  298. margin-bottom: 32rpx;
  299. }
  300. .mb-64{
  301. margin-bottom: 64rpx;
  302. }
  303. /* 宽度 */
  304. .w-100{
  305. width: 100rpx;
  306. }
  307. .w-200{
  308. width: 200rpx;
  309. }
  310. .w-10030{
  311. width: 30%;
  312. }