aboutsummaryrefslogtreecommitdiff
path: root/less/forms.less
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2015-06-18 16:29:25 -0700
committerMark Otto <[email protected]>2015-06-18 16:29:25 -0700
commita89f00edf76b0f9ab9f8b56014cd419bf72cd5f7 (patch)
tree4a021d9df4abe7617b65fbd440a49f3af8c91842 /less/forms.less
parentde2b660a1485018671ddc3b29d28a4506876fa09 (diff)
parent22e338e3bc7f00e86f2c4803b88732bab76a2c3a (diff)
downloadbootstrap-a89f00edf76b0f9ab9f8b56014cd419bf72cd5f7.tar.xz
bootstrap-a89f00edf76b0f9ab9f8b56014cd419bf72cd5f7.zip
Merge pull request #16529 from WonSong/master
Removes border around <select> caret in IE10+
Diffstat (limited to 'less/forms.less')
-rw-r--r--less/forms.less12
1 files changed, 10 insertions, 2 deletions
diff --git a/less/forms.less b/less/forms.less
index b064ede46..0fa85d850 100644
--- a/less/forms.less
+++ b/less/forms.less
@@ -132,6 +132,12 @@ output {
// Placeholder
.placeholder();
+ // Removes the border and background color around the caret in IE
+ &::-ms-expand {
+ border: 0;
+ background-color: @input-bg;
+ }
+
// Disabled and read-only inputs
//
// HTML5 says that controls under a fieldset > legend:first-child won't be
@@ -139,6 +145,8 @@ output {
// don't honor that edge case; we style them as disabled anyway.
&[disabled],
&[readonly],
+ &[disabled]::-ms-expand,
+ &[readonly]::-ms-expand,
fieldset[disabled] & {
background-color: @input-bg-disabled;
opacity: 1; // iOS fix for unreadable disabled content; see https://github.com/twbs/bootstrap/issues/11655
@@ -433,10 +441,10 @@ input[type="checkbox"] {
.has-feedback label {
& ~ .form-control-feedback {
- top: (@line-height-computed + 5); // Height of the `label` and its margin
+ top: (@line-height-computed + 5); // Height of the `label` and its margin
}
&.sr-only ~ .form-control-feedback {
- top: 0;
+ top: 0;
}
}