fune/browser/components/firefoxview/fxview-empty-state.css
Anna Yeddi 562009c2c1 Bug 1883722 - Update Firefox View stylesheets to use forced-colors instead of prefers-contrast to make room for macOS specific styling. r=morgan,desktop-theme-reviewers,fxview-reviewers?,#fxview-reviewers.
As part of the [HCM and Increased Contrast Support in FX project](https://docs.google.com/document/d/1x37hxRrP9B2c3luy7sz748PCuVygvD3REsluQRQpfYE/edit?usp=sharing), the Accessibility team is auditing existing `prefers-contrast` media query blocks in mozilla-central. For each block with `prefers-contrast` media we want to convert it to `forced-colors` where appropriate.

Refer to the [bug 1877780 #c0](https://bugzilla.mozilla.org/show_bug.cgi?id=1877780#c0) for more information about the project.

Differential Revision: https://phabricator.services.mozilla.com/D203650
2024-03-22 21:01:56 +00:00

99 lines
1.7 KiB
CSS

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
@import url("chrome://global/skin/design-system/text-and-typography.css");
[slot="main"] {
display: flex;
gap: 40px;
align-items: center;
padding: 36px;
}
[slot="main"].selectedTab {
flex-direction: column;
text-align: center;
gap: 22px;
height: 264px;
}
[slot="main"].selectedTab .header {
justify-content: center;
}
[slot="main"].imageHidden .image-container {
display: none;
}
[slot="main"].imageHidden .main {
display: flex;
flex: 1;
justify-content: center;
}
.image-container {
min-width: 150px;
text-align: center;
}
.image {
-moz-context-properties: fill, stroke, fill-opacity;
fill: var(--fxview-background-color-secondary);
stroke: var(--fxview-text-primary-color);
}
.header {
margin-block: 0;
align-items: center;
gap: 8px;
:host(.search-results) & {
font-size: unset;
& span {
overflow-wrap: anywhere;
}
}
&:not([hidden]) {
display: flex;
}
}
.icon {
background-position: center center;
background-repeat: no-repeat;
width: 20px;
height: 20px;
&:not([hidden]) {
display: inline-block;
}
}
.info {
-moz-context-properties: fill;
fill: var(--in-content-primary-button-background);
}
.description {
color: var(--text-color-deemphasized);
margin-block: 4px 15px;
}
.description.secondary {
margin-block-start: 16px;
}
.main a {
color: var(--fxview-primary-action-background);
}
img.greyscale {
filter: grayscale(100%);
@media not (forced-colors) {
opacity: 0.5;
}
}