summaryrefslogtreecommitdiffstats
path: root/tpl/layouts/container.pug
blob: 0973b740c829e8cffef36c5843a41802a918f164 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
mixin container
    -
        let classes = {
            'l-container':            true,
            'l-container--narrow':    attributes.narrow,
            'l-container--narrow-50': attributes.narrow50,
            'u-themed':               !!attributes.theme
        }
        if (!!attributes.theme) {
            classes['t-' + attributes.theme] = true
        }
        if (attributes.class) {
            classes[attributes.class] = true
        }

    div(class=classes)&attributes(attributes)
        block