summaryrefslogtreecommitdiffstats
path: root/tpl/objects
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2023-01-10 15:24:44 +0100
committerVolpeon <git@volpeon.ink>2023-01-10 15:24:44 +0100
commit992332a0a02519f1155eca113353aa7dafe362ec (patch)
tree4504e14ba2700357fbb6cccb38e34478880e7251 /tpl/objects
parentFix lightbox thumbnails when viewport too narrow (diff)
downloadiro-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.pug40
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 @@
1mixin h1-heading(level, inner = false) 1mixin 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
10mixin h2-heading(level) 6mixin 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
15mixin h3-heading(level) 11mixin 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
20mixin h4-heading(level) 16mixin 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
25mixin h5-heading(level) 21mixin 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
30mixin h6-heading(level) 26mixin 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
35mixin div-heading(level, primary = false) 31mixin 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