diff options
author | Volpeon <git@volpeon.ink> | 2024-10-18 18:08:24 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-10-18 18:08:24 +0200 |
commit | 365c56edcc36b5b92902bac01ce44b43d01e8685 (patch) | |
tree | 644611792591a76e605068d0c9e230fad6a633e7 /src/objects/_icon.scss | |
parent | Revamped variable management (diff) | |
download | iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.gz iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.tar.bz2 iro-design-365c56edcc36b5b92902bac01ce44b43d01e8685.zip |
Refactoring
Diffstat (limited to 'src/objects/_icon.scss')
-rw-r--r-- | src/objects/_icon.scss | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss new file mode 100644 index 0000000..7cbb7db --- /dev/null +++ b/src/objects/_icon.scss | |||
@@ -0,0 +1,26 @@ | |||
1 | @use 'iro-sass/src/iro-sass' as iro; | ||
2 | @use '../functions' as fn; | ||
3 | |||
4 | @include iro.props-namespace('icon') { | ||
5 | @include iro.props-store(( | ||
6 | --dims: ( | ||
7 | --stroke: 1.5px, | ||
8 | --size: calc(1 / 14 * 16em), | ||
9 | --valign: -.2em, | ||
10 | ) | ||
11 | )); | ||
12 | |||
13 | @include iro.bem-object(iro.props-namespace()) { | ||
14 | display: inline; | ||
15 | inline-size: fn.dim(--size); | ||
16 | block-size: fn.dim(--size); | ||
17 | vertical-align: fn.dim(--valign); | ||
18 | stroke-linecap: round; | ||
19 | stroke-linejoin: round; | ||
20 | stroke-width: fn.dim(--stroke); | ||
21 | |||
22 | @include iro.bem-modifier('block') { | ||
23 | display: block; | ||
24 | } | ||
25 | } | ||
26 | } | ||