mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-31 09:05:47 +02:00
Merge pull request #50 from twbs/disabled-pseudo
use :disabled pseudo-class instead of [disabled] attribute
This commit is contained in:
@@ -141,7 +141,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;
|
||||
@@ -264,7 +264,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;
|
||||
|
Reference in New Issue
Block a user