Browse Source

Merge pull request #6406 from YuriSizov/frontend-hit-that-expand-button

Make the TOC expand button easier to click
Yuri Sizov 2 years ago
parent
commit
6209300684
1 changed files with 16 additions and 0 deletions
  1. 16 0
      _static/css/custom.css

+ 16 - 0
_static/css/custom.css

@@ -1026,6 +1026,22 @@ kbd.compound > .kbd,
     margin-right: 0;
     margin-right: 0;
 }
 }
 
 
+/* Make the expand icon a bit easier to hit. */
+.wy-menu-vertical li a button.toctree-expand {
+    position: relative;
+    width: 12px;
+    height: 18px;
+}
+
+.wy-menu-vertical li a button.toctree-expand:before {
+    position: absolute;
+    top: -3px;
+    left: -6px;
+    width: 24px;
+    height: 24px;
+    padding: 6px;
+}
+
 /* Banner panel in sidebar */
 /* Banner panel in sidebar */
 .wy-nav-side .ethical-rtd.fixed {
 .wy-nav-side .ethical-rtd.fixed {
     position: fixed;
     position: fixed;