summaryrefslogtreecommitdiffstats
path: root/tpl
diff options
context:
space:
mode:
authorVolpeon <git@volpeon.ink>2022-03-12 15:11:12 +0100
committerVolpeon <git@volpeon.ink>2022-03-12 15:11:12 +0100
commitdd934e29b2ecd548573928d88562b536f8f7189e (patch)
tree2f0f1477d064a3e3ab489527570cd2490926f7f6 /tpl
parentAdded list group (diff)
downloadiro-design-dd934e29b2ecd548573928d88562b536f8f7189e.tar.gz
iro-design-dd934e29b2ecd548573928d88562b536f8f7189e.tar.bz2
iro-design-dd934e29b2ecd548573928d88562b536f8f7189e.zip
Added table
Diffstat (limited to 'tpl')
-rw-r--r--tpl/index.pug31
-rw-r--r--tpl/objects/table.pug23
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
22include objects/dialog.pug 22include objects/dialog.pug
23include objects/lightbox.pug 23include objects/lightbox.pug
24include objects/list-group.pug 24include objects/list-group.pug
25include objects/table.pug
25 26
26mixin box 27mixin 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 @@
1mixin table
2 table.o-table
3 block
4
5mixin table-head
6 thead.o-table__head
7 block
8
9mixin table-head-cell
10 th.o-table__head-cell
11 block
12
13mixin table-body
14 tbody.o-table__body
15 block
16
17mixin table-row
18 tr.o-table__row
19 block
20
21mixin table-cell
22 td.o-table__cell
23 block