зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1710119 - Improve contrast of the selected tab and tab hover feedback in high contrast mode. r=harry
Differential Revision: https://phabricator.services.mozilla.com/D114630
This commit is contained in:
Родитель
a528363a34
Коммит
34d2f64a86
|
@ -43,7 +43,7 @@
|
|||
(browser/components/newtab/content-src/styles/_variables.scss) */
|
||||
--tabpanel-background-color: #2A2A2E;
|
||||
}
|
||||
} /*** END prefers-color-scheme: dark ***/
|
||||
}
|
||||
} /*** END proton ***/
|
||||
|
||||
:root[uidensity=compact] {
|
||||
|
@ -854,6 +854,14 @@
|
|||
.tabbrowser-tab:hover > .tab-stack > .tab-background:not([selected=true], [multiselected]) {
|
||||
background-color: color-mix(in srgb, currentColor 11%, transparent);
|
||||
}
|
||||
|
||||
@media (prefers-contrast) {
|
||||
.tabbrowser-tab:hover:not(:focus) > .tab-stack > .tab-background:not(:-moz-lwtheme),
|
||||
.tabbrowser-tab:not(:focus) > .tab-stack > .tab-background:is([selected], [multiselected]):not(:-moz-lwtheme) {
|
||||
outline: 1px solid currentColor;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
}
|
||||
} /* END proton */
|
||||
|
||||
@media not (-moz-proton) {
|
||||
|
|
|
@ -20,8 +20,17 @@
|
|||
}
|
||||
} /*** END !proton ***/
|
||||
|
||||
.close-icon:hover {
|
||||
background-color: color-mix(in srgb, currentColor 10%, transparent);
|
||||
@media not (prefers-contrast) {
|
||||
.close-icon:hover {
|
||||
background-color: color-mix(in srgb, currentColor 10%, transparent);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-contrast) {
|
||||
.close-icon:hover {
|
||||
outline: 1px solid currentColor;
|
||||
outline-offset: -1px;
|
||||
}
|
||||
}
|
||||
|
||||
.close-icon:hover:active {
|
||||
|
|
Загрузка…
Ссылка в новой задаче