aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-02-07 02:13:39 -0800
committerMark Otto <[email protected]>2014-02-07 02:13:39 -0800
commit6814393c9ae6be56dbf0fed983001468e2da761f (patch)
tree8328ccd8d2958196acf5460b0b2d3ee6d9d6b511
parentc399bfb01581fcc89474bb1d23718d279e246b45 (diff)
parentda43f97be170b9c14623d1615721755a9a5959cc (diff)
downloadbootstrap-6814393c9ae6be56dbf0fed983001468e2da761f.tar.xz
bootstrap-6814393c9ae6be56dbf0fed983001468e2da761f.zip
Merge pull request #12629 from twbs/search_inputs_ios
Override iOS search input's extra round corners
-rw-r--r--less/forms.less14
1 files changed, 14 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index d0189d0cc..d97993318 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -150,10 +150,24 @@ output {
}
}
+
+// Search inputs in iOS
+//
+// This overrides the extra rounded corners on search inputs in iOS so that our
+// `.form-control` class can properly style them. Note that this cannot simply
+// be added to `.form-control` as it's not specific enough. For details, see
+// https://github.com/twbs/bootstrap/issues/11586.
+
+input[type="search"] {
+ -webkit-appearance: none;
+}
+
+
// Special styles for iOS date input
//
// In Mobile Safari, date inputs require a pixel line-height that matches the
// given height of the input.
+
input[type="date"] {
line-height: @input-height-base;
}