Skip to content

Commit e94adcb

Browse files
authored
Add hover background to collapsible menu items (#4940)
1 parent 2972447 commit e94adcb

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

website/src/css/customTheme.scss

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,6 +1267,13 @@ aside[class^="theme-doc-sidebar-container"] {
12671267
}
12681268

12691269
.menu__list-item-collapsible {
1270+
border-radius: var(--ifm-global-radius);
1271+
1272+
// Disable background color on hover for collapsible items with direct child anchor without href
1273+
&:has(> a:not([href])):hover {
1274+
background-color: transparent;
1275+
}
1276+
12701277
.menu__caret {
12711278
padding: 0 6px;
12721279

@@ -1276,14 +1283,6 @@ aside[class^="theme-doc-sidebar-container"] {
12761283
margin-top: -1px;
12771284
}
12781285
}
1279-
1280-
&:hover {
1281-
background: none !important;
1282-
1283-
.menu__link--sublist-caret:hover {
1284-
background: var(--ifm-menu-color-background-hover) !important;
1285-
}
1286-
}
12871286
}
12881287

12891288
@media only screen and (max-width: 1120px) {

0 commit comments

Comments
 (0)