diff options
author | Volpeon <git@volpeon.ink> | 2022-02-05 12:26:35 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-02-05 12:26:35 +0100 |
commit | 144b7a2ea83507c98544d14ad9435cc5e51ac071 (patch) | |
tree | 7b18227482fa9f5d29d358ce1540b7a6d105febd /tpl/objects | |
parent | Init (diff) | |
download | iro-design-144b7a2ea83507c98544d14ad9435cc5e51ac071.tar.gz iro-design-144b7a2ea83507c98544d14ad9435cc5e51ac071.tar.bz2 iro-design-144b7a2ea83507c98544d14ad9435cc5e51ac071.zip |
Update
Diffstat (limited to 'tpl/objects')
-rw-r--r-- | tpl/objects/heading.pug | 34 | ||||
-rw-r--r-- | tpl/objects/rule.pug | 12 |
2 files changed, 46 insertions, 0 deletions
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 @@ | |||
1 | mixin h1-heading | ||
2 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
3 | h1(class=classes) | ||
4 | block | ||
5 | |||
6 | mixin h2-heading | ||
7 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
8 | h2(class=classes) | ||
9 | block | ||
10 | |||
11 | mixin h3-heading | ||
12 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
13 | h3(class=classes) | ||
14 | block | ||
15 | |||
16 | mixin h4-heading | ||
17 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
18 | h4(class=classes) | ||
19 | block | ||
20 | |||
21 | mixin h5-heading | ||
22 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
23 | h5(class=classes) | ||
24 | block | ||
25 | |||
26 | mixin h6-heading | ||
27 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
28 | h6(class=classes) | ||
29 | block | ||
30 | |||
31 | mixin div-heading | ||
32 | - let classes = ['o-heading', 'o-heading--' + attributes.level] | ||
33 | div(class=classes) | ||
34 | 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 @@ | |||
1 | mixin rule | ||
2 | - | ||
3 | let classes = { | ||
4 | 'o-rule': true, | ||
5 | 'o-rule--labelled': !!block | ||
6 | } | ||
7 | classes['o-rule--' + attributes.level] = true | ||
8 | |||
9 | div(class=classes) | ||
10 | if block | ||
11 | .o-rule__label | ||
12 | block | ||