From 144b7a2ea83507c98544d14ad9435cc5e51ac071 Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 5 Feb 2022 12:26:35 +0100 Subject: Update --- tpl/objects/heading.pug | 34 ++++++++++++++++++++++++++++++++++ tpl/objects/rule.pug | 12 ++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 tpl/objects/heading.pug create mode 100644 tpl/objects/rule.pug (limited to 'tpl/objects') diff --git a/tpl/objects/heading.pug b/tpl/objects/heading.pug new file mode 100644 index 0000000..546df43 --- /dev/null +++ b/tpl/objects/heading.pug @@ -0,0 +1,34 @@ +mixin h1-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h1(class=classes) + block + +mixin h2-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h2(class=classes) + block + +mixin h3-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h3(class=classes) + block + +mixin h4-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h4(class=classes) + block + +mixin h5-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h5(class=classes) + block + +mixin h6-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + h6(class=classes) + block + +mixin div-heading + - let classes = ['o-heading', 'o-heading--' + attributes.level] + div(class=classes) + block 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