main.wxss 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275
  1. @charset "UTF-8";
  2. /**
  3. * 下方引入的为uView UI的集成样式文件,为scss预处理器,其中包含了一些"u-"开头的自定义变量
  4. * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可
  5. * uView自定义的css类名和scss变量,均以"u-"开头,不会造成冲突,请放心使用
  6. */
  7. /*每个页面公共css */
  8. .u-line-1 {
  9. display: -webkit-box !important;
  10. overflow: hidden;
  11. text-overflow: ellipsis;
  12. word-break: break-all;
  13. -webkit-line-clamp: 1;
  14. -webkit-box-orient: vertical !important;
  15. }
  16. .u-line-2 {
  17. display: -webkit-box !important;
  18. overflow: hidden;
  19. text-overflow: ellipsis;
  20. word-break: break-all;
  21. -webkit-line-clamp: 2;
  22. -webkit-box-orient: vertical !important;
  23. }
  24. .u-line-3 {
  25. display: -webkit-box !important;
  26. overflow: hidden;
  27. text-overflow: ellipsis;
  28. word-break: break-all;
  29. -webkit-line-clamp: 3;
  30. -webkit-box-orient: vertical !important;
  31. }
  32. .u-line-4 {
  33. display: -webkit-box !important;
  34. overflow: hidden;
  35. text-overflow: ellipsis;
  36. word-break: break-all;
  37. -webkit-line-clamp: 4;
  38. -webkit-box-orient: vertical !important;
  39. }
  40. .u-line-5 {
  41. display: -webkit-box !important;
  42. overflow: hidden;
  43. text-overflow: ellipsis;
  44. word-break: break-all;
  45. -webkit-line-clamp: 5;
  46. -webkit-box-orient: vertical !important;
  47. }
  48. .u-border {
  49. border-width: 0.5px !important;
  50. border-color: #dadbde !important;
  51. border-style: solid;
  52. }
  53. .u-border-top {
  54. border-top-width: 0.5px !important;
  55. border-color: #dadbde !important;
  56. border-top-style: solid;
  57. }
  58. .u-border-left {
  59. border-left-width: 0.5px !important;
  60. border-color: #dadbde !important;
  61. border-left-style: solid;
  62. }
  63. .u-border-right {
  64. border-right-width: 0.5px !important;
  65. border-color: #dadbde !important;
  66. border-right-style: solid;
  67. }
  68. .u-border-bottom {
  69. border-bottom-width: 0.5px !important;
  70. border-color: #dadbde !important;
  71. border-bottom-style: solid;
  72. }
  73. .u-border-top-bottom {
  74. border-top-width: 0.5px !important;
  75. border-bottom-width: 0.5px !important;
  76. border-color: #dadbde !important;
  77. border-top-style: solid;
  78. border-bottom-style: solid;
  79. }
  80. .u-reset-button {
  81. padding: 0;
  82. background-color: transparent;
  83. font-size: inherit;
  84. line-height: inherit;
  85. color: inherit;
  86. }
  87. .u-reset-button::after {
  88. border: none;
  89. }
  90. .u-hover-class {
  91. opacity: 0.7;
  92. }
  93. .u-primary-light {
  94. color: #ecf5ff;
  95. }
  96. .u-warning-light {
  97. color: #fdf6ec;
  98. }
  99. .u-success-light {
  100. color: #f5fff0;
  101. }
  102. .u-error-light {
  103. color: #fef0f0;
  104. }
  105. .u-info-light {
  106. color: #f4f4f5;
  107. }
  108. .u-primary-light-bg {
  109. background-color: #ecf5ff;
  110. }
  111. .u-warning-light-bg {
  112. background-color: #fdf6ec;
  113. }
  114. .u-success-light-bg {
  115. background-color: #f5fff0;
  116. }
  117. .u-error-light-bg {
  118. background-color: #fef0f0;
  119. }
  120. .u-info-light-bg {
  121. background-color: #f4f4f5;
  122. }
  123. .u-primary-dark {
  124. color: #398ade;
  125. }
  126. .u-warning-dark {
  127. color: #f1a532;
  128. }
  129. .u-success-dark {
  130. color: #53c21d;
  131. }
  132. .u-error-dark {
  133. color: #e45656;
  134. }
  135. .u-info-dark {
  136. color: #767a82;
  137. }
  138. .u-primary-dark-bg {
  139. background-color: #398ade;
  140. }
  141. .u-warning-dark-bg {
  142. background-color: #f1a532;
  143. }
  144. .u-success-dark-bg {
  145. background-color: #53c21d;
  146. }
  147. .u-error-dark-bg {
  148. background-color: #e45656;
  149. }
  150. .u-info-dark-bg {
  151. background-color: #767a82;
  152. }
  153. .u-primary-disabled {
  154. color: #9acafc;
  155. }
  156. .u-warning-disabled {
  157. color: #f9d39b;
  158. }
  159. .u-success-disabled {
  160. color: #a9e08f;
  161. }
  162. .u-error-disabled {
  163. color: #f7b2b2;
  164. }
  165. .u-info-disabled {
  166. color: #c4c6c9;
  167. }
  168. .u-primary {
  169. color: #3c9cff;
  170. }
  171. .u-warning {
  172. color: #f9ae3d;
  173. }
  174. .u-success {
  175. color: #5ac725;
  176. }
  177. .u-error {
  178. color: #f56c6c;
  179. }
  180. .u-info {
  181. color: #909399;
  182. }
  183. .u-primary-bg {
  184. background-color: #3c9cff;
  185. }
  186. .u-warning-bg {
  187. background-color: #f9ae3d;
  188. }
  189. .u-success-bg {
  190. background-color: #5ac725;
  191. }
  192. .u-error-bg {
  193. background-color: #f56c6c;
  194. }
  195. .u-info-bg {
  196. background-color: #909399;
  197. }
  198. .u-main-color {
  199. color: #303133;
  200. }
  201. .u-content-color {
  202. color: #606266;
  203. }
  204. .u-tips-color {
  205. color: #909193;
  206. }
  207. .u-light-color {
  208. color: #c0c4cc;
  209. }
  210. .u-safe-area-inset-top {
  211. padding-top: 0;
  212. padding-top: constant(safe-area-inset-top);
  213. padding-top: env(safe-area-inset-top);
  214. }
  215. .u-safe-area-inset-right {
  216. padding-right: 0;
  217. padding-right: constant(safe-area-inset-right);
  218. padding-right: env(safe-area-inset-right);
  219. }
  220. .u-safe-area-inset-bottom {
  221. padding-bottom: 0;
  222. padding-bottom: constant(safe-area-inset-bottom);
  223. padding-bottom: env(safe-area-inset-bottom);
  224. }
  225. .u-safe-area-inset-left {
  226. padding-left: 0;
  227. padding-left: constant(safe-area-inset-left);
  228. padding-left: env(safe-area-inset-left);
  229. }
  230. ::-webkit-scrollbar {
  231. display: none;
  232. width: 0 !important;
  233. height: 0 !important;
  234. -webkit-appearance: none;
  235. background: transparent;
  236. }
  237. .u-block {
  238. padding: 14px;
  239. }
  240. .u-block__section {
  241. margin-bottom: 10px;
  242. }
  243. .u-block__title {
  244. margin-top: 10px;
  245. font-size: 15px;
  246. color: #606266;
  247. margin-bottom: 10px;
  248. }
  249. .u-block__flex {
  250. display: flex;
  251. }
  252. .u-cell-icon {
  253. width: 36rpx;
  254. height: 36rpx;
  255. margin-right: 8rpx;
  256. }
  257. .u-page {
  258. padding: 15px 15px 40px 15px;
  259. }
  260. .u-demo-block {
  261. flex: 1;
  262. margin-bottom: 23px;
  263. }
  264. .u-demo-block__content {
  265. display: flex;
  266. flex-direction: column;
  267. }
  268. .u-demo-block__title {
  269. font-size: 14px;
  270. color: #8f9ca2;
  271. margin-bottom: 8px;
  272. display: flex;
  273. flex-direction: row;
  274. }