- add --color-primary-text for lime used as text or icon color - stop dimming the idle refresh label with opacity - darken the light danger button and lighten the dark danger hover - define syntax highlighting colors per theme as --hl-* tokens - darken light muted text slightly - add a storybook contrast page, fail storybook tests on a11y violations and show live token values in the colors story - bump version to 1.20.2
99 lines
2.0 KiB
CSS
99 lines
2.0 KiB
CSS
.wrapper {
|
|
width: 100%;
|
|
overflow-x: auto;
|
|
border: var(--border-width) solid var(--color-border);
|
|
border-radius: var(--radius-lg);
|
|
background: var(--color-bg-subtle);
|
|
box-shadow: var(--shadow-sm);
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-family: var(--font-family);
|
|
font-size: var(--font-size-sm);
|
|
color: var(--color-text);
|
|
}
|
|
|
|
.th {
|
|
padding: var(--space-3) var(--space-4);
|
|
font-weight: 700;
|
|
font-size: var(--font-size-xs);
|
|
color: #ffffff;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.06em;
|
|
border-bottom: var(--border-width) solid var(--color-secondary-border);
|
|
white-space: nowrap;
|
|
background: var(--color-secondary-fg);
|
|
}
|
|
|
|
.thContent {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.thSortable {
|
|
cursor: pointer;
|
|
user-select: none;
|
|
}
|
|
|
|
.thSortable:hover {
|
|
background: color-mix(in srgb, var(--color-secondary-fg) 80%, var(--color-secondary-border) 20%);
|
|
}
|
|
|
|
.sortIcon {
|
|
opacity: 0.4;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sortIconActive {
|
|
opacity: 1;
|
|
color: var(--color-primary-text);
|
|
}
|
|
|
|
[data-theme="dark"] .th {
|
|
background: var(--color-secondary);
|
|
color: var(--color-secondary-fg);
|
|
}
|
|
|
|
[data-theme="dark"] .thSortable:hover {
|
|
background: color-mix(in srgb, var(--color-secondary) 80%, var(--color-secondary-border) 20%);
|
|
}
|
|
|
|
/* Rounded top corners on first/last header cells */
|
|
.th:first-child { border-radius: var(--radius-lg) 0 0 0; }
|
|
.th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
|
|
|
|
.tr {
|
|
transition: background var(--transition);
|
|
}
|
|
|
|
.tr:nth-child(even) {
|
|
background: color-mix(in srgb, var(--color-secondary) 30%, transparent);
|
|
}
|
|
|
|
.tr:hover {
|
|
background: var(--color-secondary-hover);
|
|
}
|
|
|
|
.clickable {
|
|
cursor: pointer;
|
|
}
|
|
|
|
.tr:not(:last-child) .td {
|
|
border-bottom: var(--border-width) solid var(--color-border);
|
|
}
|
|
|
|
.td {
|
|
padding: var(--space-3) var(--space-4);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.empty {
|
|
padding: var(--space-6) var(--space-4);
|
|
text-align: center;
|
|
color: var(--color-text-muted);
|
|
font-size: var(--font-size-sm);
|
|
}
|