summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-28 16:05:37 +0100
committerVolpeon <git@volpeon.ink>2023-01-28 16:05:37 +0100
commit44d19cf5faf41b2cd576fc353ee16cb643584fb2 (patch)
treec57e4399ab8b5ea85677610f915dd2cd319a293a /tpl
parentFix (diff)
downloadiro-design-44d19cf5faf41b2cd576fc353ee16cb643584fb2.tar.gz
iro-design-44d19cf5faf41b2cd576fc353ee16cb643584fb2.tar.bz2
iro-design-44d19cf5faf41b2cd576fc353ee16cb643584fb2.zip
Emoji
Diffstat (limited to 'tpl')
-rw-r--r--tpl/objects/emoji.pug3
-rw-r--r--tpl/views/emoji.pug7
2 files changed, 10 insertions, 0 deletions
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)
7 if (attributes.class) { 7 if (attributes.class) {
8 classes[attributes.class] = true; 8 classes[attributes.class] = true;
9 } 9 }
10 if (attributes.size) {
11 classes['o-emoji--' + attributes.size] = true;
12 }
10 13
11 src = id + '.png' 14 src = id + '.png'
12 15
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
11 +emoji('drgn')(zoomable=true) 11 +emoji('drgn')(zoomable=true)
12 =' ' 12 =' '
13 =loremIpsum 13 =loremIpsum
14 =' '
15 +emoji('drgn')(size=125)
16 +emoji('drgn')(size=125)
17 =' '
18 =loremIpsum
19 =' '
20 +emoji('drgn')(zoomable=true size=125)