summaryrefslogtreecommitdiffstats
path: root/tpl/layouts/container.pug
blob: 522eb1ae2c3364ecca9ed7916f3b1079153524c6 (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--fixed':    attributes.fixed,
            'l-container--fixed-75': attributes.fixed50,
            '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