Files
VodooWaWa-Comfyui-Visual-Se…/web/css/model_preview.css
T
2026-04-03 00:33:41 +08:00

430 lines
7.8 KiB
CSS

.visual-select-dialog {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 9999;
display: flex;
justify-content: center;
align-items: center;
font-family: sans-serif;
color: #eee;
}
.vs-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
backdrop-filter: blur(2px);
}
.vs-modal {
position: relative;
width: 80%;
max-width: 1200px;
height: 80%;
background: #222;
border-radius: 8px;
display: flex;
flex-direction: column;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
border: 1px solid #444;
overflow: hidden;
}
.vs-modal-large {
width: 90%;
height: 90%;
}
.vs-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 15px 20px;
background: #1a1a1a;
border-bottom: 1px solid #333;
}
.vs-header h2 {
margin: 0;
font-size: 1.2rem;
font-weight: 500;
}
.vs-close {
font-size: 1.5rem;
cursor: pointer;
line-height: 1;
color: #aaa;
transition: color 0.2s;
}
.vs-close:hover {
color: #fff;
}
.vs-body {
display: flex;
flex: 1;
overflow: hidden;
}
.vs-body-no-padding {
padding: 0;
}
.vs-sidebar {
width: 250px;
background: #1e1e1e;
border-right: 1px solid #333;
display: flex;
flex-direction: column;
}
.vs-filters {
display: flex;
background: #111;
border-bottom: 1px solid #333;
padding: 5px;
gap: 5px;
}
.vs-filter-btn {
flex: 1;
text-align: center;
padding: 6px 0;
font-size: 0.8rem;
cursor: pointer;
background: #222;
border-radius: 4px;
color: #aaa;
transition: all 0.2s;
}
.vs-filter-btn:hover {
background: #333;
color: #fff;
}
.vs-filter-btn.active {
background: #007bff;
color: #fff;
font-weight: bold;
}
.vs-folder-tree {
list-style: none;
margin: 0;
padding: 10px 0;
overflow-y: auto;
flex: 1;
}
.vs-folder-item {
padding: 10px 20px;
cursor: pointer;
font-size: 0.95rem;
color: #ccc;
transition: background 0.2s, color 0.2s;
word-break: break-all;
}
.vs-folder-item:hover {
background: #333;
color: #fff;
}
.vs-folder-item.active {
background: #444;
color: #fff;
font-weight: bold;
border-left: 3px solid #007bff;
}
.vs-content {
flex: 1;
padding: 20px;
overflow-y: auto;
background: #222;
position: relative;
display: flex;
flex-direction: column;
}
.vs-toolbar {
display: flex;
gap: 10px;
padding: 12px 20px;
border-bottom: 1px solid #333;
flex-wrap: wrap;
align-items: center;
background: #1a1a1a;
}
.vs-nsfw-blur-toggle {
margin-left: auto;
display: flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: #111;
border: 1px solid #444;
border-radius: 4px;
color: #ddd;
font-size: 0.85rem;
cursor: pointer;
user-select: none;
}
.vs-nsfw-blur-toggle input {
margin: 0;
}
.vs-top-bar {
display: flex;
gap: 10px;
margin-bottom: 20px;
flex-wrap: wrap;
}
.vs-search-input {
flex: 2;
min-width: 200px;
padding: 8px 12px;
background: #111;
border: 1px solid #444;
border-radius: 4px;
color: #eee;
font-size: 0.9rem;
}
.vs-search-input:focus {
outline: none;
border-color: #007bff;
}
.vs-filter-select {
flex: 1;
min-width: 120px;
padding: 8px;
background: #111;
border: 1px solid #444;
border-radius: 4px;
color: #eee;
font-size: 0.9rem;
cursor: pointer;
}
.vs-filter-select:focus {
outline: none;
border-color: #007bff;
}
.vs-loading {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
font-size: 1.2rem;
color: #888;
}
.vs-empty {
width: 100%;
text-align: center;
color: #888;
margin-top: 50px;
}
.vs-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 20px;
}
.vs-card {
background: var(--comfy-menu-bg, #222);
border: 1px solid var(--border-color, #444);
border-radius: 6px;
overflow: hidden;
display: flex;
flex-direction: column;
transition: all 0.2s ease;
cursor: pointer;
box-shadow: 0 4px 6px rgba(0,0,0,0.3);
height: 100%;
}
.vs-card:hover {
transform: translateY(-2px);
border-color: #00ff88;
box-shadow: 0 6px 12px rgba(0, 255, 136, 0.2);
}
.vs-card-img {
width: 100%;
height: 180px;
background: #111;
position: relative;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
}
.vs-card-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.3s ease, filter 0.2s ease;
}
.vs-card:hover .vs-card-img img {
transform: scale(1.05);
}
.vs-card-img.vs-nsfw-blur img {
filter: blur(14px) brightness(0.7);
}
.vs-no-image {
color: #555;
font-size: 0.9rem;
}
.vs-card-info-wrapper {
display: flex;
flex-direction: column;
flex: 1;
padding: 10px;
gap: 5px;
}
.vs-card-name {
font-size: 14px;
font-weight: bold;
color: white;
word-break: break-all;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
line-height: 1.2;
}
.vs-card-filename {
font-size: 11px;
color: #888;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.vs-badges {
display: flex;
flex-wrap: wrap;
gap: 4px;
margin-top: auto;
min-height: 20px; /* Ensure space even if empty */
}
.vs-badge {
font-size: 0.7rem;
padding: 2px 6px;
border-radius: 10px;
background: #333;
color: #ccc;
white-space: nowrap;
}
.vs-badge-model {
background: #173d61;
color: #8ab4f8;
}
.vs-badge-fp {
background: #3d2c17;
color: #f8b48a;
}
.vs-badge-nsfw {
background: #ff4444;
color: white;
font-weight: bold;
border: 1px solid #cc0000;
}
.vs-card-actions {
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 8px;
background: rgba(0, 0, 0, 0.2);
border-top: 1px solid var(--border-color, #444);
gap: 8px;
margin-top: auto;
min-height: 72px; /* Force consistent height for actions area */
}
.vs-select-btn {
width: 100%;
padding: 6px 12px;
background: #0066cc;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
transition: background 0.2s, box-shadow 0.2s;
}
.vs-select-btn:hover {
background: #0088ff;
}
.vs-details-btn {
width: 100%;
padding: 6px 12px;
background: #28a745;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
font-size: 13.3px; /* Match typical default button font size or inherit */
transition: background 0.2s, box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.vs-details-btn:hover {
background: #218838;
}
.vs-details-dialog {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 10000;
display: flex;
justify-content: center;
align-items: center;
}
.vs-iframe {
width: 100%;
height: 100%;
border: none;
background: #fff; /* HTML details might expect a light background by default */
}