Skip to content

Commit a8061ce

Browse files
Upgrade "rustdoc" class to ID
1 parent efbaa41 commit a8061ce

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/librustdoc/html/layout.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub fn render<T: Print, S: Print>(
6262
#crate-search{{background-image:url(\"{static_root_path}down-arrow{suffix}.svg\");}}\
6363
</style>\
6464
</head>\
65-
<body class=\"rustdoc {css_class}\">\
65+
<body id=\"rustdoc\" class=\"{css_class}\">\
6666
<!--[if lte IE 8]>\
6767
<div class=\"warning\">\
6868
This old browser is unsupported and will most likely display funky \

src/librustdoc/html/markdown.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1223,6 +1223,7 @@ fn init_id_map() -> FxHashMap<String, usize> {
12231223
map.insert("theme-choices".to_owned(), 1);
12241224
map.insert("settings-menu".to_owned(), 1);
12251225
map.insert("main".to_owned(), 1);
1226+
map.insert("rustdoc".to_owned(), 1);
12261227
map.insert("search".to_owned(), 1);
12271228
map.insert("crate-search".to_owned(), 1);
12281229
map.insert("render-detail".to_owned(), 1);

src/librustdoc/html/static/rustdoc.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ nav.sub {
330330
padding-left: 0;
331331
}
332332

333-
.rustdoc:not(.source) .example-wrap {
333+
#rustdoc:not(.source) .example-wrap {
334334
display: inline-flex;
335335
margin-bottom: 10px;
336336
position: relative;
@@ -349,12 +349,12 @@ nav.sub {
349349
text-align: right;
350350
}
351351

352-
.rustdoc:not(.source) .example-wrap > pre.rust {
352+
#rustdoc:not(.source) .example-wrap > pre.rust {
353353
width: 100%;
354354
overflow-x: auto;
355355
}
356356

357-
.rustdoc:not(.source) .example-wrap > pre {
357+
#rustdoc:not(.source) .example-wrap > pre {
358358
margin: 0;
359359
}
360360

@@ -1320,7 +1320,7 @@ h4 > .notable-traits {
13201320
padding-top: 0px;
13211321
}
13221322

1323-
.rustdoc > .sidebar {
1323+
#rustdoc > .sidebar {
13241324
height: 45px;
13251325
min-height: 40px;
13261326
margin: 0;
@@ -1373,7 +1373,7 @@ h4 > .notable-traits {
13731373
height: 45px;
13741374
}
13751375

1376-
.rustdoc.source > .sidebar > .sidebar-menu {
1376+
#rustdoc.source > .sidebar > .sidebar-menu {
13771377
display: none;
13781378
}
13791379

0 commit comments

Comments
 (0)