summaryrefslogtreecommitdiffstats
path: root/src/objects/_status-indicator.scss
blob: e6fd3040d2e05d93377041cf74d7c7bcc46abec2 (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
25
26
27
28
@use 'sass:map';
@use 'sass:meta';
@use 'sass:string';
@use 'iro-sass/src/bem';
@use 'iro-sass/src/props';
@use '../props' as *;

@forward 'status-indicator.vars';
@use 'status-indicator.vars' as vars;

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

    @include bem.object('status-indicator') {
        display:          inline-block;
        inline-size:      props.get(vars.$size);
        block-size:       props.get(vars.$size);
        vertical-align:   middle;
        background-color: props.get(vars.$default);
        border-radius:    10em;

        @each $theme in map.keys(props.get(vars.$themes)) {
            @include bem.is(string.slice($theme, 3)) {
                background-color: props.get(vars.$themes, $theme);
            }
        }
    }
}