main.wxss 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320
  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. /* 注意要写在第一行,同时给style标签加入lang="scss"属性 */
  89. .u-line-1 {
  90. display: -webkit-box !important;
  91. overflow: hidden;
  92. text-overflow: ellipsis;
  93. word-break: break-all;
  94. -webkit-line-clamp: 1;
  95. -webkit-box-orient: vertical !important;
  96. }
  97. .u-line-2 {
  98. display: -webkit-box !important;
  99. overflow: hidden;
  100. text-overflow: ellipsis;
  101. word-break: break-all;
  102. -webkit-line-clamp: 2;
  103. -webkit-box-orient: vertical !important;
  104. }
  105. .u-line-3 {
  106. display: -webkit-box !important;
  107. overflow: hidden;
  108. text-overflow: ellipsis;
  109. word-break: break-all;
  110. -webkit-line-clamp: 3;
  111. -webkit-box-orient: vertical !important;
  112. }
  113. .u-line-4 {
  114. display: -webkit-box !important;
  115. overflow: hidden;
  116. text-overflow: ellipsis;
  117. word-break: break-all;
  118. -webkit-line-clamp: 4;
  119. -webkit-box-orient: vertical !important;
  120. }
  121. .u-line-5 {
  122. display: -webkit-box !important;
  123. overflow: hidden;
  124. text-overflow: ellipsis;
  125. word-break: break-all;
  126. -webkit-line-clamp: 5;
  127. -webkit-box-orient: vertical !important;
  128. }
  129. .u-border {
  130. border-width: 0.5px !important;
  131. border-color: #dadbde !important;
  132. border-style: solid;
  133. }
  134. .u-border-top {
  135. border-top-width: 0.5px !important;
  136. border-color: #dadbde !important;
  137. border-top-style: solid;
  138. }
  139. .u-border-left {
  140. border-left-width: 0.5px !important;
  141. border-color: #dadbde !important;
  142. border-left-style: solid;
  143. }
  144. .u-border-right {
  145. border-right-width: 0.5px !important;
  146. border-color: #dadbde !important;
  147. border-right-style: solid;
  148. }
  149. .u-border-bottom {
  150. border-bottom-width: 0.5px !important;
  151. border-color: #dadbde !important;
  152. border-bottom-style: solid;
  153. }
  154. .u-border-top-bottom {
  155. border-top-width: 0.5px !important;
  156. border-bottom-width: 0.5px !important;
  157. border-color: #dadbde !important;
  158. border-top-style: solid;
  159. border-bottom-style: solid;
  160. }
  161. .u-reset-button {
  162. padding: 0;
  163. background-color: transparent;
  164. font-size: inherit;
  165. line-height: inherit;
  166. color: inherit;
  167. }
  168. .u-reset-button::after {
  169. border: none;
  170. }
  171. .u-hover-class {
  172. opacity: 0.7;
  173. }
  174. .u-primary-light {
  175. color: #ecf5ff;
  176. }
  177. .u-warning-light {
  178. color: #fdf6ec;
  179. }
  180. .u-success-light {
  181. color: #f5fff0;
  182. }
  183. .u-error-light {
  184. color: #fef0f0;
  185. }
  186. .u-info-light {
  187. color: #f4f4f5;
  188. }
  189. .u-primary-light-bg {
  190. background-color: #ecf5ff;
  191. }
  192. .u-warning-light-bg {
  193. background-color: #fdf6ec;
  194. }
  195. .u-success-light-bg {
  196. background-color: #f5fff0;
  197. }
  198. .u-error-light-bg {
  199. background-color: #fef0f0;
  200. }
  201. .u-info-light-bg {
  202. background-color: #f4f4f5;
  203. }
  204. .u-primary-dark {
  205. color: #398ade;
  206. }
  207. .u-warning-dark {
  208. color: #f1a532;
  209. }
  210. .u-success-dark {
  211. color: #53c21d;
  212. }
  213. .u-error-dark {
  214. color: #e45656;
  215. }
  216. .u-info-dark {
  217. color: #767a82;
  218. }
  219. .u-primary-dark-bg {
  220. background-color: #398ade;
  221. }
  222. .u-warning-dark-bg {
  223. background-color: #f1a532;
  224. }
  225. .u-success-dark-bg {
  226. background-color: #53c21d;
  227. }
  228. .u-error-dark-bg {
  229. background-color: #e45656;
  230. }
  231. .u-info-dark-bg {
  232. background-color: #767a82;
  233. }
  234. .u-primary-disabled {
  235. color: #9acafc;
  236. }
  237. .u-warning-disabled {
  238. color: #f9d39b;
  239. }
  240. .u-success-disabled {
  241. color: #a9e08f;
  242. }
  243. .u-error-disabled {
  244. color: #f7b2b2;
  245. }
  246. .u-info-disabled {
  247. color: #c4c6c9;
  248. }
  249. .u-primary {
  250. color: #3c9cff;
  251. }
  252. .u-warning {
  253. color: #f9ae3d;
  254. }
  255. .u-success {
  256. color: #5ac725;
  257. }
  258. .u-error {
  259. color: #f56c6c;
  260. }
  261. .u-info {
  262. color: #909399;
  263. }
  264. .u-primary-bg {
  265. background-color: #3c9cff;
  266. }
  267. .u-warning-bg {
  268. background-color: #f9ae3d;
  269. }
  270. .u-success-bg {
  271. background-color: #5ac725;
  272. }
  273. .u-error-bg {
  274. background-color: #f56c6c;
  275. }
  276. .u-info-bg {
  277. background-color: #909399;
  278. }
  279. .u-main-color {
  280. color: #303133;
  281. }
  282. .u-content-color {
  283. color: #606266;
  284. }
  285. .u-tips-color {
  286. color: #909193;
  287. }
  288. .u-light-color {
  289. color: #c0c4cc;
  290. }
  291. .u-safe-area-inset-top {
  292. padding-top: 0;
  293. padding-top: constant(safe-area-inset-top);
  294. padding-top: env(safe-area-inset-top);
  295. }
  296. .u-safe-area-inset-right {
  297. padding-right: 0;
  298. padding-right: constant(safe-area-inset-right);
  299. padding-right: env(safe-area-inset-right);
  300. }
  301. .u-safe-area-inset-bottom {
  302. padding-bottom: 0;
  303. padding-bottom: constant(safe-area-inset-bottom);
  304. padding-bottom: env(safe-area-inset-bottom);
  305. }
  306. .u-safe-area-inset-left {
  307. padding-left: 0;
  308. padding-left: constant(safe-area-inset-left);
  309. padding-left: env(safe-area-inset-left);
  310. }
  311. ::-webkit-scrollbar {
  312. display: none;
  313. width: 0 !important;
  314. height: 0 !important;
  315. -webkit-appearance: none;
  316. background: transparent;
  317. }