From 0f5d93474dc8e5b96b3d4184ce5e3f979934f79b Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 4 Feb 2023 18:24:19 +0100 Subject: Update dialog --- src/objects/_dialog.scss | 1 + tpl/objects/dialog.pug | 4 ++-- 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 @@ } @include iro.bem-elem('title') { + margin-top: 0; padding-right: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x)); padding-left: calc(fn.dim(--body --pad-x) - fn.dim(--header --pad-x)); } 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) if slots['sidebar-header'] - slots['sidebar-header']() else - +div-heading('xl')(class='o-dialog__title u-mt-0 l-media__block l-media__block--main')= attributes.sidebarTitle + +div-heading('xl')(class='o-dialog__title l-media__block l-media__block--main')= attributes.sidebarTitle if slots.sidebar .o-dialog__sidebar.l-overflow @@ -51,7 +51,7 @@ mixin dialog(title) - slots.header() else if title - +div-heading('xl')(class='o-dialog__title u-mt-0 l-media__block l-media__block--main')= title + +div-heading('xl')(class='o-dialog__title l-media__block l-media__block--main')= title +action-button(round=true quiet=true icon='x' class='o-dialog__close-btn l-media__block') section(class=bodyClass) -- cgit v1.2.3-70-g09d2