diff --git a/docs/resources/css/dark.css b/docs/resources/css/dark.css index 2ed958429..cc213d674 100644 --- a/docs/resources/css/dark.css +++ b/docs/resources/css/dark.css @@ -1196,6 +1196,7 @@ color: rgb(166, 158, 146); } + .wy-menu-vertical li.toctree-l2.current a, .wy-menu-vertical li.toctree-l3.current a { background-color: #363636; } diff --git a/docs/resources/css/light.css b/docs/resources/css/light.css index ae3debc91..04edd7b16 100644 --- a/docs/resources/css/light.css +++ b/docs/resources/css/light.css @@ -1,5 +1,6 @@ @media (prefers-color-scheme: light) { + .wy-menu-vertical li.toctree-l2.current a, .wy-menu-vertical li.toctree-l3.current a { background-color: #c9c9c9; } diff --git a/docs/resources/js/script.js b/docs/resources/js/script.js index d58571d6d..5cb6494ea 100644 --- a/docs/resources/js/script.js +++ b/docs/resources/js/script.js @@ -24,7 +24,6 @@ jQuery(document).ready(function ($) { var $upperA = $sidebarItem.parent().children('a'); var $upperAParent = $upperA.parent(); if ($upperAParent.hasClass('toctree-l2')) { - $a.css('background-color', '#c9c9c9'); $a.css('padding-left', '4em'); } else if ($upperAParent.hasClass('toctree-l3')) { if (!$upperA.find('.toctree-expand').length) {