mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-09 12:39:23 -03:00
Phase 4: Visual Polish 4.1 Font Stack Upgrade: - Add --font-display token for headings - Replace all hardcoded font-family: monospace with var(--font-mono) - Replace hardcoded 'Segoe UI' stack with var(--font-body) 4.2 Shadow Elevation System: - Add --shadow-2xl, --shadow-card/dropdown/modal/toast/header/dark-lg tokens - Replace hardcoded shadows in header, menu, banner, shared, recipe-modal, progress-panel, import-modal, alphabet-bar with semantic tokens - Add dark theme shadow overrides with increased opacity 4.3 Transitions & Micro-interactions: - Replace transition: all with specified properties (performance) - Use --transition-fast/base/slow tokens instead of hardcoded 0.2s/0.3s - Add :active scale feedback to modal buttons - Enhance card hover with box-shadow + border-color lift 4.4 Dark Theme Refinement: - Elevated shadow opacity for dark theme visibility 4.5 Density: - Standardize container padding with --space-2 token 21 files changed
301 lines
6.2 KiB
CSS
301 lines
6.2 KiB
CSS
/* Banner Container */
|
|
.banner-container {
|
|
position: relative;
|
|
width: 100%;
|
|
z-index: calc(var(--z-header) - 1);
|
|
border-bottom: 1px solid var(--border-color);
|
|
background: var(--card-bg);
|
|
margin-bottom: var(--space-2);
|
|
}
|
|
|
|
/* Individual Banner */
|
|
.banner-item {
|
|
position: relative;
|
|
padding: var(--space-2) var(--space-3);
|
|
background: linear-gradient(135deg,
|
|
oklch(var(--lora-accent-l) var(--lora-accent-c) var(--lora-accent-h) / 0.05),
|
|
oklch(var(--lora-accent-l) var(--lora-accent-c) var(--lora-accent-h) / 0.02)
|
|
);
|
|
border-left: 4px solid var(--lora-accent);
|
|
animation: banner-slide-down 0.3s ease-in-out;
|
|
}
|
|
|
|
/* Banner Content Layout */
|
|
.banner-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: var(--space-3);
|
|
max-width: 1400px;
|
|
margin: 0 auto;
|
|
}
|
|
|
|
/* Banner Text Section */
|
|
.banner-text {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.banner-title {
|
|
margin: 0 0 4px 0;
|
|
font-size: 1.1em;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.banner-description {
|
|
margin: 0;
|
|
font-size: 0.9em;
|
|
color: var(--text-muted);
|
|
line-height: 1.4;
|
|
}
|
|
|
|
/* Banner Actions */
|
|
.banner-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: var(--space-1);
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.banner-action {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 6px;
|
|
padding: 6px 12px;
|
|
border-radius: var(--border-radius-xs);
|
|
text-decoration: none;
|
|
font-size: 0.85em;
|
|
font-weight: 500;
|
|
transition: all 0.2s ease;
|
|
white-space: nowrap;
|
|
border: 1px solid transparent;
|
|
}
|
|
|
|
.banner-action i {
|
|
font-size: 0.9em;
|
|
}
|
|
|
|
/* Primary Action Button */
|
|
.banner-action-primary {
|
|
background: var(--lora-accent);
|
|
color: white;
|
|
border-color: var(--lora-accent);
|
|
}
|
|
|
|
.banner-action-primary:hover {
|
|
background: oklch(calc(var(--lora-accent-l) - 5%) var(--lora-accent-c) var(--lora-accent-h));
|
|
transform: translateY(-1px);
|
|
box-shadow: 0 3px 6px oklch(var(--lora-accent) / 0.3);
|
|
}
|
|
|
|
/* Secondary Action Button */
|
|
.banner-action-secondary {
|
|
background: var(--card-bg);
|
|
color: var(--text-color);
|
|
border-color: var(--border-color);
|
|
}
|
|
|
|
.banner-action-secondary:hover {
|
|
background: var(--lora-accent);
|
|
color: white;
|
|
border-color: var(--lora-accent);
|
|
transform: translateY(-1px);
|
|
box-shadow: var(--shadow-md);
|
|
}
|
|
|
|
/* Tertiary Action Button */
|
|
.banner-action-tertiary {
|
|
background: transparent;
|
|
color: var(--lora-accent);
|
|
border-color: var(--lora-accent);
|
|
}
|
|
|
|
.banner-action-tertiary:hover {
|
|
background: var(--lora-accent);
|
|
color: white;
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
/* Dismiss Button */
|
|
.banner-dismiss {
|
|
position: absolute;
|
|
top: 8px;
|
|
right: 8px;
|
|
width: 24px;
|
|
height: 24px;
|
|
border: none;
|
|
background: transparent;
|
|
color: var(--text-muted);
|
|
cursor: pointer;
|
|
border-radius: 50%;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s ease;
|
|
font-size: 0.8em;
|
|
}
|
|
|
|
.banner-dismiss:hover {
|
|
background: oklch(var(--lora-accent) / 0.1);
|
|
color: var(--lora-accent);
|
|
transform: scale(1.1);
|
|
}
|
|
|
|
/* Animations */
|
|
@keyframes banner-slide-down {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateY(-100%);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
}
|
|
|
|
@keyframes banner-slide-up {
|
|
from {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
max-height: 200px;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
transform: translateY(-20px);
|
|
max-height: 0;
|
|
padding-top: 0;
|
|
padding-bottom: 0;
|
|
}
|
|
}
|
|
|
|
/* Responsive Design */
|
|
@media (max-width: 768px) {
|
|
.banner-content {
|
|
flex-direction: column;
|
|
align-items: flex-start;
|
|
gap: var(--space-2);
|
|
}
|
|
|
|
.banner-actions {
|
|
width: 100%;
|
|
flex-wrap: wrap;
|
|
justify-content: flex-start;
|
|
}
|
|
|
|
.banner-action {
|
|
flex: 1;
|
|
min-width: 0;
|
|
justify-content: center;
|
|
}
|
|
|
|
.banner-dismiss {
|
|
top: 6px;
|
|
right: 6px;
|
|
}
|
|
|
|
.banner-item {
|
|
padding: var(--space-2);
|
|
}
|
|
|
|
.banner-title {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.banner-description {
|
|
font-size: 0.85em;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 480px) {
|
|
.banner-actions {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
}
|
|
|
|
.banner-action {
|
|
width: 100%;
|
|
justify-content: center;
|
|
}
|
|
|
|
.banner-content {
|
|
gap: var(--space-1);
|
|
}
|
|
}
|
|
|
|
/* Dark theme adjustments */
|
|
[data-theme="dark"] .banner-item {
|
|
background: linear-gradient(135deg,
|
|
oklch(var(--lora-accent-l) var(--lora-accent-c) var(--lora-accent-h) / 0.08),
|
|
oklch(var(--lora-accent-l) var(--lora-accent-c) var(--lora-accent-h) / 0.03)
|
|
);
|
|
}
|
|
|
|
/* Prevent text selection */
|
|
.banner-item,
|
|
.banner-title,
|
|
.banner-description,
|
|
.banner-action,
|
|
.banner-dismiss {
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.excluded-view-banner {
|
|
margin-bottom: var(--space-2);
|
|
padding: 12px 16px;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius-sm);
|
|
background: linear-gradient(
|
|
135deg,
|
|
oklch(var(--lora-accent-l) var(--lora-accent-c) var(--lora-accent-h) / 0.08),
|
|
var(--card-bg)
|
|
);
|
|
}
|
|
|
|
.excluded-view-banner__content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
gap: 12px;
|
|
}
|
|
|
|
.excluded-view-banner__title {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 10px;
|
|
font-weight: 600;
|
|
color: var(--text-color);
|
|
}
|
|
|
|
.excluded-view-banner__back {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
border: 1px solid var(--border-color);
|
|
background: var(--card-bg);
|
|
color: var(--text-color);
|
|
border-radius: var(--border-radius-xs);
|
|
padding: 8px 12px;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.excluded-view-banner__back:hover {
|
|
border-color: var(--lora-accent);
|
|
color: var(--lora-accent);
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.excluded-view-banner__content {
|
|
flex-direction: column;
|
|
align-items: stretch;
|
|
}
|
|
|
|
.excluded-view-banner__back {
|
|
justify-content: center;
|
|
}
|
|
}
|