vidfom's picture
Upload folder using huggingface_hub (part 5)
289daab verified
Raw
History Blame Contribute Delete
23.1 kB
#anomalous-trigger-btn {
position: fixed;
bottom: 30px;
right: 30px;
width: 60px;
height: 60px;
border-radius: 50%;
background: linear-gradient(135deg, #1e1e1e 0%, #333 100%);
color: var(--fg-color, #fff);
border: 2px solid #555;
font-size: 28px;
cursor: pointer;
z-index: 9999;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.1);
display: flex;
align-items: center;
justify-content: center;
user-select: none;
transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#anomalous-trigger-btn:hover {
transform: scale(1.15) translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7), inset 0 2px 4px rgba(255, 255, 255, 0.2);
border-color: #888;
}
#anomalous-modal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 10000;
display: none;
}
#anomalous-modal.visible {
display: block;
}
#anomalous-container {
width: 90%;
height: 90%;
background: var(--bg-color, #222);
border-radius: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
pointer-events: auto;
position: absolute;
left: 5%;
top: 5%;
container-type: inline-size;
font-size: calc(16px * var(--anomalous-scale, 1));
}
.anomalous-docked {
left: 0 !important;
top: 0 !important;
height: 100% !important;
width: 660px !important;
border-radius: 0 !important;
transition: all 0.3s ease;
}
#anomalous-header {
height: 60px;
background: var(--comfy-menu-bg, #333);
display: flex;
align-items: center;
padding: 0 50px 0 20px;
border-bottom: 1px solid var(--border-color, #555);
cursor: move;
position: relative;
}
#anomalous-settings-panel {
display: none;
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 9999;
align-items: center;
justify-content: center;
}
#anomalous-settings-box {
background: var(--comfy-menu-bg, #2a2a2a);
border: 1px solid var(--border-color, #444);
padding: 30px;
border-radius: 12px;
display: flex;
flex-direction: column;
gap: 15px;
min-width: 300px;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.anomalous-resize-handle {
position: absolute;
bottom: 0;
right: 0;
width: 20px;
height: 20px;
cursor: se-resize;
z-index: 10000;
}
.anomalous-resize-handle::after {
content: '';
position: absolute;
bottom: 4px;
right: 4px;
width: 10px;
height: 10px;
border-right: 2px solid #666;
border-bottom: 2px solid #666;
}
.anomalous-header-group {
display: flex;
align-items: center;
gap: 12px;
}
#anomalous-header button {
margin-right: 0;
padding: 10px 18px;
background: rgba(255, 255, 255, 0.05);
color: #fff;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 8px;
cursor: pointer;
white-space: nowrap;
display: flex;
align-items: center;
gap: 8px;
font-size: 1.05em;
transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#anomalous-header button:hover {
background: rgba(255, 255, 255, 0.15);
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
border-color: rgba(255, 255, 255, 0.3);
}
/* Sidebar toggle logic for top buttons ONLY in narrow mode */
@container (max-width: 900px) {
#anomalous-notebook-btn .anomalous-btn-text {
display: none;
}
}
#anomalous-close {
font-size: 2em;
cursor: pointer;
color: var(--error-text, #ff4444);
position: absolute;
right: 20px;
flex-shrink: 0;
}
#anomalous-grid {
flex: 1;
padding: 20px;
overflow-y: auto;
display: grid;
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 25px;
row-gap: 40px;
align-content: flex-start;
}
.anomalous-card {
position: relative;
background: var(--comfy-menu-bg, #333);
border: 1px solid var(--border-color, #444);
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
height: 420px;
height: 420px;
transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anomalous-card:hover {
transform: translateY(-5px);
border-color: var(--fg-color, #fff);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
transition-delay: 0.08s;
}
.anomalous-card img,
.anomalous-card video {
width: 100%;
height: 340px;
object-fit: cover;
}
#anomalous-container.anomalous-sidebar-closed #anomalous-grid {
grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
gap: 15px;
row-gap: 30px;
}
#anomalous-container.anomalous-sidebar-closed .anomalous-card {
height: 380px;
}
#anomalous-container.anomalous-sidebar-closed .anomalous-card img,
#anomalous-container.anomalous-sidebar-closed .anomalous-card video {
height: 300px;
}
.anomalous-card-title {
padding: 10px;
color: var(--fg-color, #fff);
font-size: 0.9em;
text-align: center;
word-break: break-all;
}
#anomalous-content {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
}
#anomalous-container {
flex-direction: row;
}
#anomalous-sidebar-wrapper {
width: 250px;
background: var(--comfy-menu-bg, #2a2a2a);
border-right: 1px solid var(--border-color, #444);
display: flex;
flex-direction: column;
transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anomalous-sidebar-closed #anomalous-sidebar-wrapper {
width: 60px;
}
.anomalous-sidebar-closed #anomalous-sidebar-wrapper>div:first-child div {
display: none;
/* Hides "Anomalous Browser" text */
}
.anomalous-sidebar-closed #anomalous-sidebar {
opacity: 0;
pointer-events: none;
overflow: hidden;
}
.anomalous-sidebar-closed #anomalous-sidebar-actions {
flex-direction: column !important;
}
#anomalous-sidebar {
flex: 1;
overflow-y: auto;
display: flex;
flex-direction: column;
transition: opacity 0.2s;
}
#anomalous-settings {
border-top: 1px solid var(--border-color, #444);
background: var(--bg-color, #111);
}
.anomalous-lang-btn {
width: 100% !important;
border: 2px solid #555 !important;
padding: 12px !important;
font-weight: bold;
border-radius: 4px !important;
background: #1a1a1a !important;
cursor: pointer;
color: #fff;
margin-bottom: 15px;
}
.anomalous-type-header {
padding: 10px 15px;
background: var(--bg-color, #111);
color: var(--fg-color, #fff);
font-weight: bold;
font-size: 0.9em;
border-top: 1px solid var(--border-color, #444);
border-bottom: 1px solid var(--border-color, #444);
}
.anomalous-folder-item {
padding: 8px 15px;
color: var(--fg-color, #ccc);
cursor: pointer;
font-size: 0.9em;
transition: background 0.2s;
}
.anomalous-folder-item:hover {
background: var(--bg-color, #333);
}
.anomalous-folder-item.active {
background: var(--bg-color, #444);
color: var(--fg-color, #fff);
font-weight: bold;
border-left: 3px solid #007bff;
}
#anomalous-detail {
flex: 1;
display: flex;
flex-direction: column;
overflow: hidden;
background: var(--bg-color, #222);
}
.anomalous-split-container {
flex: 1;
display: flex;
flex-direction: row;
overflow: hidden;
}
.anomalous-split-left {
width: 40%;
display: flex;
align-items: center;
justify-content: center;
background: #000;
overflow: hidden;
}
.anomalous-resizer {
width: 5px;
background: var(--border-color, #444);
cursor: col-resize;
transition: background 0.2s;
}
.anomalous-resizer:hover {
background: #007bff;
}
.anomalous-split-right {
width: 60%;
background: var(--bg-color, #222);
overflow: auto;
}
.anomalous-card {
cursor: pointer;
}
.anomalous-folder-toggle {
cursor: pointer;
user-select: none;
}
#anomalous-api-key {
background: #333;
border: 1px solid #555;
color: #fff;
padding: 8px;
border-radius: 4px;
width: 150px;
margin-right: 15px;
}
#anomalous-api-key::placeholder {
color: #999;
}
@container (max-width: 750px) {
#anomalous-header button .anomalous-btn-text {
display: none;
}
.anomalous-split-left,
.anomalous-resizer {
display: none !important;
}
.anomalous-split-right {
width: 100% !important;
}
.anomalous-nb-sidebar {
width: 80px !important;
min-width: 80px !important;
}
.anomalous-nb-sidebar .anomalous-nb-item {
font-size: 0.8em;
padding: 8px 4px;
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
}
.anomalous-nb-create-text {
display: none;
}
}
/* English Layout Specific Scaling */
.anomalous-lang-en {
font-size: 0.9em;
}
.anomalous-lang-en #anomalous-header button {
padding: 10px 16px;
font-size: 1.05em;
}
.anomalous-lang-en .anomalous-card-title {
font-size: 0.85em;
}
.anomalous-lang-en #anomalous-title {
font-size: 1.1em;
}
/* Compatible Models Section */
.anomalous-compatible-section {
margin-top: 20px;
padding-top: 20px;
border-top: 1px solid var(--border-color, #444);
}
.anomalous-compatible-title {
color: var(--fg-color, #fff);
font-size: 1.1em;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 8px;
}
.anomalous-compatible-list {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.anomalous-compatible-item {
background: var(--comfy-menu-bg, #333);
border: 1px solid var(--border-color, #555);
border-radius: 6px;
padding: 6px 10px;
display: flex;
align-items: center;
gap: 8px;
cursor: pointer;
transition: all 0.2s;
max-width: 200px;
}
.anomalous-compatible-item:hover {
border-color: #007bff;
background: var(--bg-color, #444);
transform: translateY(-2px);
}
.anomalous-compatible-item img,
.anomalous-compatible-item video {
width: 30px;
height: 30px;
object-fit: cover;
border-radius: 4px;
}
.anomalous-compatible-item-name {
color: var(--fg-color, #fff);
font-size: 0.85em;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
flex: 1;
}
/* Notebook UI */
.anomalous-nb-modal {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.85);
z-index: 10001;
display: flex;
align-items: center;
justify-content: center;
}
.anomalous-nb-container {
width: 95%;
height: 95%;
background: var(--bg-color, #222);
border: 1px solid var(--border-color, #444);
border-radius: 12px;
display: flex;
flex-direction: column;
overflow: hidden;
box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}
.anomalous-nb-header {
height: 50px;
background: var(--comfy-menu-bg, #333);
border-bottom: 1px solid #444;
display: flex;
align-items: center;
padding: 0 20px;
justify-content: space-between;
color: #fff;
}
.anomalous-nb-close {
font-size: 2em;
cursor: pointer;
color: #ff4444;
}
.anomalous-nb-body {
flex: 1;
display: flex;
overflow: hidden;
container-type: inline-size;
}
.anomalous-nb-sidebar {
width: 250px;
background: #111;
border-right: 1px solid #444;
display: flex;
flex-direction: column;
transition: width 0.3s;
}
@container (max-width: 600px) {
.anomalous-nb-sidebar {
width: 140px;
}
.anomalous-nb-create-text {
display: none;
}
}
.anomalous-nb-list {
flex: 1;
overflow-y: auto;
padding: 10px;
}
.anomalous-nb-item {
padding: 10px;
color: #ccc;
cursor: pointer;
border-radius: 4px;
margin-bottom: 5px;
background: #222;
display: flex;
align-items: center;
white-space: nowrap;
overflow: hidden;
font-size: 1.1em;
}
.anomalous-nb-item-icon {
flex-shrink: 0;
}
.anomalous-nb-item-text {
flex: 1;
text-overflow: ellipsis;
overflow: hidden;
}
.anomalous-nb-item:hover {
background: #333;
}
.anomalous-nb-item.active {
background: #007bff;
color: #fff;
font-weight: bold;
}
.anomalous-nb-editor {
flex: 1;
background: #222;
overflow-y: auto;
padding: 20px;
color: #eee;
}
.anomalous-nb-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
}
.anomalous-nb-prompt-toolbar {
display: flex;
gap: 10px;
margin-bottom: 10px;
align-items: center;
flex-wrap: wrap;
}
#anomalous-container.anomalous-docked .anomalous-nb-prompt-toolbar select {
flex: 1 1 100%;
}
.anomalous-btn-primary {
background: #007bff;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
margin-left: 5px;
}
.anomalous-btn-danger {
background: #dc3545;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
margin-left: 5px;
}
.anomalous-btn-success {
background: #28a745;
color: white;
border: none;
padding: 6px 12px;
border-radius: 4px;
cursor: pointer;
margin-left: 5px;
}
.anomalous-nb-section {
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
padding: 15px;
margin-bottom: 20px;
}
.anomalous-nb-row {
margin-bottom: 10px;
}
.anomalous-nb-select {
background: #111;
color: #fff;
padding: 6px;
border: 1px solid #555;
border-radius: 4px;
}
.anomalous-nb-gallery {
display: flex;
gap: 10px;
overflow-x: auto;
padding: 10px 0;
}
.anomalous-nb-gallery-wrap {
display: flex;
gap: 10px;
flex-wrap: wrap;
padding: 10px 0;
}
.anomalous-nb-minicheck,
.anomalous-nb-minilora {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px 8px 8px;
background: #2a2a2a;
border: 1px solid #444;
border-radius: 8px;
cursor: pointer;
flex: 1 1 220px;
max-width: 320px;
transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.anomalous-nb-minicheck:hover,
.anomalous-nb-minilora:hover {
border-color: #888;
background: #383838;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
transition-delay: 0.08s;
}
.anomalous-nb-minicheck.selected,
.anomalous-nb-minilora.selected {
border-color: #00ffcc;
background: rgba(0, 255, 204, 0.15);
box-shadow: 0 0 12px rgba(0, 255, 204, 0.2);
}
.anomalous-nb-minicheck img,
.anomalous-nb-minicheck video,
.anomalous-nb-minilora img,
.anomalous-nb-minilora video {
width: 52px;
height: 52px;
object-fit: cover;
border-radius: 6px;
flex-shrink: 0;
}
.anomalous-nb-minicheck-name,
.anomalous-nb-minilora-name {
color: #eee;
font-size: 0.95em;
line-height: 1.3;
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
line-clamp: 2;
-webkit-box-orient: vertical;
text-align: left;
}
.anomalous-nb-minicheck.selected .anomalous-nb-minicheck-name,
.anomalous-nb-minilora.selected .anomalous-nb-minilora-name {
color: #00ffcc;
font-weight: bold;
}
.anomalous-nb-textarea {
width: 100%;
height: 60px;
background: #111;
color: #fff;
border: 1px solid #555;
border-radius: 4px;
padding: 8px;
margin-top: 10px;
resize: vertical;
box-sizing: border-box;
}
.anomalous-nb-dual-pane {
display: flex;
flex-direction: column;
width: 100%;
background: #1a1a1a;
padding: 10px;
border-radius: 8px;
border: 1px solid #444;
box-sizing: border-box;
}
.anomalous-nb-tag-row {
display: flex;
gap: 15px;
width: 100%;
align-items: stretch;
margin-bottom: 6px;
}
.anomalous-nb-gallery-box {
background: #1e1e1e;
border: 1px solid #444;
border-radius: 8px;
padding: 12px;
margin-bottom: 15px;
}
.anomalous-nb-visual-tag {
background: #2a2a2a;
color: #eee;
padding: 8px 12px;
border-radius: 6px;
border: 1px solid #444;
cursor: pointer;
transition: all 0.2s;
min-height: 36px;
display: flex;
align-items: center;
word-break: break-word;
font-size: 0.95em;
line-height: 1.4;
}
.anomalous-nb-visual-tag.hover {
background: #3a3a3a;
border-color: #00ffcc;
color: #fff;
box-shadow: inset 0 0 5px rgba(0, 255, 204, 0.2);
}
.anomalous-nb-copy-btn {
opacity: 0.3;
transition: all 0.2s;
padding-left: 10px;
flex-shrink: 0;
user-select: none;
}
.anomalous-nb-visual-tag:hover .anomalous-nb-copy-btn {
opacity: 1;
}
.anomalous-nb-copy-btn:hover {
transform: scale(1.3);
}
.anomalous-nb-tag-edit {
background: #111;
color: #fff;
border: 1px solid #00ffcc;
border-radius: 4px;
padding: 6px;
width: 100%;
font-size: 1em;
box-sizing: border-box;
}
/* Gallery Styles */
#anomalous-gallery-panel {
flex: 1;
display: none;
flex-direction: column;
overflow: hidden;
background: var(--bg-color, #222);
}
.anomalous-gallery-grid {
flex: 1;
padding: 20px;
overflow-y: auto;
display: grid;
/* Fit ~4 items per row on expanded screens */
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
gap: 15px;
align-content: flex-start;
}
#anomalous-container.anomalous-docked .anomalous-gallery-grid {
grid-template-columns: repeat(2, 1fr);
gap: 8px;
padding: 10px;
}
#anomalous-container.anomalous-docked .anomalous-gallery-card {
height: 180px;
}
.anomalous-gallery-card {
position: relative;
background: #111;
border: 1px solid #444;
border-radius: 8px;
overflow: hidden;
cursor: pointer;
/* Damped transition to prevent strobe effect */
transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
height: 250px;
display: flex;
flex-direction: column;
}
.anomalous-gallery-card:hover {
transform: translateY(-3px);
border-color: #007bff;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
transition-delay: 0.08s;
}
.anomalous-gallery-card img {
width: 100%;
height: 100%;
object-fit: contain;
background: #000;
}
.anomalous-gallery-delete {
position: absolute;
top: 8px;
right: 8px;
background: rgba(220, 53, 69, 0.85);
color: white;
border: none;
border-radius: 50%;
width: 32px;
height: 32px;
font-size: 16px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: all 0.2s;
}
.anomalous-gallery-card:hover .anomalous-gallery-delete {
opacity: 1;
}
.anomalous-gallery-delete:hover {
background: #ff0000;
transform: scale(1.1);
}
.anomalous-gallery-sentinel {
height: 40px;
width: 100%;
grid-column: 1 / -1;
display: flex;
align-items: center;
justify-content: center;
color: #888;
font-size: 0.9em;
}
.anomalous-gallery-viewer {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
background: rgba(0, 0, 0, 0.95);
z-index: 9999999;
display: flex;
align-items: center;
justify-content: center;
}
.anomalous-gallery-viewer img {
max-width: 95%;
max-height: 95%;
object-fit: contain;
border-radius: 4px;
box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
.anomalous-gallery-viewer-close {
position: absolute;
top: 20px;
right: 30px;
font-size: 40px;
color: #ccc;
cursor: pointer;
transition: color 0.2s;
user-select: none;
}
.anomalous-gallery-viewer-close:hover {
color: #fff;
}
.anomalous-model-settings-overlay {
position: absolute;
inset: 0;
z-index: 10020;
display: flex;
align-items: center;
justify-content: center;
padding: 24px;
box-sizing: border-box;
background: rgba(8, 9, 12, 0.78);
backdrop-filter: blur(8px);
}
.anomalous-model-settings-overlay[hidden] {
display: none;
}
.anomalous-model-settings-dialog {
width: min(560px, 100%);
padding: 24px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 16px;
box-sizing: border-box;
color: #f3f4f6;
background: linear-gradient(145deg, rgba(48, 49, 55, 0.98), rgba(27, 28, 33, 0.98));
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.anomalous-model-settings-dialog h2 {
margin: 0 0 6px;
font-size: 1.3em;
}
.anomalous-model-settings-description {
margin: 0 0 18px;
color: #aeb3bd;
font-size: 0.9em;
line-height: 1.55;
}
.anomalous-model-setting-row {
display: flex;
align-items: center;
justify-content: space-between;
gap: 18px;
padding: 16px 0;
border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.anomalous-model-setting-copy {
display: flex;
flex: 1;
min-width: 0;
flex-direction: column;
gap: 5px;
}
.anomalous-model-setting-copy small {
color: #9da3ad;
line-height: 1.45;
}
.anomalous-model-setting-select {
width: 190px;
max-width: 44%;
padding: 9px 10px;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
color: #f5f5f5;
background: #17181c;
cursor: pointer;
}
.anomalous-model-settings-note {
margin-top: 4px;
padding: 10px 12px;
border-radius: 8px;
color: #a9c8ee;
background: rgba(80, 145, 220, 0.1);
font-size: 0.82em;
line-height: 1.45;
}
.anomalous-model-settings-close {
display: block;
min-width: 96px;
margin: 20px 0 0 auto;
padding: 9px 18px;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 8px;
color: #fff;
background: #3f73b9;
cursor: pointer;
}
@media (max-width: 620px) {
.anomalous-model-setting-row {
align-items: stretch;
flex-direction: column;
gap: 10px;
}
.anomalous-model-setting-select {
width: 100%;
max-width: none;
}
}