Put specific :disabled rules with its element
It makes more sense to group rules per element type.
This commit is contained in:
parent
30d46a00fa
commit
ee08032fe7
|
@ -129,6 +129,11 @@ select {
|
|||
/* Disable Chrome's touch tap highlight */
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
input[type=image]:disabled {
|
||||
/* See Firefox bug:
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
/*
|
||||
* Select dropdowns
|
||||
|
@ -173,6 +178,11 @@ select:active {
|
|||
var(--button-activation-overlay),
|
||||
var(--grey-background);
|
||||
}
|
||||
select:disabled {
|
||||
background-image:
|
||||
var(--select-arrow),
|
||||
var(--grey-background);
|
||||
}
|
||||
option {
|
||||
/* Prevent Chrome from inheriting background-color from the <select> */
|
||||
background-color: white;
|
||||
|
@ -386,13 +396,3 @@ select:disabled,
|
|||
textarea:disabled {
|
||||
opacity: 0.4;
|
||||
}
|
||||
select:disabled {
|
||||
background-image:
|
||||
var(--select-arrow),
|
||||
var(--grey-background);
|
||||
}
|
||||
input[type=image]:disabled {
|
||||
/* See Firefox bug:
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=1798304 */
|
||||
cursor: default;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue