index.scss 8.5 KB

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