mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
115 lines
3.5 KiB
CSS
115 lines
3.5 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/. */
|
|
|
|
:root {
|
|
--compatibility-base-unit: 4px;
|
|
--compatibility-cause-color: var(--theme-text-color-alt);
|
|
--compatibility-issue-icon-size: calc(var(--compatibility-base-unit) * 3);
|
|
--compatibility-unsupported-browser-icon-size: calc(var(--compatibility-base-unit) * 4);
|
|
}
|
|
|
|
.compatibility-app {
|
|
height: 100%;
|
|
overflow: auto;
|
|
}
|
|
|
|
.compatibility-issue-list {
|
|
list-style: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
|
|
/*
|
|
* Layout of the issue item
|
|
* +------+--------------+-----------------+---------------------------+
|
|
* | icon | issue factor | (issue causes)? | unsupported browser icons |
|
|
* +------+--------------+-----------------+---------------------------+
|
|
*/
|
|
.compatibility-issue-item {
|
|
display: grid;
|
|
grid-template-columns: var(--compatibility-issue-icon-size) max-content 1fr max-content;
|
|
align-items: center;
|
|
padding-inline-start: calc(var(--compatibility-base-unit) * 2);
|
|
padding-inline-end: calc(var(--compatibility-base-unit) * 4);
|
|
padding-block: calc(var(--compatibility-base-unit) * 2);
|
|
}
|
|
|
|
.compatibility-issue-item > *:nth-child(-n+2) {
|
|
/*
|
|
* The reason why we don't use `gap` in `.compatibility-issue-item` is
|
|
* because there are cases that the `issue causes` element is null,
|
|
* then the layout will be broken a bit.
|
|
*/
|
|
margin-inline-start: var(--compatibility-base-unit);
|
|
}
|
|
|
|
.compatibility-issue-item:not(:last-child) {
|
|
border-block-end: 1px solid var(--theme-splitter-color);
|
|
}
|
|
|
|
.compatibility-issue-item::before {
|
|
content: "";
|
|
width: var(--compatibility-issue-icon-size);
|
|
height: var(--compatibility-issue-icon-size);
|
|
background-size: var(--compatibility-issue-icon-size);
|
|
-moz-context-properties: fill;
|
|
}
|
|
|
|
.compatibility-issue-item--experimental::before,
|
|
.compatibility-issue-item--unsupported::before {
|
|
background-image: url(chrome://devtools/skin/images/info.svg);
|
|
}
|
|
|
|
.compatibility-issue-item--deprecated::before {
|
|
background-image: url(chrome://devtools/skin/images/alert-small.svg);
|
|
fill: var(--theme-icon-warning-color);
|
|
}
|
|
|
|
.compatibility-issue-item__causes {
|
|
color: var(--compatibility-cause-color);
|
|
}
|
|
|
|
.compatibility-issue-item__mdn-link {
|
|
color: var(--theme-highlight-blue);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.compatibility-unsupported-browser-list {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: end;
|
|
list-style: none;
|
|
padding: 0;
|
|
gap: calc(var(--compatibility-base-unit) * 2);
|
|
}
|
|
|
|
.compatibility-unsupported-browser-item {
|
|
width: var(--compatibility-unsupported-browser-icon-size);
|
|
height: var(--compatibility-unsupported-browser-icon-size);
|
|
position: relative;
|
|
}
|
|
|
|
.compatibility-unsupported-browser-item--mobile::after {
|
|
content: "";
|
|
width: calc(var(--compatibility-base-unit) * 2);
|
|
height: calc(var(--compatibility-base-unit) * 3);
|
|
background-color: var(--theme-body-background);
|
|
background-size: calc(var(--compatibility-base-unit) * 2 - 2px);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
background-image: url(chrome://devtools/skin/images/browsers/mobile.svg);
|
|
-moz-context-properties: fill;
|
|
fill: var(--theme-icon-dimmed-color);
|
|
position: absolute;
|
|
right: calc(var(--compatibility-base-unit) * -1);
|
|
bottom: calc(var(--compatibility-base-unit) * -1);
|
|
}
|
|
|
|
.compatibility-unsupported-browser-item__icon {
|
|
width: 100%;
|
|
height: 100%;
|
|
fill: var(--theme-icon-dimmed-color);
|
|
-moz-context-properties: fill;
|
|
}
|