Fix mobile doc display
This commit is contained in:
parent
ca517a6ee9
commit
c5a025aae6
3 changed files with 31 additions and 19 deletions
|
@ -1269,7 +1269,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
|
||||
[[package]]
|
||||
name = "minifier"
|
||||
version = "0.0.19"
|
||||
version = "0.0.20"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
dependencies = [
|
||||
"macro-utils 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -2484,7 +2484,7 @@ dependencies = [
|
|||
name = "rustdoc"
|
||||
version = "0.0.0"
|
||||
dependencies = [
|
||||
"minifier 0.0.19 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"minifier 0.0.20 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"parking_lot 0.6.4 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"pulldown-cmark 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
"tempfile 3.0.3 (registry+https://github.com/rust-lang/crates.io-index)",
|
||||
|
@ -3289,7 +3289,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
|
|||
"checksum memchr 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a3b4142ab8738a78c51896f704f83c11df047ff1bda9a92a661aa6361552d93d"
|
||||
"checksum memmap 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)" = "e2ffa2c986de11a9df78620c01eeaaf27d94d3ff02bf81bfcca953102dd0c6ff"
|
||||
"checksum memoffset 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0f9dc261e2b62d7a622bf416ea3c5245cdd5d9a7fcc428c0d06804dfce1775b3"
|
||||
"checksum minifier 0.0.19 (registry+https://github.com/rust-lang/crates.io-index)" = "9908ed7c62f990c21ab41fdca53a864a3ada0da69d8729c4de727b397e27bc11"
|
||||
"checksum minifier 0.0.20 (registry+https://github.com/rust-lang/crates.io-index)" = "96c269bb45c39b333392b2b18ad71760b34ac65666591386b0e959ed58b3f474"
|
||||
"checksum miniz-sys 0.1.10 (registry+https://github.com/rust-lang/crates.io-index)" = "609ce024854aeb19a0ef7567d348aaa5a746b32fb72e336df7fcc16869d7e2b4"
|
||||
"checksum miow 0.3.3 (registry+https://github.com/rust-lang/crates.io-index)" = "396aa0f2003d7df8395cb93e09871561ccc3e785f0acb369170e8cc74ddf9226"
|
||||
"checksum new_debug_unreachable 1.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "0cdc457076c78ab54d5e0d6fa7c47981757f1e34dc39ff92787f217dede586c4"
|
||||
|
|
|
@ -4098,12 +4098,13 @@ impl<'a> fmt::Display for Sidebar<'a> {
|
|||
</div>",
|
||||
version)?;
|
||||
}
|
||||
|
||||
write!(fmt, "<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
|
||||
it.name.as_ref().expect("crates always have a name"))?;
|
||||
}
|
||||
|
||||
write!(fmt, "<div class=\"sidebar-elems\">")?;
|
||||
if it.is_crate() {
|
||||
write!(fmt, "<a id='all-types' href='all.html'><p>See all {}'s items</p></a>",
|
||||
it.name.as_ref().expect("crates always have a name"))?;
|
||||
}
|
||||
match it.inner {
|
||||
clean::StructItem(ref s) => sidebar_struct(fmt, it, s)?,
|
||||
clean::TraitItem(ref t) => sidebar_trait(fmt, it, t)?,
|
||||
|
|
|
@ -908,10 +908,9 @@ span.since {
|
|||
padding-top: 0px;
|
||||
}
|
||||
|
||||
.sidebar {
|
||||
body > .sidebar {
|
||||
height: 45px;
|
||||
min-height: 40px;
|
||||
width: calc(100% + 30px);
|
||||
margin: 0;
|
||||
margin-left: -15px;
|
||||
padding: 0 15px;
|
||||
|
@ -1013,6 +1012,10 @@ span.since {
|
|||
.anchor {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
h1.fqn {
|
||||
overflow: initial;
|
||||
}
|
||||
}
|
||||
|
||||
@media print {
|
||||
|
@ -1112,6 +1115,18 @@ h4 > .important-traits {
|
|||
top: 2px;
|
||||
}
|
||||
|
||||
#all-types {
|
||||
text-align: center;
|
||||
border: 1px solid;
|
||||
margin: 0 10px;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
border-radius: 7px;
|
||||
}
|
||||
#all-types > p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
h4 > .important-traits {
|
||||
position: absolute;
|
||||
|
@ -1135,6 +1150,9 @@ h4 > .important-traits {
|
|||
background-color: rgba(0,0,0,0);
|
||||
height: 100%;
|
||||
}
|
||||
.sidebar {
|
||||
width: calc(100% + 30px);
|
||||
}
|
||||
|
||||
.show-it {
|
||||
display: block;
|
||||
|
@ -1180,6 +1198,10 @@ h4 > .important-traits {
|
|||
.impl > .collapse-toggle {
|
||||
left: -10px;
|
||||
}
|
||||
|
||||
#all-types {
|
||||
margin: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1383,17 +1405,6 @@ kbd {
|
|||
#main > ul > li {
|
||||
list-style: none;
|
||||
}
|
||||
#all-types {
|
||||
text-align: center;
|
||||
border: 1px solid;
|
||||
margin: 0 10px;
|
||||
margin-bottom: 10px;
|
||||
display: block;
|
||||
border-radius: 7px;
|
||||
}
|
||||
#all-types > p {
|
||||
margin: 5px 0;
|
||||
}
|
||||
|
||||
.non-exhaustive {
|
||||
margin-bottom: 1em;
|
||||
|
|
Loading…
Add table
Reference in a new issue