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

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