summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-02-04 18:24:19 +0100
committerVolpeon <git@volpeon.ink>2023-02-04 18:24:19 +0100
commit0f5d93474dc8e5b96b3d4184ce5e3f979934f79b (patch)
treec3e8dc09ba47650c594b1a86fa6625016b4be687
parentImproved overflow button (diff)
downloadiro-design-0f5d93474dc8e5b96b3d4184ce5e3f979934f79b.tar.gz
iro-design-0f5d93474dc8e5b96b3d4184ce5e3f979934f79b.tar.bz2
iro-design-0f5d93474dc8e5b96b3d4184ce5e3f979934f79b.zip
Update dialog
-rw-r--r--src/objects/_dialog.scss1
-rw-r--r--tpl/objects/dialog.pug4
2 files changed, 3 insertions, 2 deletions
diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss
index 6737a1b..b935f8d 100644
--- a/src/objects/_dialog.scss
+++ b/src/objects/_dialog.scss
@@ -93,6 +93,7 @@
93 } 93 }
94 94
95 @include iro.bem-elem('title') { 95 @include iro.bem-elem('title') {
96 margin-top: 0;
96 padding-right: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x)); 97 padding-right: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x));
97 padding-left: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x)); 98 padding-left: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x));
98 } 99 }
diff --git a/tpl/objects/dialog.pug b/tpl/objects/dialog.pug
index ece0d67..2a2530f 100644
--- a/tpl/objects/dialog.pug
+++ b/tpl/objects/dialog.pug
@@ -40,7 +40,7 @@ mixin dialog(title)
40 if slots['sidebar-header'] 40 if slots['sidebar-header']
41 - slots['sidebar-header']() 41 - slots['sidebar-header']()
42 else 42 else
43 +div-heading('xl')(class='o-dialog__title u-mt-0 l-media__block l-media__block--main')= attributes.sidebarTitle 43 +div-heading('xl')(class='o-dialog__title l-media__block l-media__block--main')= attributes.sidebarTitle
44 44
45 if slots.sidebar 45 if slots.sidebar
46 .o-dialog__sidebar.l-overflow 46 .o-dialog__sidebar.l-overflow
@@ -51,7 +51,7 @@ mixin dialog(title)
51 - slots.header() 51 - slots.header()
52 else 52 else
53 if title 53 if title
54 +div-heading('xl')(class='o-dialog__title u-mt-0 l-media__block l-media__block--main')= title 54 +div-heading('xl')(class='o-dialog__title l-media__block l-media__block--main')= title
55 +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn l-media__block') 55 +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn l-media__block')
56 56
57 section(class=bodyClass) 57 section(class=bodyClass)