summaryrefslogtreecommitdiffstats
path: root/src/objects/_alert.scss
blob: 825f7cef36201aeb23bb4deb69fb1f0d3523b6c4 (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
@use 'sass:map';
@use 'sass:meta';
@use 'iro-sass/src/bem';
@use 'iro-sass/src/props';
@use '../props' as *;

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

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

    @include bem.object('alert') {
        padding-block:    props.get(vars.$pad-b);
        padding-inline:   props.get(vars.$pad-i);
        background-color: props.get(vars.$bg-color);
        border:           props.get(vars.$border-width) solid props.get(vars.$border-color);
        border-radius:    props.get(vars.$rounding);

        @each $mod, $theme in vars.$themes-config {
            @include bem.modifier($mod) {
                border-color: props.get(vars.$themes, $theme, --border-color);
            }
        }
    }
}