summaryrefslogtreecommitdiffstats
path: root/src/objects/_icon.scss
blob: 4a14d441c7896e86fdb7046d7b29e6d61350df71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@use 'sass:meta';
@use 'iro-sass/src/iro-sass' as iro;
@use 'iro-sass/src/props';

@forward 'icon.vars';
@use 'icon.vars' as vars;

@mixin styles {
    @include props.materialize(meta.module-variables('vars'));

    @include iro.bem-object('icon') {
        display:         inline;
        inline-size:     props.get(vars.$size);
        block-size:      props.get(vars.$size);
        vertical-align:  props.get(vars.$valign);
        stroke-linecap:  round;
        stroke-linejoin: round;
        stroke-width:    props.get(vars.$stroke-width);

        @include iro.bem-modifier('block') {
            display: block;
        }
    }
}