From 4418444d157578c414a4c9f35ca1d2b08efa095d Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 18 Feb 2022 07:16:07 +0100 Subject: Improved lightbox nav buttons --- tpl/objects/action-button.pug | 2 +- tpl/objects/icon.pug | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'tpl') 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 a(class=classes href=href) if attributes.icon - +icon(attributes.icon) + +icon(attributes.icon)(block=!block) = ' ' if block 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) - let href = 'icons.svg#' + id let classes = { - 'o-icon': true + 'o-icon': true, + 'o-icon--block': attributes.block, } if (attributes.class) { classes[attributes.class] = true; -- cgit v1.2.3-70-g09d2