diff options
author | Volpeon <git@volpeon.ink> | 2024-06-21 23:07:50 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-06-21 23:07:50 +0200 |
commit | 48cb00040763459fc46d4aa108bf72c12f48f422 (patch) | |
tree | 9609470d56bb31d55697ef0c42f1c908804dd3f1 /src/objects/_alert.scss | |
parent | Update (diff) | |
download | iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.tar.gz iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.tar.bz2 iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.zip |
WIP: Refactoring
Diffstat (limited to 'src/objects/_alert.scss')
-rw-r--r-- | src/objects/_alert.scss | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/src/objects/_alert.scss b/src/objects/_alert.scss deleted file mode 100644 index 289ef10..0000000 --- a/src/objects/_alert.scss +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('alert') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --border: 1px, | ||
8 | --pad-x: fn.global-dim(--size --250), | ||
9 | --pad-y: fn.global-dim(--size --200), | ||
10 | --rounding: 4px, | ||
11 | ), | ||
12 | ), 'dims'); | ||
13 | |||
14 | @include iro.props-store(( | ||
15 | --colors: ( | ||
16 | --bg: fn.global-color(--bg-hi2), | ||
17 | --border: fn.global-color(--fg-hi2), | ||
18 | --border-primary: fn.global-color(--accent --primary --solid --bg-hi), | ||
19 | --border-error: fn.global-color(--accent --error --solid --bg-hi), | ||
20 | --border-success: fn.global-color(--accent --success --solid --bg-hi), | ||
21 | --border-warning: fn.global-color(--accent --warning --solid --bg-hi), | ||
22 | ), | ||
23 | ), 'colors'); | ||
24 | |||
25 | @include iro.props-store(( | ||
26 | --dims: ( | ||
27 | --pad-x: fn.global-dim(--size --200), | ||
28 | --pad-y: fn.global-dim(--size --150), | ||
29 | ), | ||
30 | ), 'sm'); | ||
31 | |||
32 | @include iro.bem-object(iro.props-namespace()) { | ||
33 | padding: fn.dim(--pad-y) fn.dim(--pad-x); | ||
34 | border: fn.dim(--border) solid fn.color(--border); | ||
35 | border-radius: fn.dim(--rounding); | ||
36 | background-color: fn.color(--bg); | ||
37 | color: fn.global-color(--fg); | ||
38 | |||
39 | @include iro.bem-modifier('primary') { | ||
40 | border-color: fn.color(--border-primary); | ||
41 | } | ||
42 | |||
43 | @include iro.bem-modifier('error') { | ||
44 | border-color: fn.color(--border-error); | ||
45 | } | ||
46 | |||
47 | @include iro.bem-modifier('success') { | ||
48 | border-color: fn.color(--border-success); | ||
49 | } | ||
50 | |||
51 | @include iro.bem-modifier('warning') { | ||
52 | border-color: fn.color(--border-warning); | ||
53 | } | ||
54 | } | ||
55 | } | ||