main.wxss 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  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. /* 行为相关颜色 */
  16. /* 文字基本颜色 */
  17. /* 背景颜色 */
  18. /* 边框颜色 */
  19. /* 尺寸变量 */
  20. /* 文字尺寸 */
  21. /* 图片尺寸 */
  22. /* Border Radius */
  23. /* 水平间距 */
  24. /* 垂直间距 */
  25. /* 透明度 */
  26. /* 文章场景相关 */
  27. .flex-col {
  28. display: flex;
  29. flex-direction: column;
  30. }
  31. .flex-row {
  32. display: flex;
  33. flex-direction: row;
  34. }
  35. .flex-row-reverse {
  36. display: flex;
  37. flex-direction: row-reverse;
  38. }
  39. .bord {
  40. border: 1px solid red;
  41. }
  42. .justify-start {
  43. display: flex;
  44. justify-content: flex-start;
  45. }
  46. .justify-center {
  47. display: flex;
  48. justify-content: center;
  49. }
  50. .justify-end {
  51. display: flex;
  52. justify-content: flex-end;
  53. }
  54. .justify-evenly {
  55. display: flex;
  56. justify-content: space-evenly;
  57. }
  58. .justify-around {
  59. display: flex;
  60. justify-content: space-around;
  61. }
  62. .justify-between {
  63. display: flex;
  64. justify-content: space-between;
  65. }
  66. .align-start {
  67. display: flex;
  68. align-items: flex-start;
  69. }
  70. .align-center {
  71. display: flex;
  72. align-items: center;
  73. }
  74. .align-end {
  75. display: flex;
  76. align-items: flex-end;
  77. }
  78. .sticky {
  79. display: flex;
  80. position: -webkit-sticky;
  81. position: sticky;
  82. top: 0rpx;
  83. z-index: 99;
  84. }
  85. .bord {
  86. border: 1px solid red;
  87. }
  88. .u-line-1 {
  89. display: -webkit-box !important;
  90. overflow: hidden;
  91. text-overflow: ellipsis;
  92. word-break: break-all;
  93. -webkit-line-clamp: 1;
  94. -webkit-box-orient: vertical !important;
  95. }
  96. .u-line-2 {
  97. display: -webkit-box !important;
  98. overflow: hidden;
  99. text-overflow: ellipsis;
  100. word-break: break-all;
  101. -webkit-line-clamp: 2;
  102. -webkit-box-orient: vertical !important;
  103. }
  104. .u-line-3 {
  105. display: -webkit-box !important;
  106. overflow: hidden;
  107. text-overflow: ellipsis;
  108. word-break: break-all;
  109. -webkit-line-clamp: 3;
  110. -webkit-box-orient: vertical !important;
  111. }
  112. .u-line-4 {
  113. display: -webkit-box !important;
  114. overflow: hidden;
  115. text-overflow: ellipsis;
  116. word-break: break-all;
  117. -webkit-line-clamp: 4;
  118. -webkit-box-orient: vertical !important;
  119. }
  120. .u-line-5 {
  121. display: -webkit-box !important;
  122. overflow: hidden;
  123. text-overflow: ellipsis;
  124. word-break: break-all;
  125. -webkit-line-clamp: 5;
  126. -webkit-box-orient: vertical !important;
  127. }
  128. .u-border {
  129. border-width: 0.5px !important;
  130. border-color: #dadbde !important;
  131. border-style: solid;
  132. }
  133. .u-border-top {
  134. border-top-width: 0.5px !important;
  135. border-color: #dadbde !important;
  136. border-top-style: solid;
  137. }
  138. .u-border-left {
  139. border-left-width: 0.5px !important;
  140. border-color: #dadbde !important;
  141. border-left-style: solid;
  142. }
  143. .u-border-right {
  144. border-right-width: 0.5px !important;
  145. border-color: #dadbde !important;
  146. border-right-style: solid;
  147. }
  148. .u-border-bottom {
  149. border-bottom-width: 0.5px !important;
  150. border-color: #dadbde !important;
  151. border-bottom-style: solid;
  152. }
  153. .u-border-top-bottom {
  154. border-top-width: 0.5px !important;
  155. border-bottom-width: 0.5px !important;
  156. border-color: #dadbde !important;
  157. border-top-style: solid;
  158. border-bottom-style: solid;
  159. }
  160. .u-reset-button {
  161. padding: 0;
  162. background-color: transparent;
  163. font-size: inherit;
  164. line-height: inherit;
  165. color: inherit;
  166. }
  167. .u-reset-button::after {
  168. border: none;
  169. }
  170. .u-hover-class {
  171. opacity: 0.7;
  172. }
  173. .u-primary-light {
  174. color: #ecf5ff;
  175. }
  176. .u-warning-light {
  177. color: #fdf6ec;
  178. }
  179. .u-success-light {
  180. color: #f5fff0;
  181. }
  182. .u-error-light {
  183. color: #fef0f0;
  184. }
  185. .u-info-light {
  186. color: #f4f4f5;
  187. }
  188. .u-primary-light-bg {
  189. background-color: #ecf5ff;
  190. }
  191. .u-warning-light-bg {
  192. background-color: #fdf6ec;
  193. }
  194. .u-success-light-bg {
  195. background-color: #f5fff0;
  196. }
  197. .u-error-light-bg {
  198. background-color: #fef0f0;
  199. }
  200. .u-info-light-bg {
  201. background-color: #f4f4f5;
  202. }
  203. .u-primary-dark {
  204. color: #398ade;
  205. }
  206. .u-warning-dark {
  207. color: #f1a532;
  208. }
  209. .u-success-dark {
  210. color: #53c21d;
  211. }
  212. .u-error-dark {
  213. color: #e45656;
  214. }
  215. .u-info-dark {
  216. color: #767a82;
  217. }
  218. .u-primary-dark-bg {
  219. background-color: #398ade;
  220. }
  221. .u-warning-dark-bg {
  222. background-color: #f1a532;
  223. }
  224. .u-success-dark-bg {
  225. background-color: #53c21d;
  226. }
  227. .u-error-dark-bg {
  228. background-color: #e45656;
  229. }
  230. .u-info-dark-bg {
  231. background-color: #767a82;
  232. }
  233. .u-primary-disabled {
  234. color: #9acafc;
  235. }
  236. .u-warning-disabled {
  237. color: #f9d39b;
  238. }
  239. .u-success-disabled {
  240. color: #a9e08f;
  241. }
  242. .u-error-disabled {
  243. color: #f7b2b2;
  244. }
  245. .u-info-disabled {
  246. color: #c4c6c9;
  247. }
  248. .u-primary {
  249. color: #3c9cff;
  250. }
  251. .u-warning {
  252. color: #f9ae3d;
  253. }
  254. .u-success {
  255. color: #5ac725;
  256. }
  257. .u-error {
  258. color: #f56c6c;
  259. }
  260. .u-info {
  261. color: #909399;
  262. }
  263. .u-primary-bg {
  264. background-color: #3c9cff;
  265. }
  266. .u-warning-bg {
  267. background-color: #f9ae3d;
  268. }
  269. .u-success-bg {
  270. background-color: #5ac725;
  271. }
  272. .u-error-bg {
  273. background-color: #f56c6c;
  274. }
  275. .u-info-bg {
  276. background-color: #909399;
  277. }
  278. .u-main-color {
  279. color: #303133;
  280. }
  281. .u-content-color {
  282. color: #606266;
  283. }
  284. .u-tips-color {
  285. color: #909193;
  286. }
  287. .u-light-color {
  288. color: #c0c4cc;
  289. }
  290. .u-safe-area-inset-top {
  291. padding-top: 0;
  292. padding-top: constant(safe-area-inset-top);
  293. padding-top: env(safe-area-inset-top);
  294. }
  295. .u-safe-area-inset-right {
  296. padding-right: 0;
  297. padding-right: constant(safe-area-inset-right);
  298. padding-right: env(safe-area-inset-right);
  299. }
  300. .u-safe-area-inset-bottom {
  301. padding-bottom: 0;
  302. padding-bottom: constant(safe-area-inset-bottom);
  303. padding-bottom: env(safe-area-inset-bottom);
  304. }
  305. .u-safe-area-inset-left {
  306. padding-left: 0;
  307. padding-left: constant(safe-area-inset-left);
  308. padding-left: env(safe-area-inset-left);
  309. }
  310. ::-webkit-scrollbar {
  311. display: none;
  312. width: 0 !important;
  313. height: 0 !important;
  314. -webkit-appearance: none;
  315. background: transparent;
  316. }