summaryrefslogtreecommitdiffstats
path: root/tpl/views/button.pug
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2024-06-26 14:46:36 +0200
committerVolpeon <git@volpeon.ink>2024-06-26 14:46:36 +0200
commit71af9d144c4dfc27c8824aec4d945897289ed440 (patch)
treed5864d85af0738a472bbb068f6b39fc4ca7eef6d /tpl/views/button.pug
parentPill version for action button (diff)
downloadiro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.gz
iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.tar.bz2
iro-design-71af9d144c4dfc27c8824aec4d945897289ed440.zip
Add static themes to action button
Diffstat (limited to 'tpl/views/button.pug')
-rw-r--r--tpl/views/button.pug15
1 files changed, 14 insertions, 1 deletions
diff --git a/tpl/views/button.pug b/tpl/views/button.pug
index c476d9b..eacf302 100644
--- a/tpl/views/button.pug
+++ b/tpl/views/button.pug
@@ -45,7 +45,7 @@ mixin view-button
45 +a-button(variant=theme outline=true icon='trash') 45 +a-button(variant=theme outline=true icon='trash')
46 +a-button(variant=theme outline=true disabled=true icon='trash') 46 +a-button(variant=theme outline=true disabled=true icon='trash')
47 47
48 each theme in ['static-black', 'static-black-primary', 'static-white', 'static-white-primary'] 48 each theme in ['static-black', 'static-white']
49 - 49 -
50 const bg = theme.startsWith('static-black') ? 500 : 1000; 50 const bg = theme.startsWith('static-black') ? 500 : 1000;
51 51
@@ -61,3 +61,16 @@ mixin view-button
61 +a-button(variant=theme disabled=true icon='trash') 61 +a-button(variant=theme disabled=true icon='trash')
62 +a-button(variant=theme outline=true icon='trash') 62 +a-button(variant=theme outline=true icon='trash')
63 +a-button(variant=theme outline=true disabled=true icon='trash') 63 +a-button(variant=theme outline=true disabled=true icon='trash')
64
65 .c-box(style=`background-color: var(--colors--blue-static--${bg});`)
66 .l-button-group
67 +a-button(variant=theme primary=true)= 'Button'
68 +a-button(variant=theme primary=true disabled=true)= 'Button'
69 +a-button(variant=theme primary=true outline=true)= 'Button'
70 +a-button(variant=theme primary=true outline=true disabled=true)= 'Button'
71 br
72 .l-button-group
73 +a-button(variant=theme primary=true icon='trash')
74 +a-button(variant=theme primary=true disabled=true icon='trash')
75 +a-button(variant=theme primary=true outline=true icon='trash')
76 +a-button(variant=theme primary=true outline=true disabled=true icon='trash')