Skip to content

Commit 73996a1

Browse files
authored
Add anchors to CodeMeta terms table, tweak css for scroll margin. (#111)
1 parent 9b733f6 commit 73996a1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

layouts/shortcodes/properties-description.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Description
2121
{{ range $property := .Site.Data.properties_description }}
2222
{{ $parentType := index $property "Parent Type" }}
2323
{{ if findRE $matchParentType $parentType }}
24-
<tr>
24+
<tr{{ if eq $matchParentType "codemeta:" }} id="{{ index $property "Property" }}"{{ end }}>
2525
<td>
2626
{{ index $property "Property" }}
2727
</td>

themes/CodeMeta-Pyramids/static/css/codemeta.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ div.highlight {
172172
* ToC theming
173173
*/
174174

175-
h1,h2,h3,h4,h5,h6,h7 {
175+
h1,h2,h3,h4,h5,h6,h7,th,tr {
176176
scroll-margin: 70px;
177177
}
178178

0 commit comments

Comments
 (0)