diff options
author | Volpeon <git@volpeon.ink> | 2024-06-21 23:07:50 +0200 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2024-06-21 23:07:50 +0200 |
commit | 48cb00040763459fc46d4aa108bf72c12f48f422 (patch) | |
tree | 9609470d56bb31d55697ef0c42f1c908804dd3f1 /tpl/objects | |
parent | Update (diff) | |
download | iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.tar.gz iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.tar.bz2 iro-design-48cb00040763459fc46d4aa108bf72c12f48f422.zip |
WIP: Refactoring
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/palette.pug | 12 |
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 @@ | |||
1 | mixin 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 | ||