summaryrefslogtreecommitdiffstats
path: root/tpl/objects/rule.pug
blob: b2f3a38711e8981d0daff1624e077e15b763860a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
mixin rule(level)
    -
        let classes = {
            'o-rule':             true,
            'o-rule--labelled':   !!block,
            ['o-rule--' + level]: true
        }

    div(class=classes)&attributes(attributes)
        if block
            .o-rule__label
                block