mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-10-10 11:32:13 -03:00
The elevated surface tokens (--bg-elevated / --surface-elevated) are translucent, so sticky modal footers and table headers double-composited over the modal surface and showed a visible lighter seam in light themes. Add derived opaque tokens (--bg-elevated-solid / --surface-elevated-solid, aliased as --lora-surface-solid) and use them for .modal-content, the download/import modal sticky action footers, and the refresh result table's sticky header, so the modal surface and its sticky layers always share one opaque color across every theme and preset.
177 lines
3.7 KiB
CSS
177 lines
3.7 KiB
CSS
/* Metadata Refresh Result Modal — component styles only */
|
|
|
|
.metadata-refresh-result-modal {
|
|
max-width: 700px;
|
|
}
|
|
|
|
.refresh-summary-stats {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: var(--space-2);
|
|
margin: var(--space-3) 0;
|
|
}
|
|
|
|
.stat-card {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-2) var(--space-3);
|
|
border-radius: var(--border-radius-sm);
|
|
background: var(--surface-subtle);
|
|
border-left: 4px solid transparent;
|
|
font-size: var(--text-sm);
|
|
flex: 1;
|
|
min-width: 130px;
|
|
}
|
|
|
|
.stat-card-body {
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-width: 0;
|
|
}
|
|
|
|
.stat-card-label {
|
|
font-size: var(--text-xs);
|
|
color: var(--text-secondary);
|
|
line-height: var(--leading-tight);
|
|
}
|
|
|
|
.stat-card-value {
|
|
font-weight: var(--weight-bold);
|
|
font-size: var(--text-lg);
|
|
color: var(--lora-text);
|
|
line-height: var(--leading-tight);
|
|
}
|
|
|
|
.stat-card-success {
|
|
border-left-color: var(--color-success);
|
|
}
|
|
|
|
.stat-card-failure {
|
|
border-left-color: var(--color-error);
|
|
}
|
|
|
|
.stat-card-skipped {
|
|
border-left-color: var(--color-warning);
|
|
}
|
|
|
|
.stat-card-offline {
|
|
border-left-color: var(--text-secondary);
|
|
}
|
|
|
|
.stat-card-total {
|
|
border-left-color: var(--lora-border);
|
|
}
|
|
|
|
.stat-card-time {
|
|
border-left-color: var(--lora-border);
|
|
}
|
|
|
|
.refresh-failures-section {
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.refresh-failures-section h4 {
|
|
margin: 0 0 var(--space-2) 0;
|
|
font-size: var(--text-base);
|
|
color: var(--color-error);
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
}
|
|
|
|
.refresh-failures-section h4 i {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
.failure-table-wrapper {
|
|
max-height: 300px;
|
|
overflow-y: auto;
|
|
border: 1px solid var(--lora-border);
|
|
border-radius: var(--border-radius-sm);
|
|
}
|
|
|
|
.failure-table {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
font-size: var(--text-sm);
|
|
}
|
|
|
|
.failure-table th {
|
|
position: sticky;
|
|
top: 0;
|
|
/* Solid surface: the sticky header must fully mask the rows scrolling
|
|
underneath; translucent --lora-surface would let them bleed through. */
|
|
background: var(--lora-surface-solid);
|
|
border-bottom: 1px solid var(--lora-border);
|
|
padding: var(--space-1) var(--space-2);
|
|
text-align: left;
|
|
font-weight: var(--weight-semibold);
|
|
color: var(--text-secondary);
|
|
z-index: 1;
|
|
}
|
|
|
|
.failure-table td {
|
|
padding: var(--space-1) var(--space-2);
|
|
border-bottom: 1px solid var(--lora-border);
|
|
vertical-align: top;
|
|
}
|
|
|
|
.failure-table tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.failure-table tr:hover td {
|
|
background: var(--surface-subtle);
|
|
}
|
|
|
|
.failure-index {
|
|
width: 30px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
}
|
|
|
|
.failure-name {
|
|
max-width: 300px;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
white-space: nowrap;
|
|
font-family: var(--font-mono);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.failure-error {
|
|
color: var(--color-error);
|
|
font-size: var(--text-xs);
|
|
}
|
|
|
|
.refresh-success-message {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-2);
|
|
padding: var(--space-3);
|
|
margin-bottom: var(--space-3);
|
|
background: var(--surface-subtle);
|
|
border-left: 4px solid var(--color-success);
|
|
color: var(--lora-text);
|
|
border-radius: var(--border-radius-sm);
|
|
font-weight: var(--weight-medium);
|
|
}
|
|
|
|
.refresh-success-message i {
|
|
font-size: 1.2em;
|
|
flex-shrink: 0;
|
|
color: var(--color-success);
|
|
}
|
|
|
|
[data-theme="dark"] .failure-table th {
|
|
background: var(--lora-surface-solid);
|
|
}
|
|
|
|
[data-theme="dark"] .failure-table td {
|
|
border-bottom-color: var(--lora-border);
|
|
}
|
|
|
|
[data-theme="dark"] .failure-table tr:hover td {
|
|
background: var(--surface-subtle);
|
|
} |