summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
Diffstat (limited to 'tpl/objects')
-rw-r--r--tpl/objects/palette.pug12
1 files changed, 12 insertions, 0 deletions
diff --git a/tpl/objects/palette.pug b/tpl/objects/palette.pug
new file mode 100644
index 0000000..77e6e9e
--- /dev/null
+++ b/tpl/objects/palette.pug
@@ -0,0 +1,12 @@
1mixin palette(palette)
2 -
3 let classes = {
4 'o-palette': true,
5 }
6 classes['o-palette--' + palette] = true
7
8 let i = 0, n = palette == 'base' ? 11 : 13
9
10 div(class=classes)
11 while i++ < n
12 .o-palette__item