summaryrefslogtreecommitdiffstats
path: root/src/objects/_icon.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/_icon.scss')
-rw-r--r--src/objects/_icon.scss26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/objects/_icon.scss b/src/objects/_icon.scss
index 7cbb7db..23a606d 100644
--- a/src/objects/_icon.scss
+++ b/src/objects/_icon.scss
@@ -1,23 +1,21 @@
1@use 'sass:meta';
1@use 'iro-sass/src/iro-sass' as iro; 2@use 'iro-sass/src/iro-sass' as iro;
2@use '../functions' as fn; 3@use '../props';
3 4
4@include iro.props-namespace('icon') { 5@forward 'icon.vars';
5 @include iro.props-store(( 6@use 'icon.vars' as vars;
6 --dims: (
7 --stroke: 1.5px,
8 --size: calc(1 / 14 * 16em),
9 --valign: -.2em,
10 )
11 ));
12 7
13 @include iro.bem-object(iro.props-namespace()) { 8@mixin styles {
9 @include props.materialize(meta.module-variables('vars'));
10
11 @include iro.bem-object('icon') {
14 display: inline; 12 display: inline;
15 inline-size: fn.dim(--size); 13 inline-size: props.get(vars.$size);
16 block-size: fn.dim(--size); 14 block-size: props.get(vars.$size);
17 vertical-align: fn.dim(--valign); 15 vertical-align: props.get(vars.$valign);
18 stroke-linecap: round; 16 stroke-linecap: round;
19 stroke-linejoin: round; 17 stroke-linejoin: round;
20 stroke-width: fn.dim(--stroke); 18 stroke-width: props.get(vars.$stroke-width);
21 19
22 @include iro.bem-modifier('block') { 20 @include iro.bem-modifier('block') {
23 display: block; 21 display: block;