Skip to content

Commit 85ad61c

Browse files
committed
Auto merge of #32022 - gohyda:master, r=alexcrichton
- Empty `.sidebar .location` caused "grey line" on top of the documentation page (under 700px) fixed. - `.sidebar .location` appearance improvement in responsive mode.
2 parents 5b5e521 + 311ff03 commit 85ad61c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/librustdoc/html/static/rustdoc.css

+7-3
Original file line numberDiff line numberDiff line change
@@ -616,15 +616,19 @@ a.test-arrow {
616616
}
617617

618618
.sidebar .location {
619-
float: left;
619+
float: right;
620620
margin: 0px;
621-
padding: 5px;
622-
width: 60%;
621+
padding: 3px 10px 1px 10px;
622+
min-height: 39px;
623623
background: inherit;
624624
text-align: left;
625625
font-size: 24px;
626626
}
627627

628+
.sidebar .location:empty {
629+
padding: 0;
630+
}
631+
628632
.sidebar img {
629633
width: 35px;
630634
margin-top: 5px;

0 commit comments

Comments
 (0)