From 144b7a2ea83507c98544d14ad9435cc5e51ac071 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 12:26:35 +0100 Subject: Update --- tpl/objects/rule.pug | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tpl/objects/rule.pug (limited to 'tpl/objects/rule.pug') diff --git a/tpl/objects/rule.pug b/tpl/objects/rule.pug new file mode 100644 index 0000000..958ff18 --- /dev/null +++ b/tpl/objects/rule.pug @@ -0,0 +1,12 @@ +mixin rule + - + let classes = { + 'o-rule': true, + 'o-rule--labelled': !!block + } + classes['o-rule--' + attributes.level] = true + + div(class=classes) + if block + .o-rule__label + block -- cgit v1.2.3-70-g09d2