index.scss 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400
  1. :root {
  2. --v-primary-base: #00897B;
  3. --v-error-base: #fe574a;
  4. --v-primary-lighten1: #26A69A;
  5. --v-primary-lighten2: #4DB6AC;
  6. --v-primary-lighten3: #80CBC4;
  7. --v-primary-lighten4: #B2DFDB;
  8. --color-222: #222;
  9. --color-333: #333;
  10. --color-666: #666;
  11. --color-777: #777;
  12. --color-999: #999;
  13. --color-ccc: #ccc;
  14. --color-f3: #f3f3f3;
  15. --color-f2f4f742: #f2f4f742;
  16. --color-f8: #f8f8f8;
  17. --color-f2f4f7: #f2f4f7;
  18. --color-d5e6e8: #d5e6e8;
  19. --zIndex-breadcrumbs: 999;
  20. }
  21. .mt-5 { margin-top: 30rpx; }
  22. .mt-10 { margin-top: 60rpx; }
  23. .cursor-pointer { cursor: pointer; }
  24. .font-weight-bold { font-weight: bold; }
  25. .text-center { text-align: center; }
  26. .d-flex { display: flex; }
  27. .flex-column { flex-direction: column; }
  28. .align-center { align-items: center; }
  29. .justify-center { justify-content: center; }
  30. .justify-space-between { justify-content: space-between; }
  31. .justify-space-around { justify-content: space-around; }
  32. .justify-end { justify-content: flex-end; }
  33. .color-222 { color: #222; }
  34. .color-333 { color: #333; }
  35. .color-666 { color: #666; }
  36. .color-777 { color: #777; }
  37. .color-999 { color: #999; }
  38. .color-ccc { color: #ccc; }
  39. .color-f3f3f3 { color: #f3f3f3; }
  40. .color-f2f4f742 { color: #f2f4f742; }
  41. .color-f8f8f8 { color: #f8f8f8; }
  42. .color-f2f4f7 { color: #f2f4f7; }
  43. .color-d5e6e8 { color: #d5e6e8; }
  44. .color-error { color: #fe574a; }
  45. .color-primary { color: #00897B; }
  46. .color-warning { color: #fb8c00; }
  47. .font-size-12 { font-size: 24rpx; }
  48. .font-size-13 { font-size: 26rpx; }
  49. .font-size-14 { font-size: 28rpx; }
  50. .font-size-15 { font-size: 30rpx; }
  51. .font-size-16 { font-size: 32rpx; }
  52. .font-size-17 { font-size: 34rpx; }
  53. .font-size-18 { font-size: 36rpx; }
  54. .font-size-19 { font-size: 38rpx; }
  55. .font-size-20 { font-size: 40rpx; }
  56. .defaultLink {
  57. color:#008978;
  58. cursor:pointer;
  59. // text-decoration: underline;
  60. }
  61. // 高亮
  62. .default-active {
  63. color: var(--v-primary-base) !important;
  64. }
  65. .border-bottom-dashed {
  66. border-bottom: 1px dashed var(--color-ccc);
  67. }
  68. .white-bgc {
  69. background-color: #fff;
  70. }
  71. .ellipsis {
  72. white-space: nowrap;
  73. text-overflow: ellipsis;
  74. overflow: hidden;
  75. }
  76. .head-box {
  77. .head-title {
  78. min-width: 160rpx;
  79. font-size: 36rpx;
  80. font-weight: bold;
  81. color: #333333;
  82. line-height: 36rpx;
  83. }
  84. .head-title-active {
  85. width: 160rpx;
  86. font-size: 32rpx;
  87. font-weight: 600;
  88. color: #999;
  89. line-height: 36rpx;
  90. }
  91. .head-title-animation {
  92. animation-name: title-animation;
  93. animation-duration: 0.1s;
  94. animation-timing-function: ease-out;
  95. animation-fill-mode: forwards;
  96. }
  97. .head-title-line {
  98. position: relative;
  99. &::before {
  100. content: '';
  101. width: 1rpx;
  102. height: 34rpx;
  103. background-color: #e4e7ed;
  104. position: absolute;
  105. left: -30rpx;
  106. top: 50%;
  107. transform: translateY(-50%);
  108. }
  109. }
  110. .head-subtitle {
  111. font-size: 26rpx;
  112. font-weight: 400;
  113. color: #afb6c0;
  114. text-align: left;
  115. display: flex;
  116. }
  117. }
  118. /* ==================
  119. margin padding: 内外边距
  120. ==================== */
  121. @for $i from 0 through 100 {
  122. // 只要双数和能被5除尽的数
  123. @if $i % 2==0 or $i % 5==0 {
  124. // 得出:u-margin-30或者u-m-30
  125. .ss-margin-#{$i},
  126. .ss-m-#{$i} {
  127. margin: $i + rpx;
  128. }
  129. .ss-m-x-#{$i} {
  130. margin-left: $i + rpx;
  131. margin-right: $i + rpx;
  132. }
  133. .ss-m-y-#{$i} {
  134. margin-top: $i + rpx;
  135. margin-bottom: $i + rpx;
  136. }
  137. // 得出:u-padding-30或者u-p-30
  138. .ss-padding-#{$i},
  139. .ss-p-#{$i} {
  140. padding: $i + rpx;
  141. }
  142. .ss-p-x-#{$i} {
  143. padding-left: $i + rpx;
  144. padding-right: $i + rpx;
  145. }
  146. .ss-p-y-#{$i} {
  147. padding-top: $i + rpx;
  148. padding-bottom: $i + rpx;
  149. }
  150. @each $short, $long in l left, t top, r right, b bottom {
  151. // 缩写版,结果如: u-m-l-30
  152. // 定义外边距
  153. .ss-m-#{$short}-#{$i} {
  154. margin-#{$long}: $i + rpx;
  155. }
  156. // 定义内边距
  157. .ss-p-#{$short}-#{$i} {
  158. padding-#{$long}: $i + rpx;
  159. }
  160. // 完整版,结果如:u-margin-left-30
  161. // 定义外边距
  162. .ss-margin-#{$long}-#{$i} {
  163. margin-#{$long}: $i + rpx;
  164. }
  165. // 定义内边距
  166. .ss-padding-#{$long}-#{$i} {
  167. padding-#{$long}: $i + rpx;
  168. }
  169. }
  170. }
  171. }
  172. /* ==================
  173. radius
  174. ==================== */
  175. @for $i from 0 through 100 {
  176. // 只要双数和能被5除尽的数
  177. @if $i % 2==0 or $i % 5==0 {
  178. .ss-radius-#{$i},
  179. .ss-r-#{$i} {
  180. border-radius: $i + rpx;
  181. }
  182. .ss-r-t-#{$i} {
  183. border-top-left-radius: $i + rpx;
  184. border-top-right-radius: $i + rpx;
  185. }
  186. .ss-r-b-#{$i} {
  187. border-bottom-left-radius: $i + rpx;
  188. border-bottom-right-radius: $i + rpx;
  189. }
  190. @each $short, $long in tl 'top-left', tr 'top-right', bl 'bottom-right', br 'bottom-right' {
  191. // 定义外边距
  192. .ss-r-#{$short}-#{$i} {
  193. border-#{$long}-radius: $i + rpx;
  194. }
  195. // 定义内边距
  196. .ss-radius-#{$long}-#{$i} {
  197. border-#{$long}-radius: $i + rpx;
  198. }
  199. }
  200. }
  201. }
  202. /* ==================
  203. flex布局
  204. ==================== */
  205. .ss-flex {
  206. display: flex;
  207. flex-direction: row;
  208. align-items: center;
  209. }
  210. .ss-flex-1 {
  211. flex: 1;
  212. }
  213. .ss-flex-col {
  214. display: flex;
  215. flex-direction: column;
  216. }
  217. .ss-flex-wrap {
  218. flex-wrap: wrap;
  219. }
  220. .ss-flex-nowrap {
  221. flex-wrap: nowrap;
  222. }
  223. .ss-col-center {
  224. align-items: center;
  225. }
  226. .ss-col-top {
  227. align-items: flex-start;
  228. }
  229. .ss-col-bottom {
  230. align-items: flex-end;
  231. }
  232. .ss-col-stretch {
  233. align-items: stretch;
  234. }
  235. .ss-row-center {
  236. justify-content: center;
  237. }
  238. .ss-row-left {
  239. justify-content: flex-start;
  240. }
  241. .ss-row-right {
  242. justify-content: flex-end;
  243. }
  244. .ss-row-between {
  245. justify-content: space-between;
  246. }
  247. .ss-row-around {
  248. justify-content: space-around;
  249. }
  250. .ss-self-start {
  251. align-self: flex-start;
  252. }
  253. .ss-self-end {
  254. align-self: flex-end;
  255. }
  256. .ss-self-center {
  257. align-self: center;
  258. }
  259. .ss-h-100 {
  260. height: 100%;
  261. }
  262. .ss-w-100 {
  263. width: 100%;
  264. }
  265. /* ==================
  266. 按钮
  267. ==================== */
  268. .ss-reset-button {
  269. padding: 0;
  270. margin: 0;
  271. font-size: inherit;
  272. background-color: transparent;
  273. color: inherit;
  274. position: relative;
  275. border: 0rpx;
  276. /* #ifndef APP-NVUE */
  277. display: flex;
  278. /* #endif */
  279. align-items: center;
  280. justify-content: center;
  281. box-sizing: border-box;
  282. text-align: center;
  283. text-decoration: none;
  284. white-space: nowrap;
  285. vertical-align: baseline;
  286. transform: translate(0, 0);
  287. }
  288. .ss-reset-button.button-hover {
  289. transform: translate(1px, 1px);
  290. background: none;
  291. }
  292. .ss-reset-button::after {
  293. border: none;
  294. }
  295. .login-btn-start {
  296. width: 158rpx;
  297. height: 56rpx;
  298. line-height: normal;
  299. background: #00897B;
  300. border-radius: 28rpx;
  301. font-size: 26rpx;
  302. font-weight: 500;
  303. color: #fff;
  304. }
  305. //页面底部单个按钮
  306. .recomm-button {
  307. color: #fff;
  308. width: 85%;
  309. height: 44px;
  310. line-height: 44px;
  311. margin: 20px auto;
  312. background-color: #00897B !important;
  313. // border-radius: 25px;
  314. }
  315. //页面底部两个按钮
  316. .second-button {
  317. width: 50vw;
  318. height: 44px;
  319. margin: 15px;
  320. background-color: #00897B !important;
  321. // border-radius: 25px;
  322. }
  323. .second-button:first-child {
  324. margin: 15px 0 15px 15px;
  325. }
  326. //底部按钮公用定位
  327. .bottom-sticky{
  328. display: flex;
  329. width:100vw;
  330. position: fixed;
  331. bottom:0;
  332. left: 0;
  333. background-image:linear-gradient(rgba(255,255,255,0.8),white);
  334. }
  335. // 主要页面大按钮用这个
  336. .send-button {
  337. width: 90vw;
  338. height:44px;
  339. line-height: 44px;
  340. margin:20px auto;
  341. background-color: #00897B !important;
  342. // border-radius: 25px;
  343. color: #fff;
  344. }
  345. //禁用按钮
  346. .disabled-button {
  347. width: 85%;
  348. height: 44px;
  349. line-height: 44px;
  350. margin: 20px auto;
  351. background-color: grey !important;
  352. // border-radius: 25px;
  353. }