app.scss 5.2 KB

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