summaryrefslogtreecommitdiffstats
path: root/tpl/objects/badge.pug
blob: cc61366552f6d7e106568e49fba0355679280385 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mixin badge(variant)
    -
        let classes = {
            'o-badge': true
        }
        if (attributes.size) {
            classes['o-badge--' + attributes.size] = true
        }
        if (variant) {
            classes['o-badge--' + variant] = true
        }

    div(class=classes)
        block