summaryrefslogtreecommitdiffstats
path: root/src/objects/_backdrop.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/_backdrop.scss')
-rw-r--r--src/objects/_backdrop.scss31
1 files changed, 14 insertions, 17 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss
index d0eaf52..9cc9e2e 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'));
11
12 @include bem.object('backdrop') {
17 position: fixed; 13 position: fixed;
18 z-index: fn.dim(--z-index);
19 inset: 0; 14 inset: 0;
15 z-index: props.get(vars.$z-index);
20 box-sizing: border-box; 16 box-sizing: border-box;
17 display: flex;
21 flex-direction: column; 18 flex-direction: column;
22 overflow: auto; 19 overflow: auto;
23 background-color: fn.color(--bg); 20 background-color: props.get(vars.$bg-color);
24 backdrop-filter: blur(fn.dim(--blur)); 21 backdrop-filter: blur(props.get(vars.$blur));
25 } 22 }
26} 23}