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

    div(class=classes)
        .l-container__inner
            block