diff options
Diffstat (limited to 'tpl/objects/action-button.pug')
-rw-r--r-- | tpl/objects/action-button.pug | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug deleted file mode 100644 index e9b6fe3..0000000 --- a/tpl/objects/action-button.pug +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | include icon.pug | ||
2 | |||
3 | mixin action-button | ||
4 | - | ||
5 | let classes = { | ||
6 | 'o-action-button': true, | ||
7 | 'u-d-block': attributes.block, | ||
8 | 'o-action-button--quiet': attributes.quiet, | ||
9 | 'o-action-button--pill': attributes.pill, | ||
10 | 'o-action-button--icon': !!attributes.icon && !block, | ||
11 | 'is-selected': attributes.selected | ||
12 | } | ||
13 | if (attributes.theme) { | ||
14 | classes['o-action-button--' + attributes.theme] = true | ||
15 | } | ||
16 | if (attributes.size) { | ||
17 | classes['o-action-button--' + attributes.size] = true | ||
18 | } | ||
19 | if (attributes.class) { | ||
20 | classes[attributes.class] = true; | ||
21 | } | ||
22 | |||
23 | let href = attributes.disabled ? null : '#'; | ||
24 | |||
25 | a(class=classes href=href) | ||
26 | if attributes.icon | ||
27 | +icon(attributes.icon) | ||
28 | = ' ' | ||
29 | if block | ||
30 | span.o-action-button__label | ||
31 | block | ||
32 | if attributes.postIcon | ||
33 | = ' ' | ||
34 | +icon(attributes.postIcon) | ||