mirror of
https://github.com/anomalyco/models.dev.git
synced 2026-11-30 10:52:16 +08:00
The sticky column headers never pinned because .table-wrap was its own horizontal scroll container, which clips position: sticky from the page scroller. Drop that overflow so headers stick to the page viewport. While here, bring the tables in line with basic tabular-data practice: - sortable headers are real buttons with aria-sort, so sorting works from the keyboard and announces the current column (including the initial sort) - missing values stay last in both sort directions - numeric columns are right-aligned with tabular figures; the sort arrow sits on the inner edge so header labels stay flush with the numbers - row identity cells use th scope="row" and each table has a caption - modality icons carry an accessible name instead of hover-only tooltips - the Input column sorts by input modalities only (it also included output) - muted cell text uses the secondary color; tertiary failed contrast
1153 lines
20 KiB
CSS
1153 lines
20 KiB
CSS
/* CSS Reset/Normalize */
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
:root {
|
|
--icon-opacity: 0.85;
|
|
--header-height: 56px;
|
|
--font-mono: 'IBM Plex Mono', monospace;
|
|
|
|
--color-brand: #FD9527;
|
|
--color-background: #FFF;
|
|
--color-border: #DDD;
|
|
--color-surface: #F5F5F5;
|
|
--color-alpha-background: rgba(255, 255, 255, 0.84);
|
|
|
|
--color-text: #333;
|
|
--color-text-invert: #FFF;
|
|
--color-text-secondary: #666;
|
|
--color-text-tertiary: #999;
|
|
--logo-image-filter: none;
|
|
}
|
|
|
|
@media (prefers-color-scheme: dark) {
|
|
:root {
|
|
--color-brand: #FD9527;
|
|
--color-background: #1E1E1E;
|
|
--color-border: #333;
|
|
--color-surface: #111;
|
|
--color-alpha-background: rgba(30, 30, 30, 0.84);
|
|
|
|
--color-text: #FFF;
|
|
--color-text-invert: #333;
|
|
--color-text-secondary: #AAA;
|
|
--color-text-tertiary: #666;
|
|
--logo-image-filter: invert(1);
|
|
}
|
|
}
|
|
|
|
html,
|
|
body {
|
|
height: 100%;
|
|
overflow: hidden;
|
|
font-family: 'Rubik', sans-serif;
|
|
line-height: 1.6;
|
|
color: var(--color-text);
|
|
background-color: var(--color-background);
|
|
}
|
|
|
|
body:has(dialog[open]) {
|
|
overscroll-behavior: none;
|
|
}
|
|
|
|
input,
|
|
button {
|
|
font-family: inherit;
|
|
}
|
|
|
|
.sr-only {
|
|
position: absolute;
|
|
width: 1px;
|
|
height: 1px;
|
|
padding: 0;
|
|
margin: -1px;
|
|
overflow: hidden;
|
|
clip: rect(0, 0, 0, 0);
|
|
white-space: nowrap;
|
|
border: 0;
|
|
}
|
|
|
|
a {
|
|
color: var(--color-text);
|
|
text-decoration: underline;
|
|
text-decoration-style: dotted;
|
|
text-decoration-color: var(--color-text-tertiary);
|
|
text-underline-offset: 0.1875rem;
|
|
}
|
|
|
|
a:hover {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
header {
|
|
top: 0;
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
height: var(--header-height);
|
|
padding: 0 0.75rem;
|
|
background-color: var(--color-background);
|
|
position: fixed;
|
|
width: 100%;
|
|
z-index: 20;
|
|
border-bottom: 1px solid transparent;
|
|
}
|
|
|
|
header > div {
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
header > div.left {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
position: relative;
|
|
align-items: baseline;
|
|
}
|
|
|
|
header > div.right {
|
|
flex: 0 0 auto;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
header .brand {
|
|
text-decoration: none;
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
header h1 {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
header p {
|
|
font-size: 0.875rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
color: var(--color-text-tertiary);
|
|
}
|
|
|
|
header .slash {
|
|
margin-left: 0.625rem;
|
|
margin-right: 0.25rem;
|
|
display: block;
|
|
position: relative;
|
|
top: 1px;
|
|
width: 0;
|
|
line-height: 1;
|
|
height: 0.75rem;
|
|
border-right: 2px solid var(--color-border);
|
|
transform: translateX(-50%) rotate(20deg);
|
|
transform-origin: top center;
|
|
}
|
|
|
|
.top-nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.125rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.top-nav a {
|
|
text-decoration: none;
|
|
color: var(--color-text-secondary);
|
|
padding: 0.375rem 0.5rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
.top-nav a:hover,
|
|
.top-nav a.active {
|
|
color: var(--color-text);
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
header a.github {
|
|
flex: 0 0 auto;
|
|
height: 24px;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
header a.github svg {
|
|
opacity: var(--icon-opacity);
|
|
}
|
|
|
|
header .search-container {
|
|
position: relative;
|
|
flex: 0 0 auto;
|
|
min-width: 0;
|
|
}
|
|
|
|
header .search-trigger {
|
|
display: inline-flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
gap: 1.5rem;
|
|
width: 10.5rem;
|
|
font-size: 0.8125rem;
|
|
line-height: 1.1;
|
|
padding: 0.5rem 0.5rem 0.5rem 0.625rem;
|
|
border-radius: 0.25rem;
|
|
border: 1px solid var(--color-border);
|
|
height: 2rem;
|
|
background-color: transparent;
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
header .search-trigger:hover,
|
|
header .search-trigger:focus {
|
|
border-color: var(--color-brand);
|
|
color: var(--color-text);
|
|
background-color: var(--color-surface);
|
|
outline: none;
|
|
}
|
|
|
|
header .search-trigger-label {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
header .search-trigger-label svg {
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
header .search-shortcut {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
font-size: 0.75rem;
|
|
color: var(--color-text-tertiary);
|
|
pointer-events: none;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
}
|
|
|
|
header button {
|
|
flex: 0 0 auto;
|
|
cursor: pointer;
|
|
border: none;
|
|
background-color: var(--color-brand);
|
|
color: var(--color-text-invert);
|
|
font-size: 0.8125rem;
|
|
line-height: 1.1;
|
|
height: 2rem;
|
|
padding: 0.5rem 0.75rem;
|
|
border-radius: 0.25rem;
|
|
}
|
|
|
|
header .mobile-menu-trigger {
|
|
display: none;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
padding: 0;
|
|
color: var(--color-text);
|
|
background-color: transparent;
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
|
|
header .mobile-menu-trigger:hover,
|
|
header .mobile-menu-trigger:focus {
|
|
border-color: var(--color-brand);
|
|
background-color: var(--color-surface);
|
|
outline: none;
|
|
}
|
|
|
|
header .mobile-menu-trigger svg {
|
|
display: block;
|
|
}
|
|
|
|
.page-scroll {
|
|
height: calc(100svh - var(--header-height));
|
|
margin-top: var(--header-height);
|
|
overflow: auto;
|
|
padding-bottom: 4rem;
|
|
scroll-padding-top: 3rem;
|
|
}
|
|
|
|
.overview,
|
|
.detail-header,
|
|
.fact-grid,
|
|
.table-section,
|
|
.json-section {
|
|
width: 100%;
|
|
}
|
|
|
|
.overview {
|
|
display: grid;
|
|
grid-template-columns: minmax(16rem, 1fr) minmax(18rem, 48rem);
|
|
gap: 2rem;
|
|
align-items: end;
|
|
padding: 2rem 0.75rem 1.5rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.overview h2,
|
|
.detail-header h2 {
|
|
font-size: clamp(1.75rem, 3vw, 3rem);
|
|
line-height: 1.05;
|
|
font-weight: 600;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.overview p {
|
|
max-width: 42rem;
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.9375rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
|
|
.stats-strip {
|
|
display: grid;
|
|
grid-template-columns: repeat(5, minmax(0, 1fr));
|
|
border-top: 1px solid var(--color-border);
|
|
border-left: 1px solid var(--color-border);
|
|
}
|
|
|
|
.stats-strip div {
|
|
min-width: 0;
|
|
padding: 0.75rem;
|
|
border-right: 1px solid var(--color-border);
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.stats-strip dt,
|
|
.fact-grid dt {
|
|
font-size: 0.6875rem;
|
|
line-height: 1;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
color: var(--color-text-tertiary);
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.stats-strip dd,
|
|
.fact-grid dd {
|
|
font-size: 0.9375rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.detail-header {
|
|
padding: 2rem 0.75rem 1.25rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.detail-header p {
|
|
max-width: 52rem;
|
|
margin-top: 0.625rem;
|
|
color: var(--color-text-secondary);
|
|
font-size: 1rem;
|
|
line-height: 1.45;
|
|
}
|
|
|
|
.breadcrumbs {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.375rem;
|
|
align-items: center;
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.8125rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.code-line {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
margin-top: 0.75rem;
|
|
}
|
|
|
|
.code-line code,
|
|
.mono {
|
|
font-family: var(--font-mono);
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.code-line code {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
.fact-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, minmax(0, 1fr));
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.fact-grid > div {
|
|
min-width: 0;
|
|
padding: 0.875rem 0.75rem;
|
|
border-right: 1px solid var(--color-border);
|
|
}
|
|
|
|
.fact-grid dd {
|
|
overflow-wrap: anywhere;
|
|
}
|
|
|
|
.fact-modalities {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
min-height: 1rem;
|
|
}
|
|
|
|
.fact-modalities .modality-icon {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
border: 0;
|
|
background-color: transparent;
|
|
}
|
|
|
|
.fact-modalities .modality-icon svg {
|
|
width: 1rem;
|
|
height: 1rem;
|
|
}
|
|
|
|
.fact-logo {
|
|
display: block;
|
|
width: 1.25rem;
|
|
height: 1.25rem;
|
|
}
|
|
|
|
.table-section {
|
|
position: relative;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.section-heading {
|
|
display: flex;
|
|
align-items: baseline;
|
|
justify-content: space-between;
|
|
gap: 1rem;
|
|
padding: 1.25rem 0.75rem 0.75rem;
|
|
}
|
|
|
|
.section-heading h3 {
|
|
font-size: 0.875rem;
|
|
line-height: 1;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.section-heading span {
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.8125rem;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
.table-wrap {
|
|
/* No overflow here: a scrolling wrapper would trap the sticky headers. */
|
|
overflow: visible;
|
|
}
|
|
|
|
table {
|
|
border-collapse: separate;
|
|
border-spacing: 0;
|
|
font-size: 0.875rem;
|
|
min-width: 76rem;
|
|
width: 100%;
|
|
}
|
|
|
|
table thead th {
|
|
position: sticky;
|
|
top: 0;
|
|
border-top: 1px solid var(--color-border);
|
|
border-bottom: 1px solid var(--color-border);
|
|
font-size: 0.75rem;
|
|
padding: 0.75rem 0.75rem calc(0.75rem - 2px);
|
|
line-height: 1;
|
|
font-weight: 400;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
color: var(--color-text-secondary);
|
|
backdrop-filter: blur(6px);
|
|
background-color: var(--color-alpha-background);
|
|
z-index: 10;
|
|
}
|
|
|
|
th.sortable {
|
|
padding: 0;
|
|
user-select: none;
|
|
}
|
|
|
|
.sort-button {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
width: 100%;
|
|
min-height: 46px;
|
|
padding: 0.75rem;
|
|
border: 0;
|
|
background: transparent;
|
|
color: inherit;
|
|
font: inherit;
|
|
text-transform: inherit;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.sort-button:focus-visible {
|
|
outline: 2px solid var(--color-text);
|
|
outline-offset: -2px;
|
|
}
|
|
|
|
.sort-indicator:empty {
|
|
display: none;
|
|
}
|
|
|
|
th[data-type="number"] .sort-button {
|
|
justify-content: flex-end;
|
|
}
|
|
|
|
td.numeric {
|
|
text-align: right;
|
|
font-variant-numeric: tabular-nums;
|
|
}
|
|
|
|
th,
|
|
td {
|
|
padding: 0.75rem;
|
|
text-align: left;
|
|
border-bottom: 1px solid var(--color-border);
|
|
white-space: nowrap;
|
|
height: 48px;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
tbody td {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
tbody th {
|
|
font-weight: 400;
|
|
}
|
|
|
|
table .subtle {
|
|
color: var(--color-text-secondary);
|
|
}
|
|
|
|
tbody th:first-child,
|
|
tbody td:first-child,
|
|
tbody td:nth-child(2),
|
|
tbody td:nth-child(3) {
|
|
color: var(--color-text);
|
|
}
|
|
|
|
tbody tr:last-child > * {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.primary-link {
|
|
font-weight: 500;
|
|
}
|
|
|
|
.subtle {
|
|
display: block;
|
|
color: var(--color-text-tertiary);
|
|
margin-top: 0.125rem;
|
|
}
|
|
|
|
.provider-link,
|
|
.lab-link {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.provider-logo,
|
|
.lab-logo {
|
|
flex: 0 0 auto;
|
|
display: block;
|
|
width: 1rem;
|
|
height: 1rem;
|
|
color: currentColor;
|
|
}
|
|
|
|
.provider-logo svg,
|
|
.lab-logo svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
.copy-cell {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.copy-button {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
vertical-align: middle;
|
|
background: none;
|
|
border: none;
|
|
cursor: pointer;
|
|
padding: 0.25rem;
|
|
margin-left: 0.25rem;
|
|
border-radius: 0.25rem;
|
|
color: var(--color-text-tertiary);
|
|
opacity: 0;
|
|
transition: opacity 0.2s ease, color 0.2s ease;
|
|
}
|
|
|
|
.copy-cell .copy-button {
|
|
margin-left: 0;
|
|
position: relative;
|
|
top: -1px;
|
|
opacity: 0.65;
|
|
}
|
|
|
|
td:hover .copy-button,
|
|
.code-line .copy-button {
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-button svg {
|
|
display: block;
|
|
}
|
|
|
|
.copy-button:hover {
|
|
color: var(--color-text);
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
.copy-button.copied {
|
|
color: var(--color-brand);
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-button.selected {
|
|
color: var(--color-text);
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-button.copy-failed {
|
|
color: var(--color-text);
|
|
opacity: 1;
|
|
}
|
|
|
|
.copy-button:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
.modalities {
|
|
display: flex;
|
|
gap: 0.25rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.modality-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 20px;
|
|
height: 20px;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 2px;
|
|
background-color: var(--color-background);
|
|
color: var(--color-text-secondary);
|
|
position: relative;
|
|
}
|
|
|
|
.modality-icon::after {
|
|
content: attr(data-tooltip);
|
|
position: absolute;
|
|
bottom: 100%;
|
|
left: 50%;
|
|
transform: translateX(-50%);
|
|
margin-bottom: 4px;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
line-height: 1;
|
|
padding: 0.375rem;
|
|
background-color: var(--color-text);
|
|
color: var(--color-background);
|
|
font-size: 0.625rem;
|
|
border-radius: 3px;
|
|
white-space: nowrap;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transition: opacity 0.15s ease;
|
|
z-index: 100;
|
|
}
|
|
|
|
.modality-icon:hover::after {
|
|
opacity: 1;
|
|
}
|
|
|
|
.empty-row {
|
|
display: none;
|
|
}
|
|
|
|
.empty-message {
|
|
display: none;
|
|
padding: 0 0.75rem 1rem;
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.table-section[data-empty] .empty-message {
|
|
display: block;
|
|
}
|
|
|
|
.json-section {
|
|
padding: 1rem 0.75rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
}
|
|
|
|
.json-section summary {
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.json-section pre {
|
|
margin-top: 0.875rem;
|
|
padding: 1rem;
|
|
overflow: auto;
|
|
background-color: var(--color-surface);
|
|
border-radius: 0.25rem;
|
|
font-size: 0.8125rem;
|
|
font-family: var(--font-mono);
|
|
line-height: 1.5;
|
|
}
|
|
|
|
dialog::backdrop {
|
|
backdrop-filter: blur(8px);
|
|
background-color: rgba(0, 0, 0, 0.03);
|
|
}
|
|
|
|
dialog {
|
|
margin: auto;
|
|
background-color: var(--color-background);
|
|
color: var(--color-text);
|
|
border: none;
|
|
border-radius: 0.5rem;
|
|
width: calc(100vw - 2rem);
|
|
max-width: 40rem;
|
|
max-height: calc(100svh - 2rem);
|
|
box-shadow:
|
|
0 2px 4px rgba(0, 0, 0, .05),
|
|
0 4px 8px rgba(0, 0, 0, .05),
|
|
0 8px 16px rgba(0, 0, 0, .07),
|
|
0 16px 32px rgba(0, 0, 0, .07),
|
|
0 32px 64px rgba(0, 0, 0, .07),
|
|
0 48px 96px rgba(0, 0, 0, .07);
|
|
flex-direction: column;
|
|
overflow: hidden;
|
|
}
|
|
|
|
dialog[open] {
|
|
display: flex;
|
|
}
|
|
|
|
dialog .header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.875rem calc(1rem - 0.5rem) calc(0.875rem - 4px) 1rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
dialog .header h2 {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
line-height: 1;
|
|
}
|
|
|
|
dialog .header button {
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
opacity: var(--icon-opacity);
|
|
border: none;
|
|
font-size: 1.5rem;
|
|
line-height: 1;
|
|
cursor: pointer;
|
|
outline: none;
|
|
}
|
|
|
|
dialog .header button svg {
|
|
display: block;
|
|
width: 1.5rem;
|
|
height: 1.5rem;
|
|
}
|
|
|
|
dialog .body {
|
|
padding: 1rem;
|
|
overflow-y: auto;
|
|
flex: 1 1 auto;
|
|
overscroll-behavior: contain;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
dialog .body h2,
|
|
dialog .body p,
|
|
dialog .body .code-block {
|
|
margin-bottom: 0.625rem;
|
|
}
|
|
|
|
dialog .body p:has(+ h2),
|
|
dialog .body .code-block:has(+ h2) {
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
|
|
dialog .body h2 {
|
|
font-size: 1rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
dialog .body .code-block {
|
|
padding: 0.875rem 1rem;
|
|
border-radius: 0.25rem;
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
dialog .body code {
|
|
font-size: 0.8125rem;
|
|
font-family: var(--font-mono);
|
|
}
|
|
|
|
dialog .footer {
|
|
flex: 0 0 auto;
|
|
text-align: center;
|
|
border-top: 1px solid var(--color-border);
|
|
padding: 0.875rem 1rem;
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
dialog .footer a {
|
|
font-size: 0.75rem;
|
|
color: var(--color-text-tertiary);
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mobile-menu {
|
|
width: min(18rem, calc(100vw - 1.5rem));
|
|
max-width: calc(100vw - 1.5rem);
|
|
max-height: calc(100svh - var(--header-height) - 1rem);
|
|
margin: calc(var(--header-height) + 0.5rem) 0.75rem auto auto;
|
|
}
|
|
|
|
.mobile-menu .header {
|
|
padding: 0.875rem calc(0.875rem - 0.25rem) calc(0.875rem - 4px) 0.875rem;
|
|
}
|
|
|
|
.mobile-menu-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
padding: 0.5rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.mobile-menu-list a,
|
|
.mobile-menu-list button {
|
|
display: flex;
|
|
align-items: center;
|
|
width: 100%;
|
|
min-height: 2.5rem;
|
|
padding: 0.625rem 0.75rem;
|
|
border: 0;
|
|
border-radius: 0.375rem;
|
|
background-color: transparent;
|
|
color: var(--color-text);
|
|
cursor: pointer;
|
|
font-size: 0.875rem;
|
|
line-height: 1.2;
|
|
text-align: left;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.mobile-menu-list a:hover,
|
|
.mobile-menu-list a:focus,
|
|
.mobile-menu-list button:hover,
|
|
.mobile-menu-list button:focus,
|
|
.mobile-menu-list a.active {
|
|
background-color: var(--color-surface);
|
|
outline: none;
|
|
}
|
|
|
|
.mobile-menu-list a.active {
|
|
color: var(--color-brand);
|
|
}
|
|
|
|
.search-modal {
|
|
margin-top: 10svh;
|
|
width: calc(100vw - 1.5rem);
|
|
max-width: 48rem;
|
|
max-height: min(44rem, calc(100svh - 1.5rem));
|
|
border-radius: 0.5rem;
|
|
}
|
|
|
|
.search-field {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
padding: 0.875rem 1rem;
|
|
border-bottom: 1px solid var(--color-border);
|
|
flex: 0 0 auto;
|
|
}
|
|
|
|
.search-field-icon {
|
|
flex: 0 0 auto;
|
|
color: var(--color-text-tertiary);
|
|
}
|
|
|
|
.search-field input {
|
|
flex: 1 1 auto;
|
|
min-width: 0;
|
|
border: 0;
|
|
outline: none;
|
|
background: transparent;
|
|
color: var(--color-text);
|
|
font-size: 1rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.search-field input::placeholder {
|
|
color: var(--color-text-tertiary);
|
|
}
|
|
|
|
.search-escape {
|
|
flex: 0 0 auto;
|
|
color: var(--color-text-tertiary);
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.25rem;
|
|
padding: 0.1875rem 0.375rem;
|
|
font-size: 0.6875rem;
|
|
line-height: 1;
|
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
|
|
}
|
|
|
|
.search-count {
|
|
flex: 0 0 auto;
|
|
padding: 0.625rem 1rem 0.375rem;
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.75rem;
|
|
line-height: 1;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.search-results {
|
|
flex: 1 1 auto;
|
|
overflow-y: auto;
|
|
overscroll-behavior: contain;
|
|
padding: 0.25rem 0.5rem 0.5rem;
|
|
}
|
|
|
|
.search-result {
|
|
display: grid;
|
|
grid-template-columns: 2rem minmax(0, 1fr);
|
|
gap: 0.75rem;
|
|
align-items: start;
|
|
padding: 0.625rem;
|
|
border-radius: 0.375rem;
|
|
text-decoration: none;
|
|
color: var(--color-text);
|
|
outline: none;
|
|
}
|
|
|
|
.search-result:hover,
|
|
.search-result.is-active {
|
|
background-color: var(--color-surface);
|
|
}
|
|
|
|
.search-result-icon {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 2rem;
|
|
height: 2rem;
|
|
border: 1px solid var(--color-border);
|
|
border-radius: 0.375rem;
|
|
color: var(--color-text-secondary);
|
|
background-color: var(--color-background);
|
|
}
|
|
|
|
.search-result-icon img {
|
|
display: block;
|
|
width: 1.125rem;
|
|
height: 1.125rem;
|
|
object-fit: contain;
|
|
filter: var(--logo-image-filter);
|
|
}
|
|
|
|
.search-result-body {
|
|
min-width: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.search-result-top {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
min-width: 0;
|
|
}
|
|
|
|
.search-result-title {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-size: 0.9375rem;
|
|
line-height: 1.25;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.search-result-title mark,
|
|
.search-result-subtitle mark {
|
|
color: inherit;
|
|
background-color: color-mix(in srgb, var(--color-brand) 24%, transparent);
|
|
border-radius: 0.125rem;
|
|
}
|
|
|
|
.search-result-kind {
|
|
flex: 0 0 auto;
|
|
padding: 0.1875rem 0.3125rem;
|
|
border-radius: 0.25rem;
|
|
border: 1px solid var(--color-border);
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.625rem;
|
|
line-height: 1;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0;
|
|
}
|
|
|
|
.search-result-subtitle {
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
color: var(--color-text-tertiary);
|
|
}
|
|
|
|
.search-result-meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.25rem;
|
|
color: var(--color-text-secondary);
|
|
font-size: 0.75rem;
|
|
line-height: 1.25;
|
|
}
|
|
|
|
.search-result-meta span {
|
|
min-width: 0;
|
|
max-width: 100%;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
padding: 0.1875rem 0.375rem;
|
|
border-radius: 0.25rem;
|
|
background-color: var(--color-background);
|
|
border: 1px solid var(--color-border);
|
|
}
|
|
|
|
.search-empty {
|
|
flex: 0 0 auto;
|
|
padding: 0.75rem 1rem 1rem;
|
|
color: var(--color-text-tertiary);
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.search-empty[hidden] {
|
|
display: none;
|
|
}
|
|
|
|
@media (max-width: 68rem) {
|
|
.overview {
|
|
grid-template-columns: 1fr;
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.stats-strip {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
|
|
.fact-grid {
|
|
grid-template-columns: repeat(3, minmax(0, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 52rem) {
|
|
header > div.right {
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.top-nav {
|
|
display: none;
|
|
}
|
|
|
|
header .github {
|
|
display: none;
|
|
}
|
|
|
|
header .search-container,
|
|
header > div.right > #help {
|
|
display: none;
|
|
}
|
|
|
|
header .mobile-menu-trigger {
|
|
display: inline-flex;
|
|
}
|
|
|
|
.overview h2,
|
|
.detail-header h2 {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.stats-strip,
|
|
.fact-grid {
|
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
}
|
|
|
|
table {
|
|
min-width: 62rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 32rem) {
|
|
header div.left p,
|
|
header span.slash {
|
|
display: none;
|
|
}
|
|
|
|
header button {
|
|
padding-left: 0.625rem;
|
|
padding-right: 0.625rem;
|
|
}
|
|
|
|
header .mobile-menu-trigger {
|
|
padding: 0;
|
|
}
|
|
|
|
.overview,
|
|
.detail-header {
|
|
padding-top: 1.5rem;
|
|
}
|
|
|
|
.stats-strip,
|
|
.fact-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.stats-strip div,
|
|
.fact-grid div {
|
|
padding: 0.75rem;
|
|
}
|
|
}
|