From 8860e649fc6df9af11d784b6bcbed2a2ab4f77ac Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Feb 2022 10:19:20 +0100 Subject: Better dialog padding --- src/objects/_dialog.scss | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/objects/_dialog.scss b/src/objects/_dialog.scss index bf0defb..b0b435f 100644 --- a/src/objects/_dialog.scss +++ b/src/objects/_dialog.scss @@ -4,8 +4,8 @@ @include iro.props-namespace('dialog') { @include iro.props-store(( --dims: ( - --pad-x: iro.fn-px-to-rem(40px), - --pad-y: iro.fn-px-to-rem(40px), + --pad-x: fn.global-dim(--size --400), + --pad-y: fn.global-dim(--size --400), --width-sm: iro.fn-px-to-rem(500px), --width-md: iro.fn-px-to-rem(800px), --width-lg: iro.fn-px-to-rem(1100px), @@ -14,6 +14,13 @@ ), ), 'dims'); + @include iro.props-store(( + --dims: ( + --pad-x: fn.global-dim(--size --300), + --pad-y: fn.global-dim(--size --300), + ), + ), 'md'); + @include iro.props-store(( --colors: ( --shadow: 0 .2em .5em rgba(#000, .2), -- cgit v1.2.3-70-g09d2