mirror of https://github.com/tdwg/dwc.git
Use <a> anchors and .dwc-table
This commit is contained in:
parent
e83272489a
commit
a2f809cca1
|
@ -52,31 +52,34 @@ body {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.class-group,
|
.anchor {
|
||||||
.term-definition {
|
display: block;
|
||||||
padding-top: 70px; /* Avoid anchor links from sticking to the top */
|
position: relative;
|
||||||
margin-top: -70px;
|
top: -70px;
|
||||||
|
visibility: hidden; }
|
||||||
|
}
|
||||||
|
|
||||||
|
.class-group .well h2 {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.dwc-table {
|
||||||
|
table-layout: fixed;
|
||||||
}
|
}
|
||||||
.class-group .well h2 {
|
.dwc-table col:first-child {
|
||||||
margin-top: 10px;
|
width: 120px; /* Labels */
|
||||||
|
}
|
||||||
|
.dwc-table.class-definition tr { /* Class definitions */;
|
||||||
|
background-color: #f5f5f5;
|
||||||
|
}
|
||||||
|
.dwc-table tr:first-child { /* Header for each definition */
|
||||||
|
background-color: #e7e7e7;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.dwc-table td {
|
||||||
|
word-wrap: break-word;
|
||||||
}
|
}
|
||||||
.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){
|
@media screen and (max-width: 767px){
|
||||||
.terms-sidebar {
|
.terms-sidebar {
|
||||||
|
|
|
@ -81,11 +81,10 @@
|
||||||
#def showTerm($t, $isProperty)
|
#def showTerm($t, $isProperty)
|
||||||
#if $t.uri is not None
|
#if $t.uri is not None
|
||||||
#if $isProperty
|
#if $isProperty
|
||||||
<div id="$t.name" class="term-definition">
|
<a class="anchor" id="$t.name"></a>
|
||||||
<table class="table table-bordered table-condensed">
|
<table class="table table-bordered table-condensed dwc-table term-definition">
|
||||||
#else
|
#else
|
||||||
<div class="class-definition">
|
<table class="table table-bordered table-condensed dwc-table class-definition">
|
||||||
<table class="table table-bordered table-condensed">
|
|
||||||
#end if
|
#end if
|
||||||
<colgroup>
|
<colgroup>
|
||||||
<col />
|
<col />
|
||||||
|
@ -103,12 +102,12 @@
|
||||||
<tr><td>Reference</td><td><a href="http://terms.tdwg.org/wiki/$t.name_prefixed">http://terms.tdwg.org/wiki/$t.name_prefixed</a></td></tr>
|
<tr><td>Reference</td><td><a href="http://terms.tdwg.org/wiki/$t.name_prefixed">http://terms.tdwg.org/wiki/$t.name_prefixed</a></td></tr>
|
||||||
<tr><td>History</td><td><a href="$t.version">$t.version</a></td></tr>
|
<tr><td>History</td><td><a href="$t.version">$t.version</a></td></tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
#end if
|
#end if
|
||||||
#end def
|
#end def
|
||||||
#for $group in $groups
|
#for $group in $groups
|
||||||
<section id="$group.name" class="class-group">
|
<section class="class-group">
|
||||||
|
<a class="anchor" id="$group.name"></a>
|
||||||
<header class="well">
|
<header class="well">
|
||||||
<h2>$group.name</h2>
|
<h2>$group.name</h2>
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
|
|
1398
terms/index.html
1398
terms/index.html
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue