Skip to content

Commit 8ac957a

Browse files
authored
Rollup merge of #113883 - steffahn:rustdoc-search-crate-selector-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 #98855 (comment) r? ``@GuillaumeGomez``
2 parents add8298 + 2009b4a commit 8ac957a

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

Diff for: src/librustdoc/html/static/css/rustdoc.css

-9
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,6 @@ table,
776776
}
777777
#crate-search {
778778
min-width: 115px;
779-
/* keep these two in sync with "@-moz-document url-prefix()" below */
780779
padding: 0 23px 0 4px;
781780
/* prevents the <select> from overflowing the containing div in case it's shrunk */
782781
max-width: 100%;
@@ -798,14 +797,6 @@ table,
798797
#crate-search:hover, #crate-search:focus {
799798
border-color: var(--crate-search-hover-border);
800799
}
801-
/* cancel stylistic differences in padding in firefox
802-
for "appearance: none"-style (or equivalent) <select>s */
803-
@-moz-document url-prefix() {
804-
#crate-search {
805-
padding-left: 0px; /* == 4px - 4px */
806-
padding-right: 19px; /* == 23px - 4px */
807-
}
808-
}
809800
/* pseudo-element for holding the dropdown-arrow image; needs to be a separate thing
810801
so that we can apply CSS-filters to change the arrow color in themes */
811802
#crate-search-div::after {

0 commit comments

Comments
 (0)