diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/objects/divider.pug | 7 | ||||
-rw-r--r-- | tpl/views/divider.pug | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/tpl/objects/divider.pug b/tpl/objects/divider.pug index 094df07..46425cd 100644 --- a/tpl/objects/divider.pug +++ b/tpl/objects/divider.pug | |||
@@ -1,9 +1,10 @@ | |||
1 | mixin divider(level) | 1 | mixin divider(level) |
2 | - | 2 | - |
3 | let classes = { | 3 | let classes = { |
4 | 'o-divider': true, | 4 | 'o-divider': true, |
5 | 'o-divider--labelled': !!block, | 5 | 'o-divider--labelled': !!block, |
6 | ['o-divider--' + level]: true | 6 | ['o-divider--' + level]: true, |
7 | ['o-divider--' + attributes.color]: !!attributes.color | ||
7 | } | 8 | } |
8 | 9 | ||
9 | div(class=classes)&attributes(attributes) | 10 | div(class=classes)&attributes(attributes) |
diff --git a/tpl/views/divider.pug b/tpl/views/divider.pug index 8c3ec0c..af142cf 100644 --- a/tpl/views/divider.pug +++ b/tpl/views/divider.pug | |||
@@ -19,3 +19,8 @@ mixin view-divider | |||
19 | +divider('strong')= 'Strong' | 19 | +divider('strong')= 'Strong' |
20 | +divider('medium')= 'Medium' | 20 | +divider('medium')= 'Medium' |
21 | +divider('faint')= 'Faint' | 21 | +divider('faint')= 'Faint' |
22 | |||
23 | .c-box | ||
24 | +divider('strong')(color='red')= 'Strong' | ||
25 | +divider('medium')(color='red')= 'Medium' | ||
26 | +divider('faint')(color='red')= 'Faint' | ||