summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'tpl')
-rw-r--r--tpl/index.pug10
-rw-r--r--tpl/objects/table.pug17
2 files changed, 17 insertions, 10 deletions
diff --git a/tpl/index.pug b/tpl/index.pug
index 016f6be..be9f407 100644
--- a/tpl/index.pug
+++ b/tpl/index.pug
@@ -603,7 +603,7 @@ html
603 +rule('medium') 603 +rule('medium')
604 604
605 +box 605 +box
606 +table 606 +table(interactive=true)
607 +table-head 607 +table-head
608 +table-row 608 +table-row
609 +table-head-cell= 'Title' 609 +table-head-cell= 'Title'
@@ -661,19 +661,19 @@ html
661 +table-head-cell= 'Title' 661 +table-head-cell= 'Title'
662 +table-body 662 +table-body
663 +table-row 663 +table-row
664 +table-cell= 'Row 1,1' 664 +table-cell(divider=true)= 'Row 1,1'
665 +table-cell= 'Row 1,2' 665 +table-cell= 'Row 1,2'
666 +table-cell= 'Row 1,3' 666 +table-cell= 'Row 1,3'
667 +table-row 667 +table-row
668 +table-cell= 'Row 2,1' 668 +table-cell(divider=true)= 'Row 2,1'
669 +table-cell= 'Row 2,2' 669 +table-cell= 'Row 2,2'
670 +table-cell= 'Row 2,3' 670 +table-cell= 'Row 2,3'
671 +table-row 671 +table-row
672 +table-cell= 'Row 3,1' 672 +table-cell(divider=true)= 'Row 3,1'
673 +table-cell= 'Row 3,2' 673 +table-cell= 'Row 3,2'
674 +table-cell= 'Row 3,3' 674 +table-cell= 'Row 3,3'
675 +table-row 675 +table-row
676 +table-cell= 'Row 4,1' 676 +table-cell(divider=true)= 'Row 4,1'
677 +table-cell= 'Row 4,2' 677 +table-cell= 'Row 4,2'
678 +table-cell= 'Row 4,3' 678 +table-cell= 'Row 4,3'
679 679
diff --git a/tpl/objects/table.pug b/tpl/objects/table.pug
index b7ec881..e635589 100644
--- a/tpl/objects/table.pug
+++ b/tpl/objects/table.pug
@@ -1,10 +1,11 @@
1mixin table 1mixin table
2 - 2 -
3 let classes = { 3 let classes = {
4 'o-table': true, 4 'o-table': true,
5 'o-table--flush': attributes.flush, 5 'o-table--flush': attributes.flush,
6 'o-table--box': attributes.box, 6 'o-table--box': attributes.box,
7 'o-table--50': attributes.size50, 7 'o-table--interactive': attributes.interactive,
8 'o-table--50': attributes.size50,
8 } 9 }
9 10
10 table(class=classes) 11 table(class=classes)
@@ -27,5 +28,11 @@ mixin table-row
27 block 28 block
28 29
29mixin table-cell 30mixin table-cell
30 td.o-table__cell 31 -
32 let classes = {
33 'o-table__cell': true,
34 'o-table__cell--divider': attributes.divider,
35 }
36
37 td(class=classes)
31 block 38 block