From 953843dea745ef5e064acd589742a49cb7a7ea54 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 17:30:31 +0100 Subject: Cleanup --- src/objects/_checkbox.scss | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/objects/_checkbox.scss') diff --git a/src/objects/_checkbox.scss b/src/objects/_checkbox.scss index b56336a..11836e1 100644 --- a/src/objects/_checkbox.scss +++ b/src/objects/_checkbox.scss @@ -46,8 +46,8 @@ display: inline-flex; position: relative; align-items: flex-start; - margin-right: calc(-1 * #{fn.dim(--padding-x)} + #{fn.dim(--margin-right)}); - margin-left: calc(-1 * #{fn.dim(--padding-x)}); + margin-right: calc(-1 * fn.dim(--padding-x) + fn.dim(--margin-right)); + margin-left: calc(-1 * fn.dim(--padding-x)); padding: fn.dim(--padding-y) fn.dim(--padding-x); // sass-lint:disable-line shorthand-values @include iro.bem-elem('box') { @@ -56,7 +56,7 @@ flex: 0 0 auto; width: fn.dim(--size); height: fn.dim(--size); - margin-top: calc(.5 * (#{$line-height * 1em} - #{fn.dim(--size)})); + margin-top: calc(.5 * ($line-height * 1em - fn.dim(--size))); border-radius: fn.dim(--border-width); background-color: fn.color(--box-border); @@ -79,8 +79,8 @@ &::after { z-index: 3; - top: calc(.5 * #{fn.dim(--size)} - 1px); - left: calc(1.5 * #{fn.dim(--border-width)}); + top: calc(.5 * fn.dim(--size) - 1px); + left: calc(1.5 * fn.dim(--border-width)); box-sizing: border-box; width: calc(fn.dim(--size) - 3 * fn.dim(--border-width)); height: 0; -- cgit v1.2.3-70-g09d2