Fix 3rd level menu item background-color in dark mode [ci skip]

This commit is contained in:
Andrew Murray 2020-12-21 09:10:19 +11:00
parent dea2eb54af
commit 0a1dcfc55a
3 changed files with 2 additions and 1 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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) {