Adds a fullscreen image preview dialog to the model info panel with navigation, copy-prompt support, generation metadata display, and referenced resources listing. Extends CivitAI backend extraction to handle varied metadata key names (negativePrompt, Clip skip, Model, etc.) and surfaces clip_skip, width, height, tags, resources, and raw metadata through the new preview UI. Renames z-index variable to reserve a dedicated layer for the preview backdrop.
202 lines
7.4 KiB
CSS
202 lines
7.4 KiB
CSS
:root {
|
|
--mr-color-primary: #5af;
|
|
--mr-color-primary-light: #7cf;
|
|
--mr-color-primary-lighter: #7bf;
|
|
--mr-color-success: #5f5;
|
|
--mr-color-error: #f00;
|
|
--mr-color-error-light: #f55;
|
|
--mr-color-error-lighter: #f77;
|
|
--mr-color-warning: #fa0;
|
|
--mr-color-white: #fff;
|
|
--mr-color-black: #000;
|
|
--mr-color-gray-100: #ddd;
|
|
--mr-color-gray-200: #ccc;
|
|
--mr-color-gray-300: #aaa;
|
|
--mr-color-gray-400: #999;
|
|
--mr-color-gray-500: #888;
|
|
--mr-color-gray-600: #666;
|
|
--mr-color-gray-700: #555;
|
|
--mr-color-gray-800: #444;
|
|
--mr-color-gray-900: #333;
|
|
--mr-color-bg-dark-1: #2a2a2a;
|
|
--mr-color-bg-dark-2: #1e1e1e;
|
|
--mr-color-bg-dark-3: #1a1a1a;
|
|
--mr-color-bg-dark-4: #0d0d0d;
|
|
--mr-color-bg-hover: #3a3a3a;
|
|
--mr-overlay-dark-20: rgba(0, 0, 0, 0.2);
|
|
--mr-overlay-dark-50: rgba(0, 0, 0, 0.5);
|
|
--mr-overlay-dark-70: rgba(0, 0, 0, 0.7);
|
|
--mr-overlay-dark-80: rgba(0, 0, 0, 0.8);
|
|
--mr-overlay-light-05: rgba(255, 255, 255, 0.05);
|
|
--mr-overlay-light-08: rgba(255, 255, 255, 0.08);
|
|
--mr-overlay-light-10: rgba(255, 255, 255, 0.1);
|
|
--mr-overlay-light-15: rgba(255, 255, 255, 0.15);
|
|
--mr-overlay-light-20: rgba(255, 255, 255, 0.2);
|
|
--mr-bg-primary-10: rgba(90, 170, 255, 0.1);
|
|
--mr-bg-primary-20: rgba(90, 170, 255, 0.2);
|
|
--mr-bg-primary-30: rgba(90, 170, 255, 0.3);
|
|
--mr-bg-primary-40: rgba(90, 170, 255, 0.4);
|
|
--mr-bg-primary-50: rgba(90, 170, 255, 0.5);
|
|
--mr-bg-success-10: rgba(80, 255, 80, 0.1);
|
|
--mr-bg-success-50: rgba(80, 255, 80, 0.5);
|
|
--mr-bg-error-10: rgba(255, 0, 0, 0.1);
|
|
--mr-bg-error-20: rgba(255, 0, 0, 0.2);
|
|
--mr-bg-gray-30: rgba(100, 100, 100, 0.3);
|
|
--mr-bg-gray-40: rgba(120, 120, 120, 0.4);
|
|
--mr-line-height-tight: 1.3;
|
|
--mr-line-height-normal: 1.5;
|
|
--mr-line-height-relaxed: 1.6;
|
|
--mr-line-height-editor: 19.5px;
|
|
--mr-width-dropdown-min: 250px;
|
|
--mr-width-dropdown-max: 400px;
|
|
--mr-width-input-inline-sm: 120px;
|
|
--mr-width-input-inline-md: 200px;
|
|
--mr-width-dialog-sm: 320px;
|
|
--mr-width-dialog-md: 800px;
|
|
--mr-z-dropdown: 9998;
|
|
--mr-z-dialog: 9999;
|
|
--mr-z-rename-dialog: 10000;
|
|
--mr-z-json-editor: 10001;
|
|
--mr-z-floating-button: 10000;
|
|
--mr-z-notification: 100000;
|
|
--mr-z-context-menu: 100001;
|
|
--mr-z-info-dialog: 100002;
|
|
--mr-z-image-preview: 100003;
|
|
--mr-z-tooltip: 100004;
|
|
--mr-spacing-1: 1px;
|
|
--mr-spacing-2: 2px;
|
|
--mr-spacing-3: 3px;
|
|
--mr-spacing-4: 4px;
|
|
--mr-spacing-5: 5px;
|
|
--mr-spacing-6: 6px;
|
|
--mr-spacing-7: 7px;
|
|
--mr-spacing-8: 8px;
|
|
--mr-spacing-10: 10px;
|
|
--mr-spacing-12: 12px;
|
|
--mr-spacing-15: 15px;
|
|
--mr-spacing-16: 16px;
|
|
--mr-spacing-20: 20px;
|
|
--mr-spacing-24: 24px;
|
|
--mr-spacing-32: 32px;
|
|
--mr-spacing-40: 40px;
|
|
--mr-spacing-48: 48px;
|
|
--mr-radius-sm: 2px;
|
|
--mr-radius-md: 4px;
|
|
--mr-radius-lg: 6px;
|
|
--mr-radius-xl: 8px;
|
|
--mr-radius-2xl: 12px;
|
|
--mr-radius-3xl: 16px;
|
|
--mr-font-xs: 10px;
|
|
--mr-font-sm: 11px;
|
|
--mr-font-md: 12px;
|
|
--mr-font-base: 13px;
|
|
--mr-font-lg: 14px;
|
|
--mr-font-xl: 16px;
|
|
--mr-font-2xl: 18px;
|
|
--mr-font-3xl: 20px;
|
|
--mr-font-4xl: 24px;
|
|
--mr-font-5xl: 48px;
|
|
--mr-transition-fast: 0.1s;
|
|
--mr-transition-normal: 0.2s;
|
|
--mr-transition-all-fast: all 0.1s;
|
|
--mr-transition-all: all 0.2s;
|
|
--mr-transition-bg-fast: background 0.1s;
|
|
--mr-transition-bg: background 0.2s;
|
|
--mr-transition-color: color 0.2s;
|
|
--mr-transition-border: border-color 0.2s;
|
|
--mr-transition-opacity: opacity 0.2s;
|
|
--mr-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.8);
|
|
--mr-gradient-dark: linear-gradient(135deg, var(--mr-color-bg-dark-1) 0%, var(--mr-color-bg-dark-2) 100%);
|
|
--mr-drag-color-reorder: var(--mr-color-primary);
|
|
--mr-drag-color-move: var(--mr-color-warning);
|
|
--mr-drag-color-error: var(--mr-color-error);
|
|
--mr-drag-color-clone: var(--mr-color-success);
|
|
|
|
--mr-bg: #121212;
|
|
--mr-bg-soft: #171717;
|
|
--mr-surface-elevated: #232323;
|
|
--mr-card-bg: #1a1a1a;
|
|
--mr-card-bg-alt: #1d1d1d;
|
|
--mr-panel-bg: #202020;
|
|
--mr-panel-bg-strong: #262626;
|
|
--mr-border: rgba(255, 255, 255, 0.08);
|
|
--mr-border-strong: rgba(255, 255, 255, 0.14);
|
|
--mr-divider: rgba(255, 255, 255, 0.08);
|
|
--mr-text: #f3f3f3;
|
|
--mr-text-muted: #b1b1b1;
|
|
--mr-text-dim: #7b7b7b;
|
|
--mr-text-soft: #dfdfdf;
|
|
--mr-accent: #72d38a;
|
|
--mr-accent-hover: #88de9e;
|
|
--mr-accent-blue: #72d38a;
|
|
--mr-warning: #e1b24d;
|
|
--mr-confidence-high: #72d38a;
|
|
--mr-confidence-medium: #e1b24d;
|
|
--mr-confidence-low: #e06a6a;
|
|
--mr-link-color: #d8d8d8;
|
|
--mr-shadow-elevated: 0 18px 42px rgba(0, 0, 0, 0.28);
|
|
--mr-ui-radius-sm: var(--mr-radius-xl);
|
|
--mr-ui-radius-md: var(--mr-radius-2xl);
|
|
--mr-ui-radius-lg: var(--mr-radius-3xl);
|
|
--mr-missing-control-bg: rgba(255, 255, 255, 0.035);
|
|
--mr-missing-control-bg-hover: rgba(255, 255, 255, 0.06);
|
|
--mr-missing-control-border: rgba(255, 255, 255, 0.105);
|
|
--mr-missing-control-border-hover: rgba(255, 255, 255, 0.17);
|
|
--mr-missing-control-focus-border: rgba(114, 211, 138, 0.30);
|
|
--mr-missing-control-focus-ring: rgba(114, 211, 138, 0.08);
|
|
--mr-missing-control-radius: 7px;
|
|
--mr-missing-control-shadow: none;
|
|
--mr-missing-control-transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
|
|
--mr-missing-icon-button-size: 28px;
|
|
--mr-missing-icon-size: 13px;
|
|
--mr-missing-field-height: 38px;
|
|
--mr-missing-search-button-height: 34px;
|
|
--mr-missing-chip-bg: rgba(255, 255, 255, 0.045);
|
|
--mr-missing-chip-bg-hover: rgba(255, 255, 255, 0.06);
|
|
--mr-missing-chip-border: rgba(255, 255, 255, 0.08);
|
|
--mr-missing-chip-border-hover: rgba(255, 255, 255, 0.18);
|
|
--mr-missing-chip-radius: 999px;
|
|
--mr-missing-chip-height: 20px;
|
|
--mr-missing-chip-icon-size: var(--mr-spacing-12);
|
|
--mr-type-chip-bg-alpha-strong: 0.155;
|
|
--mr-type-chip-bg-alpha: 0.12;
|
|
--mr-type-chip-border-alpha: 0.26;
|
|
--mr-type-chip-glow-alpha: 0.045;
|
|
--mr-type-generic-rgb: 176, 176, 176;
|
|
--mr-type-generic-text: #d6d6d6;
|
|
--mr-type-model-rgb: 179, 157, 219;
|
|
--mr-type-model-text: #dbcfff;
|
|
--mr-type-lora-rgb: 194, 255, 174;
|
|
--mr-type-lora-text: #d7ffcb;
|
|
--mr-type-style-model-rgb: 194, 255, 174;
|
|
--mr-type-style-model-text: #d7ffcb;
|
|
--mr-type-clip-rgb: 255, 213, 0;
|
|
--mr-type-clip-text: #ffe678;
|
|
--mr-type-clip-vision-rgb: 168, 218, 220;
|
|
--mr-type-clip-vision-text: #c7eff0;
|
|
--mr-type-clip-vision-output-rgb: 173, 116, 82;
|
|
--mr-type-clip-vision-output-text: #e8b79a;
|
|
--mr-type-conditioning-rgb: 255, 169, 49;
|
|
--mr-type-conditioning-text: #ffd08c;
|
|
--mr-type-controlnet-rgb: 110, 231, 183;
|
|
--mr-type-controlnet-text: #b1f4db;
|
|
--mr-type-image-rgb: 100, 181, 246;
|
|
--mr-type-image-text: #b9dcff;
|
|
--mr-type-latent-rgb: 255, 156, 249;
|
|
--mr-type-latent-text: #ffc8fb;
|
|
--mr-type-mask-rgb: 129, 199, 132;
|
|
--mr-type-mask-text: #bdebc0;
|
|
--mr-type-vae-rgb: 255, 110, 110;
|
|
--mr-type-vae-text: #ffb8b8;
|
|
--mr-type-noise-rgb: 176, 176, 176;
|
|
--mr-type-noise-text: #d6d6d6;
|
|
--mr-type-sampler-rgb: 236, 180, 180;
|
|
--mr-type-sampler-text: #f2cccc;
|
|
--mr-type-sigmas-rgb: 205, 255, 205;
|
|
--mr-type-sigmas-text: #dcffdc;
|
|
--mr-type-guider-rgb: 102, 255, 255;
|
|
--mr-type-guider-text: #c7ffff;
|
|
--mr-type-taesd-rgb: 220, 194, 116;
|
|
--mr-type-taesd-text: #efd991;
|
|
}
|