diff options
| author | Volpeon <git@volpeon.ink> | 2024-06-27 09:56:02 +0200 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2024-06-27 09:56:02 +0200 |
| commit | d23a2cf25ccc33f49d73ee3da2f775c0d4fa0784 (patch) | |
| tree | 19e9a649bcf6ca6559ed7ad46b0fd2c23e664521 /src/objects/_backdrop.scss | |
| parent | Update (diff) | |
| download | iro-design-d23a2cf25ccc33f49d73ee3da2f775c0d4fa0784.tar.gz iro-design-d23a2cf25ccc33f49d73ee3da2f775c0d4fa0784.tar.bz2 iro-design-d23a2cf25ccc33f49d73ee3da2f775c0d4fa0784.zip | |
Update
Diffstat (limited to 'src/objects/_backdrop.scss')
| -rw-r--r-- | src/objects/_backdrop.scss | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss new file mode 100644 index 0000000..d0eaf52 --- /dev/null +++ b/src/objects/_backdrop.scss | |||
| @@ -0,0 +1,26 @@ | |||
| 1 | @use 'iro-sass/src/index' as iro; | ||
| 2 | @use '../functions' as fn; | ||
| 3 | |||
| 4 | @include iro.props-namespace('backdrop') { | ||
| 5 | @include iro.props-store(( | ||
| 6 | --dims: ( | ||
| 7 | --z-index: 10000, | ||
| 8 | --blur: 2em, | ||
| 9 | ), | ||
| 10 | --colors: ( | ||
| 11 | --bg: rgba(#000, .75), | ||
| 12 | ), | ||
| 13 | )); | ||
| 14 | |||
| 15 | @include iro.bem-object(iro.props-namespace()) { | ||
| 16 | display: flex; | ||
| 17 | position: fixed; | ||
| 18 | z-index: fn.dim(--z-index); | ||
| 19 | inset: 0; | ||
| 20 | box-sizing: border-box; | ||
| 21 | flex-direction: column; | ||
| 22 | overflow: auto; | ||
| 23 | background-color: fn.color(--bg); | ||
| 24 | backdrop-filter: blur(fn.dim(--blur)); | ||
| 25 | } | ||
| 26 | } | ||
