Skip to content

Commit dd0f588

Browse files
committed
rustdoc: use the regular arrow indicator for dir-entry CSS
This mostly reverts 468acca, while still fixing the problem it fixed by using an internal list-style-position. It results in a slight change in the hover indicator, but nothing misleading.
1 parent 7c99186 commit dd0f588

File tree

1 file changed

+2
-23
lines changed

1 file changed

+2
-23
lines changed

src/librustdoc/html/static/css/rustdoc.css

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,31 +1391,10 @@ details.dir-entry {
13911391
padding-left: 4px;
13921392
}
13931393

1394-
details.dir-entry > summary::after {
1395-
content: " ►";
1396-
position: absolute;
1397-
left: -15px;
1398-
top: 0px;
1399-
font-size: 80%;
1400-
padding: 2px 0px;
1401-
/* set width to cover gap between arrow and text */
1402-
width: 25px;
1403-
}
1404-
1405-
details[open].dir-entry > summary::after {
1406-
content: " ▼";
1407-
}
1408-
1409-
details.dir-entry > summary::-webkit-details-marker,
1410-
details.dir-entry > summary::marker {
1411-
display: none;
1412-
}
1413-
14141394
details.dir-entry > summary {
1415-
margin: 0 0 0 13px;
1416-
list-style: none;
1395+
margin: 0 0 0 -4px;
1396+
padding: 0 0 0 4px;
14171397
cursor: pointer;
1418-
position: relative;
14191398
}
14201399

14211400
details.dir-entry div.folders, details.dir-entry div.files {

0 commit comments

Comments
 (0)