diff options
author | Volpeon <git@volpeon.ink> | 2023-01-20 17:47:42 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-20 17:47:42 +0100 |
commit | 4a567c385f7d16e12da46718d2ee4ff970072711 (patch) | |
tree | adaeb338facfc99e2bc9602588b43f7ff735301f /tpl/objects | |
parent | Fixed flaws (diff) | |
download | iro-design-4a567c385f7d16e12da46718d2ee4ff970072711.tar.gz iro-design-4a567c385f7d16e12da46718d2ee4ff970072711.tar.bz2 iro-design-4a567c385f7d16e12da46718d2ee4ff970072711.zip |
Add emoji object
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/emoji.pug | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tpl/objects/emoji.pug b/tpl/objects/emoji.pug new file mode 100644 index 0000000..5bf3a3b --- /dev/null +++ b/tpl/objects/emoji.pug | |||
@@ -0,0 +1,13 @@ | |||
1 | mixin emoji(id) | ||
2 | - | ||
3 | let classes = { | ||
4 | 'o-emoji': true, | ||
5 | 'o-emoji--zoomable': attributes.zoomable, | ||
6 | } | ||
7 | if (attributes.class) { | ||
8 | classes[attributes.class] = true; | ||
9 | } | ||
10 | |||
11 | src = id + '.png' | ||
12 | |||
13 | img(src=src, class=classes) | ||