Files
2026-04-06 18:42:40 +08:00

736 lines
13 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);
}
.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;
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-card-actions-row {
display: flex;
gap: 8px;
width: 100%;
}
.vs-card-actions-row .vs-note-btn,
.vs-card-actions-row .vs-details-btn {
flex: 1;
width: auto;
}
.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-note-btn {
width: 100%;
padding: 6px 12px;
background: #5a6268;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-weight: bold;
font-size: 13.3px;
transition: background 0.2s, box-shadow 0.2s;
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
}
.vs-note-btn:hover {
background: #495057;
}
.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-imgviewer-overlay {
position: fixed;
inset: 0;
z-index: 11000;
background: rgba(0, 0, 0, 0.5);
overflow: hidden;
user-select: none;
touch-action: none;
}
.vs-imgviewer-stage {
position: absolute;
inset: 0;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
}
.vs-imgviewer-media {
max-width: 95%;
max-height: 95%;
display: none;
transition: transform 0s;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
border-radius: 4px;
will-change: transform;
touch-action: none;
}
.vs-imgviewer-close {
position: absolute;
top: 16px;
right: 22px;
width: 44px;
height: 44px;
border-radius: 999px;
color: #f1f1f1;
font-size: 36px;
line-height: 44px;
text-align: center;
cursor: pointer;
background: rgba(0, 0, 0, 0.25);
}
.vs-imgviewer-close:hover {
background: rgba(0, 0, 0, 0.45);
}
.vs-iframe {
width: 100%;
height: 100%;
border: none;
background: #fff; /* HTML details might expect a light background by default */
}
.vs-notes-dialog {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
z-index: 10000;
display: flex;
justify-content: center;
align-items: center;
}
.vs-notes-dialog .vs-overlay {
backdrop-filter: none;
}
.vs-notes-toolbar {
display: flex;
gap: 10px;
padding: 10px 20px;
border-bottom: 1px solid #333;
background: #1a1a1a;
}
.vs-notes-toolbar .vs-note-btn,
.vs-notes-toolbar .vs-details-btn {
width: auto;
flex: 0 0 auto;
padding: 8px 18px;
min-width: 96px;
}
.vs-notes-toolbar .vs-note-btn:disabled,
.vs-notes-toolbar .vs-details-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.vs-notes-toolbar .vs-notes-del {
background: #c82333;
}
.vs-notes-toolbar .vs-notes-del:hover {
background: #b21f2d;
}
.vs-notes-body {
display: flex;
flex: 1;
overflow: hidden;
background: #222;
flex-direction: column;
}
.vs-notes-top {
display: flex;
flex: 1;
min-height: 0;
}
.vs-notes-list {
width: 280px;
border-right: 1px solid #333;
background: #1e1e1e;
overflow-y: auto;
padding: 10px 0;
}
.vs-notes-empty {
padding: 12px 16px;
color: #888;
font-size: 0.9rem;
}
.vs-notes-item {
padding: 10px 16px;
cursor: pointer;
color: #ccc;
border-left: 3px solid transparent;
transition: background 0.2s, color 0.2s;
word-break: break-word;
user-select: none;
}
.vs-notes-item[draggable="true"] {
cursor: grab;
}
.vs-notes-item.dragging {
opacity: 0.6;
cursor: grabbing;
}
.vs-notes-item.drag-over {
background: #2a2a2a;
}
.vs-notes-item:hover {
background: #333;
color: #fff;
}
.vs-notes-item.active {
background: #444;
color: #fff;
font-weight: bold;
border-left-color: #007bff;
}
.vs-notes-editor {
flex: 1;
display: flex;
flex-direction: column;
gap: 10px;
padding: 16px;
min-height: 0;
}
.vs-note-title-input {
width: 100%;
padding: 10px 12px;
border-radius: 4px;
border: 1px solid #444;
background: #111;
color: #eee;
font-size: 0.95rem;
}
.vs-note-title-input:focus {
outline: none;
border-color: #007bff;
}
.vs-note-content-wrap {
position: relative;
flex: 1;
display: flex;
}
.vs-note-content-input {
width: 100%;
resize: none;
padding: 10px 44px 10px 12px;
border-radius: 4px;
border: 1px solid #444;
background: #111;
color: #eee;
font-size: 0.9rem;
line-height: 1.35;
flex: 1;
}
.vs-note-content-input:focus {
outline: none;
border-color: #007bff;
}
.vs-note-copy-btn {
position: absolute;
top: 10px;
right: 10px;
width: 28px;
height: 28px;
border-radius: 6px;
border: 1px solid #444;
background: #1a1a1a;
color: #ddd;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
}
.vs-note-copy-btn:hover {
background: #2a2a2a;
color: #fff;
}
.vs-notes-preview {
height: 50%;
border-top: 1px solid #333;
background: #1a1a1a;
overflow-y: auto;
padding: 10px;
}
.vs-notes-preview-empty {
padding: 12px 6px;
color: #888;
font-size: 0.9rem;
}
.vs-notes-preview-item {
border: 1px solid #2a2a2a;
background: #111;
border-radius: 8px;
padding: 10px 12px;
margin-bottom: 10px;
cursor: pointer;
}
.vs-notes-preview-item:hover {
border-color: #3a3a3a;
background: #121212;
}
.vs-notes-preview-item.active {
border-color: #007bff;
}
.vs-notes-preview-title {
font-weight: 700;
color: #eee;
margin-bottom: 6px;
word-break: break-word;
}
.vs-notes-preview-content {
color: #bbb;
white-space: pre-wrap;
word-break: break-word;
line-height: 1.35;
}