From 5c878876d3bdd2c7cd094871fa0644f3310bcec8 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Wed, 23 Jul 2025 08:34:23 +0200 Subject: Commit merge of button and badge into action-button (and rename it to button) --- src/layouts/_button-group.scss | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/layouts') diff --git a/src/layouts/_button-group.scss b/src/layouts/_button-group.scss index b0a3c8e..6c874e1 100644 --- a/src/layouts/_button-group.scss +++ b/src/layouts/_button-group.scss @@ -5,7 +5,7 @@ @forward 'button-group.vars'; @use 'button-group.vars' as vars; -@use '../objects/action-button.vars' as action-button; +@use '../objects/button.vars' as button; @mixin styles { @include materialize-at-root(meta.module-variables('vars')); @@ -22,26 +22,26 @@ } @include bem.modifier('align-block') { - margin-inline: calc(-1 * props.get(action-button.$pad-i) - props.get(action-button.$border-width)); + margin-inline: calc(-1 * props.get(button.$pad-i) - props.get(button.$border-width)); @include bem.modifier('pill') { - margin-inline: calc(-1 * props.get(action-button.$pad-i-pill) - props.get(action-button.$border-width)); + margin-inline: calc(-1 * props.get(button.$pad-i-pill) - props.get(button.$border-width)); } @include bem.modifier('icon') { - margin-inline: calc(-1 * props.get(action-button.$pad-b) - props.get(action-button.$border-width) - .5em * (props.get(action-button.$line-height) - 1)); + margin-inline: calc(-1 * props.get(button.$pad-b) - props.get(button.$border-width) - .5em * (props.get(button.$line-height) - 1)); } - @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in action-button.$fixed-sizes { + @each $mod, $pad-i, $pad-i-label, $pad-i-pill, $pad-b, $font-size in button.$fixed-sizes { @include bem.modifier('action-#{$mod}') { - margin-inline: calc(-1 * props.get($pad-i) - props.get(action-button.$border-width)); + margin-inline: calc(-1 * props.get($pad-i) - props.get(button.$border-width)); @include bem.modifier('pill') { - margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(action-button.$border-width)); + margin-inline: calc(-1 * props.get($pad-i-pill) - props.get(button.$border-width)); } @include bem.modifier('icon') { - margin-inline: calc(-1 * props.get($pad-b) - props.get(action-button.$border-width) - .5em * (props.get(action-button.$line-height) - 1)); + margin-inline: calc(-1 * props.get($pad-b) - props.get(button.$border-width) - .5em * (props.get(button.$line-height) - 1)); } } } -- cgit v1.2.3-70-g09d2