Skip to content

Commit

Permalink
break long word in sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinem committed Sep 25, 2024
1 parent 00eb35b commit e609304
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions lib/rdoc/generator/template/rorvswild/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@ main h1 {
line-height: 3rem;
margin: 1rem 0 0;
color: var(--color-title);
word-break: break-word;
}

main h1 + p {
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
Expand Down

0 comments on commit e609304

Please sign in to comment.