From 44d19cf5faf41b2cd576fc353ee16cb643584fb2 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 28 Jan 2023 16:05:37 +0100 Subject: Emoji --- tpl/objects/emoji.pug | 3 +++ tpl/views/emoji.pug | 7 +++++++ 2 files changed, 10 insertions(+) (limited to 'tpl') diff --git a/tpl/objects/emoji.pug b/tpl/objects/emoji.pug index 5bf3a3b..3509112 100644 --- a/tpl/objects/emoji.pug +++ b/tpl/objects/emoji.pug @@ -7,6 +7,9 @@ mixin emoji(id) if (attributes.class) { classes[attributes.class] = true; } + if (attributes.size) { + classes['o-emoji--' + attributes.size] = true; + } src = id + '.png' diff --git a/tpl/views/emoji.pug b/tpl/views/emoji.pug index 0cfb3f7..8410794 100644 --- a/tpl/views/emoji.pug +++ b/tpl/views/emoji.pug @@ -11,3 +11,10 @@ mixin view-emoji +emoji('drgn')(zoomable=true) =' ' =loremIpsum + =' ' + +emoji('drgn')(size=125) + +emoji('drgn')(size=125) + =' ' + =loremIpsum + =' ' + +emoji('drgn')(zoomable=true size=125) -- cgit v1.2.3-70-g09d2