From ee3fd3a86c236441e161991a56009bb6ddae4458 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sun, 6 Feb 2022 17:26:16 +0100 Subject: Separate function for global props --- src/objects/_checkbox.scss | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/objects/_checkbox.scss') diff --git a/src/objects/_checkbox.scss b/src/objects/_checkbox.scss index 360fa1d..b56336a 100644 --- a/src/objects/_checkbox.scss +++ b/src/objects/_checkbox.scss @@ -6,38 +6,38 @@ --dims: ( --size: iro.fn-px-to-rem(14px), --label-gap: .6rem, - --border-width: fn.dim(--border-width --medium, $global: true), + --border-width: fn.global-dim(--border-width --medium), --padding-x: .3rem, --padding-y: .3rem, - --margin-right: fn.dim(--spacing --x --md, $global: true), + --margin-right: fn.global-dim(--spacing --x --md), ), ), 'dims'); @include iro.props-store(( --colors: ( - --box-border: fn.color(--fg-hi, $global: true), - --box-bg: fn.color(--bg-hi, $global: true), + --box-border: fn.global-color(--fg-hi), + --box-bg: fn.global-color(--bg-hi), --hover: ( - --label: fn.color(--fg-lo, $global: true), - --box-border: fn.color(--fg, $global: true), + --label: fn.global-color(--fg-lo), + --box-border: fn.global-color(--fg), ), --accent: ( - --box-border: fn.color(--accent --primary, $global: true), + --box-border: fn.global-color(--accent --primary), --hover: ( - --box-border: fn.color(--accent --primary-lo, $global: true), + --box-border: fn.global-color(--accent --primary-lo), ), ), --key-focus: ( - --label: fn.color(--focus --text, $global: true), - --box-border: fn.color(--focus --fill, $global: true), - --shadow: fn.color(--focus --shadow, $global: true), + --label: fn.global-color(--focus --text), + --box-border: fn.global-color(--focus --fill), + --shadow: fn.global-color(--focus --shadow), ), --disabled: ( - --label: fn.color(--fg-hi3, $global: true), - --box-border: fn.color(--obj-lo, $global: true), - --box-bg: fn.color(--bg-hi, $global: true), + --label: fn.global-color(--fg-hi3), + --box-border: fn.global-color(--obj-lo), + --box-bg: fn.global-color(--bg-hi), ) ), ), 'colors'); -- cgit v1.2.3-70-g09d2