main.wxss 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /**
  10. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  11. *
  12. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  13. */
  14. /* 颜色变量 */
  15. /* uni.scss */
  16. /* 行为相关颜色 */
  17. /* 文字基本颜色 */
  18. /* 背景颜色 */
  19. /* 边框颜色 */
  20. /* 尺寸变量 */
  21. /* 文字尺寸 */
  22. /* 图片尺寸 */
  23. /* Border Radius */
  24. /* 水平间距 */
  25. /* 垂直间距 */
  26. /* 透明度 */
  27. /* 文章场景相关 */
  28. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  29. .u-line-1 {
  30. display: -webkit-box !important;
  31. overflow: hidden;
  32. text-overflow: ellipsis;
  33. word-break: break-all;
  34. -webkit-line-clamp: 1;
  35. -webkit-box-orient: vertical !important;
  36. }
  37. .u-line-2 {
  38. display: -webkit-box !important;
  39. overflow: hidden;
  40. text-overflow: ellipsis;
  41. word-break: break-all;
  42. -webkit-line-clamp: 2;
  43. -webkit-box-orient: vertical !important;
  44. }
  45. .u-line-3 {
  46. display: -webkit-box !important;
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. word-break: break-all;
  50. -webkit-line-clamp: 3;
  51. -webkit-box-orient: vertical !important;
  52. }
  53. .u-line-4 {
  54. display: -webkit-box !important;
  55. overflow: hidden;
  56. text-overflow: ellipsis;
  57. word-break: break-all;
  58. -webkit-line-clamp: 4;
  59. -webkit-box-orient: vertical !important;
  60. }
  61. .u-line-5 {
  62. display: -webkit-box !important;
  63. overflow: hidden;
  64. text-overflow: ellipsis;
  65. word-break: break-all;
  66. -webkit-line-clamp: 5;
  67. -webkit-box-orient: vertical !important;
  68. }
  69. .u-border {
  70. border-width: 0.5px !important;
  71. border-color: #dadbde !important;
  72. border-style: solid;
  73. }
  74. .u-border-top {
  75. border-top-width: 0.5px !important;
  76. border-color: #dadbde !important;
  77. border-top-style: solid;
  78. }
  79. .u-border-left {
  80. border-left-width: 0.5px !important;
  81. border-color: #dadbde !important;
  82. border-left-style: solid;
  83. }
  84. .u-border-right {
  85. border-right-width: 0.5px !important;
  86. border-color: #dadbde !important;
  87. border-right-style: solid;
  88. }
  89. .u-border-bottom {
  90. border-bottom-width: 0.5px !important;
  91. border-color: #dadbde !important;
  92. border-bottom-style: solid;
  93. }
  94. .u-border-top-bottom {
  95. border-top-width: 0.5px !important;
  96. border-bottom-width: 0.5px !important;
  97. border-color: #dadbde !important;
  98. border-top-style: solid;
  99. border-bottom-style: solid;
  100. }
  101. .u-reset-button {
  102. padding: 0;
  103. background-color: transparent;
  104. font-size: inherit;
  105. line-height: inherit;
  106. color: inherit;
  107. }
  108. .u-reset-button::after {
  109. border: none;
  110. }
  111. .u-hover-class {
  112. opacity: 0.7;
  113. }
  114. .u-primary-light {
  115. color: #ecf5ff;
  116. }
  117. .u-warning-light {
  118. color: #fdf6ec;
  119. }
  120. .u-success-light {
  121. color: #f5fff0;
  122. }
  123. .u-error-light {
  124. color: #fef0f0;
  125. }
  126. .u-info-light {
  127. color: #f4f4f5;
  128. }
  129. .u-primary-light-bg {
  130. background-color: #ecf5ff;
  131. }
  132. .u-warning-light-bg {
  133. background-color: #fdf6ec;
  134. }
  135. .u-success-light-bg {
  136. background-color: #f5fff0;
  137. }
  138. .u-error-light-bg {
  139. background-color: #fef0f0;
  140. }
  141. .u-info-light-bg {
  142. background-color: #f4f4f5;
  143. }
  144. .u-primary-dark {
  145. color: #398ade;
  146. }
  147. .u-warning-dark {
  148. color: #f1a532;
  149. }
  150. .u-success-dark {
  151. color: #53c21d;
  152. }
  153. .u-error-dark {
  154. color: #e45656;
  155. }
  156. .u-info-dark {
  157. color: #767a82;
  158. }
  159. .u-primary-dark-bg {
  160. background-color: #398ade;
  161. }
  162. .u-warning-dark-bg {
  163. background-color: #f1a532;
  164. }
  165. .u-success-dark-bg {
  166. background-color: #53c21d;
  167. }
  168. .u-error-dark-bg {
  169. background-color: #e45656;
  170. }
  171. .u-info-dark-bg {
  172. background-color: #767a82;
  173. }
  174. .u-primary-disabled {
  175. color: #9acafc;
  176. }
  177. .u-warning-disabled {
  178. color: #f9d39b;
  179. }
  180. .u-success-disabled {
  181. color: #a9e08f;
  182. }
  183. .u-error-disabled {
  184. color: #f7b2b2;
  185. }
  186. .u-info-disabled {
  187. color: #c4c6c9;
  188. }
  189. .u-primary {
  190. color: #3c9cff;
  191. }
  192. .u-warning {
  193. color: #f9ae3d;
  194. }
  195. .u-success {
  196. color: #5ac725;
  197. }
  198. .u-error {
  199. color: #f56c6c;
  200. }
  201. .u-info {
  202. color: #909399;
  203. }
  204. .u-primary-bg {
  205. background-color: #3c9cff;
  206. }
  207. .u-warning-bg {
  208. background-color: #f9ae3d;
  209. }
  210. .u-success-bg {
  211. background-color: #5ac725;
  212. }
  213. .u-error-bg {
  214. background-color: #f56c6c;
  215. }
  216. .u-info-bg {
  217. background-color: #909399;
  218. }
  219. .u-main-color {
  220. color: #303133;
  221. }
  222. .u-content-color {
  223. color: #606266;
  224. }
  225. .u-tips-color {
  226. color: #909193;
  227. }
  228. .u-light-color {
  229. color: #c0c4cc;
  230. }
  231. .u-safe-area-inset-top {
  232. padding-top: 0;
  233. padding-top: constant(safe-area-inset-top);
  234. padding-top: env(safe-area-inset-top);
  235. }
  236. .u-safe-area-inset-right {
  237. padding-right: 0;
  238. padding-right: constant(safe-area-inset-right);
  239. padding-right: env(safe-area-inset-right);
  240. }
  241. .u-safe-area-inset-bottom {
  242. padding-bottom: 0;
  243. padding-bottom: constant(safe-area-inset-bottom);
  244. padding-bottom: env(safe-area-inset-bottom);
  245. }
  246. .u-safe-area-inset-left {
  247. padding-left: 0;
  248. padding-left: constant(safe-area-inset-left);
  249. padding-left: env(safe-area-inset-left);
  250. }
  251. ::-webkit-scrollbar {
  252. display: none;
  253. width: 0 !important;
  254. height: 0 !important;
  255. -webkit-appearance: none;
  256. background: transparent;
  257. }