summaryrefslogtreecommitdiffstats
path: root/src/objects/_backdrop.scss
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-10-18 20:41:38 +0200
committerVolpeon <git@volpeon.ink>2024-10-18 20:41:38 +0200
commitf441e288cb6d33e2338ab8047053022b81c9aa0b (patch)
tree4a52f352852e20534e3c1bc282e94d3093729f37 /src/objects/_backdrop.scss
parentUpdate (diff)
downloadiro-design-f441e288cb6d33e2338ab8047053022b81c9aa0b.tar.gz
iro-design-f441e288cb6d33e2338ab8047053022b81c9aa0b.tar.bz2
iro-design-f441e288cb6d33e2338ab8047053022b81c9aa0b.zip
Update
Diffstat (limited to 'src/objects/_backdrop.scss')
-rw-r--r--src/objects/_backdrop.scss26
1 files changed, 11 insertions, 15 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss
index 9e0cc1e..82246ed 100644
--- a/src/objects/_backdrop.scss
+++ b/src/objects/_backdrop.scss
@@ -1,26 +1,22 @@
1@use 'sass:meta';
1@use 'iro-sass/src/iro-sass' as iro; 2@use 'iro-sass/src/iro-sass' as iro;
2@use '../functions' as fn; 3@use '../props';
3 4
4@include iro.props-namespace('backdrop') { 5@forward 'backdrop.vars';
5 @include iro.props-store(( 6@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 7
15 @include iro.bem-object(iro.props-namespace()) { 8@mixin styles {
9 @include props.materialize(meta.module-variables('vars'));
10
11 @include iro.bem-object('backdrop') {
16 position: fixed; 12 position: fixed;
17 inset: 0; 13 inset: 0;
18 z-index: fn.dim(--z-index); 14 z-index: props.get(vars.$z-index);
19 box-sizing: border-box; 15 box-sizing: border-box;
20 display: flex; 16 display: flex;
21 flex-direction: column; 17 flex-direction: column;
22 overflow: auto; 18 overflow: auto;
23 background-color: fn.color(--bg); 19 background-color: props.get(vars.$bg-color);
24 backdrop-filter: blur(fn.dim(--blur)); 20 backdrop-filter: blur(props.get(vars.$blur));
25 } 21 }
26} 22}