Skip to content

Commit e354f0c

Browse files
authored
Rollup merge of #91699 - jsha:webkit-appearance-search-input, r=GuillaumeGomez
Add `-webkit-appearance: none` to search input This fixes an issue when displaying on iPad, where the search box had no borders. r? ``@GuillaumeGomez`` Demo https://rustdoc.crud.net/jsha/webkit-appearance-search-input/std/string/struct.String.html
2 parents 06a6674 + da472a5 commit e354f0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -892,6 +892,10 @@ h2.small-section-header > .anchor {
892892
top: 10px;
893893
}
894894
.search-input {
895+
/* Override Normalize.css: it has a rule that sets
896+
-webkit-appearance: textfield for search inputs. That
897+
causes rounded corners and no border on iOS Safari. */
898+
-webkit-appearance: none;
895899
/* Override Normalize.css: we have margins and do
896900
not want to overflow - the `moz` attribute is necessary
897901
until Firefox 29, too early to drop at this point */

0 commit comments

Comments
 (0)