aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Rebert <[email protected]>2014-12-22 13:33:58 -0800
committerChris Rebert <[email protected]>2014-12-22 13:34:02 -0800
commit5b03c9ad634499ff00a0248602d9f097c3be5e00 (patch)
tree6d0b1832c87c10830e58564e6c96b3ac5364b9a4
parent497b05c1be3336e21060e0b3e031342fc32e4e34 (diff)
downloadbootstrap-5b03c9ad634499ff00a0248602d9f097c3be5e00.tar.xz
bootstrap-5b03c9ad634499ff00a0248602d9f097c3be5e00.zip
[disabled] => :disabled
:disabled is supported in IE9+ and all modern browsers
-rw-r--r--scss/_buttons.scss6
-rw-r--r--scss/_forms.scss4
-rw-r--r--scss/_navbar.scss4
-rw-r--r--scss/mixins/_buttons.scss2
4 files changed, 8 insertions, 8 deletions
diff --git a/scss/_buttons.scss b/scss/_buttons.scss
index 08feff3b6..8f75cbec1 100644
--- a/scss/_buttons.scss
+++ b/scss/_buttons.scss
@@ -43,7 +43,7 @@
}
&.disabled,
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
pointer-events: none; // Future-proof disabling of clicks
cursor: $cursor-disabled;
@@ -88,7 +88,7 @@
&,
&:active,
&.active,
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
background-color: transparent;
@include box-shadow(none);
@@ -105,7 +105,7 @@
text-decoration: underline;
background-color: transparent;
}
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
&:hover,
&:focus {
diff --git a/scss/_forms.scss b/scss/_forms.scss
index 1f68383f9..8d6d00af0 100644
--- a/scss/_forms.scss
+++ b/scss/_forms.scss
@@ -140,7 +140,7 @@ output {
// 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],
+ &:disabled,
&[readonly],
fieldset[disabled] & {
cursor: $cursor-disabled;
@@ -263,7 +263,7 @@ input[type="search"] {
// Note: Neither radios nor checkboxes can be readonly.
input[type="radio"],
input[type="checkbox"] {
- &[disabled],
+ &:disabled,
&.disabled,
fieldset[disabled] & {
cursor: $cursor-disabled;
diff --git a/scss/_navbar.scss b/scss/_navbar.scss
index d021ab0de..d4dcb673f 100644
--- a/scss/_navbar.scss
+++ b/scss/_navbar.scss
@@ -309,7 +309,7 @@
&:focus {
color: $navbar-default-link-hover-color;
}
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
&:hover,
&:focus {
@@ -422,7 +422,7 @@
color: $navbar-inverse-link-hover-color;
}
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
&:hover,
&:focus {
diff --git a/scss/mixins/_buttons.scss b/scss/mixins/_buttons.scss
index 7233b4dc2..b043d60de 100644
--- a/scss/mixins/_buttons.scss
+++ b/scss/mixins/_buttons.scss
@@ -28,7 +28,7 @@
@include box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
}
&.disabled,
- &[disabled],
+ &:disabled,
fieldset[disabled] & {
&,
&:hover,