aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-12-15 15:27:46 -0800
committerMark Otto <[email protected]>2013-12-15 15:27:46 -0800
commitd9345ff7d55e3982b36f88cb7459239a773bbfda (patch)
tree816a122c505e8608adcf8023649e745222e34ea9 /less/forms.less
parent4f22670c6ecfd4239fe690719867531c18721234 (diff)
downloadbootstrap-d9345ff7d55e3982b36f88cb7459239a773bbfda.tar.xz
bootstrap-d9345ff7d55e3982b36f88cb7459239a773bbfda.zip
Fixes #11266: Apply a pixel-based line-height to date inputs for iOS 7
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less8
1 files changed, 8 insertions, 0 deletions
diff --git a/less/forms.less b/less/forms.less
index e623c42e5..a5f966802 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -155,6 +155,14 @@ output {
}
}
+// 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;
+}
+
// Form groups
//