From 4f0bbb8fda20dce0119e540405cb070c79d21327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Cab=C3=A9?= Date: Thu, 10 Jul 2025 18:09:06 +0200 Subject: [PATCH] doc: _static: css: fix navtree +/- icon margins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 zephyrproject-rtos/zephyr#78974 Signed-off-by: Benjamin Cabé --- doc/_static/css/custom.css | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/_static/css/custom.css b/doc/_static/css/custom.css index 2fd1045d81e..2d365419c38 100644 --- a/doc/_static/css/custom.css +++ b/doc/_static/css/custom.css @@ -738,21 +738,21 @@ kbd, .kbd, border: none; } -.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a span.toctree-expand, -.wy-menu-vertical li.toctree-l2 a span.toctree-expand { +.wy-menu-vertical a button.toctree-expand, +.wy-menu-vertical li.toctree-l2 a button.toctree-expand { color: var(--navbar-level-3-color); opacity: 0.9; - margin-right: 8px; + margin-right: 6px; } -.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a:hover span.toctree-expand, -.wy-menu-vertical li.toctree-l2 a:hover span.toctree-expand { +.wy-menu-vertical a:hover button.toctree-expand, +.wy-menu-vertical li.toctree-l2 a:hover button.toctree-expand { color: var(--navbar-level-2-color); opacity: 1; } -.wy-side-nav-search, .wy-menu-vertical a, .wy-menu-vertical a:active span.toctree-expand, -.wy-menu-vertical li.toctree-l2 a:active span.toctree-expand { +.wy-menu-vertical a:active button.toctree-expand, +.wy-menu-vertical li.toctree-l2 a:active button.toctree-expand { color: var(--navbar-level-1-color); opacity: 1; }