Skip to content

Commit da9664d

Browse files
committed
docs: change css for footnotes and links in headers
Set up footnotes to look different from running text by adding a light dotted border, inline margins and a smaller font size. The underline under a link located in a header (h1...h4) is too far down given the increase in font size. Snug it up to the text by adding a negative text-underline-offset.
1 parent 1c9b8ff commit da9664d

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

doc/_static/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ div[class^=highlight-], div[class^=highlight-] * { width:
190190
text-decoration-color: darkgrey;
191191
}
192192

193+
:is(h1,h2,h3,h4) > :link:hover { text-underline-offset: -0.1em; }
194+
193195
a.toc-backref { color: #000000; }
194196

195197
.header h1 { margin-left: 1em; }
@@ -480,6 +482,13 @@ div.file_insert { /* use to insert COPYING into license.txt */
480482

481483
table.valign-top tbody td { vertical-align: top; }
482484

485+
.footnote-list {
486+
border: lightgrey dotted 2px;
487+
font-size: smaller;
488+
margin-inline: 2em;
489+
padding-inline: 1em;
490+
}
491+
483492
/* consider highlighting header element that is a target */
484493
/*
485494
:target > :is(h1,h2,h3,h4,h5,h6) {

website/www/_static/style.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ div[class^=highlight-], div[class^=highlight-] * { width:
190190
text-decoration-color: darkgrey;
191191
}
192192

193+
:is(h1,h2,h3,h4) > :link:hover { text-underline-offset: -0.1em; }
194+
193195
a.toc-backref { color: #000000; }
194196

195197
.header h1 { margin-left: 1em; }
@@ -480,6 +482,13 @@ div.file_insert { /* use to insert COPYING into license.txt */
480482

481483
table.valign-top tbody td { vertical-align: top; }
482484

485+
.footnote-list {
486+
border: lightgrey dotted 2px;
487+
font-size: smaller;
488+
margin-inline: 2em;
489+
padding-inline: 1em;
490+
}
491+
483492
/* consider highlighting header element that is a target */
484493
/*
485494
:target > :is(h1,h2,h3,h4,h5,h6) {

0 commit comments

Comments
 (0)