aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-02-08 16:01:56 -0800
committerMark Otto <[email protected]>2014-02-08 16:01:56 -0800
commite3cfd5821db94df0d6eb483d1f859da9dddd55a8 (patch)
tree8af2dc5a1442b8974ecc7809ca516f2c67fde39b /less/forms.less
parent08ff305ed7ba689238d4524b0285d37d15aaf8fa (diff)
parent842af44fccb338f165eb2ea64bdaffd999850881 (diff)
downloadbootstrap-e3cfd5821db94df0d6eb483d1f859da9dddd55a8.tar.xz
bootstrap-e3cfd5821db94df0d6eb483d1f859da9dddd55a8.zip
Merge branch 'master' into pr/12462
Conflicts: dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less25
1 files changed, 22 insertions, 3 deletions
diff --git a/less/forms.less b/less/forms.less
index d0189d0cc..f607b8509 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -133,9 +133,10 @@ output {
.placeholder();
// Disabled and read-only inputs
- // Note: HTML5 says that controls under a fieldset > legend:first-child won't
- // be disabled if the fieldset is disabled. Due to implementation difficulty,
- // we don't honor that edge case; we style them as disabled anyway.
+ //
+ // HTML5 says that controls under a fieldset > legend:first-child won't be
+ // disabled if the fieldset is disabled. Due to implementation difficulty, we
+ // don't honor that edge case; we style them as disabled anyway.
&[disabled],
&[readonly],
fieldset[disabled] & {
@@ -150,10 +151,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;
}
@@ -334,6 +349,10 @@ input[type="checkbox"],
width: auto; // Prevent labels from stacking above inputs in `.form-group`
vertical-align: middle;
}
+ // Input groups need that 100% width though
+ .input-group > .form-control {
+ width: 100%;
+ }
.control-label {
margin-bottom: 0;