summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-02-18 07:16:07 +0100
committerVolpeon <git@volpeon.ink>2022-02-18 07:16:07 +0100
commit4418444d157578c414a4c9f35ca1d2b08efa095d (patch)
treeb4b73b6cd38a6769adeed71434de72ce89a24b7f /tpl
parentAdded nav buttons to lightbox (diff)
downloadiro-design-4418444d157578c414a4c9f35ca1d2b08efa095d.tar.gz
iro-design-4418444d157578c414a4c9f35ca1d2b08efa095d.tar.bz2
iro-design-4418444d157578c414a4c9f35ca1d2b08efa095d.zip
Improved lightbox nav buttons
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/action-button.pug2
-rw-r--r--tpl/objects/icon.pug3
2 files changed, 3 insertions, 2 deletions
diff --git a/tpl/objects/action-button.pug b/tpl/objects/action-button.pug
index d752fa6..0467bd7 100644
--- a/tpl/objects/action-button.pug
+++ b/tpl/objects/action-button.pug
@@ -17,7 +17,7 @@ mixin action-button
17 17
18 a(class=classes href=href) 18 a(class=classes href=href)
19 if attributes.icon 19 if attributes.icon
20 +icon(attributes.icon) 20 +icon(attributes.icon)(block=!block)
21 = ' ' 21 = ' '
22 if block 22 if block
23 span.o-action-button__label 23 span.o-action-button__label
diff --git a/tpl/objects/icon.pug b/tpl/objects/icon.pug
index 494abf6..1ed6052 100644
--- a/tpl/objects/icon.pug
+++ b/tpl/objects/icon.pug
@@ -2,7 +2,8 @@ mixin icon(id)
2 - 2 -
3 let href = 'icons.svg#' + id 3 let href = 'icons.svg#' + id
4 let classes = { 4 let classes = {
5 'o-icon': true 5 'o-icon': true,
6 'o-icon--block': attributes.block,
6 } 7 }
7 if (attributes.class) { 8 if (attributes.class) {
8 classes[attributes.class] = true; 9 classes[attributes.class] = true;