diff options
author | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-17 16:45:00 +0200 |
commit | 50f6acc739f24bfa2ca080d08e90d82f8fa83543 (patch) | |
tree | 404dbe97d34b7e4fc3293c8e6a8c92d9941ac51e /src/objects/_alert.scss | |
parent | Colors (diff) | |
download | iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.gz iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.tar.bz2 iro-design-50f6acc739f24bfa2ca080d08e90d82f8fa83543.zip |
Revamped variable management
Diffstat (limited to 'src/objects/_alert.scss')
-rw-r--r-- | src/objects/_alert.scss | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/src/objects/_alert.scss b/src/objects/_alert.scss deleted file mode 100644 index 067c00c..0000000 --- a/src/objects/_alert.scss +++ /dev/null | |||
@@ -1,43 +0,0 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | $themes: 'accent' 'positive' 'negative' 'warning' !default; | ||
5 | |||
6 | @include iro.props-namespace('alert') { | ||
7 | @include iro.props-store(( | ||
8 | --dims: ( | ||
9 | --border: fn.global-dim(--border --medium), | ||
10 | --pad-i: fn.global-dim(--size --250), | ||
11 | --pad-b: fn.global-dim(--size --200), | ||
12 | --rounding: fn.global-dim(--rounding), | ||
13 | ), | ||
14 | --colors: ( | ||
15 | --bg: fn.global-color(--bg-l2), | ||
16 | --border: fn.global-color(--text-mute-more), | ||
17 | ), | ||
18 | )); | ||
19 | |||
20 | @each $theme in $themes { | ||
21 | @include iro.props-store(( | ||
22 | --colors: ( | ||
23 | --#{$theme}: ( | ||
24 | --border: fn.global-color(--#{$theme} --700), | ||
25 | ), | ||
26 | ), | ||
27 | )); | ||
28 | } | ||
29 | |||
30 | @include iro.bem-object(iro.props-namespace()) { | ||
31 | padding-block: fn.dim(--pad-b); | ||
32 | padding-inline: fn.dim(--pad-i); | ||
33 | border: fn.dim(--border) solid fn.color(--border); | ||
34 | border-radius: fn.dim(--rounding); | ||
35 | background-color: fn.color(--bg); | ||
36 | |||
37 | @each $theme in $themes { | ||
38 | @include iro.bem-modifier($theme) { | ||
39 | border-color: fn.color(--#{$theme} --border); | ||
40 | } | ||
41 | } | ||
42 | } | ||
43 | } | ||