Skip to content

Commit

Permalink
Rollup merge of rust-lang#113883 - steffahn:rustdoc-search-crate-sele…
Browse files Browse the repository at this point in the history
…ctor-padding, r=GuillaumeGomez

Remove outdated Firefox-specific CSS for search's crate selector appearance

Remove adjustments that used to be necessary for search's crate selector appearance (padding) to look identical on Firefox. New versions of Firefox appear to have changed behavior to agree with Chrome.

As briefly discussed in rust-lang#98855 (comment)

r? ``@GuillaumeGomez``
  • Loading branch information
matthiaskrgr authored Jul 20, 2023
2 parents add8298 + 2009b4a commit 8ac957a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/librustdoc/html/static/css/rustdoc.css
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,6 @@ table,
}
#crate-search {
min-width: 115px;
/* keep these two in sync with "@-moz-document url-prefix()" below */
padding: 0 23px 0 4px;
/* prevents the <select> from overflowing the containing div in case it's shrunk */
max-width: 100%;
Expand All @@ -798,14 +797,6 @@ table,
#crate-search:hover, #crate-search:focus {
border-color: var(--crate-search-hover-border);
}
/* cancel stylistic differences in padding in firefox
for "appearance: none"-style (or equivalent) <select>s */
@-moz-document url-prefix() {
#crate-search {
padding-left: 0px; /* == 4px - 4px */
padding-right: 19px; /* == 23px - 4px */
}
}
/* pseudo-element for holding the dropdown-arrow image; needs to be a separate thing
so that we can apply CSS-filters to change the arrow color in themes */
#crate-search-div::after {
Expand Down

0 comments on commit 8ac957a

Please sign in to comment.