summaryrefslogtreecommitdiffstats
path: root/tpl/objects/palette.pug
blob: 303265d33156b91df5afcb7540dfc5c2c00babb9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
mixin palette(palette)
    -
        let classes = {
            'o-palette':         true,
            'o-palette--static': !!attributes.static,
        }
        classes['o-palette--' + palette] = true

        let i = 0, n = palette == 'base' ? 11 : 13

    div(class=classes)
        while i++ < n
            .o-palette__item