From 27222cb91c390a42055a7123b5a9409c928e8b26 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 19 Oct 2024 18:23:02 +0200 Subject: Fixes --- tpl/views/action-button.pug | 4 ++-- tpl/views/badge.pug | 2 +- tpl/views/button.pug | 4 ++-- tpl/views/divider.pug | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) (limited to 'tpl') diff --git a/tpl/views/action-button.pug b/tpl/views/action-button.pug index 6fa0ce9..8fbf9ea 100644 --- a/tpl/views/action-button.pug +++ b/tpl/views/action-button.pug @@ -90,7 +90,7 @@ mixin view-action-button - const bg = theme.startsWith('static-black') ? 500 : 1000; - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) +action-button(theme=theme)= 'Idle' = ' ' +action-button(theme=theme selected=true)= 'Selected' @@ -99,7 +99,7 @@ mixin view-action-button = ' ' +action-button(theme=theme selected=true disabled=true)= 'Selected + disabled' - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) +action-button(theme=theme quiet=true)= 'Idle' = ' ' +action-button(theme=theme quiet=true selected=true)= 'Selected' diff --git a/tpl/views/badge.pug b/tpl/views/badge.pug index 90fdabe..cc1f346 100644 --- a/tpl/views/badge.pug +++ b/tpl/views/badge.pug @@ -59,7 +59,7 @@ mixin view-badge - const bg = theme.startsWith('static-black') ? 500 : 1000; - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) +badge(theme)(href='#')= 'new' = ' ' +badge(theme)(quiet=true href='#')= 'new' diff --git a/tpl/views/button.pug b/tpl/views/button.pug index 04414a4..edd8ef6 100644 --- a/tpl/views/button.pug +++ b/tpl/views/button.pug @@ -58,7 +58,7 @@ mixin view-button - const bg = theme.startsWith('static-black') ? 500 : 1000; - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) .l-button-group +a-button(variant=theme)= 'Button' +a-button(variant=theme disabled=true)= 'Button' @@ -71,7 +71,7 @@ mixin view-button +a-button(variant=theme outline=true icon='trash') +a-button(variant=theme outline=true disabled=true icon='trash') - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) .l-button-group +a-button(variant=theme primary=true)= 'Button' +a-button(variant=theme primary=true disabled=true)= 'Button' diff --git a/tpl/views/divider.pug b/tpl/views/divider.pug index b5b6d70..e2f2e01 100644 --- a/tpl/views/divider.pug +++ b/tpl/views/divider.pug @@ -36,7 +36,7 @@ mixin view-divider - const bg = theme.startsWith('static-black') ? 500 : 1000; - .c-box(style=`background-color: var(--static-colors--blue--${bg});`) + .c-box(style=`background-color: var(--colors--blue-static--${bg});`) +divider('strong')(color=theme)= 'Strong' +divider('medium')(color=theme)= 'Medium' +divider('faint')(color=theme)= 'Faint' -- cgit v1.2.3-70-g09d2