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/_radio.scss | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/objects/_radio.scss') diff --git a/src/objects/_radio.scss b/src/objects/_radio.scss index fd821d3..178b58c 100644 --- a/src/objects/_radio.scss +++ b/src/objects/_radio.scss @@ -6,38 +6,38 @@ --dims: ( --diameter: iro.fn-px-to-rem(15px), --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: ( - --circle-border: fn.color(--fg-hi, $global: true), - --circle-bg: fn.color(--bg-hi, $global: true), + --circle-border: fn.global-color(--fg-hi), + --circle-bg: fn.global-color(--bg-hi), --hover: ( - --label: fn.color(--fg-lo, $global: true), - --circle-border: fn.color(--fg, $global: true), + --label: fn.global-color(--fg-lo), + --circle-border: fn.global-color(--fg), ), --accent: ( - --circle-border: fn.color(--accent --primary, $global: true), + --circle-border: fn.global-color(--accent --primary), --hover: ( - --circle-border: fn.color(--accent --primary-lo, $global: true), + --circle-border: fn.global-color(--accent --primary-lo), ), ), --key-focus: ( - --label: fn.color(--focus --text, $global: true), - --circle-border: fn.color(--focus --fill, $global: true), - --shadow: fn.color(--focus --shadow, $global: true), + --label: fn.global-color(--focus --text), + --circle-border: fn.global-color(--focus --fill), + --shadow: fn.global-color(--focus --shadow), ), --disabled: ( - --label: fn.color(--fg-hi3, $global: true), - --circle-border: fn.color(--obj-lo, $global: true), - --circle-bg: fn.color(--bg-hi, $global: true), + --label: fn.global-color(--fg-hi3), + --circle-border: fn.global-color(--obj-lo), + --circle-bg: fn.global-color(--bg-hi), ) ), ), 'colors'); -- cgit v1.2.3-70-g09d2