Skip to content

Commit 97d5f65

Browse files
authored
fix(toc): apply highlighting to mobile design (#1472)
- Make css styling for `this-page` more global
1 parent 20c20fd commit 97d5f65

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

www/static/css-src/_docs.scss

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,6 @@
105105
display: block;
106106
padding: 0 50%;
107107
margin: 0 -50%;
108-
109-
&.this-page {
110-
font-weight: bold;
111-
background-color: $brand-primary-darker;
112-
}
113108
}
114109
}
115110
.toc-section-heading {
@@ -141,6 +136,12 @@
141136
}
142137
}
143138

139+
/* Highlight the current page in the ToC */
140+
.this-page {
141+
font-weight: bold;
142+
background-color: $brand-primary-darker;
143+
}
144+
144145
.page-content-container {
145146
margin-left: $toc-width;
146147
width: calc(100% - #{$toc-width});

0 commit comments

Comments
 (0)