Skip to content

Commit f43c54e

Browse files
authored
Rollup merge of #45240 - GuillaumeGomez:mobile-sidebar-improvements, r=QuietMisdreavus
Mobile sidebar improvements Very small changes, I just made the width of the sidebar of 100% and centered vertically both items a bit more: <img width="1440" alt="screen shot 2017-10-12 at 20 00 47" src="https://user-images.githubusercontent.com/3050060/31511496-302bb474-af88-11e7-8dab-2c88799eafcc.png"> r? @rust-lang/docs
2 parents 4ed348e + 9da9c3b commit f43c54e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/librustdoc/html/static/rustdoc.css

+7-5
Original file line numberDiff line numberDiff line change
@@ -773,17 +773,19 @@ span.since {
773773
}
774774

775775
.sidebar {
776-
height: 40px;
776+
height: 45px;
777777
min-height: 40px;
778-
width: 100%;
779-
margin: 0px;
780-
padding: 0px;
778+
width: calc(100% + 30px);
779+
margin: 0;
780+
margin-left: -15px;
781+
padding: 0 15px;
781782
position: static;
782783
}
783784

784785
.sidebar .location {
785786
float: right;
786787
margin: 0px;
788+
margin-top: 2px;
787789
padding: 3px 10px 1px 10px;
788790
min-height: 39px;
789791
background: inherit;
@@ -798,7 +800,7 @@ span.since {
798800
.sidebar img {
799801
width: 35px;
800802
margin-top: 5px;
801-
margin-bottom: 0px;
803+
margin-bottom: 5px;
802804
float: left;
803805
}
804806

0 commit comments

Comments
 (0)