diff --git a/src/doc/rust.css b/src/doc/rust.css index b9dd7d42fe0..d60dd54a67d 100644 --- a/src/doc/rust.css +++ b/src/doc/rust.css @@ -41,7 +41,7 @@ src: local('Heuristica Bold'), url("Heuristica-Bold.woff") format('woff'); } -* { +*:not(body) { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; @@ -78,16 +78,6 @@ h1, h2, h3 { h1 { margin-bottom: 20px; } -@media (min-width: 1170px) { - h1 { - margin-top: 40px; - margin-bottom: 30px; - } - h1, h2, h3 { - margin-top: 30px; - margin-bottom: 15px; - } -} h4, h5, h6 { margin-top: 12px; margin-bottom: 10px; @@ -197,7 +187,6 @@ pre, code { } pre { border-left: 2px solid #eee; - border-radius: 0; white-space: pre-wrap; padding: 14px; padding-right: 0; @@ -209,14 +198,12 @@ pre { code { padding: 0 2px; color: #8D1A38; - white-space: nowrap; + white-space: pre-wrap; } pre code { padding: 0; font-size: inherit; color: inherit; - white-space: pre-wrap; - background-color: transparent; } /* Code highlighting */ @@ -237,7 +224,7 @@ pre.rust .lifetime { color: #B76514; } margin: 0.5em; font-size: 1.1em; } -@media (min-width: 768px) { +@media (min-width: 992px) { #versioninfo { font-size: 0.8em; position: fixed; @@ -248,7 +235,7 @@ pre.rust .lifetime { color: #B76514; } background-color: #fff; margin: 2px; padding: 0 2px; - border-radius: .3em; + border-radius: .2em; } } #versioninfo a.hash { diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index d65876a1c83..539eb42305c 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -924,19 +924,6 @@ impl<'a> Item<'a> { impl<'a> fmt::Show for Item<'a> { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { - match attr::find_stability(self.item.attrs.iter()) { - Some(ref stability) => { - try!(write!(fmt.buf, - "{lvl}", - lvl = stability.level.to_str(), - reason = match stability.text { - Some(ref s) => (*s).clone(), - None => InternedString::new(""), - })); - } - None => {} - } - // Write the breadcrumb trail header for the top try!(write!(fmt.buf, "\n