租房小程序前端代码
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.

63 lines
1.5 KiB

3 months ago
  1. $text: #333333;
  2. $text-sub: #666666;
  3. $text-third: #999999;
  4. $text-active: #1678ff;
  5. $text-red: #ea4e3d;
  6. $text-green: #1EC77A;
  7. $text-orange: #FF9F39;
  8. $page: #f5f5f5;
  9. $area: #ffffff;
  10. $area-l: #f5f5f5;
  11. $select: #f5f5f5;
  12. $dialog: #ffffff;
  13. $green: #1EC77A;
  14. $orange: #FF9F39;
  15. $mask: rgba(0, 0, 0, 0.3);
  16. $image: rgba(0, 0, 0, 0.3);
  17. $image-lg: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
  18. $gold-lg: linear-gradient(to right, #e9cfc9, #f6e2dd);
  19. // mixin/color.scss
  20. $border: #dddddd;
  21. $active: #1678ff;
  22. $active-lg: linear-gradient(to right, #1678ff, #abbaf0);
  23. $cancel: #e0e0e0;
  24. $confirm: #1678ff;
  25. // mixin/color.scss
  26. $names-c: text, text-sub, text-active, text-red, text-third, text-green, text-orange;
  27. $colors-c: $text, $text-sub, $text-active, $text-red, $text-third, $text-green, $text-orange;
  28. $names-bgc: page, area, area-l, select, dialog, mask, image, active, green, orange;
  29. $colors-bgc: $page, $area, $area-l, $select, $dialog, $mask, $image, $active, $green, $orange;
  30. $names-lg: image-lg, gold-lg;
  31. $colors-lg: $image-lg, $gold-lg;
  32. .se {
  33. &-c {
  34. @each $name in $names-c {
  35. $i: index($names-c, $name);
  36. &-#{$name} {
  37. color: nth($colors-c, $i);
  38. }
  39. }
  40. }
  41. &-bgc {
  42. @each $name in $names-bgc {
  43. $i: index($names-bgc, $name);
  44. &-#{$name} {
  45. background-color: nth($colors-bgc, $i);
  46. }
  47. }
  48. @each $name in $names-lg {
  49. $i: index($names-lg, $name);
  50. &-#{$name} {
  51. background-image: nth($colors-lg, $i);
  52. }
  53. }
  54. }
  55. }