summaryrefslogtreecommitdiffstats
path: root/src/_declare-vars.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-16 07:23:39 +0200
committerVolpeon <git@volpeon.ink>2024-10-16 07:23:39 +0200
commitedf687b4c1ac5b773509af77bf05d25e97f30825 (patch)
treead3947ed2d63a9150d117a75dd4746631958b66e /src/_declare-vars.scss
parentColors (diff)
downloadiro-design-edf687b4c1ac5b773509af77bf05d25e97f30825.tar.gz
iro-design-edf687b4c1ac5b773509af77bf05d25e97f30825.tar.bz2
iro-design-edf687b4c1ac5b773509af77bf05d25e97f30825.zip
Put var application into mixin
Diffstat (limited to 'src/_declare-vars.scss')
-rw-r--r--src/_declare-vars.scss16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/_declare-vars.scss b/src/_declare-vars.scss
index 0aa1cca..afe1e15 100644
--- a/src/_declare-vars.scss
+++ b/src/_declare-vars.scss
@@ -271,3 +271,19 @@
271 ), 271 ),
272 ), $tree); 272 ), $tree);
273} 273}
274
275@mixin apply-vars {
276 :root {
277 @include iro.props-assign;
278
279 @each $breakpoint in map.keys(media.$breakpoints) {
280 @include media.media('<=#{$breakpoint}') {
281 @include iro.props-assign($breakpoint);
282 }
283 }
284
285 @media (prefers-color-scheme: dark) {
286 @include iro.props-assign('dark');
287 }
288 }
289}