Skip to content

Commit f2eb62f

Browse files
authored
Make the summary triangle appear in the correct place when the summary text overflows to next line. (#1160)
1 parent 6cde9ed commit f2eb62f

File tree

1 file changed

+3
-2
lines changed
  • lib/rdoc/generator/template/darkfish/css

1 file changed

+3
-2
lines changed

lib/rdoc/generator/template/darkfish/css/rdoc.css

+3-2
Original file line numberDiff line numberDiff line change
@@ -239,14 +239,15 @@ nav ul li details {
239239

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

244245
nav ul li details > summary::after {
245246
content: '▶'; /* Unicode right-pointing triangle */
246247
position: absolute;
247248
font-size: 0.8em;
248-
top: 0.3em;
249-
padding-left: 0.2em;
249+
bottom: 0.1em;
250+
margin-left: 0.3em;
250251
transition: transform 0.2s ease;
251252
}
252253

0 commit comments

Comments
 (0)