From 08466080a960cd9944d559c481085a23dabffbf0 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 4 Feb 2023 21:30:26 +0100 Subject: Scrollable dialog improvements --- src/objects/_dialog.scss | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/objects/_dialog.scss') diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss index b935f8d..a85fd1f 100644 --- a/src/objects/_dialog.scss +++ b/src/objects/_dialog.scss @@ -58,6 +58,7 @@ 'sidebar footer'; position: relative; box-sizing: border-box; + flex: 0 0 auto; width: 100%; max-width: fn.dim(--width-md); margin: 0 auto; @@ -120,6 +121,15 @@ padding: fn.dim(--body --pad-y) fn.dim(--body --pad-x); } + @include iro.bem-modifier('scrollable') { + flex-shrink: 1; + + @include iro.bem-elem('body') { + overflow: auto; + scrollbar-color: fn.global-color(--obj-lo) transparent; + } + } + @include iro.bem-modifier('flat') { @include iro.bem-elem('header') { border-bottom: 0; -- cgit v1.2.3-70-g09d2