Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions _data/navigation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,7 @@
link: /news/
- name: Apps
link: /apps/
- name: Check
link: /check/
- name: Community
link: https://github.com/WebView-CG/Compatibility-Data-Project/discussions
234 changes: 234 additions & 0 deletions assets/css/check.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,234 @@
/*
* Styles for the WebView Check widget (/check/), scoped under .check-page
* so they never leak onto the rest of the site. Colors follow the site's
* body.light-mode toggle rather than prefers-color-scheme, since that's
* what the site itself uses (see _js/_theme.js).
*/

.check-page {
--bg: #14151a;
--fg: #e9e9ec;
--muted: #a5a5ad;
--border: #34353c;
--card-bg: #1d1e24;
--pass: #6cd67f;
--warn: #e3b341;
--fail: #ff6b64;
--info: #6fb3ff;
--link: #6fb3ff;

box-sizing: border-box;
max-width: 46rem;
margin: 1.5rem auto;
padding: 1.5rem;
border-radius: 0.75rem;
background: var(--bg);
color: var(--fg);
font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
line-height: 1.5;
}

body.light-mode .check-page {
--bg: #ffffff;
--fg: #1a1a1a;
--muted: #5a5a5a;
--border: #d8d8d8;
--card-bg: #f7f7f8;
--pass: #1e7e34;
--warn: #8a6100;
--fail: #b3261e;
--info: #1a5a9e;
--link: #1a5a9e;
}

.check-page *,
.check-page *::before,
.check-page *::after {
box-sizing: border-box;
}

.check-page a {
color: var(--link);
}

.check-page .check-page-header h1 {
margin: 0 0 0.25rem;
}

.check-page .check-page-header p {
color: var(--muted);
}

.check-page .verdict-banner {
border: 1px solid var(--border);
border-radius: 0.5rem;
padding: 1rem 1.25rem;
margin: 1.5rem 0 1rem;
}

.check-page .verdict-banner h2 {
margin: 0 0 0.25rem;
}

.check-page .verdict-banner p {
margin: 0.5rem 0 0;
color: var(--muted);
}

.check-page .verdict-banner p:first-of-type {
margin-top: 0;
}

.check-page .verdict-basis {
margin: 0.75rem 0 0;
}

.check-page .verdict-basis summary {
cursor: pointer;
color: var(--muted);
font-size: 0.9rem;
}

.check-page .verdict-basis ul {
margin: 0.5rem 0 0;
padding-left: 1.25rem;
color: var(--muted);
font-size: 0.9rem;
}

.check-page .verdict-counts {
font-size: 0.9rem;
}

.check-page .verdict-pass {
border-left: 4px solid var(--pass);
}

.check-page .verdict-warn {
border-left: 4px solid var(--warn);
}

.check-page .verdict-info {
border-left: 4px solid var(--info);
}

.check-page .actions {
display: flex;
justify-content: flex-end;
margin-bottom: 1rem;
}

.check-page button {
font: inherit;
padding: 0.5rem 1rem;
border-radius: 0.4rem;
border: 1px solid var(--border);
background: var(--card-bg);
color: var(--fg);
cursor: pointer;
}

.check-page button:hover {
filter: brightness(1.05);
}

.check-page .category {
margin-bottom: 1.75rem;
}

.check-page .category h3 {
margin-bottom: 0.15rem;
}

.check-page .category-desc {
color: var(--muted);
margin-top: 0;
margin-bottom: 0.75rem;
}

.check-page .test-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 0.5rem;
}

.check-page .test-item {
border: 1px solid var(--border);
border-radius: 0.4rem;
background: var(--card-bg);
padding: 0.15rem 0.85rem;
}

.check-page .test-item summary {
cursor: pointer;
padding: 0.6rem 0;
list-style: none;
}

.check-page .test-item summary::-webkit-details-marker {
display: none;
}

.check-page .test-title {
font-weight: 600;
}

.check-page .test-detail,
.check-page .test-refs {
color: var(--muted);
font-size: 0.9rem;
margin: 0 0 0.75rem;
}

.check-page .check-icon {
display: inline-block;
width: 1em;
height: 1em;
vertical-align: middle;
}

.check-page .detected-badge {
display: inline-block;
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.02em;
padding: 0.1rem 0.45rem;
border-radius: 1rem;
border: 1px solid currentColor;
}

.check-page .status-pass .check-icon,
.check-page .status-pass .test-title,
.check-page .status-pass .detected-badge {
color: var(--pass);
}

.check-page .status-warn .check-icon,
.check-page .status-warn .test-title,
.check-page .status-warn .detected-badge {
color: var(--warn);
}

.check-page .status-fail .check-icon,
.check-page .status-fail .test-title,
.check-page .status-fail .detected-badge {
color: var(--fail);
}

.check-page .status-info .check-icon,
.check-page .status-info .test-title,
.check-page .status-info .detected-badge {
color: var(--info);
}

.check-page .check-page-footer {
margin-top: 2.5rem;
padding-top: 1rem;
border-top: 1px solid var(--border);
color: var(--muted);
font-size: 0.85rem;
}
Loading