Skip to content

Commit dbea485

Browse files
committed
rustdoc: fix overly broad selectors
1 parent ad37c0b commit dbea485

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/librustdoc/html/static/main.css

+3-4
Original file line numberDiff line numberDiff line change
@@ -207,9 +207,6 @@ nav.sub {
207207
text-overflow: ellipsis;
208208
}
209209

210-
.docblock a { color: #4e8bca; }
211-
.docblock a:hover { text-decoration: underline; }
212-
213210
.docblock.short p {
214211
overflow: hidden;
215212
text-overflow: ellipsis;
@@ -291,6 +288,8 @@ a {
291288
color: #000;
292289
background: transparent;
293290
}
291+
p a { color: #4e8bca; }
292+
p a:hover { text-decoration: underline; }
294293

295294
.content a.trait, .block a.current.trait { color: #ed9603; }
296295
.content a.mod, .block a.current.mod { color: #4d76ae; }
@@ -397,7 +396,7 @@ pre.rust .doccomment { color: #4D4D4C; }
397396
pre.rust .macro, pre.rust .macro-nonterminal { color: #3E999F; }
398397
pre.rust .lifetime { color: #B76514; }
399398

400-
.section-header {
399+
.methods .section-header {
401400
/* Override parent class attributes. */
402401
border-bottom: none !important;
403402
font-size: 1.1em !important;

src/libstd/prelude.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! # The Rust prelude
11+
//! The Rust prelude
1212
//!
1313
//! Because `std` is required by most serious Rust software, it is
1414
//! imported at the topmost level of every crate by default, as if the

0 commit comments

Comments
 (0)