index.scss 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. @import 'common/var';
  2. @import 'mixins/var';
  3. @import 'common/app-common';
  4. view,
  5. image,
  6. text,
  7. navigator,
  8. form {
  9. box-sizing: border-box;
  10. }
  11. :root,
  12. page {
  13. @include set-css-var-value('color-white', $color-white);
  14. @include set-css-var-value('color-black', $color-black);
  15. // Typography
  16. @include set-component-css-var('font-size', $font-size);
  17. }
  18. :root,
  19. page {
  20. height: 100vh;
  21. color-scheme: light;
  22. // --uni-color-#{$type}
  23. // --uni-color-#{$type}-light-{$i}
  24. @each $type in $types {
  25. @include set-css-color-type($colors, $type);
  26. }
  27. // --uni-text-color-#{$type}
  28. @include set-component-css-var('text-color', $text-color);
  29. }
  30. // .uni-primary / .uni-bg-primary
  31. @each $type in $types {
  32. @include set-css-color-class($colors, $type);
  33. }
  34. // .p-10 .m-10
  35. @include set-padding-margin-size-class();
  36. .container {
  37. height: 100%;
  38. box-sizing: border-box;
  39. background-color: #f1f1f6;
  40. color: #000;
  41. font-size: 28rpx;
  42. font-family: Source Han Sans CN;
  43. }