Rustdoc style cleanups

- Make "since" version numbers grey again (regressed in #92602).
 - Remove unneeded selectors for when crate filter dropdown is a
   sibling of search-input.
 - Crate filter dropdown doesn't need to be 100% width on mobile.
 - Only build crate filter dropdown when there is more than one crate.
 - Remove unused addCrateDropdown.
This commit is contained in:
Jacob Hoffman-Andrews 2022-01-12 15:05:47 -08:00
parent ee5d8d37ba
commit 43b9268592
6 changed files with 21 additions and 46 deletions

View file

@ -934,11 +934,6 @@ h2.small-section-header > .anchor {
width: 100%;
}
#crate-search + .search-input {
border-radius: 0 1px 1px 0;
width: calc(100% - 32px);
}
.search-input:focus {
border-radius: 2px;
border: 0;
@ -2070,16 +2065,10 @@ details.rustdoc-toggle[open] > summary.hideme::after {
}
#crate-search {
width: 100%;
border-radius: 4px;
border: 0;
}
#crate-search + .search-input {
width: calc(100% + 71px);
margin-left: -36px;
}
#theme-picker, #settings-menu {
padding: 5px;
width: 31px;