common.css 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259
  1. image {
  2. display: block;
  3. }
  4. /* 隐藏scroll-view 滚动条 */
  5. ::-webkit-scrollbar {
  6. display: none;
  7. }
  8. .iPhone-bottom {
  9. padding-bottom: constant(safe-area-inset-bottom);
  10. padding-bottom: env(safe-area-inset-bottom);
  11. }
  12. /* 不换行 */
  13. .view-nowrap{
  14. white-space: nowrap;
  15. }
  16. /* 数字和文字不自动换行 */
  17. .overflowWrap{
  18. overflowWrap:break-word;
  19. word-break: break-all;
  20. }
  21. /* 自动换行 */
  22. .view-word-wrap{
  23. white-space: pre-wrap;
  24. word-wrap: break-word;
  25. }
  26. /*超出三行... */
  27. .text-overflow-ellipsis-t {
  28. text-overflow: -o-ellipsis-lastline;
  29. overflow: hidden;
  30. text-overflow: ellipsis;
  31. display: -webkit-box;
  32. -webkit-line-clamp: 3;
  33. line-clamp: 3;
  34. -webkit-box-orient: vertical;
  35. white-space: pre-wrap;
  36. word-wrap: break-word;
  37. }
  38. /*超出两行... */
  39. .text-overflow-ellipsis {
  40. text-overflow: -o-ellipsis-lastline;
  41. overflow: hidden;
  42. text-overflow: ellipsis;
  43. display: -webkit-box;
  44. -webkit-line-clamp: 2;
  45. line-clamp: 2;
  46. -webkit-box-orient: vertical;
  47. white-space: pre-wrap;
  48. word-wrap: break-word;
  49. }
  50. /*超出一行... */
  51. .text-overflow-ellipsis-one {
  52. white-space: nowrap;
  53. text-overflow: ellipsis;
  54. overflow: hidden;
  55. word-break: break-all;
  56. }
  57. /* 内部盒子 */
  58. .box-border-box{
  59. box-sizing: border-box;
  60. }
  61. .flex-common-css {
  62. width: 100%;
  63. height: 100vh;
  64. display: flex;
  65. flex-direction: column;
  66. }
  67. .flex-index-css {
  68. width: 100%;
  69. height: 100%;
  70. display: flex;
  71. flex-direction: column;
  72. }
  73. .flex-direction-column {
  74. display: flex;
  75. flex-direction: column;
  76. }
  77. .display-flex {
  78. display: flex;
  79. }
  80. .flex-justify-space {
  81. display: flex;
  82. justify-content: space-between;
  83. }
  84. .flex-justify-around {
  85. display: flex;
  86. justify-content: space-around;
  87. }
  88. .flex-justify-center {
  89. display: flex;
  90. justify-content: center;
  91. }
  92. .flex-justify-end {
  93. display: flex;
  94. justify-content: flex-end;
  95. }
  96. .flex-justify-start {
  97. display: flex;
  98. justify-content: flex-start;
  99. }
  100. .align-items-start {
  101. display: flex;
  102. align-items: flex-start;
  103. }
  104. .align-items-center {
  105. display: flex;
  106. align-items: center;
  107. }
  108. .align-items-flex-end {
  109. display: flex;
  110. align-items: flex-end;
  111. }
  112. .align-content-space-between{
  113. align-content: space-between;
  114. }
  115. .flex-wrap-wrap {
  116. display: flex;
  117. flex-wrap: wrap;
  118. }
  119. .common-view-css{
  120. width: 100%;
  121. flex: 1;
  122. }
  123. .scroll-view-css {
  124. width: 100%;
  125. flex: 1;
  126. overflow: auto;
  127. }
  128. .box-sizing-border {
  129. box-sizing: border-box;
  130. }
  131. .text-align-center {
  132. text-align: center;
  133. }
  134. .text-align-right {
  135. text-align: right;
  136. }
  137. .text-align-left {
  138. text-align: left;
  139. }
  140. .flex-1{
  141. flex: 1;
  142. }
  143. .flex-shrink0{
  144. flex-shrink: 0;
  145. }
  146. /* 字体大小 */
  147. .fs-20{
  148. font-size: 20rpx;
  149. }
  150. .fs-22{
  151. font-size: 22rpx;
  152. }
  153. .fs-24{
  154. font-size: 24rpx;
  155. }
  156. .fs-32{
  157. font-size: 32rpx;
  158. }
  159. .fs-30{
  160. font-size: 30rpx;
  161. }
  162. .fs-40{
  163. font-size: 40rpx;
  164. }
  165. .fs-42{
  166. font-size: 42rpx;
  167. }
  168. /* 字体粗细 */
  169. .fw-b{
  170. font-weight: bold;
  171. }
  172. .fw-400{
  173. font-weight: 400;
  174. }
  175. .fw-500{
  176. font-weight: 500;
  177. }
  178. .fw-600{
  179. font-weight: 600;
  180. }
  181. /* 字体颜色 */
  182. .fc-f{
  183. color: #fff;
  184. }
  185. .fc-0{
  186. color: #000;
  187. }
  188. .fc-3{
  189. color: #333;
  190. }
  191. .fc-6{
  192. color: #666;
  193. }
  194. .fc-9{
  195. color: #999;
  196. }
  197. .fc-ED301D{
  198. color: #ED301D;
  199. }
  200. .fc-lv{
  201. color: #00d563;
  202. }
  203. .fc-lan{
  204. color: #0093dc;
  205. }
  206. /* 背景颜色 */
  207. .bgc-f{
  208. background-color: #fff;
  209. }
  210. .bgc-c{
  211. background-color: #ccc;
  212. }
  213. .bgc-3{
  214. background-color: #333;
  215. }
  216. .bgc-9{
  217. background-color: #999;
  218. }
  219. /* 内边距 */
  220. .p-16{
  221. padding: 16rpx;
  222. }
  223. .p-24{
  224. padding: 24rpx;
  225. }
  226. .p-30{
  227. padding: 30rpx;
  228. }
  229. .p-32{
  230. padding: 32rpx;
  231. }
  232. .plr-28{
  233. padding: 0 28rpx;
  234. }
  235. /* 外边距 */
  236. .m-24{
  237. margin: 24rpx;
  238. }
  239. .mb-25{
  240. margin-bottom: 25rpx;
  241. }