Skip to content

Commit 4f0bbb8

Browse files
kartbendanieldegrasse
authored andcommitted
doc: _static: css: fix navtree +/- icon margins
Fixed selectors that probably went stale overtime since the custom.css was adopted from Godot and RTD having evolved in the meantime and that were causing +/- icons to expand/collapse the navtree to be putting margins where they shouldn't have. Fixes #78974 Signed-off-by: Benjamin Cabé <benjamin@zephyrproject.org>
1 parent ee173ab commit 4f0bbb8

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

doc/_static/css/custom.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -738,21 +738,21 @@ kbd, .kbd,
738738
border: none;
739739
}
740740

741-
.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a span.toctree-expand,
742-
.wy-menu-vertical li.toctree-l2 a span.toctree-expand {
741+
.wy-menu-vertical a button.toctree-expand,
742+
.wy-menu-vertical li.toctree-l2 a button.toctree-expand {
743743
color: var(--navbar-level-3-color);
744744
opacity: 0.9;
745-
margin-right: 8px;
745+
margin-right: 6px;
746746
}
747747

748-
.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a:hover span.toctree-expand,
749-
.wy-menu-vertical li.toctree-l2 a:hover span.toctree-expand {
748+
.wy-menu-vertical a:hover button.toctree-expand,
749+
.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand {
750750
color: var(--navbar-level-2-color);
751751
opacity: 1;
752752
}
753753

754-
.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a:active span.toctree-expand,
755-
.wy-menu-vertical li.toctree-l2 a:active span.toctree-expand {
754+
.wy-menu-vertical a:active button.toctree-expand,
755+
.wy-menu-vertical li.toctree-l2 a:active button.toctree-expand {
756756
color: var(--navbar-level-1-color);
757757
opacity: 1;
758758
}

0 commit comments

Comments
 (0)