Files
2026-11-22 16:03:14 +00:00

325 lines
6.3 KiB
CSS

.ds-card {
background: var(--ds-surface);
border: var(--ds-border-thin) solid var(--ds-border);
border-radius: var(--ds-radius-surface);
padding: var(--ds-space-4);
}
@media (min-width: 48rem) {
.ds-card {
padding: var(--ds-space-6);
}
}
.ds-card__title {
font-size: var(--ds-text-lg);
font-weight: var(--ds-weight-semibold);
}
.ds-card__text {
color: var(--ds-text-muted);
font-size: var(--ds-text-sm);
}
.ds-stat__value {
font-size: var(--ds-text-3xl);
font-weight: var(--ds-weight-bold);
line-height: var(--ds-leading-tight);
font-variant-numeric: tabular-nums;
}
.ds-stat__label {
font-size: var(--ds-text-sm);
color: var(--ds-text-muted);
}
.ds-stat__meta {
font-size: var(--ds-text-xs);
color: var(--ds-text-subtle);
}
.ds-table-wrap {
max-width: 100%;
overflow-x: auto;
background: var(--ds-surface);
border: var(--ds-border-thin) solid var(--ds-border);
border-radius: var(--ds-radius-surface);
}
.ds-table {
width: 100%;
border-collapse: collapse;
font-size: var(--ds-text-sm);
}
.ds-table th {
height: var(--ds-control-md);
padding-inline: var(--ds-space-3);
border-bottom: var(--ds-border-thin) solid var(--ds-border);
color: var(--ds-text-muted);
font-size: var(--ds-text-xs);
font-weight: var(--ds-weight-semibold);
text-align: left;
white-space: nowrap;
}
.ds-table td {
height: var(--ds-space-12);
padding-inline: var(--ds-space-3);
border-bottom: var(--ds-border-thin) solid var(--ds-border);
color: var(--ds-text);
}
.ds-table tbody tr:last-child td {
border-bottom: 0;
}
.ds-table tbody tr:hover {
background: var(--ds-surface-hover);
}
.ds-table--compact td {
height: var(--ds-control-md);
}
.ds-table--roomy td {
height: 3.5rem;
}
.ds-table__num {
text-align: right;
font-variant-numeric: tabular-nums;
}
.ds-table--sticky thead th {
position: sticky;
top: 0;
z-index: var(--ds-z-sticky);
background: var(--ds-surface);
}
.ds-table th[aria-sort="ascending"]::after,
.ds-table th[aria-sort="descending"]::after {
margin-inline-start: var(--ds-space-1);
color: var(--ds-text-subtle);
}
.ds-table th[aria-sort="ascending"]::after {
content: "↑";
}
.ds-table th[aria-sort="descending"]::after {
content: "↓";
}
.ds-badge {
display: inline-flex;
align-items: center;
gap: var(--ds-space-1);
min-height: 1.5rem;
padding-inline: var(--ds-space-2);
border: var(--ds-border-thin) solid transparent;
border-radius: var(--ds-radius-full);
background: var(--ds-surface-sunken);
color: var(--ds-text-muted);
font-size: var(--ds-text-xs);
font-weight: var(--ds-weight-medium);
white-space: nowrap;
}
.ds-badge--success {
background: var(--ds-success-surface);
border-color: var(--ds-success-border);
color: var(--ds-success);
}
.ds-badge--warning {
background: var(--ds-warning-surface);
border-color: var(--ds-warning-border);
color: var(--ds-warning);
}
.ds-badge--danger {
background: var(--ds-danger-surface);
border-color: var(--ds-danger-border);
color: var(--ds-danger);
}
.ds-badge--info {
background: var(--ds-info-surface);
border-color: var(--ds-info-border);
color: var(--ds-info);
}
.ds-alert {
display: flex;
align-items: flex-start;
gap: var(--ds-space-3);
padding: var(--ds-space-3) var(--ds-space-4);
border: var(--ds-border-thin) solid var(--ds-info-border);
border-radius: var(--ds-radius-surface);
background: var(--ds-info-surface);
color: var(--ds-text);
font-size: var(--ds-text-sm);
}
.ds-alert__icon {
width: var(--ds-icon-md);
height: var(--ds-icon-md);
color: var(--ds-info);
}
.ds-alert__title {
font-weight: var(--ds-weight-semibold);
}
.ds-alert__text {
color: var(--ds-text-muted);
}
.ds-alert--success {
background: var(--ds-success-surface);
border-color: var(--ds-success-border);
}
.ds-alert--success .ds-alert__icon {
color: var(--ds-success);
}
.ds-alert--warning {
background: var(--ds-warning-surface);
border-color: var(--ds-warning-border);
}
.ds-alert--warning .ds-alert__icon {
color: var(--ds-warning);
}
.ds-alert--danger {
background: var(--ds-danger-surface);
border-color: var(--ds-danger-border);
}
.ds-alert--danger .ds-alert__icon {
color: var(--ds-danger);
}
.ds-empty {
display: flex;
flex-direction: column;
align-items: center;
gap: var(--ds-space-3);
padding: var(--ds-space-12) var(--ds-space-6);
border: var(--ds-border-strong) dashed var(--ds-border);
border-radius: var(--ds-radius-surface);
background: var(--ds-surface);
text-align: center;
}
.ds-empty__icon {
width: var(--ds-icon-xl);
height: var(--ds-icon-xl);
color: var(--ds-text-subtle);
}
.ds-empty__title {
font-size: var(--ds-text-lg);
font-weight: var(--ds-weight-semibold);
}
.ds-empty__text {
max-width: var(--ds-measure);
color: var(--ds-text-muted);
font-size: var(--ds-text-sm);
}
.ds-skeleton {
background: var(--ds-border);
border-radius: var(--ds-radius-sm);
animation: ds-pulse 1.6s var(--ds-ease-standard) infinite;
}
.ds-skeleton--text {
height: 1em;
width: 100%;
}
.ds-skeleton--title {
height: 1.5rem;
width: 40%;
}
.ds-skeleton--block {
height: 8rem;
}
@keyframes ds-pulse {
50% {
opacity: 0.55;
}
}
@media (prefers-reduced-motion: reduce) {
.ds-skeleton {
animation: none;
opacity: 0.7;
}
}
.ds-progress {
width: 100%;
height: 0.5rem;
overflow: hidden;
background: var(--ds-surface-sunken);
border-radius: var(--ds-radius-full);
}
.ds-progress__bar {
height: 100%;
background: var(--ds-action-bg);
border-radius: inherit;
transition: width var(--ds-duration-base) var(--ds-ease-standard);
}
.ds-card__footer {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: var(--ds-space-3);
margin-top: var(--ds-space-3);
padding-top: var(--ds-space-3);
border-top: var(--ds-border-thin) solid var(--ds-border);
}
.ds-card__meta {
display: flex;
flex-direction: column;
gap: var(--ds-space-1);
}
.ds-card__actions {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: flex-end;
gap: var(--ds-space-2);
flex: 1;
}
.ds-card__actions > details[open] {
flex-basis: 100%;
}
@media (max-width: 48rem) {
.ds-card__footer {
align-items: flex-start;
flex-direction: column;
}
.ds-card__actions {
justify-content: flex-start;
width: 100%;
}
}