mirror of https://github.com/tdwg/dwc.git
Use <a> anchors and .dwc-table
This commit is contained in:
parent
8ab7d01d33
commit
07f51724f2
|
@ -52,31 +52,34 @@ body {
|
|||
text-decoration: none;
|
||||
}
|
||||
|
||||
.class-group,
|
||||
.term-definition {
|
||||
padding-top: 70px; /* Avoid anchor links from sticking to the top */
|
||||
margin-top: -70px;
|
||||
.anchor {
|
||||
display: block;
|
||||
position: relative;
|
||||
top: -70px;
|
||||
visibility: hidden; }
|
||||
}
|
||||
|
||||
.class-group .well h2 {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.dwc-table {
|
||||
table-layout: fixed;
|
||||
}
|
||||
.class-group .well h2 {
|
||||
margin-top: 10px;
|
||||
.dwc-table col:first-child {
|
||||
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){
|
||||
.terms-sidebar {
|
||||
|
|
|
@ -81,11 +81,10 @@
|
|||
#def showTerm($t, $isProperty)
|
||||
#if $t.uri is not None
|
||||
#if $isProperty
|
||||
<div id="$t.name" class="term-definition">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<a class="anchor" id="$t.name"></a>
|
||||
<table class="table table-bordered table-condensed dwc-table term-definition">
|
||||
#else
|
||||
<div class="class-definition">
|
||||
<table class="table table-bordered table-condensed">
|
||||
<table class="table table-bordered table-condensed dwc-table class-definition">
|
||||
#end if
|
||||
<colgroup>
|
||||
<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>History</td><td><a href="$t.version">$t.version</a></td></tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</table>
|
||||
#end if
|
||||
#end def
|
||||
#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">
|
||||
<h2>$group.name</h2>
|
||||
<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