Skip to content

Commit 99ea144

Browse files
committed
Apply the hover TOC effect to the left nav too
1 parent 79b143f commit 99ea144

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

resources/css/components/nav/sidebar.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,10 @@
142142
a {
143143
/* Otherwise the sidebar might grow too big e.g. >> /reference */
144144
max-width: 12rem;
145+
border-radius: var(--border-radius-md);
146+
&:hover {
147+
background: var(--color-pink-light-4);
148+
}
145149
}
146150

147151
button {

resources/css/objects/toc-scroll-spy.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
=================================================== */
33
/* Notes...
44
5-
- Use JS for now until scroll-driven-animations are more widely supported
6-
- For scroll-driven version see /objects/toc-scroll-spy.css
5+
- Use JS for a fallback until scroll-target-group are more widely supported
76
87
*/
98
/* HTML Example...

0 commit comments

Comments
 (0)