app.wxss 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  1. /**
  2. * 这里是uni-app内置的常用样式变量
  3. *
  4. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  5. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  6. *
  7. */
  8. /**
  9. * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
  10. *
  11. * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
  12. */
  13. /* 颜色变量 */
  14. /* 行为相关颜色 */
  15. /* 文字基本颜色 */
  16. /* 背景颜色 */
  17. /* 边框颜色 */
  18. /* 尺寸变量 */
  19. /* 文字尺寸 */
  20. /* 图片尺寸 */
  21. /* Border Radius */
  22. /* 水平间距 */
  23. /* 垂直间距 */
  24. /* 透明度 */
  25. /* 文章场景相关 */
  26. .w100 {
  27. width: 100%!important;
  28. }
  29. .h100 {
  30. height: 100%!important;
  31. }
  32. /* 定位 */
  33. .pos-re {
  34. position: relative;
  35. }
  36. .pos-ab {
  37. position: absolute;
  38. }
  39. .box-s {
  40. box-sizing: border-box;
  41. }
  42. .flex {
  43. display: flex;
  44. }
  45. .flex-1 {
  46. flex: 1;
  47. }
  48. .flex-a {
  49. display: flex;
  50. align-items: center;
  51. }
  52. .flex-a-s {
  53. align-items: flex-start;
  54. }
  55. .flex-a-c {
  56. align-items: center;
  57. }
  58. .flex-a-e {
  59. align-items: flex-end;
  60. }
  61. .flex-c {
  62. display: flex;
  63. align-items: center;
  64. justify-content: center;
  65. }
  66. .flex-d {
  67. display: flex;
  68. flex-direction: column;
  69. }
  70. .flex-w {
  71. display: flex;
  72. flex-wrap: wrap;
  73. }
  74. .flex-j-a {
  75. justify-content: space-around;
  76. }
  77. .flex-j-c {
  78. justify-content: center;
  79. }
  80. .flex-j-b {
  81. justify-content: space-between;
  82. }
  83. /* 文本仅显示 1 行 */
  84. .line-1 {
  85. width: 100%;
  86. white-space: nowrap;
  87. text-overflow: ellipsis;
  88. overflow: hidden;
  89. word-break: break-all;
  90. }
  91. /* 文本仅显示 2 行 */
  92. .line-2 {
  93. text-overflow: -o-ellipsis-lastline;
  94. overflow: hidden;
  95. text-overflow: ellipsis;
  96. display: -webkit-box;
  97. -webkit-line-clamp: 2;
  98. line-clamp: 2;
  99. -webkit-box-orient: vertical;
  100. }
  101. .m-2 {
  102. margin: 20rpx;
  103. }
  104. .m-l-1 {
  105. margin-left: 10rpx;
  106. }
  107. .m-l-2 {
  108. margin-left: 20rpx;
  109. }
  110. .m-l-3 {
  111. margin-left: 30rpx;
  112. }
  113. .m-r-1 {
  114. margin-right: 10rpx;
  115. }
  116. .m-r-2 {
  117. margin-right: 20rpx;
  118. }
  119. .m-r-3 {
  120. margin-right: 30rpx;
  121. }
  122. .m-t-0 {
  123. margin-top: 0;
  124. }
  125. .m-t-1 {
  126. margin-top: 10rpx;
  127. }
  128. .m-t-2 {
  129. margin-top: 20rpx;
  130. }
  131. .m-t-3 {
  132. margin-top: 30rpx;
  133. }
  134. .m-b-2 {
  135. margin-bottom: 20rpx;
  136. }
  137. .p-2 {
  138. padding: 20rpx;
  139. }
  140. .p-l-2 {
  141. padding-left: 20rpx;
  142. }
  143. .p-r-2 {
  144. padding-right: 20rpx;
  145. }
  146. .p-t-2 {
  147. padding-top: 20rpx;
  148. }
  149. .p-b-2 {
  150. padding-bottom: 20rpx;
  151. }
  152. .text-l {
  153. text-align: left;
  154. }
  155. .text-c {
  156. text-align: center;
  157. }
  158. .text-r {
  159. text-align: right;
  160. }
  161. .u-line-1 {
  162. display: -webkit-box !important;
  163. overflow: hidden;
  164. text-overflow: ellipsis;
  165. word-break: break-all;
  166. -webkit-line-clamp: 1;
  167. -webkit-box-orient: vertical !important;
  168. }
  169. .u-line-2 {
  170. display: -webkit-box !important;
  171. overflow: hidden;
  172. text-overflow: ellipsis;
  173. word-break: break-all;
  174. -webkit-line-clamp: 2;
  175. -webkit-box-orient: vertical !important;
  176. }
  177. .u-line-3 {
  178. display: -webkit-box !important;
  179. overflow: hidden;
  180. text-overflow: ellipsis;
  181. word-break: break-all;
  182. -webkit-line-clamp: 3;
  183. -webkit-box-orient: vertical !important;
  184. }
  185. .u-line-4 {
  186. display: -webkit-box !important;
  187. overflow: hidden;
  188. text-overflow: ellipsis;
  189. word-break: break-all;
  190. -webkit-line-clamp: 4;
  191. -webkit-box-orient: vertical !important;
  192. }
  193. .u-line-5 {
  194. display: -webkit-box !important;
  195. overflow: hidden;
  196. text-overflow: ellipsis;
  197. word-break: break-all;
  198. -webkit-line-clamp: 5;
  199. -webkit-box-orient: vertical !important;
  200. }
  201. .u-border {
  202. border-width: 0.5px !important;
  203. border-color: #dadbde !important;
  204. border-style: solid;
  205. }
  206. .u-border-top {
  207. border-top-width: 0.5px !important;
  208. border-color: #dadbde !important;
  209. border-top-style: solid;
  210. }
  211. .u-border-left {
  212. border-left-width: 0.5px !important;
  213. border-color: #dadbde !important;
  214. border-left-style: solid;
  215. }
  216. .u-border-right {
  217. border-right-width: 0.5px !important;
  218. border-color: #dadbde !important;
  219. border-right-style: solid;
  220. }
  221. .u-border-bottom {
  222. border-bottom-width: 0.5px !important;
  223. border-color: #dadbde !important;
  224. border-bottom-style: solid;
  225. }
  226. .u-border-top-bottom {
  227. border-top-width: 0.5px !important;
  228. border-bottom-width: 0.5px !important;
  229. border-color: #dadbde !important;
  230. border-top-style: solid;
  231. border-bottom-style: solid;
  232. }
  233. .u-reset-button {
  234. padding: 0;
  235. background-color: transparent;
  236. font-size: inherit;
  237. line-height: inherit;
  238. color: inherit;
  239. }
  240. .u-reset-button::after {
  241. border: none;
  242. }
  243. .u-hover-class {
  244. opacity: 0.7;
  245. }
  246. .u-primary-light {
  247. color: #ecf5ff;
  248. }
  249. .u-warning-light {
  250. color: #fdf6ec;
  251. }
  252. .u-success-light {
  253. color: #f5fff0;
  254. }
  255. .u-error-light {
  256. color: #fef0f0;
  257. }
  258. .u-info-light {
  259. color: #f4f4f5;
  260. }
  261. .u-primary-light-bg {
  262. background-color: #ecf5ff;
  263. }
  264. .u-warning-light-bg {
  265. background-color: #fdf6ec;
  266. }
  267. .u-success-light-bg {
  268. background-color: #f5fff0;
  269. }
  270. .u-error-light-bg {
  271. background-color: #fef0f0;
  272. }
  273. .u-info-light-bg {
  274. background-color: #f4f4f5;
  275. }
  276. .u-primary-dark {
  277. color: #398ade;
  278. }
  279. .u-warning-dark {
  280. color: #f1a532;
  281. }
  282. .u-success-dark {
  283. color: #53c21d;
  284. }
  285. .u-error-dark {
  286. color: #e45656;
  287. }
  288. .u-info-dark {
  289. color: #767a82;
  290. }
  291. .u-primary-dark-bg {
  292. background-color: #398ade;
  293. }
  294. .u-warning-dark-bg {
  295. background-color: #f1a532;
  296. }
  297. .u-success-dark-bg {
  298. background-color: #53c21d;
  299. }
  300. .u-error-dark-bg {
  301. background-color: #e45656;
  302. }
  303. .u-info-dark-bg {
  304. background-color: #767a82;
  305. }
  306. .u-primary-disabled {
  307. color: #9acafc;
  308. }
  309. .u-warning-disabled {
  310. color: #f9d39b;
  311. }
  312. .u-success-disabled {
  313. color: #a9e08f;
  314. }
  315. .u-error-disabled {
  316. color: #f7b2b2;
  317. }
  318. .u-info-disabled {
  319. color: #c4c6c9;
  320. }
  321. .u-primary {
  322. color: #3c9cff;
  323. }
  324. .u-warning {
  325. color: #f9ae3d;
  326. }
  327. .u-success {
  328. color: #5ac725;
  329. }
  330. .u-error {
  331. color: #f56c6c;
  332. }
  333. .u-info {
  334. color: #909399;
  335. }
  336. .u-primary-bg {
  337. background-color: #3c9cff;
  338. }
  339. .u-warning-bg {
  340. background-color: #f9ae3d;
  341. }
  342. .u-success-bg {
  343. background-color: #5ac725;
  344. }
  345. .u-error-bg {
  346. background-color: #f56c6c;
  347. }
  348. .u-info-bg {
  349. background-color: #909399;
  350. }
  351. .u-main-color {
  352. color: #303133;
  353. }
  354. .u-content-color {
  355. color: #606266;
  356. }
  357. .u-tips-color {
  358. color: #909193;
  359. }
  360. .u-light-color {
  361. color: #c0c4cc;
  362. }
  363. .u-safe-area-inset-top {
  364. padding-top: 0;
  365. padding-top: constant(safe-area-inset-top);
  366. padding-top: env(safe-area-inset-top);
  367. }
  368. .u-safe-area-inset-right {
  369. padding-right: 0;
  370. padding-right: constant(safe-area-inset-right);
  371. padding-right: env(safe-area-inset-right);
  372. }
  373. .u-safe-area-inset-bottom {
  374. padding-bottom: 0;
  375. padding-bottom: constant(safe-area-inset-bottom);
  376. padding-bottom: env(safe-area-inset-bottom);
  377. }
  378. .u-safe-area-inset-left {
  379. padding-left: 0;
  380. padding-left: constant(safe-area-inset-left);
  381. padding-left: env(safe-area-inset-left);
  382. }
  383. ::-webkit-scrollbar {
  384. display: none;
  385. width: 0 !important;
  386. height: 0 !important;
  387. -webkit-appearance: none;
  388. background: transparent;
  389. }
  390. /*每个页面公共css */page{--status-bar-height:25px;--top-window-height:0px;--window-top:0px;--window-bottom:0px;--window-left:0px;--window-right:0px;--window-magin:0px}[data-c-h="true"]{display: none !important;}