mirror of
https://github.com/twbs/bootstrap.git
synced 2025-09-03 02:13:01 +02:00
Simplify disabled styles (#29296)
* Simplify disabled styles * Mention pointer-events usage
This commit is contained in:
committed by
XhmikosR
parent
167a93a0f3
commit
4387038421
@@ -12,11 +12,14 @@
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
&:not(:disabled):not(.disabled) {
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: .75;
|
||||
}
|
||||
&:hover,
|
||||
&:focus {
|
||||
opacity: .75;
|
||||
}
|
||||
|
||||
&:disabled,
|
||||
&.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,10 +35,3 @@ button.close {
|
||||
border: 0;
|
||||
appearance: none;
|
||||
}
|
||||
|
||||
// Future-proof disabling of clicks on `<a>` elements
|
||||
|
||||
// stylelint-disable-next-line selector-no-qualifying-type
|
||||
a.close.disabled {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
Reference in New Issue
Block a user