Skip to content

Commit 3aadbed

Browse files
committed
auto merge of #13864 : adrientetar/rust/fix-it-some-more, r=alexcrichton
Two selector fixes for rustdoc: - links colored in blue (#13807) was also affecting headers, which are anchored to their respective ids - the header unstyling from #13776 was being applied to all headers also Additionally, remove a stray title in the documentation. This makes the crate title of prelude appear as header instead of an inline paragraph of text (all others work normally and do not have that header tag). The design is unchanged from my previous template (e.g. [here](http://adrientetar.legtux.org/cached/rust-docs/struct.CChars.htm)), however it is now properly applied. The last fix remaining is to enable webfonts service from `static.rust-lang.org`, this is #13593. r? @alexcrichton, @brson
2 parents a3f9f37 + dbea485 commit 3aadbed

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: 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;

Diff for: 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)