租房小程序前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
1.2 KiB

3 months ago
  1. $text: #ffffff;
  2. $text-active: #1678ff;
  3. $text-gray: #72709e;
  4. $page: #000223;
  5. $area: #1b1844;
  6. $area-l: #272b55;
  7. $select: #272b55;
  8. $dialog: #272b55;
  9. $mask: rgba(0, 0, 0, 0.8);
  10. $image: rgba(0, 0, 0, 0.8);
  11. $image-lg: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.8));
  12. $gold-lg: linear-gradient(to right, #e9cfc9, #f6e2dd);
  13. // mixin/color.scss
  14. $border: #27243d;
  15. $active: #1678ff;
  16. $active-lg: linear-gradient(to right, #1678ff, #abbaf0);
  17. $cancel: #201c54;
  18. $confirm: #1678ff;
  19. // mixin/color.scss
  20. $names-c: text, text-active, text-gray;
  21. $colors-c: $text, $text-active, $text-gray;
  22. $names-bgc: page, area, area-l, select, dialog, mask, image;
  23. $colors-bgc: $page, $area, $area-l, $select, $dialog, $mask, $image;
  24. $names-lg: image-lg, gold-lg;
  25. $colors-lg: $image-lg, $gold-lg;
  26. .se {
  27. &-c {
  28. @each $name in $names-c {
  29. $i: index($names-c, $name);
  30. &-#{$name} {
  31. color: nth($colors-c, $i);
  32. }
  33. }
  34. }
  35. &-bgc {
  36. @each $name in $names-bgc {
  37. $i: index($names-bgc, $name);
  38. &-#{$name} {
  39. background-color: nth($colors-bgc, $i);
  40. }
  41. }
  42. @each $name in $names-lg {
  43. $i: index($names-lg, $name);
  44. &-#{$name} {
  45. background-image: nth($colors-lg, $i);
  46. }
  47. }
  48. }
  49. }