From 66b0304c0f938ae22f4a4a2a4d72f2123c75c40a Mon Sep 17 00:00:00 2001 From: HichemF Date: Thu, 1 Jan 2026 15:34:41 +0100 Subject: [PATCH 1/3] style: add border-radius to collapsible menu items --- website/src/css/customTheme.scss | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/website/src/css/customTheme.scss b/website/src/css/customTheme.scss index 62f4939a944..bfdb8dd4af8 100644 --- a/website/src/css/customTheme.scss +++ b/website/src/css/customTheme.scss @@ -1267,6 +1267,7 @@ aside[class^="theme-doc-sidebar-container"] { } .menu__list-item-collapsible { + border-radius: var(--ifm-global-radius); .menu__caret { padding: 0 6px; @@ -1276,14 +1277,6 @@ aside[class^="theme-doc-sidebar-container"] { margin-top: -1px; } } - - &:hover { - background: none !important; - - .menu__link--sublist-caret:hover { - background: var(--ifm-menu-color-background-hover) !important; - } - } } @media only screen and (max-width: 1120px) { From 376a352921efbadacae86dd60b12e86b0b9f5c66 Mon Sep 17 00:00:00 2001 From: HichemF Date: Thu, 1 Jan 2026 18:28:08 +0100 Subject: [PATCH 2/3] style: disable background color on hover for collapsible menu items without href --- website/src/css/customTheme.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/src/css/customTheme.scss b/website/src/css/customTheme.scss index bfdb8dd4af8..157912f25dc 100644 --- a/website/src/css/customTheme.scss +++ b/website/src/css/customTheme.scss @@ -1268,6 +1268,12 @@ aside[class^="theme-doc-sidebar-container"] { .menu__list-item-collapsible { border-radius: var(--ifm-global-radius); + + // Disable background color on hover for collapsible items with direct child anchor without href + &:has(> a:not([href])):hover { + background-color: transparent; + } + .menu__caret { padding: 0 6px; From dc516ed7828a95763ed419b99eb20d2082268975 Mon Sep 17 00:00:00 2001 From: HichemF Date: Thu, 1 Jan 2026 18:53:05 +0100 Subject: [PATCH 3/3] prettier --- website/src/css/customTheme.scss | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/src/css/customTheme.scss b/website/src/css/customTheme.scss index 157912f25dc..70da85fba00 100644 --- a/website/src/css/customTheme.scss +++ b/website/src/css/customTheme.scss @@ -1268,12 +1268,12 @@ aside[class^="theme-doc-sidebar-container"] { .menu__list-item-collapsible { border-radius: var(--ifm-global-radius); - + // Disable background color on hover for collapsible items with direct child anchor without href &:has(> a:not([href])):hover { background-color: transparent; } - + .menu__caret { padding: 0 6px;