diff options
author | Volpeon <git@volpeon.ink> | 2022-03-12 15:47:42 +0100 |
---|---|---|
committer | Volpeon <git@volpeon.ink> | 2022-03-12 15:47:42 +0100 |
commit | 4b16b704d196ecb1605e7cfe7ccc83bb21e76b6e (patch) | |
tree | 02d87e974bdd679ce7e0c0804269678fc0b07065 /tpl | |
parent | Added more utilities (diff) | |
download | iro-design-4b16b704d196ecb1605e7cfe7ccc83bb21e76b6e.tar.gz iro-design-4b16b704d196ecb1605e7cfe7ccc83bb21e76b6e.tar.bz2 iro-design-4b16b704d196ecb1605e7cfe7ccc83bb21e76b6e.zip |
Added table variants
Diffstat (limited to 'tpl')
-rw-r--r-- | tpl/index.pug | 52 | ||||
-rw-r--r-- | tpl/objects/table.pug | 9 |
2 files changed, 60 insertions, 1 deletions
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 | |||
626 | +table-cell= 'Row 4,1' | 626 | +table-cell= 'Row 4,1' |
627 | +table-cell= 'Row 4,2' | 627 | +table-cell= 'Row 4,2' |
628 | +table-cell= 'Row 4,3' | 628 | +table-cell= 'Row 4,3' |
629 | |||
630 | +box | ||
631 | +table(flush=true) | ||
632 | +table-head | ||
633 | +table-row | ||
634 | +table-head-cell= 'Title' | ||
635 | +table-head-cell= 'Title' | ||
636 | +table-head-cell= 'Title' | ||
637 | +table-body | ||
638 | +table-row | ||
639 | +table-cell= 'Row 1,1' | ||
640 | +table-cell= 'Row 1,2' | ||
641 | +table-cell= 'Row 1,3' | ||
642 | +table-row | ||
643 | +table-cell= 'Row 2,1' | ||
644 | +table-cell= 'Row 2,2' | ||
645 | +table-cell= 'Row 2,3' | ||
646 | +table-row | ||
647 | +table-cell= 'Row 3,1' | ||
648 | +table-cell= 'Row 3,2' | ||
649 | +table-cell= 'Row 3,3' | ||
650 | +table-row | ||
651 | +table-cell= 'Row 4,1' | ||
652 | +table-cell= 'Row 4,2' | ||
653 | +table-cell= 'Row 4,3' | ||
654 | |||
655 | +box | ||
656 | +table(box=true) | ||
657 | +table-head | ||
658 | +table-row | ||
659 | +table-head-cell= 'Title' | ||
660 | +table-head-cell= 'Title' | ||
661 | +table-head-cell= 'Title' | ||
662 | +table-body | ||
663 | +table-row | ||
664 | +table-cell= 'Row 1,1' | ||
665 | +table-cell= 'Row 1,2' | ||
666 | +table-cell= 'Row 1,3' | ||
667 | +table-row | ||
668 | +table-cell= 'Row 2,1' | ||
669 | +table-cell= 'Row 2,2' | ||
670 | +table-cell= 'Row 2,3' | ||
671 | +table-row | ||
672 | +table-cell= 'Row 3,1' | ||
673 | +table-cell= 'Row 3,2' | ||
674 | +table-cell= 'Row 3,3' | ||
675 | +table-row | ||
676 | +table-cell= 'Row 4,1' | ||
677 | +table-cell= 'Row 4,2' | ||
678 | +table-cell= 'Row 4,3' | ||
679 | |||
680 | |||
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 @@ | |||
1 | mixin table | 1 | mixin table |
2 | table.o-table | 2 | - |
3 | let classes = { | ||
4 | 'o-table': true, | ||
5 | 'o-table--flush': attributes.flush, | ||
6 | 'o-table--box': attributes.box, | ||
7 | } | ||
8 | |||
9 | table(class=classes) | ||
3 | block | 10 | block |
4 | 11 | ||
5 | mixin table-head | 12 | mixin table-head |