Skip to content

Commit da472a5

Browse files
committed
Add -webkit-appearance: none to search input
This fixes an issue when displaying on iPad, where the search box had no borders.
1 parent efec545 commit da472a5

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
@@ -836,6 +836,10 @@ h2.small-section-header > .anchor {
836836
top: 10px;
837837
}
838838
.search-input {
839+
/* Override Normalize.css: it has a rule that sets
840+
-webkit-appearance: textfield for search inputs. That
841+
causes rounded corners and no border on iOS Safari. */
842+
-webkit-appearance: none;
839843
/* Override Normalize.css: we have margins and do
840844
not want to overflow - the `moz` attribute is necessary
841845
until Firefox 29, too early to drop at this point */

0 commit comments

Comments
 (0)