Skip to content

Commit 468acca

Browse files
committed
rustdoc: remove hover gap in file picker
1 parent 2d3a85b commit 468acca

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

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

+17-1
Original file line numberDiff line numberDiff line change
@@ -1500,10 +1500,26 @@ details.dir-entry {
15001500
padding-left: 4px;
15011501
}
15021502

1503+
details.dir-entry > summary::after {
1504+
content: " ►";
1505+
position: absolute;
1506+
left: -15px;
1507+
top: 0px;
1508+
font-size: 80%;
1509+
padding: 2px 0px;
1510+
/* set width to cover gap between arrow and text */
1511+
width: 25px;
1512+
}
1513+
1514+
details[open].dir-entry > summary::after {
1515+
content: " ▼";
1516+
}
1517+
15031518
details.dir-entry > summary {
15041519
margin: 0 0 0 13px;
1505-
list-style-position: outside;
1520+
list-style: none;
15061521
cursor: pointer;
1522+
position: relative;
15071523
}
15081524

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

0 commit comments

Comments
 (0)