]> git.lizzy.rs Git - rust.git/commitdiff
rustdoc: remove hover gap in file picker
authorRoland Strasser <rol1510@users.noreply.github.com>
Fri, 7 Oct 2022 23:30:13 +0000 (01:30 +0200)
committerRoland Strasser <rol1510@users.noreply.github.com>
Fri, 7 Oct 2022 23:30:13 +0000 (01:30 +0200)
src/librustdoc/html/static/css/rustdoc.css

index e29abbec69c2d98291847fb520422b37f2dd184b..ce980a5d9ed4737f44f590e4c678692d306585cf 100644 (file)
@@ -1500,10 +1500,26 @@ details.dir-entry {
        padding-left: 4px;
 }
 
+details.dir-entry > summary::after {
+       content: " ►";
+       position: absolute;
+       left: -15px;
+       top: 0px;
+       font-size: 80%;
+       padding: 2px 0px;
+       /* set width to cover gap between arrow and text */
+       width: 25px;
+}
+
+details[open].dir-entry > summary::after {
+       content: " ▼";
+}
+
 details.dir-entry > summary {
        margin: 0 0 0 13px;
-       list-style-position: outside;
+       list-style: none;
        cursor: pointer;
+       position: relative;
 }
 
 details.dir-entry div.folders, details.dir-entry div.files {