зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1685638 - Change :not(:disabled) to :enabled in CSS files. r=ntim
Differential Revision: https://phabricator.services.mozilla.com/D101130
This commit is contained in:
Родитель
f381f38c5e
Коммит
2086f68cb0
|
@ -265,29 +265,29 @@ button.browser-style.expander {
|
|||
}
|
||||
|
||||
/* Interactive States */
|
||||
button.browser-style:hover:not(.pressed, :disabled, .focused),
|
||||
select.browser-style:hover:not(.pressed, :disabled, .focused) {
|
||||
button.browser-style:enabled:hover:not(.pressed, .focused),
|
||||
select.browser-style:enabled:hover:not(.pressed, .focused) {
|
||||
background-color: #ebebeb;
|
||||
border: 1px solid #b1b1b1;
|
||||
}
|
||||
|
||||
button.browser-style:hover:active:not(.hover, :disabled, .focused),
|
||||
select.browser-style:hover:active:not(.hover, :disabled, .focused) {
|
||||
button.browser-style:enabled:hover:active:not(.hover, .focused),
|
||||
select.browser-style:enabled:hover:active:not(.hover, .focused) {
|
||||
background-color: #d4d4d4;
|
||||
border: 1px solid #858585;
|
||||
}
|
||||
|
||||
button.browser-style.default:hover:not(.pressed, :disabled, .focused) {
|
||||
button.browser-style.default:enabled:hover:not(.pressed, .focused) {
|
||||
background-color: #0670cc;
|
||||
border-color: #005bab;
|
||||
}
|
||||
|
||||
button.browser-style.default:hover:active:not(.hover, :disabled, .focused) {
|
||||
button.browser-style.default:enabled:hover:active:not(.hover, .focused) {
|
||||
background-color: #005bab;
|
||||
border-color: #004480;
|
||||
}
|
||||
|
||||
button.browser-style:focus:not(:disabled) {
|
||||
button.browser-style:focus:enabled {
|
||||
border-color: #fff !important;
|
||||
box-shadow: 0 0 0 2px rgba(97, 181, 255, 0.75);
|
||||
}
|
||||
|
@ -326,8 +326,8 @@ textarea.browser-style.focused {
|
|||
}
|
||||
|
||||
/* Interactive States */
|
||||
.browser-style > input[type="text"]:not(:disabled):hover,
|
||||
textarea.browser-style:not(:disabled):hover {
|
||||
.browser-style > input[type="text"]:enabled:hover,
|
||||
textarea.browser-style:enabled:hover {
|
||||
border: 1px solid #858585;
|
||||
}
|
||||
|
||||
|
|
|
@ -338,7 +338,7 @@ document.addEventListener("DOMContentLoaded", e => {
|
|||
"none";
|
||||
}
|
||||
|
||||
let firstRadio = document.querySelector("input:not(:disabled)");
|
||||
let firstRadio = document.querySelector("input:enabled");
|
||||
// There will be no radio options if we are showing the
|
||||
firstRadio.checked = true;
|
||||
document.body.setAttribute("focuseddatatype", firstRadio.dataset.type);
|
||||
|
|
|
@ -47,12 +47,12 @@
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
.ui-button:not(:disabled):hover {
|
||||
.ui-button:enabled:hover {
|
||||
background: var(--button-background-hover-color);
|
||||
color: var(--button-text-hover-color);
|
||||
}
|
||||
|
||||
.ui-button:not(:disabled):active {
|
||||
.ui-button:enabled:active {
|
||||
background: var(--button-background-pressed-color);
|
||||
color: var(--button-text-pressed-color);
|
||||
}
|
||||
|
|
|
@ -20,12 +20,12 @@
|
|||
}
|
||||
|
||||
.command-bar-button:not(.disabled):hover,
|
||||
.devtools-button.debugger-settings-menu-button:empty:not(:disabled, [aria-expanded="true"]):hover {
|
||||
.devtools-button.debugger-settings-menu-button:empty:enabled:not([aria-expanded="true"]):hover {
|
||||
background: var(--theme-toolbar-background-hover);
|
||||
}
|
||||
|
||||
.theme-dark .command-bar-button:not(.disabled):hover,
|
||||
.devtools-button.debugger-settings-menu-button:empty:not(:disabled, [aria-expanded="true"]):hover {
|
||||
.devtools-button.debugger-settings-menu-button:empty:enabled:not([aria-expanded="true"]):hover {
|
||||
background: var(--theme-toolbar-hover);
|
||||
}
|
||||
|
||||
|
|
|
@ -356,7 +356,7 @@ checkbox:-moz-focusring {
|
|||
}
|
||||
|
||||
/* Icon-only buttons */
|
||||
.devtools-button:hover:not(:disabled)::before,
|
||||
.devtools-button:hover:enabled::before,
|
||||
.devtools-button.checked::before {
|
||||
opacity: 1;
|
||||
}
|
||||
|
@ -370,7 +370,7 @@ checkbox:-moz-focusring {
|
|||
background-color: var(--theme-toolbar-hover);
|
||||
}
|
||||
|
||||
.devtools-button:empty:not(:disabled, [aria-expanded="true"]):hover {
|
||||
.devtools-button:empty:enabled:not([aria-expanded="true"]):hover {
|
||||
background: var(--toolbarbutton-hover-background);
|
||||
}
|
||||
|
||||
|
@ -388,17 +388,17 @@ checkbox:-moz-focusring {
|
|||
|
||||
/* Selectable button which is unchecked. */
|
||||
|
||||
.devtools-button:not(:empty, :disabled, .checked):hover,
|
||||
.devtools-button:empty:not(:disabled):is(:hover:active,.checked),
|
||||
.devtools-button:enabled:not(:empty, .checked):hover,
|
||||
.devtools-button:empty:enabled:is(:hover:active,.checked),
|
||||
.devtools-button[aria-haspopup="menu"][aria-expanded="true"] {
|
||||
background-color: var(--toolbarbutton-hover-background);
|
||||
}
|
||||
|
||||
.devtools-button:not(:empty, .checked, :disabled):hover:active {
|
||||
.devtools-button:enabled:not(:empty, .checked):hover:active {
|
||||
background-color: var(--theme-selection-background-hover);
|
||||
}
|
||||
|
||||
.devtools-button:not(:empty, .checked, :disabled):focus {
|
||||
.devtools-button:enabled:not(:empty, .checked):focus {
|
||||
background-color: var(--toolbarbutton-focus-background);
|
||||
color: var(--toolbarbutton-focus-color);
|
||||
}
|
||||
|
|
|
@ -140,12 +140,12 @@ input[type="radio"]:checked {
|
|||
fill: #3485ff;
|
||||
}
|
||||
|
||||
input[type="radio"]:not(:disabled):-moz-focusring,
|
||||
input[type="radio"]:not(:disabled):hover {
|
||||
input[type="radio"]:enabled:-moz-focusring,
|
||||
input[type="radio"]:enabled:hover {
|
||||
border-color: var(--in-content-border-focus);
|
||||
}
|
||||
|
||||
input[type="radio"]:not(:disabled):-moz-focusring {
|
||||
input[type="radio"]:enabled:-moz-focusring {
|
||||
outline: 2px solid var(--in-content-border-active);
|
||||
/* offset outline to align with 1px border-width set for buttons/menulists above. */
|
||||
outline-offset: -1px;
|
||||
|
|
|
@ -552,7 +552,7 @@ html|input[type="checkbox"] {
|
|||
}
|
||||
|
||||
xul|checkbox:not([disabled="true"]):hover > xul|*.checkbox-check,
|
||||
html|input[type="checkbox"]:not(:disabled):hover {
|
||||
html|input[type="checkbox"]:enabled:hover {
|
||||
background-color: var(--grey-90-a20);
|
||||
}
|
||||
|
||||
|
@ -573,7 +573,7 @@ html|input[type="checkbox"]:checked {
|
|||
}
|
||||
|
||||
xul|checkbox:not([disabled="true"])[checked]:hover > xul|*.checkbox-check,
|
||||
html|input[type="checkbox"]:not(:disabled):checked:hover {
|
||||
html|input[type="checkbox"]:enabled:checked:hover {
|
||||
background-color: var(--blue-70);
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче