mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
- Implement WebSocket route for initialization progress updates - Create initialization component with progress bar and stages - Add styles for initialization UI - Update base template to include initialization component - Enhance model scanner to broadcast progress during initialization
259 lines
4.3 KiB
CSS
259 lines
4.3 KiB
CSS
/* Initialization Component Styles */
|
|
|
|
.initialization-container {
|
|
width: 100%;
|
|
padding: var(--space-3);
|
|
background: var(--lora-surface);
|
|
border-radius: var(--border-radius-base);
|
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
|
|
animation: fadeIn 0.3s ease-in-out;
|
|
}
|
|
|
|
.initialization-content {
|
|
max-width: 800px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.initialization-header {
|
|
text-align: center;
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.initialization-header h2 {
|
|
font-size: 1.8rem;
|
|
margin-bottom: var(--space-1);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.init-subtitle {
|
|
color: var(--text-color);
|
|
opacity: 0.8;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
/* Progress Bar Styles */
|
|
.initialization-progress {
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.progress-bar-container {
|
|
width: 100%;
|
|
height: 8px;
|
|
background-color: var(--lora-border);
|
|
border-radius: 4px;
|
|
overflow: hidden;
|
|
margin-bottom: var(--space-1);
|
|
}
|
|
|
|
.progress-bar {
|
|
height: 100%;
|
|
background: linear-gradient(90deg, var(--lora-accent) 0%, rgba(var(--lora-accent), 0.8) 100%);
|
|
border-radius: 4px;
|
|
transition: width 0.3s ease;
|
|
width: 0%;
|
|
}
|
|
|
|
.progress-details {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
font-size: 0.9rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
/* Stages Styles */
|
|
.initialization-stages {
|
|
margin-bottom: var(--space-3);
|
|
}
|
|
|
|
.stage-item {
|
|
display: flex;
|
|
align-items: flex-start;
|
|
padding: var(--space-2);
|
|
border-radius: var(--border-radius-xs);
|
|
margin-bottom: var(--space-1);
|
|
transition: background-color 0.2s ease;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.stage-item.active {
|
|
background-color: rgba(var(--lora-accent), 0.1);
|
|
border-color: var(--lora-accent);
|
|
}
|
|
|
|
.stage-item.completed {
|
|
background-color: rgba(0, 150, 0, 0.05);
|
|
border-color: rgba(0, 150, 0, 0.2);
|
|
}
|
|
|
|
.stage-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 40px;
|
|
height: 40px;
|
|
background: var(--lora-border);
|
|
border-radius: 50%;
|
|
margin-right: var(--space-2);
|
|
}
|
|
|
|
.stage-item.active .stage-icon {
|
|
background: var(--lora-accent);
|
|
color: white;
|
|
}
|
|
|
|
.stage-item.completed .stage-icon {
|
|
background: rgb(0, 150, 0);
|
|
color: white;
|
|
}
|
|
|
|
.stage-content {
|
|
flex: 1;
|
|
}
|
|
|
|
.stage-content h4 {
|
|
margin: 0 0 5px 0;
|
|
font-size: 1rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.stage-details {
|
|
font-size: 0.85rem;
|
|
color: var(--text-color);
|
|
opacity: 0.8;
|
|
}
|
|
|
|
.stage-status {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 24px;
|
|
height: 24px;
|
|
}
|
|
|
|
.stage-status.pending {
|
|
color: var(--text-color);
|
|
opacity: 0.5;
|
|
}
|
|
|
|
.stage-status.in-progress {
|
|
color: var(--lora-accent);
|
|
}
|
|
|
|
.stage-status.completed {
|
|
color: rgb(0, 150, 0);
|
|
}
|
|
|
|
/* Tips Styles */
|
|
.initialization-tips {
|
|
background: rgba(var(--lora-accent), 0.05);
|
|
border-radius: var(--border-radius-base);
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.tips-header {
|
|
display: flex;
|
|
align-items: center;
|
|
margin-bottom: var(--space-1);
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tips-header i {
|
|
margin-right: 8px;
|
|
color: var(--lora-accent);
|
|
}
|
|
|
|
.tips-header h3 {
|
|
font-size: 1.1rem;
|
|
margin: 0;
|
|
}
|
|
|
|
.tip-carousel {
|
|
position: relative;
|
|
height: 60px;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.tip-item {
|
|
position: absolute;
|
|
width: 100%;
|
|
opacity: 0;
|
|
transition: opacity 0.5s ease;
|
|
padding: 0 var(--space-1);
|
|
}
|
|
|
|
.tip-item.active {
|
|
opacity: 1;
|
|
}
|
|
|
|
.tip-item p {
|
|
margin: 0;
|
|
line-height: 1.5;
|
|
font-size: 0.9rem;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.tip-navigation {
|
|
display: flex;
|
|
justify-content: center;
|
|
margin-top: var(--space-1);
|
|
}
|
|
|
|
.tip-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
background-color: var(--lora-border);
|
|
margin: 0 4px;
|
|
cursor: pointer;
|
|
transition: background-color 0.2s ease;
|
|
}
|
|
|
|
.tip-dot.active {
|
|
background-color: var(--lora-accent);
|
|
}
|
|
|
|
/* Animation */
|
|
@keyframes fadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(10px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
/* Different stage status animations */
|
|
@keyframes pulse {
|
|
0% {
|
|
transform: scale(1);
|
|
}
|
|
50% {
|
|
transform: scale(1.2);
|
|
}
|
|
100% {
|
|
transform: scale(1);
|
|
}
|
|
}
|
|
|
|
.stage-item.active .stage-icon i {
|
|
animation: pulse 1s infinite;
|
|
}
|
|
|
|
/* Responsive Adjustments */
|
|
@media (max-width: 768px) {
|
|
.initialization-container {
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.stage-item {
|
|
padding: var(--space-1);
|
|
}
|
|
|
|
.stage-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
min-width: 32px;
|
|
}
|
|
} |