From 48cb00040763459fc46d4aa108bf72c12f48f422 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Fri, 21 Jun 2024 23:07:50 +0200 Subject: WIP: Refactoring --- tpl/objects/palette.pug | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tpl/objects/palette.pug (limited to 'tpl/objects') 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 @@ +mixin palette(palette) + - + let classes = { + 'o-palette': true, + } + classes['o-palette--' + palette] = true + + let i = 0, n = palette == 'base' ? 11 : 13 + + div(class=classes) + while i++ < n + .o-palette__item -- cgit v1.2.3-70-g09d2