summaryrefslogtreecommitdiffstats
path: root/tpl/layouts/container.pug
blob: 0c9b6ec1e7802e1e155b3c8503c92a120d030609 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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
        }

    div(class=classes)
        .l-container__inner
            block