From 992332a0a02519f1155eca113353aa7dafe362ec Mon Sep 17 00:00:00 2001 From: Volpeon Date: Tue, 10 Jan 2023 15:24:44 +0100 Subject: Added smaller set of headings --- tpl/objects/heading.pug | 40 ++++++++++++++++------------------------ 1 file changed, 16 insertions(+), 24 deletions(-) (limited to 'tpl/objects') diff --git a/tpl/objects/heading.pug b/tpl/objects/heading.pug index 47ffefa..6cc05ad 100644 --- a/tpl/objects/heading.pug +++ b/tpl/objects/heading.pug @@ -1,42 +1,34 @@ -mixin h1-heading(level, inner = false) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h1-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h1(class=classes)&attributes(attributes) - if inner - span.o-heading__inner - block - else - block + block -mixin h2-heading(level) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h2-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h2(class=classes)&attributes(attributes) block -mixin h3-heading(level) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h3-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h3(class=classes)&attributes(attributes) block -mixin h4-heading(level) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h4-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h4(class=classes)&attributes(attributes) block -mixin h5-heading(level) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h5-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h5(class=classes)&attributes(attributes) block -mixin h6-heading(level) - - let classes = ['o-heading', 'o-heading--' + level] +mixin h6-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] h6(class=classes)&attributes(attributes) block -mixin div-heading(level, primary = false) - - let classes = ['o-heading', 'o-heading--' + level] +mixin div-heading(level, display = false) + - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] div(class=classes)&attributes(attributes) - if primary - span.o-heading__primary - block - else - block + block -- cgit v1.2.3-70-g09d2