mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-21 21:22:11 -03:00
522 lines
11 KiB
CSS
522 lines
11 KiB
CSS
.container {
|
||
max-width: 1400px;
|
||
margin: 20px auto;
|
||
padding: 0 15px;
|
||
}
|
||
|
||
.controls {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
margin-bottom: var(--space-2);
|
||
}
|
||
|
||
.actions {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: var(--space-2);
|
||
flex-wrap: nowrap;
|
||
width: 100%;
|
||
}
|
||
|
||
/* Search and filter styles moved to components/search-filter.css */
|
||
|
||
/* Update corner-controls for collapsible behavior */
|
||
.corner-controls {
|
||
position: fixed;
|
||
top: 20px;
|
||
right: 20px;
|
||
z-index: var(--z-overlay);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.corner-controls-toggle {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
z-index: 2;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.corner-controls-toggle:hover {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.corner-controls-items {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
opacity: 0;
|
||
transform: translateY(-10px) scale(0.9);
|
||
transition: all 0.3s ease;
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Expanded state */
|
||
.corner-controls.expanded .corner-controls-items {
|
||
opacity: 1;
|
||
transform: translateY(0) scale(1);
|
||
pointer-events: all;
|
||
}
|
||
|
||
/* Expanded state - only expand on hover if not already expanded by click */
|
||
.corner-controls:hover:not(.expanded) .corner-controls-items {
|
||
opacity: 1;
|
||
transform: translateY(0) scale(1);
|
||
pointer-events: all;
|
||
}
|
||
|
||
/* Ensure hidden class works properly */
|
||
.hidden {
|
||
display: none !important;
|
||
}
|
||
|
||
/* Update toggle button styles */
|
||
.update-toggle {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-color); /* Changed from var(--lora-accent) to match other toggles */
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
position: relative;
|
||
}
|
||
|
||
.update-toggle:hover {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
/* Update badge styles */
|
||
.update-badge {
|
||
position: absolute;
|
||
top: -3px;
|
||
right: -3px;
|
||
background-color: var(--lora-error);
|
||
width: 8px;
|
||
height: 8px;
|
||
border-radius: 50%;
|
||
box-shadow: 0 0 0 2px var(--card-bg);
|
||
}
|
||
|
||
/* Badge on corner toggle */
|
||
.corner-badge {
|
||
top: 0;
|
||
right: 0;
|
||
}
|
||
|
||
.folder-tags-container {
|
||
position: relative;
|
||
width: 100%;
|
||
margin-bottom: 8px; /* Add margin to ensure space for the button */
|
||
}
|
||
|
||
.folder-tags {
|
||
transition: max-height 0.3s ease, opacity 0.2s ease;
|
||
max-height: 150px; /* Limit height to prevent overflow */
|
||
opacity: 1;
|
||
overflow-y: auto; /* Enable vertical scrolling */
|
||
padding-right: 40px; /* Make space for the toggle button */
|
||
margin-bottom: 5px; /* Add margin below the tags */
|
||
}
|
||
|
||
.folder-tags.collapsed {
|
||
max-height: 0;
|
||
opacity: 0;
|
||
margin: 0;
|
||
padding-bottom: 0;
|
||
}
|
||
|
||
/* Toggle Folders Button */
|
||
.toggle-folders-btn {
|
||
position: absolute;
|
||
bottom: 0; /* 固定在容器底部 */
|
||
right: 0; /* 固定在容器右侧 */
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.3s ease;
|
||
z-index: 2;
|
||
}
|
||
|
||
.toggle-folders-btn:hover {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.toggle-folders-btn i {
|
||
transition: transform 0.3s ease;
|
||
}
|
||
|
||
/* 折叠状态样式 */
|
||
.folder-tags.collapsed + .toggle-folders-btn {
|
||
position: static;
|
||
margin-right: auto; /* 确保按钮在左侧 */
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.folder-tags.collapsed + .toggle-folders-btn i {
|
||
transform: rotate(180deg);
|
||
}
|
||
|
||
/* 文件夹标签样式 */
|
||
.folder-tags {
|
||
display: flex;
|
||
gap: 4px;
|
||
padding: 2px 0;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
/* Add custom scrollbar for better visibility */
|
||
.folder-tags::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
|
||
.folder-tags::-webkit-scrollbar-track {
|
||
background: var(--card-bg);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.folder-tags::-webkit-scrollbar-thumb {
|
||
background: var(--border-color);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.folder-tags::-webkit-scrollbar-thumb:hover {
|
||
background: var(--lora-accent);
|
||
}
|
||
|
||
.tag {
|
||
cursor: pointer;
|
||
padding: 2px 8px;
|
||
margin: 2px;
|
||
border: 1px solid #ccc;
|
||
border-radius: var(--border-radius-xs);
|
||
display: inline-block;
|
||
line-height: 1.2;
|
||
font-size: 14px;
|
||
}
|
||
|
||
.tag.active {
|
||
background-color: #007bff;
|
||
color: white;
|
||
}
|
||
|
||
/* Back to Top Button */
|
||
.back-to-top {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
right: 20px;
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var (--text-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
transform: translateY(10px);
|
||
transition: all 0.3s ease;
|
||
z-index: var(--z-overlay);
|
||
}
|
||
|
||
.back-to-top.visible {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.back-to-top:hover {
|
||
background: var (--lora-accent);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.theme-toggle {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-color);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.theme-toggle:hover {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.support-toggle {
|
||
width: 36px;
|
||
height: 36px;
|
||
border-radius: 50%;
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--lora-error);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.support-toggle:hover {
|
||
background: var(--lora-error);
|
||
color: white;
|
||
transform: translateY(-2px);
|
||
}
|
||
|
||
.support-toggle i {
|
||
font-size: 1.1em;
|
||
position: relative;
|
||
top: 1px;
|
||
left: -0.5px;
|
||
}
|
||
|
||
.theme-toggle img {
|
||
width: 20px;
|
||
height: 20px;
|
||
}
|
||
|
||
.theme-toggle .theme-icon {
|
||
width: 20px;
|
||
height: 20px;
|
||
position: absolute;
|
||
transition: opacity 0.2s ease;
|
||
}
|
||
|
||
.theme-toggle .light-icon {
|
||
opacity: 0;
|
||
}
|
||
|
||
.theme-toggle .dark-icon {
|
||
opacity: 1;
|
||
}
|
||
|
||
[data-theme="light"] .theme-toggle .light-icon {
|
||
opacity: 1;
|
||
}
|
||
|
||
[data-theme="light"] .theme-toggle .dark-icon {
|
||
opacity: 0;
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.actions {
|
||
flex-wrap: wrap;
|
||
gap: var(--space-1);
|
||
}
|
||
|
||
.controls {
|
||
flex-direction: column;
|
||
gap: 15px;
|
||
}
|
||
|
||
.folder-tags-container {
|
||
order: -1;
|
||
}
|
||
|
||
.toggle-folders-btn {
|
||
position: absolute;
|
||
bottom: 0;
|
||
right: 0;
|
||
transform: none; /* 移除transform,防止hover时的位移 */
|
||
}
|
||
|
||
.toggle-folders-btn:hover {
|
||
transform: none; /* 移动端下禁用hover效果 */
|
||
}
|
||
|
||
.folder-tags.collapsed + .toggle-folders-btn {
|
||
position: relative;
|
||
transform: none;
|
||
}
|
||
|
||
.corner-controls {
|
||
top: 10px;
|
||
right: 10px;
|
||
}
|
||
|
||
.corner-controls-items {
|
||
display: none;
|
||
}
|
||
|
||
.corner-controls.expanded .corner-controls-items {
|
||
display: flex;
|
||
}
|
||
|
||
.back-to-top {
|
||
bottom: 60px; /* Give some extra space from bottom on mobile */
|
||
}
|
||
}
|
||
|
||
/* Bulk Operations Styles */
|
||
.bulk-operations-panel {
|
||
position: fixed;
|
||
bottom: 20px;
|
||
left: 50%;
|
||
transform: translateY(100px) translateX(-50%);
|
||
background: var(--card-bg);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: var(--border-radius-base);
|
||
padding: 12px 16px;
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
||
z-index: var(--z-overlay);
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-width: 300px;
|
||
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
|
||
opacity: 0;
|
||
}
|
||
|
||
.bulk-operations-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
margin-bottom: 12px;
|
||
gap: 20px; /* Increase space between count and buttons */
|
||
}
|
||
|
||
#selectedCount {
|
||
font-weight: 500;
|
||
background: var(--bg-color);
|
||
padding: 6px 12px;
|
||
border-radius: var(--border-radius-xs);
|
||
border: 1px solid var(--border-color);
|
||
min-width: 80px;
|
||
text-align: center;
|
||
}
|
||
|
||
.bulk-operations-actions {
|
||
display: flex;
|
||
gap: 8px;
|
||
}
|
||
|
||
.bulk-operations-actions button {
|
||
padding: 6px 12px;
|
||
border-radius: var(--border-radius-xs);
|
||
background: var(--bg-color);
|
||
border: 1px solid var(--border-color);
|
||
color: var(--text-color);
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.bulk-operations-actions button:hover {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
border-color: var(--lora-accent);
|
||
}
|
||
|
||
/* Style for selected cards */
|
||
.lora-card.selected {
|
||
box-shadow: 0 0 0 2px var(--lora-accent);
|
||
position: relative;
|
||
}
|
||
|
||
.lora-card.selected::after {
|
||
content: "✓";
|
||
position: absolute;
|
||
top: 10px;
|
||
right: 10px;
|
||
width: 24px;
|
||
height: 24px;
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 14px;
|
||
z-index: 1;
|
||
}
|
||
|
||
/* Standardize button widths in controls */
|
||
.control-group button {
|
||
min-width: 100px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
}
|
||
|
||
/* Update bulk operations button to match others when active */
|
||
#bulkOperationsBtn.active {
|
||
background: var(--lora-accent);
|
||
color: white;
|
||
border-color: var(--lora-accent);
|
||
}
|
||
|
||
@media (max-width: 768px) {
|
||
.bulk-operations-panel {
|
||
width: calc(100% - 40px);
|
||
left: 20px;
|
||
transform: none;
|
||
border-radius: var(--border-radius-sm);
|
||
}
|
||
|
||
.bulk-operations-actions {
|
||
flex-wrap: wrap;
|
||
}
|
||
}
|
||
|
||
.bulk-operations-panel.visible {
|
||
transform: translateY(0) translateX(-50%);
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Remove the page overlay */
|
||
.bulk-mode-overlay {
|
||
display: none; /* Hide the overlay completely */
|
||
}
|
||
|
||
/* Remove card scaling in bulk mode but keep the transition for other properties */
|
||
.lora-card {
|
||
transition: box-shadow 0.3s ease;
|
||
}
|
||
|
||
/* Remove the transform scale from bulk mode cards */
|
||
.bulk-mode .lora-card {
|
||
transform: none;
|
||
} |