blob: 6f45bf69a6c02789e4396395a46a7bae352a259b (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
include icon.pug
include status-indicator.pug
include action-button.pug
mixin icon-nav
-
let classes = {
'o-icon-nav': true,
'o-icon-nav--vertical': attributes.vertical,
}
if (attributes.class) {
classes[attributes.class] = true;
}
div(class=classes)&attributes(attributes)
block
mixin icon-nav-item(icon)
-
let classes = {
'o-icon-nav__item': true,
'is-selected': attributes.selected,
}
if (attributes.class) {
classes[attributes.class] = true;
}
button(class=classes)&attributes(attributes)
+icon(icon)(block=true)
|