app.scss 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. @import '~@/uni.scss';
  2. page,
  3. view,
  4. scroll-view,
  5. text,
  6. image,
  7. textarea,
  8. button,
  9. input {
  10. box-sizing: border-box;
  11. }
  12. page {
  13. background-color: #F1F8FA;
  14. height: 100%;
  15. }
  16. .container {
  17. width: 100%;
  18. height: 100%;
  19. }
  20. button {
  21. margin: 0;
  22. &[type='primary'] {
  23. background-color: $color-primary;
  24. color: #ffffff;
  25. font-size: $font-size-base;
  26. &[disabled] {
  27. background-color: #D1D78C;
  28. }
  29. &[plain] {
  30. color: $color-primary;
  31. border: 1rpx solid $color-primary;
  32. &.button-hover {
  33. color: rgba($color: $color-primary, $alpha: 0.5);
  34. border: 1rpx solid rgba($color: $color-primary, $alpha: 0.5);
  35. }
  36. }
  37. &.button-hover {
  38. background-color: #d5da91;
  39. }
  40. &::after {
  41. border: 0;
  42. }
  43. }
  44. &[type='default'] {
  45. &[plain] {
  46. color: $text-color-assist;
  47. border: 1rpx solid $text-color-assist;
  48. &.button-hover {
  49. color: rgba($color: $text-color-assist, $alpha: 0.5);
  50. border: 1rpx solid rgba($color: $text-color-assist, $alpha: 0.5);
  51. }
  52. }
  53. }
  54. }
  55. uni-toast {
  56. z-index: 10002;
  57. }
  58. .uni-mask {
  59. z-index: 10000;
  60. }
  61. uni-modal, uni-modal .uni-modal {
  62. z-index: 10001;
  63. }
  64. .uni-picker-container .uni-picker {
  65. z-index: 10002;
  66. }
  67. .bg-base {
  68. background-color: $bg-color;
  69. }
  70. .bg-white {
  71. background-color: #ffffff;
  72. }
  73. .bg-transparent {
  74. background-color: transparent !important;
  75. }
  76. .bg-primary {
  77. background-color: $color-primary;
  78. }
  79. .bg-warning {
  80. background-color: $color-warning;
  81. }
  82. .d-flex {
  83. display: flex;
  84. }
  85. .d-none {
  86. display: none !important;
  87. }
  88. .invisible {
  89. visibility: hidden !important;
  90. }
  91. .d-inline {
  92. display: inline !important;
  93. }
  94. .d-inline-block {
  95. display: inline-block !important;
  96. }
  97. .d-block {
  98. display: block !important;
  99. }
  100. .flex-column {
  101. -ms-flex-direction: column !important;
  102. flex-direction: column !important;
  103. }
  104. .justify-content-start {
  105. justify-content: flex-start;
  106. }
  107. .justify-content-end {
  108. justify-content: flex-end;
  109. }
  110. .justify-content-between {
  111. justify-content: space-between;
  112. }
  113. .just-content-center {
  114. justify-content: center;
  115. }
  116. .justify-content-evenly {
  117. justify-content: space-evenly !important;
  118. }
  119. .just-content-around {
  120. justify-content: space-around;
  121. }
  122. .align-items-start {
  123. align-items: flex-start;
  124. }
  125. .align-items-end {
  126. align-items: flex-end;
  127. }
  128. .align-items-center {
  129. align-items: center;
  130. }
  131. .align-items-between {
  132. align-items: space-between;
  133. }
  134. .align-items-around {
  135. align-items: space-around;
  136. }
  137. .align-items-stretch {
  138. align-items: stretch;
  139. }
  140. .align-items-baseline {
  141. -ms-flex-align: baseline !important;
  142. align-items: baseline !important;
  143. }
  144. .flex-fill {
  145. -ms-flex: 1 1 auto !important;
  146. flex: 1 1 auto !important;
  147. }
  148. .flex-wrap {
  149. -ms-flex-wrap: wrap !important;
  150. flex-wrap: wrap !important;
  151. }
  152. .flex-nowrap {
  153. -ms-flex-wrap: nowrap !important;
  154. flex-wrap: nowrap !important;
  155. }
  156. .flex-shrink-0 {
  157. -ms-flex-negative: 0 !important;
  158. flex-shrink: 0 !important;
  159. }
  160. .font-size-base {
  161. font-size: 28rpx;
  162. }
  163. .font-size-sm {
  164. font-size: 24rpx;
  165. }
  166. .font-size-medium {
  167. font-size: 26rpx;
  168. }
  169. .font-size-lg {
  170. font-size: 32rpx;
  171. }
  172. .font-size-extra-lg {
  173. font-size: 40rpx;
  174. }
  175. .text-color-base {
  176. color: $text-color-base;
  177. }
  178. .text-color-assist {
  179. color: $text-color-assist;
  180. }
  181. .text-color-primary {
  182. color: $color-primary;
  183. }
  184. .text-color-danger {
  185. color: $color-error;
  186. }
  187. .text-color-white {
  188. color: #ffffff;
  189. }
  190. .text-color-warning {
  191. color: $color-warning;
  192. }
  193. .text-truncate {
  194. overflow: hidden;
  195. text-overflow: ellipsis;
  196. white-space: nowrap;
  197. }
  198. .font-weight-bold {
  199. font-weight: 700 !important;
  200. }
  201. .font-weight-light {
  202. font-weight: 300 !important;
  203. }
  204. .font-weight-lighter {
  205. font-weight: lighter !important;
  206. }
  207. .font-weight-normal {
  208. font-weight: 400 !important;
  209. }
  210. .overflow-auto {
  211. overflow: auto !important;
  212. }
  213. .overflow-hidden {
  214. overflow: hidden !important;
  215. }
  216. .position-relative {
  217. position: relative !important;
  218. }
  219. .position-absolute {
  220. position: absolute !important;
  221. }
  222. .position-fixed {
  223. position: fixed !important;
  224. }
  225. .fixed-top {
  226. position: fixed;
  227. top: 0;
  228. right: 0;
  229. left: 0;
  230. z-index: 1030;
  231. }
  232. .fixed-bottom {
  233. position: fixed;
  234. right: 0;
  235. bottom: 0;
  236. left: 0;
  237. z-index: 1030;
  238. }
  239. .line-height-100 {
  240. line-height: 100%;
  241. }
  242. .line-height-2 {
  243. line-height: 2rem !important;
  244. }
  245. .line-height-50 {
  246. line-height: 50rem !important;
  247. }
  248. .w-25 {
  249. width: 25% !important;
  250. }
  251. .w-50 {
  252. width: 50% !important;
  253. }
  254. .w-75 {
  255. width: 75% !important;
  256. }
  257. .w-80 {
  258. width: 80% !important;
  259. }
  260. .w-90 {
  261. width: 90% !important;
  262. }
  263. .w-100 {
  264. width: 100% !important;
  265. }
  266. .h-100 {
  267. height: 100% !important;
  268. }
  269. .h-auto {
  270. height: auto !important;
  271. }
  272. .text-left {
  273. text-align: left !important;
  274. }
  275. .text-right {
  276. text-align: right !important;
  277. }
  278. .text-center {
  279. text-align: center !important;
  280. }
  281. .border-box {
  282. box-sizing: border-box;
  283. }
  284. .rounded-circle {
  285. border-radius: 50% !important;
  286. }
  287. .rounded-pill {
  288. border-radius: 50rem !important;
  289. }
  290. .border-radius-base {
  291. border-radius: $border-radius-base;
  292. }
  293. .pre-line {
  294. white-space: pre-line;
  295. }
  296. .align-top {
  297. vertical-align: top !important;
  298. }
  299. .align-middle {
  300. vertical-align: middle !important;
  301. }
  302. .align-bottom {
  303. vertical-align: bottom !important;
  304. }
  305. .align-text-bottom {
  306. vertical-align: text-bottom !important;
  307. }
  308. .align-text-top {
  309. vertical-align: text-top !important;
  310. }
  311. .w-60 {
  312. width: 60%;
  313. }
  314. .w-40 {
  315. width: 40%;
  316. }
  317. .mb-10 {
  318. margin-bottom: 10rpx;
  319. }
  320. .mb-20 {
  321. margin-bottom: 20rpx;
  322. }
  323. .mb-30 {
  324. margin-bottom: 30rpx;
  325. }
  326. .mb-40 {
  327. margin-bottom: 40rpx;
  328. }
  329. .mb-50 {
  330. margin-bottom: 50rpx;
  331. }
  332. .mt-30 {
  333. margin-top: 30rpx;
  334. }
  335. .mt-40 {
  336. margin-top: 40rpx;
  337. }
  338. .ml-10 {
  339. margin-left: 10rpx;
  340. }
  341. .ml-20 {
  342. margin-left: 20rpx;
  343. }
  344. .ml-30 {
  345. margin-left: 30rpx;
  346. }
  347. .mr-10 {
  348. margin-right: 10rpx;
  349. }
  350. .mr-20 {
  351. margin-right: 20rpx;
  352. }
  353. .mr-30 {
  354. margin-right: 30rpx;
  355. }
  356. .mr-40 {
  357. margin-right: 40rpx;
  358. }
  359. .pl-20 {
  360. padding-left: 20rpx;
  361. }
  362. .pl-30 {
  363. padding-left: 30rpx;
  364. }
  365. .pr-20 {
  366. padding-right: 20rpx;
  367. }
  368. .p-30 {
  369. padding: 30rpx;
  370. }
  371. .p-10 {
  372. padding: 10rpx;
  373. }