main.wxss 5.8 KB

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