summaryrefslogtreecommitdiffstats
path: root/tpl/layouts/container.pug
blob: 9dde2d6e687867407c374c31089833d4135bc3aa (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-h':     attributes.padH,
            'l-container--pad-v':     attributes.padV,
            'l-container--narrow':    attributes.narrow,
            'l-container--sm-narrow': attributes.smNarrow,
            'l-container--in-page':   attributes.inPage,
            'l-container--themed':    attributes.themed
        }
        if (!!attributes.theme) {
            classes['t-' + attributes.theme] = true
        }

    div(class=classes)
        .l-container__inner
            block