From c8b7e1475ed10168080bff0c1c7274fa28997ec7 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 27 Oct 2023 13:58:17 +0200 Subject: Add primary static indicator --- src/objects/_status-indicator.scss | 3 ++- tpl/views/status-indicator.pug | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/objects/_status-indicator.scss b/src/objects/_status-indicator.scss index 0849d82..eb3990b 100644 --- a/src/objects/_status-indicator.scss +++ b/src/objects/_status-indicator.scss @@ -11,6 +11,7 @@ @include iro.props-store(( --colors: ( --default: fn.global-color(--obj-lo), + --primary: fn.global-color(--fg), --green: fn.global-color(--green --solid --bg-hi), --yellow: fn.global-color(--yellow --solid --bg-hi), --red: fn.global-color(--red --solid --bg-hi), @@ -24,7 +25,7 @@ border-radius: 10em; background-color: fn.color(--default); - @each $color in 'green' 'yellow' 'red' { + @each $color in 'primary' 'green' 'yellow' 'red' { @include iro.bem-is($color) { background-color: fn.color(--#{$color}); } diff --git a/tpl/views/status-indicator.pug b/tpl/views/status-indicator.pug index 6d7ad30..553e454 100644 --- a/tpl/views/status-indicator.pug +++ b/tpl/views/status-indicator.pug @@ -3,6 +3,8 @@ mixin view-status-indicator .c-box +status-indicator = ' ' + +status-indicator('primary') + = ' ' +status-indicator('green') = ' ' +status-indicator('yellow') -- cgit v1.2.3-70-g09d2