Bug 1931507 - [devtools] Adapt toolbox border in High Contrast Mode. r=devtools-reviewers,ochameau.

Make sure the border between the content and the toolbox adapts when Firefox
is in High Contrast Mode.

Differential Revision: https://phabricator.services.mozilla.com/D229115
This commit is contained in:
Nicolas Chevobbe 2024-11-20 14:43:56 +00:00
parent c6228677bb
commit d406d5f0db

View File

@ -8,9 +8,16 @@
/* Splitters */
:root {
--devtools-splitter-color: #e0e0e2;
&[devtoolstheme="dark"] {
--devtools-splitter-color: #38383d;
--devtools-splitter-color: #e0e0e2 /* --grey-25 */;
/* Use :where() so we don't get a higher specificity for this rule */
&:where([devtoolstheme="dark"]) {
--devtools-splitter-color: #38383d /* --grey-70 */;
}
/* We can't use (forced-colors: active) as forced-colors doesn't apply as is,
but @media (forced-colors) should be enough to detect HCM */
@media (forced-colors) {
--devtools-splitter-color: CanvasText;
}
/* Draggable splitter element size */