diff options
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/index.pug | 31 | ||||
-rw-r--r-- | tpl/objects/table.pug | 23 |
2 files changed, 54 insertions, 0 deletions
diff --git a/tpl/index.pug b/tpl/index.pug index e1a6445..162a041 100644 --- a/tpl/index.pug +++ b/tpl/index.pug | |||
@@ -22,6 +22,7 @@ include objects/backdrop.pug | |||
22 | include objects/dialog.pug | 22 | include objects/dialog.pug |
23 | include objects/lightbox.pug | 23 | include objects/lightbox.pug |
24 | include objects/list-group.pug | 24 | include objects/list-group.pug |
25 | include objects/table.pug | ||
25 | 26 | ||
26 | mixin box | 27 | mixin box |
27 | +container(padX=true padY=true inPage=true) | 28 | +container(padX=true padY=true inPage=true) |
@@ -596,4 +597,34 @@ html | |||
596 | +list-group-item(action=true)= 'Third item' | 597 | +list-group-item(action=true)= 'Third item' |
597 | +list-group-item(action=true)= 'Fourth item' | 598 | +list-group-item(action=true)= 'Fourth item' |
598 | 599 | ||
600 | //----------------------------------------- | ||
601 | |||
602 | +h1-heading('xl')= 'Table' | ||
603 | +rule('medium') | ||
604 | |||
605 | +box | ||
606 | +table | ||
607 | +table-head | ||
608 | +table-row | ||
609 | +table-head-cell= 'Title' | ||
610 | +table-head-cell= 'Title' | ||
611 | +table-head-cell= 'Title' | ||
612 | +table-body | ||
613 | +table-row | ||
614 | +table-cell= 'Row 1,1' | ||
615 | +table-cell= 'Row 1,2' | ||
616 | +table-cell= 'Row 1,3' | ||
617 | +table-row | ||
618 | +table-cell= 'Row 2,1' | ||
619 | +table-cell= 'Row 2,2' | ||
620 | +table-cell= 'Row 2,3' | ||
621 | +table-row | ||
622 | +table-cell= 'Row 3,1' | ||
623 | +table-cell= 'Row 3,2' | ||
624 | +table-cell= 'Row 3,3' | ||
625 | +table-row | ||
626 | +table-cell= 'Row 4,1' | ||
627 | +table-cell= 'Row 4,2' | ||
628 | +table-cell= 'Row 4,3' | ||
629 | |||
599 | 630 | ||
diff --git a/tpl/objects/table.pug b/tpl/objects/table.pug new file mode 100644 index 0000000..9fb2a06 --- /dev/null +++ b/tpl/objects/table.pug | |||
@@ -0,0 +1,23 @@ | |||
1 | mixin table | ||
2 | table.o-table | ||
3 | block | ||
4 | |||
5 | mixin table-head | ||
6 | thead.o-table__head | ||
7 | block | ||
8 | |||
9 | mixin table-head-cell | ||
10 | th.o-table__head-cell | ||
11 | block | ||
12 | |||
13 | mixin table-body | ||
14 | tbody.o-table__body | ||
15 | block | ||
16 | |||
17 | mixin table-row | ||
18 | tr.o-table__row | ||
19 | block | ||
20 | |||
21 | mixin table-cell | ||
22 | td.o-table__cell | ||
23 | block | ||