summaryrefslogtreecommitdiffstats
path: root/tpl/layouts/container.pug
blob: c1affc4c5968821c832c12cc356987e47976a5db (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
mixin container
    -
        let classes = {
            'l-container':            true,
            'l-container--pad-x':     attributes.padX,
            'l-container--pad-y':     attributes.padY,
            'l-container--narrow':    attributes.narrow,
            'l-container--sm-narrow': attributes.smNarrow,
            'l-container--in-page':   attributes.inPage,
            'u-themed':               !!attributes.theme
        }
        if (!!attributes.theme) {
            classes['t-' + attributes.theme] = true
        }
        if (attributes.class) {
            classes[attributes.class] = true
        }

    div(class=classes)&attributes(attributes)
        .l-container__inner
            block