diff options
| author | Volpeon <git@volpeon.ink> | 2026-02-28 17:15:59 +0100 |
|---|---|---|
| committer | Volpeon <git@volpeon.ink> | 2026-02-28 17:15:59 +0100 |
| commit | 42a9720adf75f3bc9e2c0d96f416dcc6706a81c7 (patch) | |
| tree | e43d893af9eb13c1e300bb3997126e6cf5a779ac /src/objects/_dialog.scss | |
| parent | Update (diff) | |
| download | iro-design-42a9720adf75f3bc9e2c0d96f416dcc6706a81c7.tar.gz iro-design-42a9720adf75f3bc9e2c0d96f416dcc6706a81c7.tar.bz2 iro-design-42a9720adf75f3bc9e2c0d96f416dcc6706a81c7.zip | |
Update dialog
Diffstat (limited to 'src/objects/_dialog.scss')
| -rw-r--r-- | src/objects/_dialog.scss | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss index 479bcc6..5a323bb 100644 --- a/src/objects/_dialog.scss +++ b/src/objects/_dialog.scss | |||
| @@ -7,11 +7,13 @@ | |||
| 7 | @use 'dialog.vars' as vars; | 7 | @use 'dialog.vars' as vars; |
| 8 | 8 | ||
| 9 | @use 'backdrop.vars' as backdrop; | 9 | @use 'backdrop.vars' as backdrop; |
| 10 | @use 'divider.vars' as divider; | ||
| 10 | 11 | ||
| 11 | @mixin styles { | 12 | @mixin styles { |
| 12 | @include materialize-at-root(meta.module-variables('vars')); | 13 | @include materialize-at-root(meta.module-variables('vars')); |
| 13 | 14 | ||
| 14 | @include bem.object('dialog') { | 15 | @include bem.object('dialog') { |
| 16 | display: none; | ||
| 15 | box-sizing: border-box; | 17 | box-sizing: border-box; |
| 16 | inline-size: 100%; | 18 | inline-size: 100%; |
| 17 | max-inline-size: none; | 19 | max-inline-size: none; |
| @@ -28,10 +30,40 @@ | |||
| 28 | backdrop-filter: blur(props.get(backdrop.$blur)); | 30 | backdrop-filter: blur(props.get(backdrop.$blur)); |
| 29 | } | 31 | } |
| 30 | 32 | ||
| 33 | &[open], | ||
| 34 | &:popover-open { | ||
| 35 | display: flex; | ||
| 36 | flex-direction: column; | ||
| 37 | } | ||
| 38 | |||
| 31 | @include bem.elem('content') { | 39 | @include bem.elem('content') { |
| 32 | pointer-events: auto; | 40 | pointer-events: auto; |
| 33 | border-radius: props.get(vars.$rounding); | 41 | border-radius: props.get(vars.$rounding); |
| 34 | background-color: props.get(vars.$bg-color); | 42 | background-color: props.get(vars.$bg-color); |
| 35 | } | 43 | } |
| 44 | |||
| 45 | @include bem.elem('header') { | ||
| 46 | display: flex; | ||
| 47 | align-items: center; | ||
| 48 | padding: props.get(vars.$body--pad-i) props.get(vars.$body--pad-i) 0; | ||
| 49 | } | ||
| 50 | |||
| 51 | @include bem.elem('divider') { | ||
| 52 | margin-inline: props.get(vars.$body--pad-i); | ||
| 53 | |||
| 54 | @include bem.next-elem('body') { | ||
| 55 | padding-block-start: calc(props.get(vars.$body--pad-b) - props.get(divider.$margin-b)); | ||
| 56 | } | ||
| 57 | } | ||
| 58 | |||
| 59 | @include bem.elem('body') { | ||
| 60 | padding: props.get(vars.$body--pad-b) props.get(vars.$body--pad-i); | ||
| 61 | |||
| 62 | &::before { | ||
| 63 | display: block; | ||
| 64 | margin-block: -100em 100em; | ||
| 65 | content: ''; | ||
| 66 | } | ||
| 67 | } | ||
| 36 | } | 68 | } |
| 37 | } | 69 | } |
