diff options
author | Volpeon <git@volpeon.ink> | 2023-01-10 15:24:44 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2023-01-10 15:24:44 +0100 |
commit | 992332a0a02519f1155eca113353aa7dafe362ec (patch) | |
tree | 4504e14ba2700357fbb6cccb38e34478880e7251 /tpl/objects | |
parent | Fix lightbox thumbnails when viewport too narrow (diff) | |
download | iro-design-992332a0a02519f1155eca113353aa7dafe362ec.tar.gz iro-design-992332a0a02519f1155eca113353aa7dafe362ec.tar.bz2 iro-design-992332a0a02519f1155eca113353aa7dafe362ec.zip |
Added smaller set of headings
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/heading.pug | 40 |
1 files changed, 16 insertions, 24 deletions
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 @@ | |||
1 | mixin h1-heading(level, inner = false) | 1 | mixin h1-heading(level, display = false) |
2 | - let classes = ['o-heading', 'o-heading--' + level] | 2 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
3 | h1(class=classes)&attributes(attributes) | 3 | h1(class=classes)&attributes(attributes) |
4 | if inner | 4 | block |
5 | span.o-heading__inner | ||
6 | block | ||
7 | else | ||
8 | block | ||
9 | 5 | ||
10 | mixin h2-heading(level) | 6 | mixin h2-heading(level, display = false) |
11 | - let classes = ['o-heading', 'o-heading--' + level] | 7 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
12 | h2(class=classes)&attributes(attributes) | 8 | h2(class=classes)&attributes(attributes) |
13 | block | 9 | block |
14 | 10 | ||
15 | mixin h3-heading(level) | 11 | mixin h3-heading(level, display = false) |
16 | - let classes = ['o-heading', 'o-heading--' + level] | 12 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
17 | h3(class=classes)&attributes(attributes) | 13 | h3(class=classes)&attributes(attributes) |
18 | block | 14 | block |
19 | 15 | ||
20 | mixin h4-heading(level) | 16 | mixin h4-heading(level, display = false) |
21 | - let classes = ['o-heading', 'o-heading--' + level] | 17 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
22 | h4(class=classes)&attributes(attributes) | 18 | h4(class=classes)&attributes(attributes) |
23 | block | 19 | block |
24 | 20 | ||
25 | mixin h5-heading(level) | 21 | mixin h5-heading(level, display = false) |
26 | - let classes = ['o-heading', 'o-heading--' + level] | 22 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
27 | h5(class=classes)&attributes(attributes) | 23 | h5(class=classes)&attributes(attributes) |
28 | block | 24 | block |
29 | 25 | ||
30 | mixin h6-heading(level) | 26 | mixin h6-heading(level, display = false) |
31 | - let classes = ['o-heading', 'o-heading--' + level] | 27 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
32 | h6(class=classes)&attributes(attributes) | 28 | h6(class=classes)&attributes(attributes) |
33 | block | 29 | block |
34 | 30 | ||
35 | mixin div-heading(level, primary = false) | 31 | mixin div-heading(level, display = false) |
36 | - let classes = ['o-heading', 'o-heading--' + level] | 32 | - let classes = ['o-heading', 'o-heading--' + level, { 'o-heading--display': display }] |
37 | div(class=classes)&attributes(attributes) | 33 | div(class=classes)&attributes(attributes) |
38 | if primary | 34 | block |
39 | span.o-heading__primary | ||
40 | block | ||
41 | else | ||
42 | block | ||