summaryrefslogtreecommitdiffstats
path: root/tpl/objects/emoji.pug
blob: af650285b853c252d9c353c523c69538512e1266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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;
        }

    img(src=id + '.png', class=classes)