Skip to content

Commit e609304

Browse files
committed
break long word in sidebar
1 parent 00eb35b commit e609304

File tree

1 file changed

+12
-7
lines changed
  • lib/rdoc/generator/template/rorvswild/css

1 file changed

+12
-7
lines changed

lib/rdoc/generator/template/rorvswild/css/rdoc.css

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ main h1 {
242242
line-height: 3rem;
243243
margin: 1rem 0 0;
244244
color: var(--color-title);
245+
word-break: break-word;
245246
}
246247

247248
main h1 + p {
@@ -401,18 +402,15 @@ nav footer a:any-link {
401402

402403
.nav-section h3 { padding: 0 1rem; }
403404

404-
.nav-section ul { margin-top: 0; }
405+
.nav-section ul {
406+
margin-top: 0;
407+
overflow: hidden;
408+
}
405409

406410
.nav-section > ul > li {
407411
padding: 0.25em 0.75rem;
408412
}
409413

410-
.nav-section li a,
411-
.nav-section li > span {
412-
padding: 0 0.25rem;
413-
display: inline-block;
414-
}
415-
416414
.nav-section li.active > a,
417415
.nav-section li.active > details > summary > a,
418416
.nav-section li:has(li.active) > details > summary > a {
@@ -423,6 +421,13 @@ nav footer a:any-link {
423421
cursor: initial;
424422
}
425423

424+
.nav-section li a,
425+
.nav-section li > span {
426+
padding: 0 0.25rem;
427+
display: inline-block;
428+
word-break: break-word;
429+
}
430+
426431
nav h2 {
427432
margin: 0 0 0.5em;
428433
padding: 0.5em 0;

0 commit comments

Comments
 (0)