summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-05 16:52:52 +0100
committerVolpeon <git@volpeon.ink>2022-02-05 16:52:52 +0100
commite18669958b229235798e31e5ad8608d9fd30c8e8 (patch)
treef6cc743ba608cb2d5f714a8e277444364c8a4ecd /tpl/objects
parentUpdate (diff)
downloadiro-design-e18669958b229235798e31e5ad8608d9fd30c8e8.tar.gz
iro-design-e18669958b229235798e31e5ad8608d9fd30c8e8.tar.bz2
iro-design-e18669958b229235798e31e5ad8608d9fd30c8e8.zip
Added button
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/button.pug16
1 files changed, 16 insertions, 0 deletions
diff --git a/tpl/objects/button.pug b/tpl/objects/button.pug
new file mode 100644
index 0000000..243ff58
--- /dev/null
+++ b/tpl/objects/button.pug
@@ -0,0 +1,16 @@
1mixin a-button
2 -
3 let classes = {
4 'o-button': true,
5 'o-button--block': attributes.block,
6 'o-button--outline': attributes.outline,
7 'is-disabled': attributes.disabled
8 }
9 if (attributes.variant) {
10 classes['o-button--' + attributes.variant] = true
11 }
12
13 let href = attributes.disabled ? null : '#';
14
15 a(class=classes href=href)
16 block