Rollup merge of #99237 - GuillaumeGomez:rustdoc-css-cleanup, r=notriddle

removed unused CSS and unused HTML IDs

I think that should cover most remaining unused CSS/HTML IDs.

r? `@notriddle`
This commit is contained in:
Dylan DPC 2022-07-15 10:39:44 +05:30 committed by GitHub
commit fe6062f829
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 6 additions and 48 deletions

View File

@ -1442,7 +1442,6 @@ pub struct IdMap {
fn init_id_map() -> FxHashMap<Cow<'static, str>, usize> {
let mut map = FxHashMap::default();
// This is the list of IDs used in Javascript.
map.insert("help".into(), 1);
map.insert("settings".into(), 1);
map.insert("not-displayed".into(), 1);
map.insert("alternative-display".into(), 1);
@ -1455,7 +1454,6 @@ fn init_id_map() -> FxHashMap<Cow<'static, str>, usize> {
map.insert("help-button".into(), 1);
map.insert("main-content".into(), 1);
map.insert("crate-search".into(), 1);
map.insert("render-detail".into(), 1);
map.insert("toggle-all-docs".into(), 1);
map.insert("all-types".into(), 1);
map.insert("default-settings".into(), 1);

View File

@ -1733,13 +1733,12 @@ details.rustdoc-toggle[open] > summary.hideme > span {
display: none;
}
details.undocumented[open] > summary::before,
details.rustdoc-toggle[open] > summary::before,
details.rustdoc-toggle[open] > summary.hideme::before {
background-image: /* AUTOREPLACE: */url("toggle-minus.svg");
}
details.undocumented > summary::before, details.rustdoc-toggle > summary::before {
details.rustdoc-toggle > summary::before {
background-image: /* AUTOREPLACE: */url("toggle-plus.svg");
}

View File

@ -174,13 +174,11 @@ body.source .example-wrap pre.rust a {
}
details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
details.rustdoc-toggle > summary::before {
color: #999;
}
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
details.rustdoc-toggle > summary::before {
filter: invert(100%);
}
@ -218,17 +216,6 @@ details.undocumented > summary::before {
background: none;
}
#help > div {
background: #14191f;
box-shadow: 0px 6px 20px 0px black;
border: none;
border-radius: 4px;
}
#help span.bottom, #help span.top {
border-color: #5c6773;
}
.rightside,
.out-of-band {
color: grey;

View File

@ -148,13 +148,11 @@ body.source .example-wrap pre.rust a {
}
details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
details.rustdoc-toggle > summary::before {
color: #999;
}
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
details.rustdoc-toggle > summary::before {
filter: invert(100%);
}
@ -179,20 +177,6 @@ details.undocumented > summary::before {
.stab.portability { background: #F3DFFF; border-color: #b07bdb; color: #2f2f2f; }
.stab.portability > code { background: none; }
#help > div {
background: #4d4d4d;
border-color: #bfbfbf;
}
#help span.bottom, #help span.top {
border-color: #bfbfbf;
}
#help dt {
border-color: #bfbfbf;
background: rgba(0,0,0,0);
}
.rightside,
.out-of-band {
color: grey;

View File

@ -140,8 +140,7 @@ body.source .example-wrap pre.rust a {
}
details.rustdoc-toggle > summary.hideme > span,
details.rustdoc-toggle > summary::before,
details.undocumented > summary::before {
details.rustdoc-toggle > summary::before {
color: #999;
}
@ -161,15 +160,6 @@ details.undocumented > summary::before {
.stab.portability { background: #F3DFFF; border-color: #b07bdb; }
.stab.portability > code { background: none; }
#help > div {
background: #e9e9e9;
border-color: #bfbfbf;
}
#help span.bottom, #help span.top {
border-color: #bfbfbf;
}
.rightside,
.out-of-band {
color: grey;