refactor(styles): split ordered stylesheet bundle

This commit is contained in:
DemonGatanjieu
2026-09-18 01:36:13 +08:00
parent 7c167444db
commit e8b50ecaf5
14 changed files with 14652 additions and 14620 deletions
+1
View File
@@ -95,6 +95,7 @@ tests/*
!tests/image_workbench_modules.mjs
!tests/material_feature_modules.mjs
!tests/notebook_feature_modules.mjs
!tests/css_bundle_order.mjs
!tests/notebook_render_test.mjs
!tests/notebook_save_roundtrip.mjs
+20
View File
@@ -0,0 +1,20 @@
import assert from 'node:assert/strict';
import crypto from 'node:crypto';
import fs from 'node:fs/promises';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
const entry = await fs.readFile(path.join(root, 'web/styles.css'), 'utf8');
const imports = [...entry.matchAll(/@import\s+url\("\.\/styles\/([^?"\s]+)\?v=([^"\s]+)"\);/g)];
assert.equal(imports.length, 11, 'the stylesheet entry must contain the full ordered import list');
assert.equal(imports.map(match => match[1]).length, new Set(imports.map(match => match[1])).size, 'imports must be unique');
assert.equal(new Set(imports.map(match => match[2])).size, 1, 'child stylesheets must share one cache version');
assert.equal(entry.replace(/@import[^;]+;\s*/g, ''), '', 'styles.css must remain an import-only external entry');
const chunks = await Promise.all(imports.map(match => fs.readFile(path.join(root, 'web/styles', match[1]))));
const digest = crypto.createHash('sha256').update(Buffer.concat(chunks)).digest('hex');
assert.equal(digest, 'd014a9d1826e2c48a46ac72389fe4e5bdd0b2ba85618f653d13852cd93812bc1', 'CSS rule bytes or cascade order changed');
console.log('CSS bundle: ordered imports preserve the original stylesheet byte-for-byte.');
+11 -14620
View File
File diff suppressed because it is too large Load Diff
+924
View File
@@ -0,0 +1,924 @@
/* ==========================================================================
ANOMALOUS UI GLOBAL DESIGN SYSTEM (Design Tokens & Semantic Colors)
========================================================================== */
:root {
--c-amber: #d97706;
--c-amber-glow: rgba(217, 119, 6, 0.25);
--c-cyan: #06b6d4;
--c-cyan-glow: rgba(6, 182, 212, 0.25);
--c-purple: #8b5cf6;
--c-purple-glow: rgba(139, 92, 246, 0.25);
--c-silver: #9ca3af;
--c-silver-glow: rgba(156, 163, 175, 0.2);
--c-blue: #9ca3af;
--c-blue-glow: rgba(156, 163, 175, 0.2);
--c-crimson: #ef4444;
--c-crimson-glow: rgba(239, 68, 68, 0.25);
--c-wine: #4b5563;
--c-wine-glow: rgba(75, 85, 99, 0.2);
--c-emerald: #10b981;
--c-emerald-glow: rgba(16, 185, 129, 0.25);
/* AMB Base Design System Tokens - Normal Mode (Neutral Dark Charcoal & Obsidian Studio) */
--amb-bg-page: #131315;
--amb-bg-panel: #1a1a1d;
--amb-bg-card: #202024;
--amb-bg-card-hover: #28282d;
--amb-bg-input: #151517;
--amb-text-main: #f3f4f6;
--amb-text-muted: #9ca3af;
--amb-border: rgba(255, 255, 255, 0.08);
--amb-border-hover: rgba(255, 255, 255, 0.16);
--amb-btn-primary-bg: #e5e7eb;
--amb-btn-primary-hover: #ffffff;
--amb-btn-primary-text: #111827;
--amb-accent-gold: rgba(234, 179, 8, 0.65);
--amb-accent-line: rgba(229, 231, 235, 0.35);
--amb-accent: #f59e0b;
--amb-radius-control: 6px;
--amb-radius-card: 8px;
--amb-radius-panel: 10px;
}
/* Abyssal Scarlet Gothic Theme Overrides */
.theme-abyssal-scarlet,
html.theme-abyssal-scarlet,
#anomalous-container.theme-abyssal-scarlet {
--amb-bg-page: #161014;
--amb-bg-panel: #21171D;
--amb-bg-card: #2B1E26;
--amb-bg-card-hover: #362530;
--amb-bg-input: #1c1319;
--amb-text-main: #ECE4E8;
--amb-text-muted: #B9A7B0;
--amb-border: rgba(255, 245, 247, 0.10);
--amb-border-hover: rgba(220, 20, 60, 0.35);
--amb-btn-primary-bg: #87384E;
--amb-btn-primary-hover: #9c425b;
--amb-btn-primary-text: #FFF5F7;
--amb-accent-gold: #b38728;
--amb-accent-line: #dc143c;
}
/* Skeleton Shimmer Loading Placeholder */
.anomalous-skeleton-shimmer {
background: linear-gradient(90deg, #15171e 25%, #232733 50%, #15171e 75%) !important;
background-size: 200% 100% !important;
animation: anomalousSkeletonShimmer 1.8s infinite ease-in-out !important;
}
@keyframes anomalousSkeletonShimmer {
0% { background-position: 200% 0; }
100% { background-position: -200% 0; }
}
#anomalous-trigger-btn {
--anomalous-trigger-size: 60px;
--anomalous-trigger-font-size: 28px;
--anomalous-trigger-pill-padding: 18px;
position: fixed;
bottom: 30px;
right: 30px;
width: var(--anomalous-trigger-size);
height: var(--anomalous-trigger-size);
border-radius: 50%;
background: rgba(18, 21, 30, 0.85);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
color: var(--fg-color, #f1f5f9);
border: 1px solid rgba(255, 255, 255, 0.16);
font-size: var(--anomalous-trigger-font-size);
cursor: pointer;
z-index: 2147483000 !important;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.12);
display: flex !important;
visibility: visible !important;
opacity: 1 !important;
align-items: center !important;
justify-content: center !important;
user-select: none;
transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
gap: 8px;
white-space: nowrap;
}
#anomalous-trigger-btn .anomalous-trigger-icon {
display: flex;
align-items: center;
justify-content: center;
line-height: 1;
font-size: var(--anomalous-trigger-font-size);
flex-shrink: 0;
transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
#anomalous-trigger-btn .anomalous-trigger-icon svg {
width: 1em;
height: 1em;
display: block;
stroke: currentColor;
}
html.theme-abyssal-scarlet #anomalous-trigger-btn {
background: rgba(28, 10, 18, 0.88) !important;
border: 1px solid rgba(220, 20, 60, 0.45) !important;
color: #ffe4e6 !important;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(220, 20, 60, 0.2) !important;
}
html.theme-abyssal-scarlet #anomalous-trigger-btn:hover {
border-color: #dc143c !important;
background: rgba(45, 12, 26, 0.95) !important;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.7), 0 0 20px rgba(220, 20, 60, 0.4) !important;
color: #ffffff !important;
}
#anomalous-trigger-btn[data-size="small"] {
--anomalous-trigger-size: 44px;
--anomalous-trigger-font-size: 20px;
--anomalous-trigger-pill-padding: 13px;
}
#anomalous-trigger-btn[data-size="large"] {
--anomalous-trigger-size: 76px;
--anomalous-trigger-font-size: 34px;
--anomalous-trigger-pill-padding: 22px;
}
#anomalous-trigger-btn .anomalous-trigger-label {
display: none;
font-size: 14px;
font-weight: 600;
letter-spacing: 0.01em;
}
#anomalous-trigger-btn[data-style="pill"] {
width: auto;
min-width: calc(var(--anomalous-trigger-size) * 1.8);
padding: 0 var(--anomalous-trigger-pill-padding);
border-radius: 999px;
}
#anomalous-trigger-btn[data-style="pill"] .anomalous-trigger-label {
display: inline;
}
#anomalous-trigger-btn:hover {
transform: scale(1.08) translateY(-4px);
background: rgba(25, 29, 42, 0.94);
border-color: rgba(100, 200, 255, 0.45);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55), 0 0 18px rgba(80, 190, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2);
color: #ffffff;
}
#anomalous-trigger-btn:hover .anomalous-trigger-icon {
transform: rotate(12deg) scale(1.06);
filter: drop-shadow(0 0 6px rgba(100, 200, 255, 0.6));
}
html.theme-abyssal-scarlet #anomalous-trigger-btn:hover .anomalous-trigger-icon {
filter: drop-shadow(0 0 6px rgba(220, 20, 60, 0.7)) !important;
}
#anomalous-trigger-btn.anomalous-trigger-hidden,
body.anomalous-prompt-studio-open #anomalous-trigger-btn,
body:has(.anomalous-prompt-studio-drawer) #anomalous-trigger-btn {
visibility: hidden !important;
opacity: 0 !important;
pointer-events: none !important;
display: none !important;
transform: scale(0.7);
}
#anomalous-trigger-btn.anomalous-trigger-error {
border-color: #ff9f43;
box-shadow: none;
}
.anomalous-topbar-entry {
display: none !important;
}
html.anomalous-topbar-entry-enabled .anomalous-topbar-entry {
display: inline-flex !important;
}
html:not(.anomalous-floating-entry-enabled) [data-setting-id="Anomalous.ModelBrowser.FloatingTriggerSize"],
html:not(.anomalous-floating-entry-enabled) [data-setting-id="Anomalous.ModelBrowser.FloatingTriggerStyle"] {
display: none !important;
}
.anomalous-shortcut-setting {
display: flex;
align-items: center;
justify-content: flex-end;
gap: 0.5rem;
}
.anomalous-shortcut-current {
min-width: 8.5rem;
padding: 0.38rem 0.65rem;
border: 1px solid var(--border-default, #4b5563);
border-radius: 0.4rem;
background: var(--comfy-input-bg, #101113);
color: var(--fg-color, #f3f4f6);
font: 600 0.78rem/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
text-align: center;
white-space: nowrap;
}
.anomalous-shortcut-customize {
padding: 0.42rem 0.72rem;
border: 1px solid var(--border-default, #4b5563);
border-radius: 0.4rem;
background: var(--comfy-input-bg, #24262b);
color: var(--fg-color, #f3f4f6);
cursor: pointer;
}
.anomalous-shortcut-customize:hover:not(:disabled) {
border-color: var(--p-primary-color, #60a5fa);
}
.anomalous-shortcut-customize:disabled {
cursor: wait;
opacity: 0.6;
}
#anomalous-modal {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 10000;
display: none;
filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.85));
}
#anomalous-modal.visible {
display: block;
}
#anomalous-container {
width: 90%;
height: 90%;
background-color: var(--amb-bg-page, #131315);
border: 1px solid rgba(255, 255, 255, 0.09);
border-radius: 8px;
display: flex;
flex-direction: row;
overflow: hidden;
pointer-events: auto;
position: absolute;
left: 5%;
top: 5%;
container-type: inline-size;
font-size: calc(16px * var(--anomalous-scale, 1));
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}
#anomalous-container::before {
display: none;
content: '';
position: absolute;
inset: 0;
background-image:
radial-gradient(ellipse 95% 85% at 50% 35%, rgba(19, 19, 21, 0.2) 0%, rgba(19, 19, 21, 0.75) 100%),
url('assets/archive_library_bg.webp');
background-size: cover;
background-position: center 25%;
filter: grayscale(100%) brightness(0.55) contrast(1.15);
opacity: var(--anomalous-bg-opacity, 0.08);
transition: opacity 0.3s ease;
pointer-events: none;
z-index: 0;
}
#anomalous-container.view-mode-aesthetic::before {
display: block;
}
/* Only the main columns sit above the decorative background. Keep overlays
and resize handles in their own positioning and stacking layers. */
#anomalous-container > #anomalous-sidebar-wrapper,
#anomalous-container > #anomalous-content {
position: relative;
z-index: 1;
}
.anomalous-docked {
left: 0 !important;
top: 0 !important;
height: 100% !important;
width: 660px !important;
border-radius: 0 !important;
clip-path: none !important;
transition: all 0.3s ease;
}
#anomalous-header {
height: 48px;
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: 6px;
}
#anomalous-header button {
margin-right: 0;
padding: 0 10px;
height: 28px;
box-sizing: border-box;
background: rgba(255, 255, 255, 0.04);
color: #c0c4cc;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 6px;
cursor: pointer;
white-space: nowrap;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 5px;
font-size: 11.5px;
font-weight: 500;
letter-spacing: 0.2px;
transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
#anomalous-header button:hover {
background: rgba(255, 255, 255, 0.09);
border-color: rgba(255, 255, 255, 0.2);
color: #ffffff;
transform: translateY(-1px);
box-shadow: none;
}
#anomalous-header button.active {
background: rgba(255, 255, 255, 0.14) !important;
border-color: rgba(255, 255, 255, 0.28) !important;
color: #ffffff !important;
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35) !important;
}
#anomalous-close {
width: 28px;
height: 28px;
box-sizing: border-box;
font-size: 18px;
cursor: pointer;
color: var(--error-text, #ff5555);
line-height: 1;
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
border-radius: 6px;
border: 1px solid transparent;
transition: all 0.15s ease;
}
#anomalous-close:hover {
color: #ff6b6b;
background: rgba(255, 85, 85, 0.12);
border-color: rgba(255, 85, 85, 0.25);
transform: scale(1.05);
}
#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;
background: transparent;
}
#anomalous-grid::-webkit-scrollbar {
width: 8px;
}
#anomalous-grid::-webkit-scrollbar-track {
background: rgba(20, 20, 26, 0.8);
}
#anomalous-grid::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.16);
border-radius: 4px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
#anomalous-grid::-webkit-scrollbar-thumb:hover {
background: rgba(255, 255, 255, 0.3);
box-shadow: 0 0 6px rgba(255, 255, 255, 0.18);
}
.anomalous-card {
position: relative;
background: var(--amb-bg-card, #202024);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
overflow: hidden;
display: flex;
flex-direction: column;
height: 340px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.04);
transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
will-change: transform, box-shadow;
cursor: pointer;
}
.anomalous-card:hover {
transform: translateY(-2px);
border-color: rgba(255, 255, 255, 0.2);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.theme-abyssal-scarlet .anomalous-card {
border-color: rgba(220, 20, 60, 0.22);
background: linear-gradient(180deg, rgba(25, 12, 20, 0.9) 0%, rgba(14, 6, 14, 0.98) 100%);
box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
}
.theme-abyssal-scarlet .anomalous-card:hover {
border-color: #dc143c;
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.9), inset 0 0 12px rgba(0, 0, 0, 0.7);
}
.anomalous-card img,
.anomalous-card video {
width: 100%;
height: 100%;
object-fit: cover;
display: block;
transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}
.anomalous-card:hover img,
.anomalous-card:hover video {
transform: scale(1.02);
}
#anomalous-container.anomalous-sidebar-closed #anomalous-grid {
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 16px;
row-gap: 24px;
}
#anomalous-container.anomalous-sidebar-closed .anomalous-card {
height: 320px;
}
/* ==========================================================================
Display Modes: Standard, Compact, Aesthetic
========================================================================== */
/* Mode 2: Compact (Primary / Default / High Density) */
#anomalous-container.view-mode-compact #anomalous-grid,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) #anomalous-grid {
grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
gap: 10px !important;
row-gap: 14px !important;
padding: 12px !important;
}
#anomalous-container.view-mode-compact .anomalous-card,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card {
height: 220px !important;
border-radius: 6px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-labels,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-labels {
padding: 18px 8px 6px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-title,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-title {
font-size: 0.82em !important;
line-height: 1.25 !important;
margin-bottom: 2px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-filename,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-filename {
font-size: 0.72em !important;
opacity: 0.85 !important;
}
#anomalous-container.view-mode-compact .anomalous-card-badge,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-badge {
top: 6px !important;
left: 6px !important;
max-width: 55px !important;
font-size: 0.65em !important;
padding: 1px 4px !important;
border-radius: 3px !important;
white-space: nowrap !important;
overflow: hidden !important;
text-overflow: ellipsis !important;
}
#anomalous-container.view-mode-compact .anomalous-card-action-btn,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-action-btn {
width: 22px !important;
height: 22px !important;
top: 6px !important;
font-size: 11px !important;
border-radius: 4px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-action-btn.action-apply,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-action-btn.action-apply {
right: 6px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-action-btn.action-edit,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-action-btn.action-edit {
right: 32px !important;
}
#anomalous-container.view-mode-compact .anomalous-card-action-btn.action-scan,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-card-action-btn.action-scan {
right: 58px !important;
}
#anomalous-container.view-mode-compact .anomalous-folder-item,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-folder-item {
padding: 5px 12px !important;
font-size: 0.86em !important;
}
#anomalous-container.view-mode-compact .anomalous-type-header,
#anomalous-container:not(.view-mode-standard):not(.view-mode-aesthetic) .anomalous-type-header {
padding: 6px 12px !important;
font-size: 0.85em !important;
}
/* Mode 1: Standard - Clean, balanced, 8px architectural geometry */
#anomalous-container.view-mode-standard #anomalous-grid {
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
row-gap: 28px;
padding: 20px;
}
#anomalous-container.view-mode-standard .anomalous-card {
height: 340px;
border-radius: 8px;
}
/* Mode 3: Aesthetic (Subtle Ambient Depth) */
#anomalous-container.view-mode-aesthetic #anomalous-grid {
grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
gap: 24px;
row-gap: 36px;
padding: 24px;
}
#anomalous-container.view-mode-aesthetic .anomalous-card {
height: 360px;
border-radius: 8px;
background: rgba(28, 28, 32, 0.85);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
border: 1px solid rgba(255, 255, 255, 0.09);
}
#anomalous-container.view-mode-aesthetic .anomalous-card:hover {
background: rgba(34, 34, 38, 0.92);
border-color: rgba(255, 255, 255, 0.22);
box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
}
/* Model Card Labels: Always visible at rest, crisp non-blurry gradient mask */
.anomalous-card-labels {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 26px 10px 8px;
background: linear-gradient(to top, rgba(16, 16, 18, 0.96) 0%, rgba(16, 16, 18, 0.7) 65%, transparent 100%);
display: flex;
flex-direction: column;
gap: 3px;
text-align: left;
z-index: 5;
pointer-events: none;
box-sizing: border-box;
transition: background 0.2s ease;
}
.anomalous-card:hover .anomalous-card-labels {
background: linear-gradient(to top, rgba(16, 16, 18, 0.98) 0%, rgba(16, 16, 18, 0.82) 75%, transparent 100%);
}
.theme-abyssal-scarlet .anomalous-card-labels {
background: linear-gradient(to top, rgba(18, 5, 14, 0.97) 0%, rgba(18, 5, 14, 0.72) 65%, transparent 100%);
}
.theme-abyssal-scarlet .anomalous-card:hover .anomalous-card-labels {
background: linear-gradient(to top, rgba(20, 6, 16, 0.99) 0%, rgba(20, 6, 16, 0.85) 75%, transparent 100%);
}
.anomalous-card-title {
font-size: 0.88rem;
font-weight: 600;
color: #f3f4f6;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
line-height: 1.3;
}
.anomalous-card-filename {
font-size: 0.72rem;
color: #9ca3af;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.8;
}
/* Card Base Model Badges - Normal Mode (Neutral & Clean) */
.anomalous-card-badge {
position: absolute;
top: 8px;
left: 8px;
padding: 3px 8px;
border-radius: 5px;
font-size: 0.72rem;
font-weight: 600;
letter-spacing: 0.4px;
background: rgba(18, 20, 26, 0.85);
color: #cbd5e1;
border: 1px solid rgba(255, 255, 255, 0.15);
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
pointer-events: none;
z-index: 10;
text-transform: uppercase;
transition: all 0.25s ease;
}
.anomalous-card:hover .anomalous-card-badge {
border-color: rgba(255, 255, 255, 0.3);
color: #ffffff;
}
.anomalous-card-badge.badge-gold {
color: #e2e8f0;
background: rgba(30, 32, 40, 0.9);
border-color: rgba(255, 255, 255, 0.2);
}
.anomalous-card-badge.badge-amber {
color: #cbd5e1;
background: rgba(30, 32, 40, 0.9);
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-card-badge.badge-flux {
color: #cbd5e1;
background: rgba(30, 32, 40, 0.9);
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-card-badge.badge-rose {
color: #cbd5e1;
background: rgba(30, 32, 40, 0.9);
border-color: rgba(255, 255, 255, 0.18);
}
/* Card Action Buttons - Normal Mode (Neutral Glass) */
.anomalous-card-action-btn {
position: absolute;
top: 8px;
right: 8px;
width: 28px;
height: 28px;
padding: 0;
display: inline-flex;
align-items: center;
justify-content: center;
background: rgba(20, 22, 28, 0.85);
color: #e2e8f0;
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 6px;
cursor: pointer;
font-size: 13px;
opacity: 0;
transform: scale(0.88);
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
z-index: 20;
backdrop-filter: blur(8px);
pointer-events: none;
}
.anomalous-card-action-btn.action-apply {
right: 8px;
}
.anomalous-card-action-btn.action-edit {
right: 42px;
}
.anomalous-card-action-btn.action-scan {
right: 76px;
}
.anomalous-card:hover .anomalous-card-action-btn {
opacity: 1;
transform: scale(1);
pointer-events: auto;
}
.anomalous-card-action-btn:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.35);
color: #ffffff;
box-shadow: none;
}
.anomalous-scan-progress {
position: fixed;
right: 24px;
bottom: 104px;
z-index: 1000000;
width: min(380px, calc(100vw - 32px));
box-sizing: border-box;
padding: 16px;
border: 1px solid rgba(138, 180, 248, 0.35);
border-radius: 12px;
background: rgba(24, 24, 27, 0.96);
color: #f1f3f4;
box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
backdrop-filter: blur(12px);
}
.anomalous-scan-progress-title,
.anomalous-scan-progress-detail,
.anomalous-scan-progress-item {
display: block;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anomalous-scan-progress-title {
margin-bottom: 10px;
font-size: 14px;
}
.anomalous-scan-progress-track {
position: relative;
height: 6px;
overflow: hidden;
border-radius: 999px;
background: rgba(255, 255, 255, 0.12);
}
.anomalous-scan-progress-fill {
height: 100%;
border-radius: inherit;
background: #10b981;
transition: width 180ms ease;
}
.anomalous-scan-progress-fill.is-indeterminate {
animation: anomalous-scan-progress-slide 1.2s ease-in-out infinite;
}
.anomalous-scan-progress-detail {
margin-top: 10px;
color: #d7dde8;
font-size: 12px;
}
.anomalous-scan-progress-item {
margin-top: 4px;
color: #9aa0a6;
font-size: 11px;
}
.anomalous-scan-progress.is-complete .anomalous-scan-progress-fill {
background: #81c995;
}
.anomalous-scan-progress.is-error {
border-color: rgba(242, 139, 130, 0.5);
}
.anomalous-scan-progress.is-error .anomalous-scan-progress-fill {
background: #f28b82;
}
@keyframes anomalous-scan-progress-slide {
from { transform: translateX(-120%); }
to { transform: translateX(340%); }
}
.anomalous-card-title {
color: var(--fg-color, #fff);
font-size: 0.9em;
font-weight: 650;
line-height: 1.25;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 2;
overflow: hidden;
overflow-wrap: anywhere;
}
.anomalous-card-filename {
color: rgba(255, 255, 255, 0.55);
font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
font-size: 0.72em;
line-height: 1.25;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#anomalous-content {
display: flex;
flex-direction: column;
flex: 1;
overflow: hidden;
background: transparent;
position: relative;
}
#anomalous-content::before {
display: none;
}
#anomalous-content > * {
position: relative;
z-index: 1;
}
#anomalous-container {
flex-direction: row;
}
+635
View File
@@ -0,0 +1,635 @@
/* Island UI: Floating Sidebar Navigation Console (Neutral Charcoal Frosted Glass) */
#anomalous-sidebar-wrapper {
width: 250px;
margin: 8px 0 8px 8px;
height: calc(100% - 16px);
background: rgba(22, 22, 25, 0.85);
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
position: relative;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
display: flex;
flex-direction: column;
transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.3s ease;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
overflow: visible;
box-sizing: border-box;
}
#anomalous-doctor-panel,
#anomalous-assistant-panel {
background: var(--amb-bg-page, #131315) !important;
position: relative;
z-index: 2;
}
.anomalous-brand-badge {
background: rgba(255, 255, 255, 0.06) !important;
border: 1px solid rgba(255, 255, 255, 0.1) !important;
color: #e5e7eb !important;
border-radius: 6px !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
backdrop-filter: blur(8px) !important;
letter-spacing: 1px !important;
}
#anomalous-sidebar input[type="text"] {
background: rgba(255, 255, 255, 0.05) !important;
border: 1px solid rgba(255, 255, 255, 0.09) !important;
backdrop-filter: blur(8px) !important;
color: #f3f4f6 !important;
transition: all 0.2s ease !important;
}
#anomalous-sidebar input[type="text"]:focus {
border-color: rgba(255, 255, 255, 0.3) !important;
background: rgba(255, 255, 255, 0.08) !important;
box-shadow: 0 0 8px rgba(255, 255, 255, 0.06) !important;
}
#anomalous-sidebar-actions {
background: rgba(20, 20, 23, 0.6) !important;
backdrop-filter: blur(12px) !important;
border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
#anomalous-sidebar-wrapper::after {
display: none;
}
.anomalous-sidebar-closed #anomalous-sidebar-wrapper {
width: 58px;
}
.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-settings-hub-modal {
position: absolute;
bottom: 16px;
left: 266px;
width: 270px;
max-height: calc(100% - 32px);
overflow-y: auto;
box-sizing: border-box;
background: rgba(24, 24, 28, 0.98);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 10px;
padding: 12px;
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05);
z-index: 999999 !important;
transition: left 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
#anomalous-settings-hub-modal button {
display: flex !important;
align-items: center !important;
width: 100% !important;
text-align: left !important;
box-sizing: border-box !important;
}
#anomalous-settings-hub-modal button svg {
flex-shrink: 0 !important;
}
.anomalous-sidebar-closed #anomalous-settings-hub-modal {
left: 72px !important;
}
@keyframes anomalous-popover-in {
0% {
opacity: 0;
transform: translateY(6px) scale(0.96);
}
100% {
opacity: 1;
transform: translateY(0) scale(1);
}
}
#anomalous-toolbox-modal {
position: absolute;
bottom: 58px;
left: 8px;
width: 216px;
min-height: auto;
box-sizing: border-box;
background: rgba(22, 22, 26, 0.98);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid rgba(255, 255, 255, 0.15);
border-radius: 9px;
padding: 7px 7px 6px;
box-shadow: 0 18px 44px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.08);
z-index: 999999 !important;
display: none;
flex-direction: column;
gap: 3px;
overflow: visible !important;
}
#anomalous-toolbox-modal[style*="display: flex"] {
animation: anomalous-popover-in 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
transform-origin: 16px bottom;
}
#anomalous-toolbox-modal::after {
content: '';
position: absolute;
bottom: -5px;
left: 16px;
width: 8px;
height: 8px;
background: rgba(22, 22, 26, 0.98);
border-right: 1px solid rgba(255, 255, 255, 0.12);
border-bottom: 1px solid rgba(255, 255, 255, 0.12);
transform: translateX(-50%) rotate(45deg);
pointer-events: none;
}
#anomalous-toolbox-modal::-webkit-scrollbar {
display: none !important;
width: 0 !important;
height: 0 !important;
}
.anomalous-sidebar-closed #anomalous-toolbox-modal {
left: 64px !important;
bottom: 12px !important;
}
.anomalous-sidebar-closed #anomalous-toolbox-modal::after {
display: none !important;
}
.anomalous-toolbox-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-template-rows: repeat(3, 44px);
grid-auto-rows: 44px;
gap: 4px;
margin: 3px 0 1px;
align-content: start;
flex: 1;
}
.anomalous-toolbox-tile {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
text-align: center;
padding: 5px 2px 4px;
min-height: 40px;
box-sizing: border-box;
background: transparent;
border: 1px solid transparent;
border-radius: 6px;
cursor: pointer;
position: relative;
user-select: none;
transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}
.anomalous-toolbox-tile:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.12);
transform: translateY(-1px);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.anomalous-toolbox-tile:active {
transform: scale(0.96);
background: rgba(255, 255, 255, 0.12);
}
.anomalous-toolbox-tile-icon {
font-size: 13.5px;
line-height: 1.1;
margin-bottom: 2px;
display: flex;
align-items: center;
justify-content: center;
user-select: none;
}
.anomalous-toolbox-tile-label {
font-size: 9.5px;
font-weight: 500;
color: #cbd5e1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100%;
line-height: 1.15;
}
.anomalous-toolbox-tile-dot {
position: absolute;
top: 3px;
right: 3px;
width: 4px;
height: 4px;
border-radius: 50%;
background: #f59e0b;
box-shadow: 0 0 4px rgba(245, 158, 11, 0.6);
}
.anomalous-toolbox-tile-dot.is-ready {
background: #10b981;
box-shadow: 0 0 5px rgba(16, 185, 129, 0.75);
}
/* Suppress all tooltips and action labels on clicked/active elements so they never block vision or interaction */
button:active::before,
button:active::after,
.anomalous-tooltip-target:active::before,
.anomalous-tooltip-target:active::after,
.anomalous-toolbox-tile:active::before,
.anomalous-toolbox-tile:active::after,
#anomalous-sidebar-actions button:active::before,
#anomalous-sidebar-actions button:active::after,
#anomalous-sidebar-actions button:active .anomalous-action-label,
#anomalous-sidebar-actions button:focus:not(:focus-visible) .anomalous-action-label {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
}
#anomalous-sidebar-actions button:active > svg,
#anomalous-sidebar-actions button:focus:not(:focus-visible) > svg {
opacity: 1 !important;
}
#anomalous-sidebar-actions button.is-active {
color: #38bdf8 !important;
background: rgba(56, 189, 248, 0.14) !important;
border: 1px solid rgba(56, 189, 248, 0.35) !important;
}
#anomalous-sidebar-actions button.is-active .anomalous-action-label {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
}
#anomalous-sidebar-actions button.is-active > svg {
opacity: 1 !important;
color: #38bdf8 !important;
}
/* When toolbox or settings hub modal is open, completely suppress floating tooltip bubble */
body:has(#anomalous-toolbox-modal[style*="display: flex"]) #anomalous-sidebar-tooltip-bubble,
body:has(#anomalous-settings-hub-modal[style*="display: flex"]) #anomalous-sidebar-tooltip-bubble {
display: none !important;
opacity: 0 !important;
visibility: hidden !important;
pointer-events: none !important;
}
.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: rgba(255, 255, 255, 0.03);
color: var(--fg-color, #fff);
font-weight: bold;
font-size: 0.9em;
border-top: 1px solid rgba(255, 255, 255, 0.06);
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.anomalous-folder-item {
padding: 8px 15px;
color: var(--fg-color, #cbd5e1);
cursor: pointer;
font-size: 0.9em;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
border-left: 2px solid transparent;
}
.anomalous-folder-item:hover {
background: rgba(255, 255, 255, 0.06);
color: #fff;
}
/* Clean Neutral Active Indicator on Selected Menu (Normal Mode) */
.anomalous-folder-item.active {
background: rgba(255, 255, 255, 0.08);
color: #fff;
font-weight: 600;
border-left: 2px solid #e5e7eb;
box-shadow: inset 3px 0 6px rgba(255, 255, 255, 0.03);
border-radius: 0 6px 6px 0;
}
.anomalous-folder-item.active .anomalous-folder-name {
color: #fff !important;
text-shadow: none;
}
.theme-abyssal-scarlet .anomalous-folder-item.active {
background: rgba(55, 12, 22, 0.85);
border-left: 2px solid #dc143c;
border-left-color: var(--c-crimson, #dc143c);
box-shadow: inset 2px 0 6px rgba(0, 0, 0, 0.8);
}
.theme-abyssal-scarlet .anomalous-folder-item.active .anomalous-folder-name {
color: #e0d8db;
text-shadow: none;
}
/* Sidebar Icons & Actions - Normal Mode (Neutral & Clean) */
.anomalous-folder-item svg,
#anomalous-sidebar h3 svg {
color: #94a3b8 !important;
filter: none;
}
.theme-abyssal-scarlet .anomalous-folder-item svg,
.theme-abyssal-scarlet #anomalous-sidebar h3 svg {
color: #d4af37 !important;
filter: none;
}
#anomalous-scan-btn,
#anomalous-materials-btn,
#anomalous-doctor-btn,
#anomalous-assistant-btn,
#anomalous-global-settings-btn {
color: #94a3b8 !important;
transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#anomalous-scan-btn:hover,
#anomalous-materials-btn:hover,
#anomalous-doctor-btn:hover,
#anomalous-assistant-btn:hover,
#anomalous-global-settings-btn:hover {
color: #f8fafc !important;
filter: none !important;
background: rgba(255, 255, 255, 0.08) !important;
}
.theme-abyssal-scarlet #anomalous-scan-btn:hover {
color: #ff4d6d !important;
filter: none !important;
background: rgba(220, 20, 60, 0.12) !important;
}
.theme-abyssal-scarlet #anomalous-materials-btn {
color: var(--c-amber, #d97706) !important;
}
.theme-abyssal-scarlet #anomalous-materials-btn:hover {
color: #fbbf24 !important;
filter: none !important;
background: rgba(217, 119, 6, 0.12) !important;
}
.theme-abyssal-scarlet #anomalous-doctor-btn {
color: var(--c-crimson, #dc143c) !important;
}
.theme-abyssal-scarlet #anomalous-doctor-btn:hover {
color: #ff4d6d !important;
filter: none !important;
background: rgba(220, 20, 60, 0.12) !important;
}
.theme-abyssal-scarlet #anomalous-assistant-btn {
color: var(--c-purple, #8b5cf6) !important;
}
.theme-abyssal-scarlet #anomalous-assistant-btn:hover {
color: #c4b5fd !important;
filter: none !important;
background: rgba(139, 92, 246, 0.14) !important;
}
.theme-abyssal-scarlet #anomalous-global-settings-btn {
color: var(--c-silver, #94a3b8) !important;
}
.theme-abyssal-scarlet #anomalous-global-settings-btn:hover {
color: #f8fafc !important;
filter: none !important;
background: rgba(255, 255, 255, 0.08) !important;
}
#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: rgba(255, 255, 255, 0.35);
}
.theme-abyssal-scarlet .anomalous-resizer:hover {
background: #dc143c;
}
.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-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-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: rgba(255, 255, 255, 0.3);
background: var(--bg-color, #444);
transform: translateY(-2px);
}
.theme-abyssal-scarlet .anomalous-compatible-item:hover {
border-color: #dc143c;
}
.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;
}
+583
View File
@@ -0,0 +1,583 @@
/* Notebook UI */
.anomalous-nb-modal {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: var(--amb-bg-page, #131315);
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-prompt-studio-container {
padding: 0;
position: relative;
background: var(--amb-bg-page, #141519);
border: 1px solid var(--amb-border, rgba(255, 255, 255, 0.12));
box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85);
}
.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;
}
.anomalous-nb-create-row {
min-width: 0;
box-sizing: border-box;
align-items: center;
}
.anomalous-nb-create-input {
min-width: 0;
width: 0;
box-sizing: border-box;
}
.anomalous-nb-create-row > button {
flex: 0 0 auto;
min-width: 0;
}
@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: rgba(255, 255, 255, 0.12);
color: #fff;
font-weight: bold;
}
.theme-abyssal-scarlet .anomalous-nb-item.active {
background: #dc143c;
}
.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 {
position: relative;
background: var(--amb-btn-primary-bg, #D7D9E0);
color: var(--amb-btn-primary-text, #15171C);
border: 1px solid rgba(255, 255, 255, 0.2);
height: 32px;
padding: 0 14px;
border-radius: var(--amb-radius-control, 6px);
cursor: pointer;
font-size: 0.82rem;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
box-shadow: none;
transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
overflow: hidden;
user-select: none;
box-sizing: border-box;
}
.anomalous-btn-primary:hover {
background: var(--amb-btn-primary-hover, #E5E7EB);
border-color: rgba(255, 255, 255, 0.4);
box-shadow: none;
}
.anomalous-btn-primary:active {
transform: translateY(1px);
filter: brightness(0.95);
}
.anomalous-btn-danger {
position: relative;
background: #7f1d1d;
color: #fecaca;
border: 1px solid rgba(239, 68, 68, 0.35);
height: 32px;
padding: 0 14px;
border-radius: var(--amb-radius-control, 6px);
cursor: pointer;
font-size: 0.82rem;
font-weight: 600;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
box-shadow: none;
transition: background-color 0.16s ease, border-color 0.16s ease;
user-select: none;
box-sizing: border-box;
}
.anomalous-btn-danger:hover {
background: #991b1b;
border-color: rgba(239, 68, 68, 0.6);
color: #ffffff;
}
overflow: hidden;
}
.anomalous-btn-danger:hover {
background: linear-gradient(135deg, #b91c1c 0%, #7f1d1d 100%);
border-color: #f87171;
box-shadow: none;
transform: translateY(-1px);
}
.anomalous-btn-success {
position: relative;
background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
color: white;
border: 1px solid rgba(134, 239, 172, 0.4);
padding: 6px 14px;
border-radius: 3px 11px 3px 11px;
cursor: pointer;
font-size: 0.82rem;
font-weight: 600;
margin-left: 5px;
box-shadow: none;
transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
overflow: hidden;
}
.anomalous-btn-success:hover {
background: linear-gradient(135deg, #15803d 0%, #166534 100%);
border-color: #4ade80;
box-shadow: none;
transform: translateY(-1px);
}
.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;
max-height: 240px;
overflow-y: auto;
content-visibility: auto;
contain-intrinsic-size: 70px;
}
.anomalous-nb-minicheck,
.anomalous-nb-minilora {
display: flex;
align-items: center;
gap: 12px;
padding: 8px 12px 8px 8px;
background: #222630;
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 8px;
cursor: pointer;
flex: 1 1 220px;
max-width: 320px;
transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
content-visibility: auto;
contain-intrinsic-size: 70px;
}
.anomalous-nb-minicheck:hover,
.anomalous-nb-minilora:hover {
border-color: rgba(255, 255, 255, 0.2);
background: #2a3140;
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
transition-delay: 0.04s;
}
.anomalous-nb-minicheck.selected,
.anomalous-nb-minilora.selected {
border-color: #8b5cf6;
background: rgba(139, 92, 246, 0.15);
box-shadow: 0 0 12px rgba(139, 92, 246, 0.25);
}
.anomalous-nb-minicheck img,
.anomalous-nb-minicheck video,
.anomalous-nb-minilora img,
.anomalous-nb-minilora video {
width: 52px;
height: 52px;
aspect-ratio: 1 / 1;
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: #8b5cf6;
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;
}
/* 提示词双语对照面板 (CSS Grid 双栏排版) */
.anomalous-nb-dual-pane {
display: flex;
flex-direction: column;
width: 100%;
background: rgba(22, 26, 35, 0.95);
padding: 10px;
border-radius: 8px;
border: 1px solid rgba(255, 255, 255, 0.08);
box-sizing: border-box;
gap: 6px;
}
.anomalous-nb-tag-row {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
width: 100%;
align-items: stretch;
}
.anomalous-nb-gallery-box {
background: #1e1e1e;
border: 1px solid #444;
border-radius: 8px;
padding: 12px;
margin-bottom: 15px;
}
/* Notebook Model Fold & Sections Enhancement */
.anomalous-nb-models-fold {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 0;
margin-bottom: 16px;
overflow: hidden;
transition: border-color 0.2s ease;
}
.anomalous-nb-models-fold[open] {
border-color: rgba(139, 92, 246, 0.35);
background: rgba(255, 255, 255, 0.03);
}
.anomalous-nb-fold-summary {
display: flex;
align-items: center;
justify-content: space-between;
padding: 12px 16px;
background: rgba(255, 255, 255, 0.04);
cursor: pointer;
font-size: 0.92rem;
font-weight: 600;
color: #f1f5f9;
user-select: none;
list-style: none;
transition: background 0.18s;
}
.anomalous-nb-fold-summary::-webkit-details-marker {
display: none;
}
.anomalous-nb-fold-summary:hover {
background: rgba(255, 255, 255, 0.07);
}
.anomalous-nb-models-badge {
font-size: 0.76rem;
font-weight: 500;
color: #94a3b8;
background: rgba(255, 255, 255, 0.06);
padding: 2px 8px;
border-radius: 999px;
border: 1px solid rgba(255, 255, 255, 0.08);
}
.anomalous-nb-fold-arrow {
color: #94a3b8;
font-size: 0.88rem;
}
.anomalous-nb-models-fold .anomalous-nb-section {
background: transparent;
border: none;
border-top: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 0;
padding: 16px;
margin-bottom: 0;
}
.anomalous-nb-prompt-section {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 10px;
padding: 16px;
margin-bottom: 16px;
}
.anomalous-nb-capture-fold {
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.06);
border-radius: 10px;
padding: 0;
margin-bottom: 16px;
overflow: hidden;
}
.anomalous-nb-capture-fold > summary {
padding: 11px 16px;
cursor: pointer;
font-size: 0.88rem;
font-weight: 500;
color: #94a3b8;
list-style: none;
transition: background 0.18s, color 0.18s;
}
.anomalous-nb-capture-fold > summary:hover {
background: rgba(255, 255, 255, 0.05);
color: #f1f5f9;
}
.anomalous-nb-capture-content {
padding: 12px 16px;
border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.anomalous-nb-tools-fold {
margin-top: 12px;
padding: 8px 12px;
border-radius: 6px;
background: rgba(0, 0, 0, 0.2);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.anomalous-nb-tools-fold > summary {
font-size: 0.82rem;
color: #94a3b8;
cursor: pointer;
}
.anomalous-nb-tools-fold > summary:hover {
color: #cbd5e1;
}
.anomalous-nb-selected-badge {
font-size: 0.78rem;
padding: 2px 8px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.anomalous-nb-visual-tag {
background: #222630;
color: #e2e8f0;
padding: 6px 10px;
border-radius: 6px;
border: 1px solid rgba(255, 255, 255, 0.08);
cursor: pointer;
transition: all 0.18s ease;
min-height: 34px;
display: flex;
align-items: center;
word-break: break-word;
font-size: 0.84rem;
line-height: 1.4;
}
.anomalous-nb-visual-tag.hover {
background: #2a3140;
border-color: rgba(139, 92, 246, 0.5);
color: #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
/* 复制按钮默认隐藏,悬停才浮现 */
.anomalous-nb-copy-btn {
opacity: 0;
visibility: hidden;
transition: opacity 0.15s ease, visibility 0.15s ease, transform 0.15s ease;
padding-left: 8px;
flex-shrink: 0;
user-select: none;
font-size: 0.78rem;
}
.anomalous-nb-visual-tag:hover .anomalous-nb-copy-btn {
opacity: 0.85;
visibility: visible;
}
.anomalous-nb-copy-btn:hover {
transform: scale(1.2);
opacity: 1;
}
.anomalous-nb-tag-edit {
background: #111827;
color: #f1f5f9;
border: 1px solid rgba(139, 92, 246, 0.6);
border-radius: 4px;
padding: 6px;
width: 100%;
font-size: 0.84rem;
box-sizing: border-box;
outline: none;
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+587
View File
@@ -0,0 +1,587 @@
/* Studio Layout Overhaul */
.anomalous-recipe-detail-overview .anomalous-recipe-detail-hero {
display: grid !important;
grid-template-columns: 260px minmax(0, 1fr) !important;
gap: 20px !important;
align-items: start !important;
padding: 16px !important;
border-radius: 14px !important;
background: linear-gradient(145deg, rgba(30, 32, 38, 0.7), rgba(18, 19, 23, 0.85)) !important;
border: 1px solid rgba(255, 255, 255, 0.08) !important;
margin-bottom: 16px !important;
backdrop-filter: blur(12px);
}
.anomalous-recipe-detail-hero-media {
position: relative;
width: 100%;
height: 220px;
border-radius: 10px;
overflow: hidden;
background: #0d0e11;
border: 1px solid rgba(255, 255, 255, 0.06);
display: flex;
align-items: center;
justify-content: center;
}
.anomalous-recipe-detail-hero-media img,
.anomalous-recipe-detail-hero-media video {
width: 100% !important;
height: 100% !important;
max-height: none !important;
object-fit: cover !important;
border-radius: 9px;
cursor: pointer;
transition: transform 0.25s ease;
}
.anomalous-recipe-detail-hero-media:hover img {
transform: scale(1.02);
}
.anomalous-recipe-studio-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
gap: 8px;
margin: 12px 0 8px 0;
}
.anomalous-recipe-studio-metric-tile {
display: flex;
flex-direction: column;
gap: 2px;
padding: 8px 10px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.06);
}
.anomalous-recipe-studio-metric-label {
font-size: 0.72rem;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.3px;
}
.anomalous-recipe-studio-metric-val {
font-size: 0.96rem;
font-weight: 600;
color: #f1f5f9;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
/* Prompt Showcase Boxes - Ultra-clean Dark Glassmorphism */
.anomalous-recipe-prompt-box {
position: relative;
padding: 14px 16px;
border-radius: 10px;
margin-bottom: 12px;
font-size: 0.84rem;
line-height: 1.6;
word-break: break-word;
background: rgba(255, 255, 255, 0.025);
border: 1px solid rgba(255, 255, 255, 0.07);
color: #cbd5e1;
transition: border-color 0.2s ease, background 0.2s ease;
}
.anomalous-recipe-prompt-box:hover {
background: rgba(255, 255, 255, 0.035);
border-color: rgba(255, 255, 255, 0.12);
}
.anomalous-recipe-prompt-box.is-positive {
border-left: 3px solid rgba(16, 185, 129, 0.6);
}
.anomalous-recipe-prompt-box.is-negative {
border-left: 3px solid rgba(244, 63, 94, 0.6);
}
.anomalous-recipe-prompt-micro-copy {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border-radius: 6px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
color: #94a3b8;
cursor: pointer;
transition: all 0.18s ease;
}
.anomalous-recipe-prompt-micro-copy:hover {
background: rgba(255, 255, 255, 0.15);
border-color: rgba(255, 255, 255, 0.25);
color: #ffffff;
transform: translateY(-1px);
}
.anomalous-recipe-prompt-micro-copy.is-copied {
background: rgba(16, 185, 129, 0.2) !important;
border-color: rgba(16, 185, 129, 0.4) !important;
color: #34d399 !important;
}
.anomalous-recipe-prompt-badge {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 2px 8px;
border-radius: 6px;
font-size: 0.74rem;
font-weight: 600;
letter-spacing: 0.2px;
}
.anomalous-recipe-prompt-badge.is-positive {
background: rgba(16, 185, 129, 0.12);
color: #34d399;
border: 1px solid rgba(16, 185, 129, 0.25);
}
.anomalous-recipe-prompt-badge.is-negative {
background: rgba(244, 63, 94, 0.12);
color: #fb7185;
border: 1px solid rgba(244, 63, 94, 0.25);
}
.anomalous-recipe-beta-notice[style*="display: none"] {
display: none !important;
}
/* ========================================================================== */
/* Modern Studio Presets (Parameter Notebook Overhaul) */
/* ========================================================================== */
.anomalous-preset-btn-primary {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 14px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.18);
color: #f1f5f9;
font-size: 0.82rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-preset-btn-primary:hover {
background: rgba(255, 255, 255, 0.18);
border-color: rgba(255, 255, 255, 0.28);
color: #ffffff;
}
.anomalous-preset-btn-secondary {
display: flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 8px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.035);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #94a3b8;
font-size: 0.82rem;
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-preset-btn-secondary:hover {
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
color: #cbd5e1;
}
.anomalous-preset-item-card {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
min-width: 0;
padding: 10px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.02);
border: 1px solid rgba(255, 255, 255, 0.07);
cursor: pointer;
transition: all 0.15s ease;
margin-bottom: 6px;
}
.anomalous-preset-item-card:hover {
background: rgba(255, 255, 255, 0.045);
border-color: rgba(255, 255, 255, 0.14);
}
.anomalous-preset-item-card.is-active {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(16, 185, 129, 0.4);
box-shadow: inset 3px 0 0 #10b981;
}
.anomalous-preset-active-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background: #10b981;
flex-shrink: 0;
display: inline-block;
}
.anomalous-preset-item-title-row {
width: 100%;
min-width: 0;
display: flex;
align-items: center;
gap: 6px;
overflow: hidden;
}
.anomalous-recipe-info-bubble {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 2px 7px;
border-radius: 6px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #94a3b8;
font-size: 0.74rem;
transition: all 0.15s ease;
}
.anomalous-recipe-info-bubble:hover {
background: rgba(255, 255, 255, 0.08);
color: #e2e8f0;
border-color: rgba(255, 255, 255, 0.16);
}
.anomalous-preset-item-main {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 4px;
}
.anomalous-preset-item-title {
font-size: 0.86rem;
font-weight: 500;
color: #cbd5e1;
min-width: 0;
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anomalous-preset-item-card.is-active .anomalous-preset-item-title {
color: #ffffff;
font-weight: 600;
}
.anomalous-preset-item-meta {
display: flex;
align-items: center;
gap: 6px;
font-size: 0.72rem;
color: #64748b;
}
.anomalous-preset-item-badge {
padding: 1px 6px;
border-radius: 4px;
background: rgba(255, 255, 255, 0.08);
color: #94a3b8;
font-size: 0.68rem;
font-weight: 500;
}
.anomalous-preset-item-actions {
display: flex;
align-items: center;
gap: 4px;
flex-shrink: 0;
opacity: 0.35;
transition: opacity 0.15s ease;
}
.anomalous-preset-item-card:hover .anomalous-preset-item-actions {
opacity: 1;
}
.anomalous-preset-item-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 26px;
height: 26px;
padding: 0;
border-radius: 6px;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #cbd5e1;
cursor: pointer;
font-size: 0.78rem;
line-height: 1;
transition: all 0.15s;
box-sizing: border-box;
}
.anomalous-preset-item-btn:hover {
background: rgba(255, 255, 255, 0.16);
color: #fff;
transform: translateY(-1px);
}
.anomalous-preset-item-btn.is-delete:hover {
background: rgba(239, 68, 68, 0.2);
border-color: rgba(239, 68, 68, 0.4);
color: #fca5a5;
}
/* Modern Parameter Bento Matrix */
.anomalous-preset-bento-deck {
background: var(--amb-bg-panel, #1C1E24) !important;
border: 1px solid var(--amb-border, rgba(255, 255, 255, 0.08)) !important;
border-radius: var(--amb-radius-panel, 12px) !important;
padding: 12px 14px !important;
margin-bottom: 12px !important;
}
.anomalous-recipe-bento-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
gap: 8px;
margin-bottom: 8px;
}
.anomalous-recipe-bento-tile {
position: relative;
display: flex;
flex-direction: column;
gap: 4px;
padding: 9px 12px;
border-radius: var(--amb-radius-control, 8px);
background: var(--amb-bg-card, #24262E);
border: 1px solid var(--amb-border, rgba(255, 255, 255, 0.07));
transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.anomalous-recipe-bento-tile.is-interactive {
cursor: pointer;
}
.anomalous-recipe-bento-tile:hover {
background: var(--amb-bg-card-hover, #2d303a);
border-color: var(--amb-border-hover, rgba(255, 255, 255, 0.18));
transform: translateY(-1px);
}
.anomalous-recipe-bento-label-row {
display: flex;
justify-content: space-between;
align-items: center;
gap: 6px;
}
.anomalous-recipe-bento-label {
display: inline-flex;
align-items: center;
font-size: 0.7rem;
color: #94a3b8;
text-transform: uppercase;
letter-spacing: 0.3px;
font-weight: 600;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anomalous-recipe-bento-val {
font-size: 0.98rem;
font-weight: 600;
color: #f1f5f9;
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anomalous-recipe-models-bento-deck {
display: grid;
gap: 8px;
margin-top: 10px;
}
.anomalous-recipe-model-highlight-card {
padding: 10px 14px;
border-radius: 8px;
background: rgba(99, 102, 241, 0.08);
border: 1px solid rgba(99, 102, 241, 0.2);
min-width: 0;
}
.anomalous-recipe-lora-stack {
display: flex;
flex-direction: column;
gap: 6px;
margin-top: 4px;
}
.anomalous-recipe-lora-pill {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
min-width: 0;
padding: 8px 12px;
border-radius: 8px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.08);
font-size: 0.82rem;
transition: all 0.15s ease;
}
.anomalous-recipe-lora-pill:hover {
background: rgba(255, 255, 255, 0.06);
border-color: rgba(99, 102, 241, 0.3);
transform: translateY(-1px);
}
.anomalous-recipe-lora-name {
flex: 1;
min-width: 0;
color: #e2e8f0;
font-weight: 500;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.anomalous-recipe-lora-weights {
flex-shrink: 0;
display: inline-flex;
align-items: center;
gap: 8px;
font-size: 0.72rem;
color: #94a3b8;
font-family: ui-monospace, monospace;
}
/* Preset Console Header (Right Main Stage) */
.anomalous-preset-console-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding: 16px 18px;
border-radius: 12px;
background: linear-gradient(145deg, rgba(30, 32, 38, 0.7), rgba(18, 19, 23, 0.85));
border: 1px solid rgba(255, 255, 255, 0.08);
margin-bottom: 14px;
backdrop-filter: blur(12px);
flex-wrap: wrap;
}
.anomalous-preset-console-info {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.anomalous-preset-console-title-row {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
}
.anomalous-preset-console-title {
font-size: 1.15rem;
font-weight: 600;
color: #f8fafc;
margin: 0;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
.anomalous-preset-console-actions {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
margin-top: 4px;
}
.anomalous-preset-compact-gallery {
position: relative;
width: 120px;
height: 80px;
border-radius: 8px;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.12);
cursor: pointer;
flex-shrink: 0;
align-self: flex-start;
margin-top: 2px;
box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
transition: transform 0.2s ease, border-color 0.2s ease;
}
.anomalous-preset-compact-gallery:hover {
transform: scale(1.03);
border-color: rgba(99, 102, 241, 0.5);
}
.anomalous-preset-compact-gallery img {
width: 100% !important;
height: 100% !important;
max-height: none !important;
object-fit: cover !important;
}
.anomalous-preset-compact-gallery-badge {
position: absolute;
bottom: 4px;
right: 4px;
padding: 2px 6px;
border-radius: 4px;
background: rgba(0, 0, 0, 0.75);
color: #fff;
font-size: 0.68rem;
backdrop-filter: blur(4px);
white-space: nowrap;
}
/* Sticky Header in Parameter Editor */
.anomalous-recipe-parameter-editor-sticky-header {
position: sticky;
top: 0;
z-index: 10;
padding: 10px 0;
background: rgba(32, 32, 32, 0.92);
backdrop-filter: blur(8px);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
margin-bottom: 12px;
display: flex;
align-items: center;
justify-content: space-between;
}
/* ========================================================================== */
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+697
View File
@@ -0,0 +1,697 @@
/* Model Source Hub Modal (模型来源统一中控中心) */
/* ========================================================================= */
.anomalous-model-sources-overlay {
position: fixed;
inset: 0;
background: rgba(5, 7, 12, 0.78);
backdrop-filter: blur(12px);
-webkit-backdrop-filter: blur(12px);
z-index: 1000008;
display: flex;
align-items: center;
justify-content: center;
padding: 20px;
box-sizing: border-box;
animation: anmFadeIn 0.2s ease;
}
.anomalous-model-sources-modal {
width: 880px;
max-width: 96vw;
max-height: 88vh;
background: #0e1017;
border: 1px solid rgba(244, 63, 94, 0.35);
border-radius: 12px;
box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85), 0 0 32px rgba(190, 20, 55, 0.18);
display: flex;
flex-direction: column;
overflow: hidden;
color: #e2e8f0;
}
.anomalous-sources-header {
padding: 14px 18px 0;
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(18, 20, 28, 0.9);
flex-shrink: 0;
}
.anomalous-sources-top-row {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 12px;
}
.anomalous-sources-title-wrap h3 {
margin: 0;
font-size: 1.05rem;
font-weight: 600;
color: #f1f5f9;
}
.anomalous-sources-close-btn {
background: transparent;
border: none;
color: #94a3b8;
font-size: 1.1rem;
cursor: pointer;
padding: 4px 8px;
border-radius: 6px;
transition: all 0.15s ease;
}
.anomalous-sources-close-btn:hover {
color: #fff;
background: rgba(255, 255, 255, 0.1);
}
.anomalous-sources-scope-tabs {
display: flex;
gap: 8px;
}
.anomalous-sources-scope-tab {
background: transparent;
border: none;
border-bottom: 2px solid transparent;
color: #94a3b8;
padding: 8px 16px;
font-size: 0.88rem;
font-weight: 500;
cursor: pointer;
transition: all 0.15s ease;
display: flex;
align-items: center;
gap: 6px;
}
.anomalous-sources-scope-tab:hover {
color: #f1f5f9;
}
.anomalous-sources-scope-tab.is-active {
color: #38bdf8;
border-bottom-color: #38bdf8;
font-weight: 600;
}
.anomalous-sources-badge-num {
font-size: 0.72rem;
padding: 1px 6px;
border-radius: 10px;
background: rgba(255, 255, 255, 0.08);
color: #cbd5e1;
}
.anomalous-sources-filter-bar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 10px 18px;
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
background: rgba(14, 16, 23, 0.95);
flex-shrink: 0;
}
.anomalous-sources-pills {
display: flex;
gap: 6px;
}
.anomalous-sources-pill {
background: rgba(255, 255, 255, 0.04);
border: 1px solid rgba(255, 255, 255, 0.08);
color: #94a3b8;
border-radius: 16px;
padding: 3px 10px;
font-size: 0.78rem;
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-sources-pill:hover {
color: #f1f5f9;
background: rgba(255, 255, 255, 0.08);
}
.anomalous-sources-pill.is-active {
background: rgba(56, 189, 248, 0.18);
border-color: rgba(56, 189, 248, 0.4);
color: #38bdf8;
font-weight: 600;
}
.anomalous-sources-search-input {
background: rgba(0, 0, 0, 0.3);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: #f1f5f9;
font-size: 0.8rem;
padding: 5px 10px;
width: 220px;
outline: none;
transition: border-color 0.15s ease;
}
.anomalous-sources-search-input:focus {
border-color: #38bdf8;
}
.anomalous-sources-body {
flex: 1;
overflow-y: auto;
padding: 14px 18px;
display: flex;
flex-direction: column;
gap: 10px;
}
.anomalous-source-row-item {
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.07);
border-radius: 8px;
padding: 10px 14px;
display: flex;
flex-direction: column;
gap: 8px;
transition: border-color 0.15s ease, background 0.15s ease;
}
.anomalous-source-row-item.has-url {
border-left: 3px solid #10b981;
}
.anomalous-source-row-item.is-missing-url {
border-left: 3px solid #f59e0b;
}
.anomalous-source-row-title {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.anomalous-source-node-tag {
font-size: 0.72rem;
padding: 1px 6px;
border-radius: 4px;
background: rgba(244, 63, 94, 0.15);
border: 1px solid rgba(244, 63, 94, 0.3);
color: #fb7185;
font-family: monospace;
}
.anomalous-source-model-name {
font-size: 0.88rem;
color: #f1f5f9;
word-break: break-all;
}
.anomalous-source-badge-danger {
font-size: 0.7rem;
padding: 1px 5px;
border-radius: 4px;
background: rgba(239, 68, 68, 0.2);
border: 1px solid rgba(239, 68, 68, 0.4);
color: #f87171;
}
.anomalous-source-hash-chip {
font-size: 0.72rem;
color: #64748b;
margin-left: auto;
font-family: monospace;
}
.anomalous-source-col-input-row {
display: flex;
align-items: center;
gap: 8px;
}
.anomalous-source-input-wrap {
flex: 1;
position: relative;
display: flex;
align-items: center;
}
.anomalous-source-url-input {
width: 100%;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 6px;
color: #e2e8f0;
font-size: 0.82rem;
padding: 6px 10px;
padding-right: 96px;
outline: none;
box-sizing: border-box;
font-family: monospace;
}
.anomalous-source-url-input:focus {
border-color: #38bdf8;
background: rgba(0, 0, 0, 0.6);
}
.anomalous-source-url-input.is-locked {
background: rgba(0, 0, 0, 0.25);
border-color: rgba(255, 255, 255, 0.07);
color: #94a3b8;
cursor: default;
}
.anomalous-source-url-input.is-locked:hover {
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-source-url-input.is-editing {
border-color: #f59e0b;
background: rgba(245, 158, 11, 0.08);
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
color: #f8fafc;
}
.anomalous-source-edit-badge {
font-size: 0.7rem;
font-weight: 500;
color: #fbbf24;
background: rgba(245, 158, 11, 0.15);
border: 1px solid rgba(245, 158, 11, 0.35);
padding: 1px 6px;
border-radius: 4px;
white-space: nowrap;
}
.anomalous-btn-save-local {
background: linear-gradient(135deg, #f59e0b, #d97706) !important;
border-color: rgba(245, 158, 11, 0.6) !important;
color: #fff !important;
font-weight: 600;
animation: anomalousSourcesPulse 1.6s ease-in-out infinite;
}
@keyframes anomalousSourcesPulse {
0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
50% { box-shadow: 0 0 0 4px rgba(245, 158, 11, 0); }
}
.anomalous-source-plat-badge {
position: absolute;
right: 6px;
font-size: 0.7rem;
font-weight: 500;
padding: 2px 7px;
border-radius: 4px;
border: 1px solid;
pointer-events: none;
}
.anomalous-source-row-actions {
display: flex;
gap: 6px;
align-items: center;
flex-shrink: 0;
}
.anomalous-btn-jump {
background: linear-gradient(135deg, #0284c7, #0369a1);
border: 1px solid rgba(56, 189, 248, 0.4);
color: #fff;
}
.anomalous-btn-jump:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.anomalous-sources-footer {
padding: 10px 18px;
border-top: 1px solid rgba(255, 255, 255, 0.08);
background: rgba(18, 20, 28, 0.95);
display: flex;
align-items: center;
justify-content: space-between;
flex-shrink: 0;
}
.anomalous-sources-footer-stats {
font-size: 0.82rem;
color: #94a3b8;
}
.anomalous-sources-footer-actions {
display: flex;
gap: 8px;
}
.anomalous-sources-empty {
padding: 40px 20px;
text-align: center;
color: #94a3b8;
font-size: 0.9rem;
}
/* =============================================================================
UPDATE GUIDE NOTICE INDICATOR (CLEAN MONOCHROME TECH)
============================================================================= */
/* Header skin uses important padding/colors; keep this control square within that skin. */
#anomalous-header button.anomalous-update-notice-btn {
width: 32px;
min-width: 32px;
padding: 0 !important;
background: transparent !important;
border-color: rgba(255, 255, 255, 0.15) !important;
color: var(--amb-text-primary, #e2e8f0) !important;
}
#anomalous-header button.anomalous-update-notice-btn:hover {
background: rgba(255, 255, 255, 0.08) !important;
}
.anomalous-update-notice-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 16px;
height: 16px;
border: 1px solid currentColor;
border-radius: 50%;
font: 700 12px/1 system-ui, sans-serif;
}
#anomalous-help-replay-guide-btn {
padding: 8px 14px;
background: rgba(255, 255, 255, 0.05);
color: #cbd5e1;
border: 1px solid rgba(255, 255, 255, 0.16);
border-radius: 4px;
cursor: pointer;
font-size: 12px;
font-weight: 500;
}
#anomalous-help-replay-guide-btn:hover {
background: rgba(255, 255, 255, 0.1);
border-color: rgba(255, 255, 255, 0.3);
color: #fff;
}
#anomalous-update-notice-btn:focus-visible,
#anomalous-help-replay-guide-btn:focus-visible,
.anomalous-update-guide button:focus-visible {
outline: 2px solid var(--amb-accent, #38bdf8);
outline-offset: 2px;
}
/* =============================================================================
SIDEBAR ACTIONS HOVER REVEAL & TOOLTIPS
============================================================================= */
#anomalous-sidebar-actions .anomalous-action-label {
position: absolute;
inset: 0;
display: inline-flex;
align-items: center;
justify-content: center;
font: 600 11px/1 system-ui, sans-serif;
color: #ffffff;
pointer-events: none !important;
white-space: nowrap;
opacity: 0;
transform: translateY(3px);
transition: opacity 0.12s ease, transform 0.12s ease;
}
#anomalous-sidebar-actions button.anomalous-action-label-active > svg {
opacity: 0 !important;
pointer-events: none !important;
}
#anomalous-sidebar-actions button.anomalous-action-label-active .anomalous-action-label {
opacity: 1 !important;
transform: translateY(0) !important;
}
#anomalous-sidebar-actions button:focus-visible {
outline: 2px solid var(--amb-accent, #38bdf8);
outline-offset: 2px;
}
@media (hover: none) {
#anomalous-sidebar-actions button > svg { opacity: 0 !important; }
#anomalous-sidebar-actions .anomalous-action-label { opacity: 1 !important; transform: none !important; }
}
/* Suppress CSS pseudo-element tooltips on sidebar action buttons */
#anomalous-sidebar-actions button::after,
#anomalous-sidebar-actions button::before {
display: none !important;
}
/* =============================================================================
SHARED SIDEBAR FLOATING TOOLTIP BUBBLE (SINGLETON DOM)
============================================================================= */
#anomalous-sidebar-tooltip-bubble {
position: fixed;
z-index: 1000001;
pointer-events: none;
display: none;
flex-direction: column;
align-items: center;
padding: 7px 11px;
max-width: 220px;
background: rgba(18, 20, 26, 0.98);
backdrop-filter: blur(16px);
-webkit-backdrop-filter: blur(16px);
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 6px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 1px 1px rgba(255, 255, 255, 0.08);
box-sizing: border-box;
transition: opacity 0.15s ease;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-title {
font-size: 11.5px;
font-weight: 600;
color: #ffffff;
margin-bottom: 2px;
text-align: center;
line-height: 1.3;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-body {
font-size: 10.5px;
font-weight: 400;
color: #94a3b8;
line-height: 1.4;
text-align: center;
white-space: normal;
word-break: normal;
overflow-wrap: break-word;
}
#anomalous-sidebar-tooltip-bubble .anomalous-tooltip-arrow {
position: absolute;
bottom: -5px;
width: 0;
height: 0;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid rgba(18, 20, 26, 0.98);
transform: translateX(-50%);
}
@media (prefers-reduced-motion: reduce) {
#anomalous-sidebar-actions button .anomalous-action-label {
animation: none !important;
transform: none !important;
}
#anomalous-sidebar-tooltip-bubble {
transition: none !important;
}
}
/* =============================================================================
UPDATE GUIDE MODAL (ELEGANT MONOCHROME OBSIDIAN GLASS)
============================================================================= */
dialog.anomalous-update-guide:not([open]) {
display: none !important;
}
dialog.anomalous-update-guide[open] {
display: flex !important;
flex-direction: column;
}
dialog.anomalous-update-guide {
position: fixed;
inset: 0;
margin: auto;
width: 480px;
max-width: calc(100vw - 32px);
height: fit-content;
max-height: 85vh;
padding: 0;
border: 1px solid rgba(255, 255, 255, 0.14);
border-radius: 16px;
background: linear-gradient(145deg, rgba(28, 30, 38, 0.98), rgba(16, 18, 24, 0.98));
backdrop-filter: blur(24px);
-webkit-backdrop-filter: blur(24px);
box-shadow: 0 24px 70px rgba(0, 0, 0, 0.8), 0 0 1px 1px rgba(255, 255, 255, 0.12);
color: #f1f5f9;
outline: none;
overflow-y: auto;
box-sizing: border-box;
z-index: 1000000;
animation: anomalous-guide-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
dialog.anomalous-update-guide > * { flex-shrink: 0; }
@keyframes anomalous-guide-pop {
from {
opacity: 0;
transform: scale(0.95);
}
to {
opacity: 1;
transform: scale(1);
}
}
dialog.anomalous-update-guide::backdrop {
background: rgba(0, 0, 0, 0.65);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
animation: anomalous-fade-in 0.2s ease;
}
@keyframes anomalous-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.anomalous-update-guide-header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 14px 20px;
background: rgba(255, 255, 255, 0.02);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
font-size: 12px;
font-weight: 600;
letter-spacing: 0.5px;
color: #94a3b8;
}
.anomalous-update-guide-close {
background: transparent;
border: none;
color: #94a3b8;
font-size: 20px;
line-height: 1;
cursor: pointer;
padding: 2px 6px;
border-radius: 6px;
transition: all 0.15s ease;
}
.anomalous-update-guide-close:hover {
color: #ffffff;
background: rgba(255, 255, 255, 0.1);
}
.anomalous-update-guide-icon {
width: 58px;
height: 58px;
margin: 24px auto 14px;
border-radius: 50%;
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.14);
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
color: #f1f5f9;
user-select: none;
flex-shrink: 0;
}
#anomalous-update-guide-title {
margin: 0 24px 10px;
font-size: 17px;
font-weight: 600;
color: #ffffff;
text-align: center;
letter-spacing: 0.2px;
}
#anomalous-update-guide-body {
margin: 0 24px 16px;
font-size: 13px;
line-height: 1.65;
color: #cbd5e1;
text-align: center;
min-height: 60px;
}
.anomalous-update-guide-progress {
margin: 0 24px 20px;
font-size: 11px;
color: #64748b;
text-align: center;
font-weight: 500;
letter-spacing: 0.4px;
}
.anomalous-update-guide-footer {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
padding: 14px 20px;
background: rgba(0, 0, 0, 0.28);
border-top: 1px solid rgba(255, 255, 255, 0.06);
gap: 10px;
}
.anomalous-update-guide-footer .anomalous-btn-ghost {
padding: 7px 15px;
font-size: 12px;
border-radius: 6px;
color: #94a3b8;
background: transparent;
border: 1px solid rgba(255, 255, 255, 0.08);
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-update-guide-footer .anomalous-btn-ghost:hover:not(:disabled) {
color: #ffffff;
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.18);
}
.anomalous-update-guide-footer .anomalous-btn-ghost:disabled {
opacity: 0.35;
cursor: not-allowed;
}
.anomalous-update-guide-footer .anomalous-btn-primary {
padding: 7px 22px;
font-size: 12px;
font-weight: 600;
border-radius: 6px;
color: #0f172a;
background: #f1f5f9;
border: 1px solid #ffffff;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
cursor: pointer;
transition: all 0.15s ease;
}
.anomalous-update-guide-footer .anomalous-btn-primary:hover {
background: #ffffff;
box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
transform: translateY(-1px);
}