1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 /* Classes used to style the color contrast section in the Accessibility
6 * Checks panel and color picker tooltip across the Inspector panel.
8 * The section consists of:
9 * - contrast ratio value (numeric + score badge (AA/AAA/FAIL)):
10 * Only shows up if contrast ratio can be calculated.
11 * - large text indicator badge:
12 * Only shows up if the selected text node contains large text.
14 .accessibility-color-contrast {
19 align-items: baseline
;
22 .accessibility-color-contrast .accessibility-contrast-value:empty:after {
26 .accessibility-color-contrast .accessibility-contrast-value:after {
27 margin-inline-start: 4px;
30 .accessibility-color-contrast
31 .accessibility-contrast-value
.AA:after
,
32 .accessibility-color-contrast
33 .accessibility-contrast-value.AAA:after {
34 color: var
(--theme-highlight-green
);
37 .accessibility-color-contrast
38 .accessibility-contrast-value.FAIL:after {
39 color: var
(--theme-icon-error-color
);
40 display: inline-block
;
45 background-image: url
(resource://devtools-shared-images
/error-small
.svg
);
46 background-position: center
;
47 background-repeat: no-repeat
;
48 -moz-context-properties: fill
;
52 .accessibility-color-contrast
53 .accessibility-contrast-value.AA:after {
55 unicode-bidi: isolate
;
58 .accessibility-color-contrast
59 .accessibility-contrast-value.AAA:after {
61 unicode-bidi: isolate
;
64 .accessibility-color-contrast .accessibility-color-contrast-separator:before {
66 margin-inline-start: 4px;
69 .accessibility-color-contrast-large-text {
70 background-color: var
(--badge-background-color
);
71 color: var
(--badge-color
);
72 outline: 1px solid var
(--badge-border-color
);
74 margin-inline-start: 6px;