common.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. body {
  2. background-color: #F5F5F5;
  3. }
  4. view,text {
  5. font-size: 14rpx;
  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. .display-flex {
  76. display: flex;
  77. }
  78. .flex-justify-space {
  79. display: flex;
  80. justify-content: space-between;
  81. }
  82. .flex-justify-around {
  83. display: flex;
  84. justify-content: space-around;
  85. }
  86. .flex-justify-center {
  87. display: flex;
  88. justify-content: center;
  89. }
  90. .flex-justify-end {
  91. display: flex;
  92. justify-content: flex-end;
  93. }
  94. .flex-justify-start {
  95. display: flex;
  96. justify-content: flex-start;
  97. }
  98. .align-items-center {
  99. display: flex;
  100. align-items: center;
  101. }
  102. .align-items-flex-end {
  103. display: flex;
  104. align-items: flex-end;
  105. }
  106. .flex-wrap-wrap {
  107. display: flex;
  108. flex-wrap: wrap;
  109. }
  110. .common-view-css{
  111. width: 100%;
  112. flex: 1;
  113. }
  114. .scroll-view-css {
  115. width: 100%;
  116. flex: 1;
  117. overflow: auto;
  118. }
  119. .box-sizing-border {
  120. box-sizing: border-box;
  121. }
  122. .text-align-center {
  123. text-align: center;
  124. }
  125. .text-align-right {
  126. text-align: right;
  127. }
  128. .text-align-left {
  129. text-align: left;
  130. }
  131. .flex-1{
  132. flex: 1;
  133. }
  134. .flex-shrink0{
  135. flex-shrink: 0;
  136. }
  137. /* 字体大小 */
  138. .fs-20{
  139. font-size: 20rpx;
  140. }
  141. .fs-22{
  142. font-size: 22rpx;
  143. }
  144. .fs-24{
  145. font-size: 24rpx;
  146. }
  147. .fs-34{
  148. font-size: 34rpx;
  149. }
  150. /* 字体粗细 */
  151. .fw-b{
  152. font-weight: bold;
  153. }
  154. .fw-400{
  155. font-weight: 400;
  156. }
  157. .fw-500{
  158. font-weight: 500;
  159. }
  160. .fw-600{
  161. font-weight: 600;
  162. }
  163. /* 字体颜色 */
  164. .fc-f{
  165. color: #fff;
  166. }
  167. .fc-0{
  168. color: #000;
  169. }
  170. .fc-3{
  171. color: #333;
  172. }
  173. .fc-6{
  174. color: #666;
  175. }
  176. .fc-9{
  177. color: #999;
  178. }
  179. /* 背景颜色 */
  180. .bgc-f{
  181. background-color: #fff;
  182. }
  183. .bgc-3{
  184. background-color: #333;
  185. }
  186. .bgc-9{
  187. background-color: #999;
  188. }
  189. /* 内边距 */
  190. .p-24{
  191. padding: 24rpx;
  192. }
  193. /* 外边距 */
  194. .m-24{
  195. margin: 24rpx;
  196. }
  197. .mr-24{
  198. margin-right: 24rpx;
  199. }
  200. /* 宽度 */
  201. .w-100{
  202. width: 100rpx;
  203. }
  204. .w-200{
  205. width: 200rpx;
  206. }
  207. .w-10030{
  208. width: 30%;
  209. }