blob: 958ff183756d04c333f5ade50f1a05b392237526 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
mixin rule
-
let classes = {
'o-rule': true,
'o-rule--labelled': !!block
}
classes['o-rule--' + attributes.level] = true
div(class=classes)
if block
.o-rule__label
block
|