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

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