blob: af56c7ad87ac3ab1eaa1e4822e4e694758153b73 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
mixin emoji(id)
-
let classes = {
'o-emoji': true,
'o-emoji--zoomable': attributes.zoomable,
}
if (attributes.class) {
classes[attributes.class] = true;
}
if (attributes.size) {
classes['o-emoji--' + attributes.size] = true;
}
if (!attributes.unicode) {
src = id + '.png'
}
if !attributes.unicode
img(src=src, class=classes)
else
span(class=classes)= id
|