mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-20 10:55:14 +00:00
Rollup merge of #40265 - wesleywiser:rustdoc_style, r=GuillaumeGomez
Improve the style of the sidebar in rustdoc output Makes the sidebar a light grey and highlights the currently viewed item in the sidebar more prominently. All visual design credit goes to @johnwhelchel (#37856) Sample screenshots:   
This commit is contained in:
commit
5694ac9e7b
@ -167,7 +167,11 @@ nav.sub {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
min-height: 100%;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.sidebar .current {
|
||||
margin-right: -20px;
|
||||
}
|
||||
|
||||
.content, nav { max-width: 960px; }
|
||||
@ -185,11 +189,16 @@ nav.sub {
|
||||
}
|
||||
|
||||
.sidebar .location {
|
||||
border: 1px solid;
|
||||
font-size: 17px;
|
||||
margin: 30px 0 20px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.location:empty {
|
||||
border: none;
|
||||
}
|
||||
|
||||
.location a:first-child { font-weight: 500; }
|
||||
|
||||
.block {
|
||||
|
@ -37,8 +37,17 @@ pre {
|
||||
background-color: #F5F5F5;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
background-color: #F1F1F1;
|
||||
}
|
||||
|
||||
.sidebar .current {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.sidebar .location {
|
||||
background: #e1e1e1;
|
||||
border-color: #000;
|
||||
background-color: #fff;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user