From fe5cd6ad6c61eb13ca99acd1b69cd09b84051404 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 15 Mar 2017 14:47:31 +0100 Subject: Support types --- templates/default-layout.cassius | 19 +++++++++++++------ templates/inventoryListing.hamlet | 4 +++- templates/referenceListing.hamlet | 4 +++- 3 files changed, 19 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/default-layout.cassius b/templates/default-layout.cassius index c1ccf72..bd76a01 100644 --- a/templates/default-layout.cassius +++ b/templates/default-layout.cassius @@ -1,20 +1,20 @@ .main min-width: 20em -.table +.table, table display: table border-collapse: collapse -.table div +.table div, table td vertical-align: middle -.td +.td, td display: table-cell text-align: center padding: 0.25em -.tr +.tr, tr display: table-row .tc display: table-caption padding: 0.25em -.th +.th, th display: table-cell font-variant: small-caps font-weight: bold @@ -26,8 +26,15 @@ padding: 0.25em .kind:only-child text-align: center +.type + display: table-cell + text-align: center + padding: 0.25em + color: #aaa .table .table .td, .table .table .tc, .table .table .th, .table .table .kind padding: 0 +table table td, table table th + padding: 0 #messages list-style-type: none margin: 1em auto 1em 0 @@ -55,7 +62,7 @@ button background-color: #f0f0f0 .color:nth-child(odd) background-color: #fff -body > div +body > div, body > table margin: 0 auto .table > h1 display: table-caption diff --git a/templates/inventoryListing.hamlet b/templates/inventoryListing.hamlet index 775176d..3be43db 100644 --- a/templates/inventoryListing.hamlet +++ b/templates/inventoryListing.hamlet @@ -1,6 +1,7 @@
Item +
Type
Bought
Expires
Opened @@ -12,7 +13,7 @@