Skip to content

Commit 445925f

Browse files
committed
Reduce line height for headers; change link decorations
thicken underlines and place below test so it doesn't intersect decenders.
1 parent 2e354bb commit 445925f

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

doc/_static/style.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ div.toctree-wrapper * + *, div.contents * + *, div.release_info * {
5858
}
5959

6060
h1, h2, h3, h4, h5, h6 {
61-
line-height: 1.25;
61+
line-height: 1.1;
6262
/* Larger spacing before header and smaller after to make
6363
header part of following section */
6464
margin-block-end: 0.3em;
@@ -177,7 +177,11 @@ div[class^=highlight-], div[class^=highlight-] * { width:
177177
/* style */
178178

179179
:link { color: rgb(220,0,0); text-decoration: none;}
180-
:link:hover {text-decoration: underline;}
180+
:link:hover {
181+
text-decoration: underline;
182+
text-underline-position: under;
183+
text-decoration-thickness: .3ex;
184+
}
181185
:visited { color: rgb(187,0,0); text-decoration: none;}
182186
a.toc-backref { color: #000000; }
183187

website/www/_static/style.css

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ div.toctree-wrapper * + *, div.contents * + *, div.release_info * {
5858
}
5959

6060
h1, h2, h3, h4, h5, h6 {
61-
line-height: 1.25;
61+
line-height: 1.1;
6262
/* Larger spacing before header and smaller after to make
6363
header part of following section */
6464
margin-block-end: 0.3em;
@@ -177,7 +177,11 @@ div[class^=highlight-], div[class^=highlight-] * { width:
177177
/* style */
178178

179179
:link { color: rgb(220,0,0); text-decoration: none;}
180-
:link:hover {text-decoration: underline;}
180+
:link:hover {
181+
text-decoration: underline;
182+
text-underline-position: under;
183+
text-decoration-thickness: .3ex;
184+
}
181185
:visited { color: rgb(187,0,0); text-decoration: none;}
182186
a.toc-backref { color: #000000; }
183187

0 commit comments

Comments
 (0)