From b3d15e0a176fe28dca866f43e68432dea79eb889 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 12 Nov 2024 15:48:28 +0100 Subject: Consistent button paddings --- src/objects/_action-button.vars.scss | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) (limited to 'src/objects/_action-button.vars.scss') diff --git a/src/objects/_action-button.vars.scss b/src/objects/_action-button.vars.scss index 9afd5d7..421ccb2 100644 --- a/src/objects/_action-button.vars.scss +++ b/src/objects/_action-button.vars.scss @@ -5,35 +5,39 @@ $line-height: props.def(--o-action-button--line-height, 1.4) !default; $pad-i: props.def(--o-action-button--pad-i, props.get(core.$size--150)) !default; +$pad-i-label: props.def(--o-button--pad-i-label, props.get(core.$size--50)) !default; $pad-i-pill: props.def(--o-action-button--pad-i-pill, props.get(core.$size--200)) !default; $pad-b: props.def(--o-action-button--pad-b, props.get(core.$size--85)) !default; $border-width: props.def(--o-action-button--border-width, props.get(core.$border-width--thin)) !default; $rounding: props.def(--o-action-button--rounding, props.get(core.$rounding)) !default; $font-size: props.def(--o-action-button--font-size, props.get(core.$font-size--100)) !default; -$pad-i--sm: props.def(--o-action-button--sm--pad-i, props.get(core.$size--100)) !default; -$pad-i-pill--sm: props.def(--o-action-button--sm--pad-i-pill, props.get(core.$size--150)) !default; -$pad-b--sm: props.def(--o-action-button--sm--pad-b, props.get(core.$size--40)) !default; -$font-size--sm: props.def(--o-action-button--sm--font-size, props.get(core.$font-size--75)) !default; +$pad-i--sm: props.def(--o-action-button--sm--pad-i, props.get(core.$size--100)) !default; +$pad-i-label--sm: props.def(--o-button--sm--pad-i-label, props.get(core.$size--25)) !default; +$pad-i-pill--sm: props.def(--o-action-button--sm--pad-i-pill, props.get(core.$size--150)) !default; +$pad-b--sm: props.def(--o-action-button--sm--pad-b, props.get(core.$size--40)) !default; +$font-size--sm: props.def(--o-action-button--sm--font-size, props.get(core.$font-size--75)) !default; -$pad-i--lg: props.def(--o-action-button--lg--pad-i, props.get(core.$size--175)) !default; -$pad-i-pill--lg: props.def(--o-action-button--lg--pad-i-pill, props.get(core.$size--225)) !default; -$pad-b--lg: props.def(--o-action-button--lg--pad-b, props.get(core.$size--115)) !default; -$font-size--lg: props.def(--o-action-button--lg--font-size, props.get(core.$font-size--150)) !default; +$pad-i--lg: props.def(--o-action-button--lg--pad-i, props.get(core.$size--175)) !default; +$pad-i-label--lg: props.def(--o-button--lg--pad-i-label, props.get(core.$size--100)) !default; +$pad-i-pill--lg: props.def(--o-action-button--lg--pad-i-pill, props.get(core.$size--250)) !default; +$pad-b--lg: props.def(--o-action-button--lg--pad-b, props.get(core.$size--115)) !default; +$font-size--lg: props.def(--o-action-button--lg--font-size, props.get(core.$font-size--150)) !default; -$pad-i--xl: props.def(--o-action-button--xl--pad-i, props.get(core.$size--225)) !default; -$pad-i-pill--xl: props.def(--o-action-button--xl--pad-i-pill, props.get(core.$size--300)) !default; -$pad-b--xl: props.def(--o-action-button--xl--pad-b, props.get(core.$size--150)) !default; -$font-size--xl: props.def(--o-action-button--xl--font-size, props.get(core.$font-size--200)) !default; +$pad-i--xl: props.def(--o-action-button--xl--pad-i, props.get(core.$size--225)) !default; +$pad-i-label--xl: props.def(--o-button--xl--pad-i-label, props.get(core.$size--150)) !default; +$pad-i-pill--xl: props.def(--o-action-button--xl--pad-i-pill, props.get(core.$size--300)) !default; +$pad-b--xl: props.def(--o-action-button--xl--pad-b, props.get(core.$size--150)) !default; +$font-size--xl: props.def(--o-action-button--xl--font-size, props.get(core.$font-size--200)) !default; $key-focus--border-width: props.def(--o-action-button--key-focus--border-width, props.get(core.$key-focus--border-width)) !default; $key-focus--border-offset: props.def(--o-action-button--key-focus--border-offset, props.get(core.$key-focus--border-offset)) !default; $key-focus--outline-width: props.def(--o-action-button--key-focus--outline-width, props.get(core.$key-focus--outline-width)) !default; $fixed-sizes: ( - 'sm' $pad-i--sm $pad-i-pill--sm $pad-b--sm $font-size--sm, - 'lg' $pad-i--lg $pad-i-pill--lg $pad-b--lg $font-size--lg, - 'xl' $pad-i--xl $pad-i-pill--xl $pad-b--xl $font-size--xl, + 'sm' $pad-i--sm $pad-i-label--sm $pad-i-pill--sm $pad-b--sm $font-size--sm, + 'lg' $pad-i--lg $pad-i-label--lg $pad-i-pill--lg $pad-b--lg $font-size--lg, + 'xl' $pad-i--xl $pad-i-label--xl $pad-i-pill--xl $pad-b--xl $font-size--xl, ) !default; $themes: props.def(--o-action-button, (), 'color'); -- cgit v1.2.3-70-g09d2