зеркало из https://github.com/github/ruby.git
[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:
Родитель
fd0263d7ef
Коммит
519152db6d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче