From 7ea811eaafa43ebbb693269e46c70f7916ac1cc7 Mon Sep 17 00:00:00 2001 From: Peter Desmet Date: Tue, 13 Jan 2015 15:56:20 +0100 Subject: [PATCH] Style terms table --- assets/main.css | 31 +- build/terms.tmpl | 39 +- terms/index.html | 5463 +++++++++++++++++++++++++++++----------------- 3 files changed, 3561 insertions(+), 1972 deletions(-) diff --git a/assets/main.css b/assets/main.css index 5656a9e..f71cb40 100644 --- a/assets/main.css +++ b/assets/main.css @@ -56,11 +56,32 @@ body { text-decoration: none; } -.class-section, -.term-dl { - padding-top: 70px; - margin-top: -70px; -} +.class-group, +.term-definition { + padding-top: 70px; /* Avoid anchor links from sticking to the top */ + margin-top: -70px; + } + .class-group .well h2 { + margin-top: 10px; + } + .class-group .table { + table-layout: fixed; + } + .class-group .table col:first-child { + width: 120px; /* Labels */ + } + .class-group .class-definition .table tr { /* Class definitions */; + background-color: #f5f5f5; + } + .class-group .table tr:first-child { /* Header for each definition */ + background-color: #e7e7e7; + font-size: 16px; + font-weight: bold; + } + .class-group .table td { + word-wrap: break-word; + } + @media screen and (max-width: 767px){ .terms-sidebar { diff --git a/build/terms.tmpl b/build/terms.tmpl index af1033d..9b47853 100644 --- a/build/terms.tmpl +++ b/build/terms.tmpl @@ -82,26 +82,35 @@ #def showTerm($t, $isProperty) #if $t.uri is not None #if $isProperty -
+
+ + #else -
+
+
+ #end if -
Name
$t.name
-
Label
$t.label
-
Identifier
$t.uri
- #if $isProperty -
Class
$t.class
- #end if -
Definition
$t.definition
-
Comment
$t.comment
-
Reference
http://terms.tdwg.org/wiki/$t.name_prefixed
-
History
$t.version
- + + + + + + + + #if $isProperty + + #end if + + + + + +
$t.name
Label$t.label
Identifier$t.uri
Class$t.class
Definition$t.definition
Comment$t.comment
Referencehttp://terms.tdwg.org/wiki/$t.name_prefixed
History$t.version
+
#end if #end def - #for $group in $groups -
+

$group.name