Browse Source

Merge pull request #3118 from Calinou/fix-navbar-long-links

Fix the display of very long class names in the navigation bar
Rémi Verschelde 5 years ago
parent
commit
9357a3768f
1 changed files with 6 additions and 0 deletions
  1. 6 0
      _static/css/custom.css

+ 6 - 0
_static/css/custom.css

@@ -547,6 +547,12 @@ code,
 
 
 /* Second (and higher) levels of navigation items */
 /* Second (and higher) levels of navigation items */
 
 
+.wy-menu-vertical li.current a {
+    /* Make long words always display on a single line, keep wrapping for multiple words */
+    /* This fixes the class reference titles' display with very long class names */
+    display: flex;
+}
+
 .wy-menu-vertical li.current a,
 .wy-menu-vertical li.current a,
 .wy-menu-vertical li.toctree-l2.current > a,
 .wy-menu-vertical li.toctree-l2.current > a,
 .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,
 .wy-menu-vertical li.toctree-l2.current li.toctree-l3 > a,