From 4b16b704d196ecb1605e7cfe7ccc83bb21e76b6e Mon Sep 17 00:00:00 2001 From: Volpeon Date: Sat, 12 Mar 2022 15:47:42 +0100 Subject: Added table variants --- tpl/index.pug | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++ tpl/objects/table.pug | 9 ++++++++- 2 files changed, 60 insertions(+), 1 deletion(-) (limited to 'tpl') diff --git a/tpl/index.pug b/tpl/index.pug index b5fe23b..5c46906 100644 --- a/tpl/index.pug +++ b/tpl/index.pug @@ -626,3 +626,55 @@ html +table-cell= 'Row 4,1' +table-cell= 'Row 4,2' +table-cell= 'Row 4,3' + + +box + +table(flush=true) + +table-head + +table-row + +table-head-cell= 'Title' + +table-head-cell= 'Title' + +table-head-cell= 'Title' + +table-body + +table-row + +table-cell= 'Row 1,1' + +table-cell= 'Row 1,2' + +table-cell= 'Row 1,3' + +table-row + +table-cell= 'Row 2,1' + +table-cell= 'Row 2,2' + +table-cell= 'Row 2,3' + +table-row + +table-cell= 'Row 3,1' + +table-cell= 'Row 3,2' + +table-cell= 'Row 3,3' + +table-row + +table-cell= 'Row 4,1' + +table-cell= 'Row 4,2' + +table-cell= 'Row 4,3' + + +box + +table(box=true) + +table-head + +table-row + +table-head-cell= 'Title' + +table-head-cell= 'Title' + +table-head-cell= 'Title' + +table-body + +table-row + +table-cell= 'Row 1,1' + +table-cell= 'Row 1,2' + +table-cell= 'Row 1,3' + +table-row + +table-cell= 'Row 2,1' + +table-cell= 'Row 2,2' + +table-cell= 'Row 2,3' + +table-row + +table-cell= 'Row 3,1' + +table-cell= 'Row 3,2' + +table-cell= 'Row 3,3' + +table-row + +table-cell= 'Row 4,1' + +table-cell= 'Row 4,2' + +table-cell= 'Row 4,3' + + diff --git a/tpl/objects/table.pug b/tpl/objects/table.pug index 9fb2a06..0e1632d 100644 --- a/tpl/objects/table.pug +++ b/tpl/objects/table.pug @@ -1,5 +1,12 @@ mixin table - table.o-table + - + let classes = { + 'o-table': true, + 'o-table--flush': attributes.flush, + 'o-table--box': attributes.box, + } + + table(class=classes) block mixin table-head -- cgit v1.2.3-54-g00ecf