Skip to content

Commit 3d9aceb

Browse files
Fix CSS issues when javascript is disabled
1 parent 4b9f5cc commit 3d9aceb

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/librustdoc/html/static/noscript.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,13 @@ rules.
2323
#main .impl-items .hidden {
2424
display: block !important;
2525
}
26+
27+
#main .impl-items h4.hidden {
28+
/* Without this rule, the version and the "[src]" span aren't on the same line as the header. */
29+
display: flex !important;
30+
}
31+
32+
#main .attributes {
33+
/* Since there is no toggle (the "[-]") when JS is disabled, no need for this margin either. */
34+
margin-left: 0 !important;
35+
}

0 commit comments

Comments
 (0)