Skip to content

Commit

Permalink
Make the summary triangle appear in the correct place when the summar…
Browse files Browse the repository at this point in the history
…y text overflows to next line. (#1160)
  • Loading branch information
paracycle authored Aug 24, 2024
1 parent 6cde9ed commit f2eb62f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/rdoc/generator/template/darkfish/css/rdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,14 +239,15 @@ nav ul li details {

nav ul li details > summary {
list-style: none; /* Remove the default marker */
position: relative; /* So that the open/close triangle can position itself absolutely inside */
}

nav ul li details > summary::after {
content: '▶'; /* Unicode right-pointing triangle */
position: absolute;
font-size: 0.8em;
top: 0.3em;
padding-left: 0.2em;
bottom: 0.1em;
margin-left: 0.3em;
transition: transform 0.2s ease;
}

Expand Down

0 comments on commit f2eb62f

Please sign in to comment.