main.wxss 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350
  1. @charset "UTF-8";
  2. /* 页面左右间距 */
  3. /* 文字尺寸 */
  4. /*文字颜色*/
  5. /* 边框颜色 */
  6. /*颜色*/
  7. /* 图片加载中颜色 */
  8. /* 行为相关颜色 */
  9. /* 功能栏字体大小 */
  10. /*功能栏左侧小图标*/
  11. view,
  12. scroll-view,
  13. swiper,
  14. swiper-item,
  15. cover-view,
  16. cover-image,
  17. icon,
  18. text,
  19. rich-text,
  20. progress,
  21. button,
  22. checkbox,
  23. form,
  24. input,
  25. label,
  26. radio,
  27. slider,
  28. switch,
  29. textarea,
  30. navigator,
  31. audio,
  32. camera,
  33. image,
  34. video {
  35. box-sizing: border-box;
  36. }
  37. /* flex布局-整体居中 */
  38. .flex-center {
  39. display: -webkit-box;
  40. display: -webkit-flex;
  41. display: flex;
  42. -webkit-box-align: center;
  43. -webkit-align-items: center;
  44. align-items: center;
  45. -webkit-box-pack: center;
  46. -webkit-justify-content: center;
  47. justify-content: center;
  48. }
  49. /* flex布局-上下居中 */
  50. .flex-upDown-center {
  51. display: -webkit-box;
  52. display: -webkit-flex;
  53. display: flex;
  54. -webkit-box-align: center;
  55. -webkit-align-items: center;
  56. align-items: center;
  57. }
  58. .flex_direction {
  59. display: -webkit-box;
  60. display: -webkit-flex;
  61. display: flex;
  62. -webkit-box-orient: vertical;
  63. -webkit-box-direction: normal;
  64. -webkit-flex-direction: column;
  65. flex-direction: column;
  66. -webkit-box-align: center;
  67. -webkit-align-items: center;
  68. align-items: center;
  69. }
  70. .word1_ellipsis {
  71. text-overflow: ellipsis;
  72. overflow: hidden;
  73. white-space: nowrap;
  74. }
  75. .word2_ellipsis {
  76. overflow: hidden;
  77. text-overflow: ellipsis;
  78. display: -webkit-box;
  79. -webkit-line-clamp: 2;
  80. -webkit-box-orient: vertical;
  81. }
  82. .m-r25 {
  83. margin-right: 25rpx;
  84. }
  85. .m-r15 {
  86. margin-right: 15rpx;
  87. }
  88. .flex1 {
  89. display: -webkit-box;
  90. display: -webkit-flex;
  91. display: flex;
  92. -webkit-box-align: center;
  93. -webkit-align-items: center;
  94. align-items: center;
  95. -webkit-box-pack: justify;
  96. -webkit-justify-content: space-between;
  97. justify-content: space-between;
  98. }
  99. .flex-start {
  100. display: -webkit-box;
  101. display: -webkit-flex;
  102. display: flex;
  103. -webkit-box-align: center;
  104. -webkit-align-items: center;
  105. align-items: center;
  106. -webkit-box-pack: start;
  107. -webkit-justify-content: flex-start;
  108. justify-content: flex-start;
  109. }
  110. .flex {
  111. display: -webkit-box;
  112. display: -webkit-flex;
  113. display: flex;
  114. }
  115. .position-relative {
  116. position: relative;
  117. }
  118. /* 骨架屏替代方案 */
  119. .Skeleton {
  120. background: #f3f3f3;
  121. padding: 20rpx 0;
  122. border-radius: 8rpx;
  123. }
  124. /* 图片载入替代方案 */
  125. .image-wrapper {
  126. font-size: 0;
  127. background: #f3f3f3;
  128. border-radius: 4px;
  129. }
  130. .image-wrapper image {
  131. width: 100%;
  132. height: 100%;
  133. -webkit-transition: 0.6s;
  134. transition: 0.6s;
  135. opacity: 0;
  136. }
  137. .image-wrapper image.loaded {
  138. opacity: 1;
  139. }
  140. uni-rich-text ._img {
  141. max-width: 100% !important;
  142. }
  143. /*边框*/
  144. .b-b:after,
  145. .b-t:after {
  146. position: absolute;
  147. z-index: 3;
  148. left: 0;
  149. right: 0;
  150. height: 0;
  151. content: '';
  152. -webkit-transform: scaleY(0.5);
  153. transform: scaleY(0.5);
  154. border-bottom: 1px solid #e4e7ed;
  155. }
  156. .b-b:after {
  157. bottom: 0;
  158. }
  159. .b-t:after {
  160. top: 0;
  161. }
  162. /* button样式改写 */
  163. uni-button,
  164. button {
  165. height: 80rpx;
  166. line-height: 80rpx;
  167. font-size: 34rpx;
  168. font-weight: normal;
  169. }
  170. uni-button.no-border:before, uni-button.no-border:after, button.no-border:before, button.no-border:after {
  171. border: 0;
  172. }
  173. uni-button[type='default'],
  174. button[type='default'] {
  175. color: #303133;
  176. }
  177. /* input 样式 */
  178. .input-placeholder {
  179. color: #999999;
  180. }
  181. .placeholder {
  182. color: #999999;
  183. }
  184. .margin-l-10 {
  185. margin-left: 10rpx !important;
  186. }
  187. .margin-r-10 {
  188. margin-right: 10rpx !important;
  189. }
  190. .margin-t-10 {
  191. margin-top: 10rpx !important;
  192. }
  193. .margin-b-10 {
  194. margin-bottom: 10rpx !important;
  195. }
  196. .margin-10 {
  197. margin: 10rpx !important;
  198. }
  199. .margin-v-10 {
  200. margin-top: 10rpx !important;
  201. margin-bottom: 10rpx !important;
  202. }
  203. .margin-c-10 {
  204. margin-left: 10rpx !important;
  205. margin-right: 10rpx !important;
  206. }
  207. .padding-l-10 {
  208. padding-left: 10rpx !important;
  209. }
  210. .padding-r-10 {
  211. padding-right: 10rpx !important;
  212. }
  213. .padding-t-10 {
  214. padding-top: 10rpx !important;
  215. }
  216. .padding-b-10 {
  217. padding-bottom: 10rpx !important;
  218. }
  219. .padding-10 {
  220. padding: 10rpx !important;
  221. }
  222. .padding-v-10 {
  223. padding-top: 10rpx !important;
  224. padding-bottom: 10rpx !important;
  225. }
  226. .padding-c-10 {
  227. padding-left: 10rpx !important;
  228. padding-right: 10rpx !important;
  229. }
  230. .margin-l-20 {
  231. margin-left: 20rpx !important;
  232. }
  233. .margin-r-20 {
  234. margin-right: 20rpx !important;
  235. }
  236. .margin-t-20 {
  237. margin-top: 20rpx !important;
  238. }
  239. .margin-b-20 {
  240. margin-bottom: 20rpx !important;
  241. }
  242. .margin-20 {
  243. margin: 20rpx !important;
  244. }
  245. .margin-v-20 {
  246. margin-top: 20rpx !important;
  247. margin-bottom: 20rpx !important;
  248. }
  249. .margin-c-20 {
  250. margin-left: 20rpx !important;
  251. margin-right: 20rpx !important;
  252. }
  253. .padding-l-20 {
  254. padding-left: 20rpx !important;
  255. }
  256. .padding-r-20 {
  257. padding-right: 20rpx !important;
  258. }
  259. .padding-t-20 {
  260. padding-top: 20rpx !important;
  261. }
  262. .padding-b-20 {
  263. padding-bottom: 20rpx !important;
  264. }
  265. .padding-20 {
  266. padding: 20rpx !important;
  267. }
  268. .padding-v-20 {
  269. padding-top: 20rpx !important;
  270. padding-bottom: 20rpx !important;
  271. }
  272. .padding-c-20 {
  273. padding-left: 20rpx !important;
  274. padding-right: 20rpx !important;
  275. }
  276. .margin-l-30 {
  277. margin-left: 30rpx !important;
  278. }
  279. .margin-r-30 {
  280. margin-right: 30rpx !important;
  281. }
  282. .margin-t-30 {
  283. margin-top: 30rpx !important;
  284. }
  285. .margin-b-30 {
  286. margin-bottom: 30rpx !important;
  287. }
  288. .margin-30 {
  289. margin: 30rpx !important;
  290. }
  291. .margin-v-30 {
  292. margin-top: 30rpx !important;
  293. margin-bottom: 30rpx !important;
  294. }
  295. .margin-c-30 {
  296. margin-left: 30rpx !important;
  297. margin-right: 30rpx !important;
  298. }
  299. .padding-l-30 {
  300. padding-left: 30rpx !important;
  301. }
  302. .padding-r-30 {
  303. padding-right: 30rpx !important;
  304. }
  305. .padding-t-30 {
  306. padding-top: 30rpx !important;
  307. }
  308. .padding-b-30 {
  309. padding-bottom: 30rpx !important;
  310. }
  311. .padding-30 {
  312. padding: 30rpx !important;
  313. }
  314. .padding-v-30 {
  315. padding-top: 30rpx !important;
  316. padding-bottom: 30rpx !important;
  317. }
  318. .padding-c-30 {
  319. padding-left: 30rpx !important;
  320. padding-right: 30rpx !important;
  321. }
  322. .font-size-sm {
  323. font-size: 24rpx;
  324. }
  325. .font-size-base {
  326. font-size: 28rpx;
  327. }
  328. .font-size-lg {
  329. font-size: 32rpx;
  330. }
  331. .font-color-yellow {
  332. color: #fd5b23;
  333. }
  334. .font-color-gray {
  335. color: #999999;
  336. }
  337. .font-color-red {
  338. color: #dd524d;
  339. }
  340. .border-color-yellow {
  341. border: 1rpx solid #fd5b23;
  342. }
  343. uni-page-wrapper {
  344. background-color: #f8f8f8;
  345. }
  346. page {
  347. background-color: #f8f8f8;
  348. font-family: PingFang SC, STHeitiSC-Light, Helvetica-Light, arial, sans-serif, Droid Sans Fallback;
  349. }