Skip to content

Commit 520912b

Browse files
committed
Added indication of currently selected element in TOC
Moved font weight from previously unstable infima css targeting to recommended class. Added underline text-decorator instead of background change as the spacing in this does not match how the background colour would look in the sidebar.
1 parent 9bd62d7 commit 520912b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

website/src/css/custom.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,9 @@ a.contents__link > code {
134134
color: inherit;
135135
}
136136

137-
a.contents__link.contents__link--active {
138-
font-weight: 600;
137+
.table-of-contents__link--active {
138+
font-weight: 500;
139+
text-decoration: underline;
139140
}
140141

141142
.table-of-contents__link:hover > code,

0 commit comments

Comments
 (0)