From e6093046e702fc881a2c580e51206162e3bfdcba Mon Sep 17 00:00:00 2001 From: Antoine Marguerie Date: Wed, 25 Sep 2024 09:19:18 +0200 Subject: [PATCH] break long word in sidebar --- .../generator/template/rorvswild/css/rdoc.css | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/lib/rdoc/generator/template/rorvswild/css/rdoc.css b/lib/rdoc/generator/template/rorvswild/css/rdoc.css index c22bf9311c..5bf841eb67 100644 --- a/lib/rdoc/generator/template/rorvswild/css/rdoc.css +++ b/lib/rdoc/generator/template/rorvswild/css/rdoc.css @@ -242,6 +242,7 @@ main h1 { line-height: 3rem; margin: 1rem 0 0; color: var(--color-title); + word-break: break-word; } main h1 + p { @@ -401,18 +402,15 @@ nav footer a:any-link { .nav-section h3 { padding: 0 1rem; } -.nav-section ul { margin-top: 0; } +.nav-section ul { + margin-top: 0; + overflow: hidden; +} .nav-section > ul > li { padding: 0.25em 0.75rem; } -.nav-section li a, -.nav-section li > span { - padding: 0 0.25rem; - display: inline-block; -} - .nav-section li.active > a, .nav-section li.active > details > summary > a, .nav-section li:has(li.active) > details > summary > a { @@ -423,6 +421,13 @@ nav footer a:any-link { cursor: initial; } +.nav-section li a, +.nav-section li > span { + padding: 0 0.25rem; + display: inline-block; + word-break: break-word; +} + nav h2 { margin: 0 0 0.5em; padding: 0.5em 0;