diff options
| author | Volpeon <git@volpeon.ink> | 2024-10-25 19:37:52 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-10-25 19:37:52 +0200 |
| commit | e0815613914e16d73a30efe709a74b994cc31963 (patch) | |
| tree | 9876cb3b6937173fd4dd62958d5c9d1ba6feea87 /src/_props.scss | |
| parent | New palette generation (diff) | |
| download | iro-design-e0815613914e16d73a30efe709a74b994cc31963.tar.gz iro-design-e0815613914e16d73a30efe709a74b994cc31963.tar.bz2 iro-design-e0815613914e16d73a30efe709a74b994cc31963.zip | |
More efficient theming
Diffstat (limited to 'src/_props.scss')
| -rw-r--r-- | src/_props.scss | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/_props.scss b/src/_props.scss index c18bf76..8b17af0 100644 --- a/src/_props.scss +++ b/src/_props.scss | |||
| @@ -29,16 +29,10 @@ | |||
| 29 | @each $theme-name in map.keys(config.$themes) { | 29 | @each $theme-name in map.keys(config.$themes) { |
| 30 | @if $theme-name != config.$theme-default { | 30 | @if $theme-name != config.$theme-default { |
| 31 | @include bem.theme(string.slice($theme-name, 3)) { | 31 | @include bem.theme(string.slice($theme-name, 3)) { |
| 32 | @include props.materialize($ref, null); | 32 | @include props.materialize($ref, 'color'); |
| 33 | 33 | ||
| 34 | @each $breakpoint in map.keys(media.$breakpoints) { | ||
| 35 | @include media.media('<=#{$breakpoint}') { | ||
| 36 | @include props.materialize($ref, $breakpoint); | ||
| 37 | } | ||
| 38 | } | ||
| 39 | |||
| 40 | @media (prefers-color-scheme: dark) { | 34 | @media (prefers-color-scheme: dark) { |
| 41 | @include props.materialize($ref, 'dark'); | 35 | @include props.materialize($ref, 'color' 'dark'); |
| 42 | } | 36 | } |
| 43 | } | 37 | } |
| 44 | } | 38 | } |
