Skip to content

Commit

Permalink
Rollup merge of rust-lang#45240 - GuillaumeGomez:mobile-sidebar-impro…
Browse files Browse the repository at this point in the history
…vements, 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
  • Loading branch information
kennytm authored Oct 13, 2017
2 parents 4ed348e + 9da9c3b commit f43c54e
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/librustdoc/html/static/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -773,17 +773,19 @@ span.since {
}

.sidebar {
height: 40px;
height: 45px;
min-height: 40px;
width: 100%;
margin: 0px;
padding: 0px;
width: calc(100% + 30px);
margin: 0;
margin-left: -15px;
padding: 0 15px;
position: static;
}

.sidebar .location {
float: right;
margin: 0px;
margin-top: 2px;
padding: 3px 10px 1px 10px;
min-height: 39px;
background: inherit;
Expand All @@ -798,7 +800,7 @@ span.since {
.sidebar img {
width: 35px;
margin-top: 5px;
margin-bottom: 0px;
margin-bottom: 5px;
float: left;
}

Expand Down

0 comments on commit f43c54e

Please sign in to comment.