summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-14 08:43:12 +0100
committerVolpeon <git@volpeon.ink>2022-02-14 08:43:12 +0100
commit426bea2ee0a445708b167e06542000935dfe5cef (patch)
treeeba4c700bc0c3c1f0c9360f7b75fe096149ee2fc /tpl
parentAdded monospace font (diff)
downloadiro-design-426bea2ee0a445708b167e06542000935dfe5cef.tar.gz
iro-design-426bea2ee0a445708b167e06542000935dfe5cef.tar.bz2
iro-design-426bea2ee0a445708b167e06542000935dfe5cef.zip
Simplified buttons
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/action-button.pug1
-rw-r--r--tpl/objects/button.pug3
2 files changed, 1 insertions, 3 deletions
diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug
index a695bee..d752fa6 100644
--- a/tpl/objects/action-button.pug
+++ b/tpl/objects/action-button.pug
@@ -7,7 +7,6 @@ mixin action-button
7 'o-action-button--block': attributes.block, 7 'o-action-button--block': attributes.block,
8 'o-action-button--quiet': attributes.quiet, 8 'o-action-button--quiet': attributes.quiet,
9 'o-action-button--round': attributes.round, 9 'o-action-button--round': attributes.round,
10 'is-disabled': attributes.disabled,
11 'is-selected': attributes.selected 10 'is-selected': attributes.selected
12 } 11 }
13 if (attributes.class) { 12 if (attributes.class) {
diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug
index 3b10ea0..8cae2f1 100644
--- a/tpl/objects/button.pug
+++ b/tpl/objects/button.pug
@@ -3,8 +3,7 @@ mixin a-button
3 let classes = { 3 let classes = {
4 'o-button': true, 4 'o-button': true,
5 'o-button--block': attributes.block, 5 'o-button--block': attributes.block,
6 'o-button--outline': attributes.outline, 6 'o-button--outline': attributes.outline
7 'is-disabled': attributes.disabled
8 } 7 }
9 if (attributes.variant) { 8 if (attributes.variant) {
10 classes['o-button--' + attributes.variant] = true 9 classes['o-button--' + attributes.variant] = true