diff options
Diffstat (limited to 'src/objects/_backdrop.scss')
-rw-r--r-- | src/objects/_backdrop.scss | 43 |
1 files changed, 20 insertions, 23 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss index d0eaf52..346cf5f 100644 --- a/src/objects/_backdrop.scss +++ b/src/objects/_backdrop.scss | |||
@@ -1,26 +1,23 @@ | |||
1 | @use 'iro-sass/src/index' as iro; | 1 | @use 'sass:meta'; |
2 | @use '../functions' as fn; | 2 | @use 'iro-sass/src/bem'; |
3 | @use 'iro-sass/src/props'; | ||
4 | @use '../props' as *; | ||
3 | 5 | ||
4 | @include iro.props-namespace('backdrop') { | 6 | @forward 'backdrop.vars'; |
5 | @include iro.props-store(( | 7 | @use 'backdrop.vars' as vars; |
6 | --dims: ( | ||
7 | --z-index: 10000, | ||
8 | --blur: 2em, | ||
9 | ), | ||
10 | --colors: ( | ||
11 | --bg: rgba(#000, .75), | ||
12 | ), | ||
13 | )); | ||
14 | 8 | ||
15 | @include iro.bem-object(iro.props-namespace()) { | 9 | @mixin styles { |
16 | display: flex; | 10 | @include materialize-at-root(meta.module-variables('vars')); |
17 | position: fixed; | 11 | |
18 | z-index: fn.dim(--z-index); | 12 | @include bem.object('backdrop') { |
19 | inset: 0; | 13 | position: fixed; |
20 | box-sizing: border-box; | 14 | inset: 0; |
21 | flex-direction: column; | 15 | z-index: props.get(vars.$z-index); |
22 | overflow: auto; | 16 | box-sizing: border-box; |
23 | background-color: fn.color(--bg); | 17 | display: flex; |
24 | backdrop-filter: blur(fn.dim(--blur)); | 18 | flex-direction: column; |
25 | } | 19 | overflow: auto; |
20 | background-color: props.get(vars.$bg-color); | ||
21 | backdrop-filter: blur(props.get(vars.$blur)); | ||
22 | } | ||
26 | } | 23 | } |