mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-01 13:24:25 +01:00
Consistently use :disabled
rather than [disabled]
selector (#25317)
Closes https://github.com/twbs/bootstrap/issues/25316
This commit is contained in:
parent
fa3de5cbd8
commit
1f490ec165
@ -34,12 +34,12 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .btn elements
|
// Opinionated: add "hand" cursor to non-disabled .btn elements
|
||||||
&:not([disabled]):not(.disabled) {
|
&:not(:disabled):not(.disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not([disabled]):not(.disabled):active,
|
&:not(:disabled):not(.disabled):active,
|
||||||
&:not([disabled]):not(.disabled).active {
|
&:not(:disabled):not(.disabled).active {
|
||||||
background-image: none;
|
background-image: none;
|
||||||
@include box-shadow($btn-active-box-shadow);
|
@include box-shadow($btn-active-box-shadow);
|
||||||
|
|
||||||
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
// Future-proof disabling of clicks on `<a>` elements
|
// Future-proof disabling of clicks on `<a>` elements
|
||||||
a.btn.disabled,
|
a.btn.disabled,
|
||||||
fieldset[disabled] a.btn {
|
fieldset:disabled a.btn {
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .close elements
|
// Opinionated: add "hand" cursor to non-disabled .close elements
|
||||||
&:not([disabled]):not(.disabled) {
|
&:not(:disabled):not(.disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .navbar-toggler elements
|
// Opinionated: add "hand" cursor to non-disabled .navbar-toggler elements
|
||||||
&:not([disabled]):not(.disabled) {
|
&:not(:disabled):not(.disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Opinionated: add "hand" cursor to non-disabled .page-link elements
|
// Opinionated: add "hand" cursor to non-disabled .page-link elements
|
||||||
&:not([disabled]):not(.disabled) {
|
&:not(:disabled):not(.disabled) {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -33,8 +33,8 @@
|
|||||||
border-color: $border;
|
border-color: $border;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not([disabled]):not(.disabled):active,
|
&:not(:disabled):not(.disabled):active,
|
||||||
&:not([disabled]):not(.disabled).active,
|
&:not(:disabled):not(.disabled).active,
|
||||||
.show > &.dropdown-toggle {
|
.show > &.dropdown-toggle {
|
||||||
color: color-yiq($active-background);
|
color: color-yiq($active-background);
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
@ -77,8 +77,8 @@
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
|
|
||||||
&:not([disabled]):not(.disabled):active,
|
&:not(:disabled):not(.disabled):active,
|
||||||
&:not([disabled]):not(.disabled).active,
|
&:not(:disabled):not(.disabled).active,
|
||||||
.show > &.dropdown-toggle {
|
.show > &.dropdown-toggle {
|
||||||
color: color-yiq($active-background);
|
color: color-yiq($active-background);
|
||||||
background-color: $active-background;
|
background-color: $active-background;
|
||||||
|
Loading…
Reference in New Issue
Block a user