summaryrefslogtreecommitdiffstats
path: root/tpl/objects/table.pug
blob: 0e1632d69a6cab8157d9817168164f6702fbd445 (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
30
mixin table
    -
        let classes = {
            'o-table':        true,
            'o-table--flush': attributes.flush,
            'o-table--box':   attributes.box,
        }

    table(class=classes)
        block

mixin table-head
    thead.o-table__head
        block

mixin table-head-cell
    th.o-table__head-cell
        block

mixin table-body
    tbody.o-table__body
        block

mixin table-row
    tr.o-table__row
        block

mixin table-cell
    td.o-table__cell
        block