main.wxss 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. @charset "UTF-8";
  2. /**
  3. * 这里是uni-app内置的常用样式变量
  4. *
  5. * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
  6. * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
  7. *
  8. */
  9. /* uni.scss */
  10. /* 页面左右间距 */
  11. /* 文字尺寸 */
  12. /* 文字尺寸 */
  13. /*文字颜色*/
  14. /* 边框颜色 */
  15. /* 图片加载中颜色 */
  16. /* 行为相关颜色 */
  17. /* 颜色变量 */
  18. /* 项目主色 */
  19. /* 文字基本颜色 */
  20. .red {
  21. color: #f60808;
  22. }
  23. .green {
  24. color: #15ab54;
  25. }
  26. .yellow {
  27. color: #f0ad4e;
  28. }
  29. .blue {
  30. color: #1f96f6;
  31. }
  32. .blank {
  33. color: #000;
  34. }
  35. .white {
  36. color: #fff;
  37. }
  38. .promain {
  39. color: #025b58;
  40. }
  41. .prosecond {
  42. color: #ed742f;
  43. }
  44. .textmain {
  45. color: #333;
  46. }
  47. .textgrey {
  48. color: #999;
  49. }
  50. .fuColor {
  51. color: #c6cadb;
  52. }
  53. .fontssm {
  54. font-size: 22rpx;
  55. }
  56. .fontsm {
  57. font-size: 24rpx;
  58. }
  59. .fontmid {
  60. font-size: 28rpx;
  61. }
  62. .fontbase {
  63. font-size: 30rpx;
  64. }
  65. /* 背景颜色 */
  66. /* 边框颜色 */
  67. /* input 样式 */
  68. .input-placeholder {
  69. color: #999999;
  70. }
  71. .navigator-hover {
  72. background: transparent !important;
  73. opacity: 1;
  74. }
  75. .uni-page-head-transparent .uni-page-head-btn {
  76. background: transparent !important;
  77. }
  78. uni-toast {
  79. z-index: 99999;
  80. }
  81. button {
  82. background: transparent;
  83. }
  84. button::after {
  85. border: 0;
  86. }
  87. .u-button {
  88. width: 690rpx;
  89. background: #ed742e;
  90. margin-top: 100rpx;
  91. }
  92. .u-button .u-button__text {
  93. color: #fff;
  94. }
  95. .u-button--info {
  96. width: 690rpx;
  97. background: #ed742e;
  98. margin-top: 100rpx;
  99. color: #fff;
  100. }
  101. .defaultBtn {
  102. margin: 0;
  103. padding: 0;
  104. }
  105. /* 骨架屏替代方案 */
  106. .Skeleton {
  107. background: #f3f3f3;
  108. padding: 20rpx 0;
  109. border-radius: 8rpx;
  110. }
  111. /*边框*/
  112. .b-b:after,
  113. .b-t:after {
  114. position: absolute;
  115. z-index: 3;
  116. left: 0;
  117. right: 0;
  118. height: 0;
  119. content: '';
  120. -webkit-transform: scaleY(0.5);
  121. transform: scaleY(0.5);
  122. border-bottom: 1px solid #ededed;
  123. }
  124. .b-b:after {
  125. bottom: 0;
  126. }
  127. .b-t:after {
  128. top: 0;
  129. }
  130. /* input 样式 */
  131. .input-placeholder {
  132. color: #c6cadb;
  133. }
  134. .placeholder {
  135. color: #c6cadb;
  136. }
  137. .selIcon {
  138. width: 28rpx;
  139. height: 28rpx;
  140. margin: 0 12rpx;
  141. }
  142. .clickbtn {
  143. width: 690rpx;
  144. height: 90rpx;
  145. line-height: 90rpx;
  146. background: #ed742e;
  147. font-size: 32rpx;
  148. text-align: center;
  149. margin: 40rpx auto 20rpx;
  150. letter-spacing: 2rpx;
  151. color: #fff;
  152. border-radius: 45rpx;
  153. }
  154. .bold {
  155. font-weight: 600;
  156. }
  157. .center {
  158. width: 100%;
  159. text-align: center;
  160. }
  161. .bb {
  162. border-bottom: 1px solid #eeeded;
  163. }
  164. .selAttr {
  165. font-size: 28rpx;
  166. height: 52rpx;
  167. padding: 0 10rpx;
  168. line-height: 52rpx;
  169. background: #f9f9f9;
  170. border-radius: 6rpx;
  171. color: #999;
  172. margin-bottom: 15rpx;
  173. }
  174. .del {
  175. font-size: 24rpx;
  176. color: #999;
  177. text-decoration: line-through;
  178. }
  179. .scrollx {
  180. display: -webkit-box;
  181. overflow-x: auto;
  182. }
  183. .scrollx::-webkit-scrollbar {
  184. display: none;
  185. }
  186. .flex1 {
  187. flex: 1;
  188. }
  189. /* 一行 */
  190. .oneelli {
  191. overflow: hidden;
  192. white-space: nowrap;
  193. /* 文字超出宽度则显示ellipsis省略号 */
  194. text-overflow: ellipsis;
  195. }
  196. /* 两行,超出...表示 */
  197. .elli {
  198. text-overflow: -o-ellipsis-lastline;
  199. overflow: hidden;
  200. text-overflow: ellipsis;
  201. display: -webkit-box;
  202. -webkit-line-clamp: 2;
  203. line-clamp: 2;
  204. -webkit-box-orient: vertical;
  205. }
  206. .nodata,
  207. .moredata {
  208. width: 100%;
  209. padding: 30rpx 0;
  210. text-align: center;
  211. color: #999;
  212. align-items: center;
  213. justify-content: center;
  214. }
  215. .fixBox {
  216. position: fixed;
  217. bottom: 0;
  218. left: 0;
  219. height: 100rpx;
  220. width: 100%;
  221. background-color: #fff;
  222. }
  223. .status {
  224. height: 0;
  225. }
  226. /* 常用样式 */
  227. .dfsb {
  228. display: flex;
  229. flex-direction: row;
  230. justify-content: space-between;
  231. align-items: center;
  232. }
  233. .dfsa {
  234. display: flex;
  235. flex-direction: row;
  236. justify-content: space-around;
  237. align-items: center;
  238. }
  239. .dffs {
  240. display: flex;
  241. flex-direction: row;
  242. justify-content: flex-start;
  243. align-items: center;
  244. }
  245. .dffd {
  246. display: flex;
  247. flex-direction: column;
  248. justify-content: space-between;
  249. align-items: flex-start;
  250. }
  251. /*每个页面公共css */
  252. page {
  253. background: #f8f9fe;
  254. }
  255. .priceDan {
  256. font-size: 38rpx;
  257. font-family: DINPro-Bold, DINPro;
  258. font-weight: bold;
  259. color: #f16630;
  260. line-height: 33rpx;
  261. display: flex;
  262. flex-direction: row;
  263. }
  264. .priceDan::before {
  265. content: '¥';
  266. font-size: 26rpx;
  267. }
  268. .mt20 {
  269. margin-top: 20rpx;
  270. }
  271. .mt30 {
  272. margin-top: 30rpx;
  273. }
  274. .pd30 {
  275. padding: 30rpx;
  276. }
  277. .custom-style {
  278. background-color: #0bb291;
  279. color: #fff;
  280. width: 690rpx;
  281. margin-top: 40rpx;
  282. }
  283. view,
  284. scroll-view,
  285. swiper,
  286. swiper-item,
  287. cover-view,
  288. cover-image,
  289. icon,
  290. text,
  291. rich-text,
  292. progress,
  293. button,
  294. checkbox,
  295. form,
  296. input,
  297. label,
  298. radio,
  299. slider,
  300. switch,
  301. textarea,
  302. navigator,
  303. audio,
  304. camera,
  305. image,
  306. video {
  307. color: #333;
  308. font-family: PingFangSC-Regular, PingFang SC;
  309. box-sizing: border-box;
  310. font-size: 32rpx;
  311. }