aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2014-02-11 09:50:40 -0800
committerMark Otto <[email protected]>2014-02-11 09:50:40 -0800
commit8551f42ae2935c96bd37ae8ed15198a0cc22ede2 (patch)
tree77498aad62c25da55fb121470d91623c14873f58 /less/forms.less
parentb36d19c3c6caf89fbe996678bdefe3f7e9a69281 (diff)
parent2cef0af211e8b6780fff90fe5f110493585aa97c (diff)
downloadbootstrap-8551f42ae2935c96bd37ae8ed15198a0cc22ede2.tar.xz
bootstrap-8551f42ae2935c96bd37ae8ed15198a0cc22ede2.zip
Merge branch 'master' into pr/12412
Conflicts: dist/css/bootstrap-theme.css.map dist/css/bootstrap.css.map dist/css/bootstrap.min.css docs/assets/js/customize.min.js docs/assets/js/raw-files.min.js docs/dist/css/bootstrap-theme.css.map docs/dist/css/bootstrap.css.map docs/dist/css/bootstrap.min.css test-infra/npm-shrinkwrap.canonical.json
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less43
1 files changed, 22 insertions, 21 deletions
diff --git a/less/forms.less b/less/forms.less
index 687d1f437..f607b8509 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -72,13 +72,6 @@ select[size] {
height: auto;
}
-// Fix optgroup Firefox bug per https://github.com/twbs/bootstrap/issues/7611
-select optgroup {
- font-size: inherit;
- font-style: inherit;
- font-family: inherit;
-}
-
// Focus for file, radio, and checkbox
input[type="file"]:focus,
input[type="radio"]:focus,
@@ -86,17 +79,6 @@ input[type="checkbox"]:focus {
.tab-focus();
}
-// Fix for Chrome number input
-//
-// Setting certain font-sizes causes the `I` bar to appear on hover of the
-// decrement button. See https://github.com/twbs/bootstrap/issues/8350.
-input[type="number"] {
- &::-webkit-outer-spin-button,
- &::-webkit-inner-spin-button {
- height: auto;
- }
-}
-
// Adjust output element
output {
display: block;
@@ -151,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] & {
@@ -168,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;
}
@@ -352,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;