166 lines
2.6 KiB
CSS
166 lines
2.6 KiB
CSS
.root {
|
|
min-width: 0;
|
|
overflow: hidden;
|
|
border: 1px solid var(--ifm-color-emphasis-300);
|
|
border-radius: 12px;
|
|
background: var(--ifm-background-surface-color);
|
|
}
|
|
|
|
.header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 0.75rem;
|
|
padding: 0.8rem 1rem;
|
|
border-bottom: 1px solid var(--ifm-color-emphasis-300);
|
|
}
|
|
|
|
.title {
|
|
margin: 0;
|
|
font-size: 0.95rem;
|
|
font-weight: 700;
|
|
}
|
|
|
|
.live {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.38rem;
|
|
color: var(--ifm-color-emphasis-700);
|
|
font-size: 0.75rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.beep {
|
|
width: 0.5rem;
|
|
height: 0.5rem;
|
|
border-radius: 50%;
|
|
background: var(--ifm-color-emphasis-500);
|
|
}
|
|
|
|
.live[data-connected] .beep {
|
|
background: #2f9e44;
|
|
box-shadow: 0 0 0 0 rgb(47 158 68 / 35%);
|
|
animation: live-beep 2.2s ease-out infinite;
|
|
}
|
|
|
|
.tableWrap {
|
|
overflow-x: auto;
|
|
}
|
|
|
|
.table {
|
|
width: 100%;
|
|
min-width: 36rem;
|
|
margin: 0;
|
|
border-collapse: collapse;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.table th,
|
|
.table td {
|
|
padding: 0.58rem 0.75rem;
|
|
border: 0;
|
|
border-bottom: 1px solid var(--ifm-color-emphasis-200);
|
|
text-align: start;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.table th {
|
|
color: var(--ifm-color-emphasis-700);
|
|
font-size: 0.72rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.table tbody tr:last-child td {
|
|
border-bottom: 0;
|
|
}
|
|
|
|
.status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.35rem;
|
|
font-weight: 650;
|
|
}
|
|
|
|
.status[data-status="processing"] {
|
|
color: #e67700;
|
|
}
|
|
|
|
.status[data-status="completed"] {
|
|
color: #2f9e44;
|
|
}
|
|
|
|
.status[data-status="failed"] {
|
|
color: #e03131;
|
|
}
|
|
|
|
.empty {
|
|
padding: 1.2rem;
|
|
color: var(--ifm-color-emphasis-700);
|
|
font-size: 0.85rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.compact {
|
|
width: 100%;
|
|
height: 100%;
|
|
border: 0;
|
|
border-radius: inherit;
|
|
background: transparent;
|
|
}
|
|
|
|
.compact .header {
|
|
padding: 0.38rem 0.55rem;
|
|
}
|
|
|
|
.compact .title {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.compact .live {
|
|
font-size: 0.65rem;
|
|
}
|
|
|
|
.compact .table {
|
|
min-width: 0;
|
|
font-size: 0.66rem;
|
|
}
|
|
|
|
.compact .table th,
|
|
.compact .table td {
|
|
padding: 0.3rem 0.5rem;
|
|
}
|
|
|
|
.compact .table th:nth-child(n + 4),
|
|
.compact .table td:nth-child(n + 4) {
|
|
display: none;
|
|
}
|
|
|
|
.compact .empty {
|
|
padding: 0.7rem;
|
|
font-size: 0.7rem;
|
|
}
|
|
|
|
@keyframes live-beep {
|
|
0% {
|
|
box-shadow: 0 0 0 0 rgb(47 158 68 / 35%);
|
|
}
|
|
|
|
55%,
|
|
100% {
|
|
box-shadow: 0 0 0 0.35rem rgb(47 158 68 / 0%);
|
|
}
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.live[data-connected] .beep {
|
|
animation: none;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 40rem) {
|
|
.root:not(.compact) .table th:nth-child(5),
|
|
.root:not(.compact) .table td:nth-child(5) {
|
|
display: none;
|
|
}
|
|
}
|