diff options
| author | Volpeon <git@volpeon.ink> | 2022-02-11 17:34:57 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2022-02-11 17:34:57 +0100 |
| commit | 67722515b4882458547bcbe8ac13e60ba3790a56 (patch) | |
| tree | 08ffa0f345e1e0074bfbb01466c7d0b0da0edd0b /src/objects/_backdrop.scss | |
| parent | Update (diff) | |
| download | iro-design-67722515b4882458547bcbe8ac13e60ba3790a56.tar.gz iro-design-67722515b4882458547bcbe8ac13e60ba3790a56.tar.bz2 iro-design-67722515b4882458547bcbe8ac13e60ba3790a56.zip | |
Added backdrop and dialog
Diffstat (limited to 'src/objects/_backdrop.scss')
| -rw-r--r-- | src/objects/_backdrop.scss | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/objects/_backdrop.scss b/src/objects/_backdrop.scss new file mode 100644 index 0000000..bc63a27 --- /dev/null +++ b/src/objects/_backdrop.scss | |||
| @@ -0,0 +1,36 @@ | |||
| 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 | --pad-x: iro.fn-px-to-rem(14px), | ||
| 9 | --pad-y: iro.fn-px-to-rem(60px), | ||
| 10 | ), | ||
| 11 | ), 'dims'); | ||
| 12 | |||
| 13 | @include iro.props-store(( | ||
| 14 | --colors: ( | ||
| 15 | --bg: rgba(#000, .3), | ||
| 16 | ), | ||
| 17 | ), 'colors'); | ||
| 18 | |||
| 19 | @include iro.props-store(( | ||
| 20 | --dims: ( | ||
| 21 | --pad-y: iro.fn-px-to-rem(30px), | ||
| 22 | ) | ||
| 23 | ), 'sm'); | ||
| 24 | |||
| 25 | @include iro.bem-object(iro.props-namespace()) { | ||
| 26 | position: fixed; | ||
| 27 | z-index: fn.dim(--z-index); | ||
| 28 | top: 0; | ||
| 29 | right: 0; | ||
| 30 | bottom: 0; | ||
| 31 | left: 0; | ||
| 32 | box-sizing: border-box; | ||
| 33 | padding: fn.dim(--pad-y) fn.dim(--pad-x); | ||
| 34 | background-color: fn.color(--bg); | ||
| 35 | } | ||
| 36 | } | ||
