[ruby/rdoc] Make the summary triangle appear in the correct place

when the summary text overflows to next line.
(https://github.com/ruby/rdoc/pull/1160)

https://github.com/ruby/rdoc/commit/f2eb62f6f8
This commit is contained in:
Ufuk Kayserilioglu 2024-08-24 14:15:17 -04:00 коммит произвёл git
Родитель fd0263d7ef
Коммит 519152db6d
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -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;
}