6228 lines
166 KiB
CSS
6228 lines
166 KiB
CSS
/**
|
||
* Majoor Assets Manager — Comfy-like theme layer
|
||
*
|
||
* RULES:
|
||
* - Do NOT hardcode a custom palette; use existing ComfyUI CSS variables via var(...).
|
||
* - Keep everything scoped under `.mjr-assets-manager` to avoid leaking styles to ComfyUI (except `.mjr-popover*` which can be portaled to `document.body`).
|
||
*/
|
||
|
||
.mjr-assets-manager {
|
||
/* Typography */
|
||
font-family: var(--comfy-font, var(--font-inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif));
|
||
font-size: 13px;
|
||
line-height: 1.35;
|
||
color: var(--fg-color, var(--content-fg, var(--input-text, #ddd)));
|
||
|
||
/*
|
||
* Surfaces — priority: ComfyUI v1.42 design-system token → legacy token → hard fallback
|
||
* New tokens: --interface-panel-surface, --interface-menu-surface, --interface-panel-hover-surface,
|
||
* --modal-card-background, --button-surface, --button-hover-surface,
|
||
* --interface-panel-selected-surface, --primary-background, --muted-foreground,
|
||
* --border-default, --success-background, --warning-background, --destructive-background
|
||
*/
|
||
--mjr-surface-0: var(--interface-panel-surface, var(--content-bg, #1e1e1e));
|
||
--mjr-surface-1: var(--interface-menu-surface, var(--comfy-menu-bg, #2a2a2a));
|
||
--mjr-surface-2: var(--interface-panel-hover-surface, var(--comfy-menu-secondary-bg, #333));
|
||
--mjr-surface-3: var(--modal-card-background, var(--comfy-menu-bg, #222));
|
||
--mjr-border: var(--border-default, var(--border-color, rgba(255, 255, 255, 0.12)));
|
||
--mjr-muted: var(--muted-foreground, var(--descrip-text, rgba(255, 255, 255, 0.65)));
|
||
--mjr-accent: var(--primary-background, var(--comfy-accent, #5fb3ff));
|
||
--mjr-accent-hover: var(--primary-background-hover, var(--comfy-accent, #7ec8ff));
|
||
--mjr-btn-surface: var(--button-surface, var(--mjr-surface-2));
|
||
--mjr-btn-hover: var(--button-hover-surface, var(--mjr-surface-2));
|
||
--mjr-selected-surface: var(--interface-panel-selected-surface, rgba(95, 179, 255, 0.15));
|
||
|
||
/* Radii — use ComfyUI design-system radius tokens when available */
|
||
--mjr-r-sm: var(--radius-sm, 8px);
|
||
--mjr-r-md: var(--radius-md, 10px);
|
||
--mjr-r-lg: var(--radius-lg, 12px);
|
||
|
||
/* Spacing */
|
||
--mjr-pad-sm: 8px;
|
||
--mjr-pad-md: 12px;
|
||
--mjr-pad-lg: 16px;
|
||
|
||
/* Semantic Status Colors — prefer ComfyUI v1.42 semantic tokens */
|
||
--mjr-status-success: var(--success-background, var(--comfy-status-success, #4CAF50));
|
||
--mjr-status-warning: var(--warning-background, var(--comfy-status-warning, #FFA726));
|
||
--mjr-status-error: var(--destructive-background, var(--comfy-status-error, #f44336));
|
||
--mjr-status-info: var(--comfy-status-info, #2196F3);
|
||
--mjr-status-neutral: var(--comfy-status-neutral, #9e9e9e);
|
||
--mjr-star-active: #FFD45A;
|
||
|
||
/* Badge colors (overridden by settings) */
|
||
--mjr-badge-image: #2196F3;
|
||
--mjr-badge-video: #9C27B0;
|
||
--mjr-badge-audio: #FF9800;
|
||
--mjr-badge-model3d: #4CAF50;
|
||
--mjr-card-hover-color: var(--interface-panel-hover-surface, #3D3D3D);
|
||
--mjr-card-selection-color: var(--interface-panel-selected-surface, #4A90E2);
|
||
--mjr-rating-color: #FF9500;
|
||
--mjr-tag-color: #4A90E2;
|
||
}
|
||
|
||
/* Make the theme visibly apply even with inline styles */
|
||
.mjr-assets-manager * {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mjr-assets-manager.mjr-am-container {
|
||
display: flex;
|
||
flex-direction: column;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header {
|
||
padding: 14px 16px;
|
||
border-bottom: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-1);
|
||
flex: 0 0 auto;
|
||
position: relative;
|
||
z-index: 2;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-height: 28px;
|
||
justify-content: space-between;
|
||
flex-wrap: wrap;
|
||
row-gap: 10px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-left {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-actions {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex: 0 0 auto;
|
||
position: relative;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-tools {
|
||
display: inline-flex;
|
||
gap: 8px;
|
||
align-items: center;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-tabs {
|
||
/* Queue-like tabs (active pill, others as text) */
|
||
background: transparent;
|
||
border: none;
|
||
padding: 0;
|
||
gap: 10px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
overflow-x: auto;
|
||
overflow-y: hidden;
|
||
scrollbar-width: none;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-tabs::-webkit-scrollbar {
|
||
width: 0;
|
||
height: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-tab {
|
||
padding: 6px 12px;
|
||
border-radius: 999px;
|
||
border: 1px solid transparent;
|
||
background: transparent;
|
||
color: color-mix(in srgb, var(--content-fg, #ddd) 65%, transparent);
|
||
transition: transform 120ms ease, background-color 120ms ease, color 120ms ease, border-color 120ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-tab:hover {
|
||
transform: translateY(-1px);
|
||
color: var(--content-fg, #ddd);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, transparent);
|
||
border-color: color-mix(in srgb, var(--mjr-border) 70%, transparent);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-tab.is-active {
|
||
color: var(--content-fg, #fff);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, transparent);
|
||
border-color: color-mix(in srgb, var(--mjr-border) 85%, transparent);
|
||
box-shadow: 0 6px 18px rgba(0,0,0,0.18);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn {
|
||
width: 28px;
|
||
height: 28px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: var(--radius-lg, 0.5rem);
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-2);
|
||
color: var(--content-fg, #ddd);
|
||
cursor: pointer;
|
||
padding: 0;
|
||
transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 45%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-accent) 8%);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn.mjr-context-active {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 85%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, var(--mjr-accent) 12%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 35%, transparent);
|
||
}
|
||
|
||
/* Floating Viewer button — teal glow when viewer is open */
|
||
.mjr-assets-manager .mjr-icon-btn.mjr-mfv-btn-active {
|
||
color: #4dd9c0;
|
||
border-color: rgba(77, 217, 192, 0.55);
|
||
background: rgba(77, 217, 192, 0.1);
|
||
box-shadow: 0 0 0 1px rgba(77, 217, 192, 0.25);
|
||
}
|
||
.mjr-assets-manager .mjr-icon-btn.mjr-mfv-btn-active .pi {
|
||
opacity: 1;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn.mjr-message-btn {
|
||
position: relative;
|
||
overflow: visible;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn.mjr-message-has-unread {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 75%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 72%, var(--mjr-accent) 11%);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-message-badge {
|
||
position: absolute;
|
||
top: -5px;
|
||
right: -6px;
|
||
min-width: 16px;
|
||
height: 16px;
|
||
padding: 0 4px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-surface-1) 55%, rgba(255,255,255,0.3));
|
||
background: #ef5350;
|
||
color: #fff;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
pointer-events: none;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn .pi {
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-icon-btn:disabled,
|
||
.mjr-assets-manager .mjr-ai-control:disabled {
|
||
opacity: 0.5;
|
||
cursor: not-allowed;
|
||
transform: none;
|
||
filter: grayscale(0.45);
|
||
border-color: color-mix(in srgb, var(--mjr-border) 88%, transparent) !important;
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 92%, transparent) !important;
|
||
color: var(--mjr-muted, rgba(255,255,255,0.6)) !important;
|
||
box-shadow: none !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-ai-disabled .mjr-ai-control:hover {
|
||
transform: none !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-ai-disabled-block {
|
||
opacity: 0.58;
|
||
filter: grayscale(0.45);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-ai-disabled-block .mjr-ai-control,
|
||
.mjr-assets-manager .mjr-ai-disabled-block button {
|
||
pointer-events: none;
|
||
}
|
||
|
||
/* Popovers can be moved to `document.body` (portal) to avoid being clipped. */
|
||
.mjr-popover {
|
||
font-family: var(--comfy-font, var(--font-inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif));
|
||
font-size: 13px;
|
||
line-height: 1.35;
|
||
color: var(--fg-color, var(--content-fg, var(--input-text, #ddd)));
|
||
|
||
/* Provide fallbacks when outside `.mjr-assets-manager` scope */
|
||
--mjr-surface-1: var(--interface-menu-surface, var(--comfy-menu-bg, #2a2a2a));
|
||
--mjr-border: var(--border-default, var(--border-color, rgba(255, 255, 255, 0.12)));
|
||
--mjr-muted: var(--muted-foreground, var(--descrip-text, rgba(255, 255, 255, 0.65)));
|
||
--mjr-accent: var(--primary-background, var(--comfy-accent, #5fb3ff));
|
||
--mjr-popover-z-index: 2147483647;
|
||
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
min-width: 0;
|
||
width: min(280px, calc(100vw - 24px));
|
||
max-width: min(360px, calc(100vw - 24px));
|
||
padding: 10px;
|
||
border-radius: var(--radius-lg, 0.5rem);
|
||
background: var(--mjr-surface-1, var(--comfy-menu-bg, #2a2a2a));
|
||
border: 1px solid var(--mjr-border, var(--border-color, rgba(255, 255, 255, 0.12)));
|
||
box-shadow: 0 12px 28px rgba(0,0,0,0.35);
|
||
z-index: var(--mjr-popover-z-index);
|
||
min-height: 0;
|
||
overflow-x: hidden;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
scrollbar-width: thin;
|
||
}
|
||
|
||
.mjr-filter-popover {
|
||
min-width: 340px;
|
||
width: min(360px, calc(100vw - 24px));
|
||
padding: 12px;
|
||
}
|
||
|
||
.mjr-sort-popover {
|
||
min-width: 220px;
|
||
width: min(260px, calc(100vw - 24px));
|
||
padding: 10px;
|
||
}
|
||
|
||
.mjr-collections-popover {
|
||
min-width: 280px;
|
||
width: min(320px, calc(100vw - 24px));
|
||
padding: 10px;
|
||
}
|
||
|
||
.mjr-messages-popover {
|
||
min-width: 320px;
|
||
width: min(460px, calc(100vw - 24px));
|
||
padding: 10px;
|
||
}
|
||
|
||
.mjr-messages-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
flex-wrap: wrap;
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.mjr-messages-tabs {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
margin-bottom: 8px;
|
||
padding: 3px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 88%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 74%, transparent);
|
||
}
|
||
|
||
.mjr-messages-tab {
|
||
appearance: none;
|
||
border: 0;
|
||
background: transparent;
|
||
color: color-mix(in srgb, var(--content-fg, #f1f1f1) 76%, transparent);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
line-height: 1.2;
|
||
padding: 6px 10px;
|
||
border-radius: 999px;
|
||
cursor: pointer;
|
||
transition: background-color 0.14s ease, color 0.14s ease, transform 0.14s ease;
|
||
}
|
||
|
||
.mjr-messages-tab:hover,
|
||
.mjr-messages-tab:focus-visible {
|
||
background: color-mix(in srgb, var(--mjr-accent) 14%, transparent);
|
||
color: var(--content-fg, #f1f1f1);
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-messages-tab.is-active {
|
||
background: color-mix(in srgb, var(--mjr-accent) 22%, var(--mjr-surface-2));
|
||
color: var(--content-fg, #fff);
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 34%, transparent);
|
||
}
|
||
|
||
.mjr-messages-panels {
|
||
display: grid;
|
||
gap: 8px;
|
||
max-height: min(52vh, 420px);
|
||
}
|
||
|
||
.mjr-messages-list,
|
||
.mjr-messages-shortcuts-panel {
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
scrollbar-width: thin;
|
||
}
|
||
|
||
.mjr-tab-count-badge {
|
||
min-width: 16px;
|
||
height: 16px;
|
||
padding: 0 5px;
|
||
border-radius: 999px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 9px;
|
||
font-weight: 800;
|
||
letter-spacing: 0.02em;
|
||
line-height: 1;
|
||
background: color-mix(in srgb, var(--mjr-accent) 28%, var(--mjr-surface-2));
|
||
color: color-mix(in srgb, var(--content-fg, #fff) 92%, transparent);
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 48%, transparent);
|
||
}
|
||
|
||
.mjr-messages-title {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.03em;
|
||
text-transform: uppercase;
|
||
color: color-mix(in srgb, var(--content-fg, #ddd) 82%, var(--mjr-muted));
|
||
}
|
||
|
||
.mjr-messages-actions {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-messages-mark-read-btn {
|
||
padding: 4px 8px;
|
||
font-size: 11px;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
.mjr-messages-star-link {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 4px 8px;
|
||
font-size: 11px;
|
||
line-height: 1.2;
|
||
text-decoration: none;
|
||
color: var(--content-fg, #f1f1f1);
|
||
border-color: color-mix(in srgb, #f3c84b 42%, var(--mjr-border));
|
||
background: color-mix(in srgb, #f3c84b 12%, var(--mjr-surface-2));
|
||
}
|
||
|
||
.mjr-messages-star-link:hover,
|
||
.mjr-messages-star-link:focus-visible {
|
||
text-decoration: none;
|
||
}
|
||
|
||
.mjr-messages-star-icon {
|
||
color: #f3c84b;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-messages-star-label {
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-messages-list {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-messages-empty {
|
||
padding: 8px 6px;
|
||
font-size: 12px;
|
||
opacity: 0.72;
|
||
}
|
||
|
||
.mjr-message-item {
|
||
display: grid;
|
||
gap: 5px;
|
||
border-radius: 10px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 86%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 58%, transparent);
|
||
padding: 8px;
|
||
}
|
||
|
||
.mjr-message-item--unread {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, var(--mjr-border));
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 26%, transparent);
|
||
}
|
||
|
||
.mjr-message-item--warning {
|
||
border-color: color-mix(in srgb, #f0b85a 62%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-message-item--error {
|
||
border-color: color-mix(in srgb, #f36b6b 62%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-message-item--success {
|
||
border-color: color-mix(in srgb, #58c07d 62%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-message-item-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-message-item-title-wrap {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
.mjr-message-item-emoji {
|
||
flex: 0 0 auto;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-message-item-title {
|
||
min-width: 0;
|
||
font-weight: 600;
|
||
color: var(--content-fg, #f1f1f1);
|
||
}
|
||
|
||
.mjr-message-item-category {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.03em;
|
||
background: color-mix(in srgb, var(--mjr-accent) 20%, var(--mjr-surface-2));
|
||
color: color-mix(in srgb, var(--content-fg, #fff) 86%, transparent);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-message-item-meta {
|
||
font-size: 11px;
|
||
opacity: 0.72;
|
||
}
|
||
|
||
.mjr-message-item-body {
|
||
font-size: 12px;
|
||
opacity: 0.92;
|
||
line-height: 1.45;
|
||
white-space: pre-wrap;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.mjr-message-item-action {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
color: var(--mjr-accent, var(--comfy-accent, #5fb3ff));
|
||
text-decoration: none;
|
||
width: fit-content;
|
||
}
|
||
|
||
.mjr-message-item-action:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
/* Toast History tab — unread indicator dot */
|
||
.mjr-tab-unread-dot {
|
||
display: inline-block;
|
||
width: 6px;
|
||
height: 6px;
|
||
border-radius: 50%;
|
||
background: var(--mjr-accent, #5fb3ff);
|
||
margin-left: 5px;
|
||
vertical-align: middle;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* History panel */
|
||
.mjr-messages-history-panel {
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-history-head {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 4px 0 6px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mjr-history-head-label {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
opacity: 0.62;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.05em;
|
||
}
|
||
|
||
.mjr-history-clear-btn {
|
||
font-size: 11px;
|
||
padding: 2px 8px;
|
||
border-radius: 4px;
|
||
background: transparent;
|
||
border: 1px solid var(--mjr-border, rgba(255,255,255,0.12));
|
||
color: inherit;
|
||
cursor: pointer;
|
||
opacity: 0.72;
|
||
}
|
||
|
||
.mjr-history-clear-btn:hover {
|
||
opacity: 1;
|
||
background: color-mix(in srgb, var(--mjr-accent) 12%, transparent);
|
||
}
|
||
|
||
.mjr-history-list {
|
||
display: grid;
|
||
gap: 4px;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
}
|
||
|
||
.mjr-history-item {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
padding: 6px 8px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--mjr-border, rgba(255,255,255,0.08));
|
||
background: var(--mjr-surface-2, rgba(255,255,255,0.04));
|
||
font-size: 12px;
|
||
}
|
||
|
||
.mjr-history-item--error {
|
||
border-color: color-mix(in srgb, #f36b6b 50%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-history-item--warning {
|
||
border-color: color-mix(in srgb, #f0b85a 50%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-history-item--success {
|
||
border-color: color-mix(in srgb, #58c07d 50%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-history-item-icon {
|
||
flex-shrink: 0;
|
||
font-size: 14px;
|
||
line-height: 1.4;
|
||
}
|
||
|
||
.mjr-history-item-content {
|
||
min-width: 0;
|
||
display: grid;
|
||
gap: 4px;
|
||
}
|
||
|
||
.mjr-history-item-msg {
|
||
opacity: 0.92;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.mjr-history-item-title {
|
||
font-weight: 600;
|
||
line-height: 1.4;
|
||
opacity: 0.96;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.mjr-history-item-detail {
|
||
opacity: 0.84;
|
||
line-height: 1.45;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
word-break: break-word;
|
||
}
|
||
|
||
.mjr-history-item-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-history-item-time {
|
||
font-size: 10px;
|
||
opacity: 0.52;
|
||
}
|
||
|
||
.mjr-history-item-chip {
|
||
font-size: 10px;
|
||
line-height: 1;
|
||
padding: 2px 6px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 82%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-3, var(--mjr-surface-2)) 78%, transparent);
|
||
opacity: 0.76;
|
||
}
|
||
|
||
.mjr-history-item-action {
|
||
font-size: 11px;
|
||
width: fit-content;
|
||
color: var(--mjr-accent, #5fb3ff);
|
||
text-decoration: none;
|
||
}
|
||
|
||
.mjr-history-item-action:hover {
|
||
text-decoration: underline;
|
||
}
|
||
|
||
.mjr-history-item-progress {
|
||
display: grid;
|
||
gap: 4px;
|
||
}
|
||
|
||
.mjr-history-item-progress-summary {
|
||
font-size: 11px;
|
||
opacity: 0.74;
|
||
line-height: 1.35;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: anywhere;
|
||
}
|
||
|
||
.mjr-history-item-progress-bar {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 6px;
|
||
overflow: hidden;
|
||
border-radius: 999px;
|
||
background: color-mix(in srgb, var(--mjr-border) 75%, transparent);
|
||
}
|
||
|
||
.mjr-history-item-progress-fill {
|
||
height: 100%;
|
||
border-radius: inherit;
|
||
background: linear-gradient(90deg, var(--mjr-accent, #5fb3ff), color-mix(in srgb, #58c07d 72%, var(--mjr-accent, #5fb3ff)));
|
||
}
|
||
|
||
.mjr-shortcut-guide {
|
||
display: grid;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-shortcut-guide-intro {
|
||
font-size: 12px;
|
||
line-height: 1.45;
|
||
opacity: 0.84;
|
||
}
|
||
|
||
.mjr-shortcut-section {
|
||
display: grid;
|
||
gap: 6px;
|
||
padding: 8px;
|
||
border-radius: 10px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 84%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-3, var(--mjr-surface-2)) 72%, transparent);
|
||
}
|
||
|
||
.mjr-shortcut-section-title {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.04em;
|
||
text-transform: uppercase;
|
||
color: color-mix(in srgb, var(--content-fg, #f1f1f1) 88%, transparent);
|
||
}
|
||
|
||
.mjr-shortcut-list {
|
||
display: grid;
|
||
gap: 6px;
|
||
}
|
||
|
||
.mjr-shortcut-row {
|
||
display: grid;
|
||
grid-template-columns: minmax(132px, 160px) minmax(0, 1fr);
|
||
gap: 8px;
|
||
align-items: start;
|
||
}
|
||
|
||
.mjr-shortcut-key {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-height: 24px;
|
||
padding: 3px 8px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-accent) 38%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-accent) 12%, var(--mjr-surface-2));
|
||
color: color-mix(in srgb, var(--content-fg, #fff) 90%, transparent);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
line-height: 1.25;
|
||
text-align: center;
|
||
white-space: normal;
|
||
}
|
||
|
||
.mjr-shortcut-desc {
|
||
min-width: 0;
|
||
font-size: 12px;
|
||
line-height: 1.4;
|
||
opacity: 0.92;
|
||
}
|
||
|
||
@media (max-width: 560px) {
|
||
.mjr-shortcut-row {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.mjr-shortcut-key {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
.mjr-filter-group {
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 85%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 70%, transparent);
|
||
border-radius: var(--mjr-r-md);
|
||
padding: 10px;
|
||
margin-bottom: 10px;
|
||
}
|
||
|
||
.mjr-filter-group:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.mjr-filter-group-title {
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.35px;
|
||
text-transform: uppercase;
|
||
color: color-mix(in srgb, var(--content-fg, #ddd) 78%, var(--mjr-muted));
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.mjr-popover-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-popover-row:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.mjr-popover-label {
|
||
width: 56px;
|
||
color: var(--mjr-muted, var(--descrip-text, rgba(255, 255, 255, 0.65)));
|
||
font-size: 12px;
|
||
}
|
||
|
||
.mjr-popover-toggle {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 12px;
|
||
color: var(--content-fg, #ddd);
|
||
}
|
||
|
||
.mjr-popover-toggle input[type="checkbox"] {
|
||
accent-color: var(--mjr-accent, var(--comfy-accent, #5fb3ff));
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-icon {
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-header-title {
|
||
margin: 0;
|
||
font-size: 13px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-content {
|
||
flex: 1;
|
||
padding: 16px;
|
||
overflow: hidden;
|
||
display: flex;
|
||
flex-direction: column;
|
||
min-height: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-browse {
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
border-top: 1px solid color-mix(in srgb, var(--mjr-border) 75%, transparent);
|
||
padding-top: 4px;
|
||
}
|
||
|
||
/* Scrollbars (match ComfyUI feel) */
|
||
.mjr-assets-manager .mjr-am-grid-scroll {
|
||
min-height: 0;
|
||
height: 100%;
|
||
overflow: auto;
|
||
overscroll-behavior: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: color-mix(in srgb, var(--mjr-border) 85%, var(--content-fg, #ddd)) transparent;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll::-webkit-scrollbar {
|
||
width: 10px;
|
||
height: 10px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll::-webkit-scrollbar-thumb {
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, var(--content-fg, #ddd));
|
||
border: 2px solid transparent;
|
||
background-clip: padding-box;
|
||
border-radius: 999px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll:hover::-webkit-scrollbar-thumb {
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 70%, var(--content-fg, #ddd));
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll::-webkit-scrollbar-corner {
|
||
background: transparent;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-custom-controls {
|
||
display: inline-flex;
|
||
flex: 1;
|
||
min-width: 0;
|
||
gap: 8px;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search {
|
||
margin-bottom: 8px;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search {
|
||
padding-bottom: 6px;
|
||
border-bottom: 1px solid var(--mjr-border);
|
||
margin-bottom: 6px;
|
||
}
|
||
|
||
/* Card Metadata Colors */
|
||
.mjr-assets-manager .mjr-meta-duration {
|
||
color: #ffa726; /* Orange for duration */
|
||
font-weight: 500;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-meta-res {
|
||
color: #4fc3f7; /* Light Blue for resolution */
|
||
font-weight: 500;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-meta-date {
|
||
color: #b9f6ca; /* Pale Green for date */
|
||
font-size: 0.9em;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-meta-time {
|
||
color: var(--mjr-muted, rgba(255, 255, 255, 0.65));
|
||
font-size: 0.9em;
|
||
}
|
||
|
||
|
||
.mjr-assets-manager .mjr-am-summary {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
margin: 0 0 6px 0;
|
||
padding: 0 0 4px 0;
|
||
min-height: 16px;
|
||
font-size: 11px;
|
||
color: var(--mjr-muted, rgba(255, 255, 255, 0.65));
|
||
border-bottom: 1px solid color-mix(in srgb, var(--mjr-border) 65%, transparent);
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
/* Toasts (global: can be mounted under document.body) */
|
||
.mjr-toast-container {
|
||
position: fixed;
|
||
top: 16px;
|
||
left: 50%;
|
||
transform: translateX(-50%);
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
gap: 10px;
|
||
z-index: 1000001;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-toast {
|
||
--mjr-toast-strip: var(--mjr-status-info, var(--comfy-status-info, #2196f3));
|
||
--mjr-toast-icon-color: var(--mjr-status-info, var(--comfy-status-info, #2196f3));
|
||
background: var(--comfy-menu-bg, #2a2a2a);
|
||
border: 1px solid var(--border-color, #3a3a3a);
|
||
border-left: 4px solid var(--mjr-toast-strip);
|
||
border-radius: 4px;
|
||
padding: 12px 16px;
|
||
color: var(--fg-color, #efefef);
|
||
font-family: var(--comfy-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
|
||
font-size: 14px;
|
||
box-shadow: 0 4px 16px rgba(0,0,0,0.5);
|
||
opacity: 0;
|
||
transform: translateY(-15px);
|
||
transition: opacity 0.2s ease-out, transform 0.2s ease-out;
|
||
pointer-events: auto;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 12px;
|
||
white-space: pre-wrap;
|
||
width: max-content;
|
||
min-width: min(250px, calc(100vw - 24px));
|
||
max-width: min(400px, calc(100vw - 24px));
|
||
backdrop-filter: blur(4px);
|
||
cursor: default;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-toast.is-visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.mjr-toast-text {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
/* Toast icon styling */
|
||
.mjr-toast-text::before {
|
||
content: attr(data-icon);
|
||
font-size: 16px;
|
||
font-weight: bold;
|
||
color: var(--mjr-toast-icon-color);
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-width: 16px;
|
||
}
|
||
|
||
.mjr-toast-success {
|
||
--mjr-toast-strip: var(--mjr-status-success, var(--comfy-status-success, #4caf50));
|
||
--mjr-toast-icon-color: var(--mjr-status-success, var(--comfy-status-success, #4caf50));
|
||
}
|
||
|
||
.mjr-toast-error {
|
||
--mjr-toast-strip: var(--mjr-status-error, var(--comfy-status-error, #f44336));
|
||
--mjr-toast-icon-color: var(--mjr-status-error, var(--comfy-status-error, #f44336));
|
||
}
|
||
|
||
.mjr-toast-warning {
|
||
--mjr-toast-strip: var(--mjr-status-warning, var(--comfy-status-warning, #ffa726));
|
||
--mjr-toast-icon-color: var(--mjr-status-warning, var(--comfy-status-warning, #ffa726));
|
||
}
|
||
|
||
.mjr-toast-info {
|
||
--mjr-toast-strip: var(--mjr-status-info, var(--comfy-status-info, #2196f3));
|
||
--mjr-toast-icon-color: var(--mjr-status-info, var(--comfy-status-info, #2196f3));
|
||
}
|
||
|
||
|
||
.mjr-assets-manager .mjr-am-summary-text {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-summary-right {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-context-pills {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 5px;
|
||
row-gap: 4px;
|
||
flex-wrap: wrap;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-context-pill {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 3px 7px;
|
||
border-radius: 999px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-accent) 55%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, var(--mjr-accent) 10%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 18%, transparent);
|
||
color: var(--content-fg, #ddd);
|
||
font-size: 10.5px;
|
||
line-height: 1;
|
||
min-height: 22px;
|
||
max-width: 220px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-context-pill:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 75%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 50%, var(--mjr-accent) 14%);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-context-pill-text {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
opacity: 0.92;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-context-pill-x {
|
||
width: 20px;
|
||
height: 20px;
|
||
padding: 0;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border) 75%, transparent);
|
||
background: transparent;
|
||
border-radius: 999px;
|
||
color: var(--mjr-muted, rgba(255, 255, 255, 0.65));
|
||
cursor: pointer;
|
||
line-height: 1;
|
||
font-size: 14px;
|
||
font-family: inherit;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: background-color 120ms ease, border-color 120ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-context-pill-x:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 55%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 70%, var(--mjr-accent) 10%);
|
||
color: var(--content-fg, #fff);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-pill {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
height: 1.75rem;
|
||
padding: 0 10px;
|
||
width: 100%;
|
||
max-width: none;
|
||
border-radius: var(--radius-lg, 0.5rem);
|
||
background: var(--comfy-input-bg, rgba(0, 0, 0, 0.25));
|
||
border: 1px solid var(--mjr-border);
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-tools {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-popover-anchor {
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.mjr-agenda-input {
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--comfy-input-bg, rgba(0, 0, 0, 0.25));
|
||
color: var(--input-text, #ddd);
|
||
transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
|
||
}
|
||
.mjr-agenda-input.mjr-agenda-filled {
|
||
background: color-mix(in srgb, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 40%, var(--mjr-surface-2) 60%);
|
||
border-color: color-mix(in srgb, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 80%, var(--mjr-border));
|
||
color: var(--content-fg, #fff);
|
||
}
|
||
.mjr-agenda-input.mjr-agenda-empty {
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 85%, transparent 15%);
|
||
border-color: var(--mjr-border);
|
||
color: var(--mjr-muted, rgba(255, 255, 255, 0.65));
|
||
}
|
||
|
||
.mjr-agenda-container {
|
||
width: 100%;
|
||
}
|
||
|
||
.mjr-agenda-calendar {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-agenda-header {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-agenda-month {
|
||
flex: 1;
|
||
text-align: center;
|
||
font-weight: 600;
|
||
font-size: 12px;
|
||
color: var(--content-fg, #ddd);
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-agenda-nav {
|
||
width: 32px;
|
||
height: 28px;
|
||
padding: 0;
|
||
border-radius: 10px;
|
||
}
|
||
|
||
.mjr-agenda-grid {
|
||
display: grid;
|
||
grid-template-columns: repeat(7, minmax(0, 1fr));
|
||
gap: 6px;
|
||
width: 100%;
|
||
}
|
||
|
||
.mjr-agenda-weekday {
|
||
text-align: center;
|
||
font-size: 11px;
|
||
color: var(--mjr-muted, rgba(255, 255, 255, 0.65));
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-agenda-day {
|
||
height: 30px;
|
||
border-radius: 10px;
|
||
border: 1px solid var(--mjr-border);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, transparent);
|
||
color: var(--content-fg, #ddd);
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
padding: 0;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: relative;
|
||
transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-agenda-day-badge {
|
||
position: absolute;
|
||
top: -5px;
|
||
right: -5px;
|
||
min-width: 16px;
|
||
height: 16px;
|
||
padding: 0 4px;
|
||
border-radius: 999px;
|
||
background: #e53935;
|
||
color: #fff;
|
||
border: 1px solid color-mix(in srgb, #e53935 65%, #ffffff 35%);
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 14px;
|
||
text-align: center;
|
||
pointer-events: none;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.mjr-agenda-day:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 55%, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 45%);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 45%, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 10%);
|
||
}
|
||
|
||
.mjr-agenda-day:active {
|
||
transform: translateY(1px);
|
||
}
|
||
|
||
.mjr-agenda-day--blank {
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-agenda-day--has-assets {
|
||
border-color: color-mix(in srgb, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 80%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 18%, var(--mjr-surface-2) 82%);
|
||
}
|
||
|
||
.mjr-agenda-day--selected {
|
||
border-color: var(--mjr-accent, var(--comfy-accent, #5fb3ff));
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-accent, var(--comfy-accent, #5fb3ff)) 55%, transparent);
|
||
}
|
||
|
||
.mjr-agenda-footer {
|
||
display: flex;
|
||
gap: 8px;
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.mjr-agenda-clear,
|
||
.mjr-agenda-refresh {
|
||
flex: 1;
|
||
}
|
||
|
||
.mjr-menu,
|
||
.mjr-assets-manager .mjr-menu {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
}
|
||
|
||
.mjr-menu-item,
|
||
.mjr-assets-manager .mjr-menu-item {
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 10px;
|
||
width: 100%;
|
||
padding: 8px 10px;
|
||
border-radius: 10px;
|
||
border: 1px solid transparent;
|
||
background: transparent;
|
||
color: var(--content-fg, #ddd);
|
||
font-family: inherit;
|
||
text-align: left;
|
||
cursor: pointer;
|
||
transition: background-color 120ms ease, border-color 120ms ease, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-menu-item:hover,
|
||
.mjr-assets-manager .mjr-menu-item:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 80%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, transparent);
|
||
}
|
||
|
||
.mjr-menu-item:active,
|
||
.mjr-assets-manager .mjr-menu-item:active {
|
||
transform: translateY(1px);
|
||
}
|
||
|
||
.mjr-menu-item-label,
|
||
.mjr-assets-manager .mjr-menu-item-label {
|
||
flex: 1 1 auto;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-menu-item-check,
|
||
.mjr-assets-manager .mjr-menu-item-check {
|
||
font-size: 12px;
|
||
width: 16px;
|
||
flex: 0 0 16px;
|
||
text-align: center;
|
||
opacity: 0;
|
||
color: color-mix(in srgb, var(--mjr-accent) 72%, var(--content-fg));
|
||
transition: opacity 120ms ease, color 120ms ease;
|
||
}
|
||
|
||
.mjr-menu-item .pi,
|
||
.mjr-assets-manager .mjr-menu-item .pi {
|
||
font-size: 13px;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-collections-menu {
|
||
display: grid;
|
||
gap: 6px;
|
||
}
|
||
|
||
.mjr-menu-item-label--icon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-menu-item-label--icon .pi {
|
||
width: 16px;
|
||
flex: 0 0 16px;
|
||
text-align: center;
|
||
}
|
||
|
||
.mjr-menu-item-right {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex: 0 0 auto;
|
||
min-width: 16px;
|
||
margin-left: auto;
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.mjr-menu-item-hint {
|
||
color: color-mix(in srgb, var(--content-fg) 62%, var(--mjr-muted));
|
||
opacity: 0.72;
|
||
font-size: 11px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-menu-item-check--visible,
|
||
.mjr-menu-item.is-active .mjr-menu-item-check {
|
||
opacity: 1;
|
||
}
|
||
|
||
.mjr-menu-divider {
|
||
height: 1px;
|
||
margin: 4px 0;
|
||
background: color-mix(in srgb, var(--mjr-border) 80%, transparent);
|
||
}
|
||
|
||
.mjr-muted {
|
||
padding: 10px 12px;
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.mjr-state-block {
|
||
font-size: 10px;
|
||
line-height: 1.35;
|
||
color: var(--mjr-muted);
|
||
border: 1px dashed color-mix(in srgb, var(--mjr-border) 85%, transparent);
|
||
border-radius: var(--mjr-r-sm);
|
||
padding: 8px 10px;
|
||
margin: 4px 0;
|
||
background: color-mix(in srgb, var(--mjr-surface-1) 70%, transparent);
|
||
}
|
||
|
||
.mjr-state-block.is-error,
|
||
.mjr-context-menu-note.is-error {
|
||
color: color-mix(in srgb, var(--mjr-status-error) 82%, var(--content-fg));
|
||
border-color: color-mix(in srgb, var(--mjr-status-error) 45%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-collection-row {
|
||
display: flex;
|
||
align-items: stretch;
|
||
width: 100%;
|
||
}
|
||
|
||
.mjr-delete-btn {
|
||
width: 42px;
|
||
flex: 0 0 42px;
|
||
justify-content: center;
|
||
padding: 0;
|
||
margin-left: 6px;
|
||
border-color: color-mix(in srgb, var(--mjr-border) 65%, var(--mjr-status-error) 45%);
|
||
}
|
||
|
||
.mjr-delete-btn:hover:not(:disabled) {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 40%, var(--mjr-status-error) 65%);
|
||
}
|
||
|
||
.mjr-delete-btn .pi {
|
||
color: color-mix(in srgb, var(--mjr-status-error) 78%, var(--content-fg));
|
||
}
|
||
|
||
.mjr-section-title {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
padding: 6px 10px 2px;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.6px;
|
||
text-transform: uppercase;
|
||
opacity: 0.88;
|
||
color: color-mix(in srgb, var(--content-fg) 72%, var(--mjr-muted));
|
||
}
|
||
|
||
.mjr-section-title--cyan {
|
||
color: color-mix(in srgb, #6fd4ff 78%, var(--content-fg));
|
||
}
|
||
|
||
.mjr-section-title--violet {
|
||
color: color-mix(in srgb, #c48dff 78%, var(--content-fg));
|
||
}
|
||
|
||
.mjr-section-hint {
|
||
padding: 0 10px 4px;
|
||
font-size: 10px;
|
||
line-height: 1.4;
|
||
color: color-mix(in srgb, var(--content-fg) 55%, var(--mjr-muted));
|
||
}
|
||
|
||
.mjr-menu-item--smart,
|
||
.mjr-menu-item--cluster {
|
||
border-color: transparent;
|
||
background: transparent;
|
||
}
|
||
|
||
.mjr-menu-item--cluster {
|
||
justify-content: center;
|
||
color: var(--content-fg);
|
||
}
|
||
|
||
.mjr-menu-item--smart .pi {
|
||
color: color-mix(in srgb, #6fd4ff 74%, var(--content-fg));
|
||
}
|
||
|
||
.mjr-menu-item--cluster .pi {
|
||
color: color-mix(in srgb, #c48dff 74%, var(--content-fg));
|
||
}
|
||
|
||
.mjr-menu-item--smart:hover:not(:disabled),
|
||
.mjr-menu-item--cluster:hover:not(:disabled) {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 80%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, transparent);
|
||
}
|
||
|
||
.mjr-cluster-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
margin-bottom: 4px;
|
||
padding: 6px 8px;
|
||
border-radius: var(--mjr-r-sm);
|
||
border: 1px solid var(--mjr-border);
|
||
background: color-mix(in srgb, var(--mjr-surface-1) 70%, transparent);
|
||
}
|
||
|
||
.mjr-cluster-thumbs {
|
||
display: flex;
|
||
gap: 3px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mjr-cluster-thumb {
|
||
width: 28px;
|
||
height: 28px;
|
||
border-radius: 4px;
|
||
object-fit: cover;
|
||
opacity: 0.85;
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 60%, transparent);
|
||
}
|
||
|
||
.mjr-cluster-info {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-cluster-name {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
color: var(--content-fg);
|
||
}
|
||
|
||
.mjr-cluster-count {
|
||
font-size: 10px;
|
||
color: color-mix(in srgb, var(--content-fg) 58%, var(--mjr-muted));
|
||
}
|
||
|
||
.mjr-cluster-create-btn {
|
||
flex-shrink: 0;
|
||
padding: 3px 8px;
|
||
border-radius: 6px;
|
||
border: 1px solid var(--mjr-border);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 55%, transparent);
|
||
color: var(--content-fg);
|
||
font-size: 11px;
|
||
font-weight: 700;
|
||
cursor: pointer;
|
||
transition: border-color 120ms ease, background 120ms ease, opacity 120ms ease;
|
||
}
|
||
|
||
.mjr-cluster-create-btn:disabled {
|
||
opacity: 0.62;
|
||
cursor: default;
|
||
}
|
||
|
||
.mjr-cluster-create-btn:hover:not(:disabled) {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 80%, transparent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 62%, transparent);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-icon {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--mjr-muted);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-icon .pi {
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-pill .mjr-input {
|
||
padding: 0 !important;
|
||
border: none !important;
|
||
background: transparent !important;
|
||
box-shadow: none !important;
|
||
font-size: 12px !important;
|
||
line-height: 1.2 !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-search-pill:focus-within {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 65%, var(--mjr-border));
|
||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--mjr-accent) 18%, transparent);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-browse {
|
||
margin-top: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-am-grid-scroll {
|
||
padding-right: 4px;
|
||
scrollbar-gutter: stable;
|
||
}
|
||
|
||
|
||
/* Grid layout */
|
||
.mjr-assets-manager .mjr-grid {
|
||
display: grid;
|
||
position: relative;
|
||
/* Avoid overflow when the panel becomes narrower than the min card size */
|
||
grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--mjr-grid-min-size, 180px)), 1fr));
|
||
gap: var(--mjr-grid-gap, 10px);
|
||
margin-top: 6px;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* Card selection + focus (keeps a visible indicator when sidebar is open) */
|
||
.mjr-assets-manager .mjr-asset-card {
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card.is-selected {
|
||
box-shadow:
|
||
0 0 0 3px color-mix(in srgb, var(--mjr-card-selection-color) 80%, var(--content-fg)),
|
||
0 0 0 6px color-mix(in srgb, var(--mjr-card-selection-color) 30%, transparent),
|
||
0 0 20px color-mix(in srgb, var(--mjr-card-selection-color) 40%, transparent),
|
||
0 10px 28px rgba(0,0,0,0.28);
|
||
border-radius: var(--mjr-r-lg);
|
||
transform: scale(0.92) !important;
|
||
z-index: 10;
|
||
outline: 2px solid var(--mjr-card-selection-color);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card:focus-visible {
|
||
box-shadow:
|
||
0 0 0 3px color-mix(in srgb, var(--mjr-accent) 80%, var(--content-fg)),
|
||
0 0 0 6px color-mix(in srgb, var(--mjr-accent) 30%, transparent),
|
||
0 0 20px color-mix(in srgb, var(--mjr-accent) 40%, transparent),
|
||
0 10px 28px rgba(0,0,0,0.28);
|
||
border-radius: var(--mjr-r-lg);
|
||
transform: scale(0.92) !important;
|
||
z-index: 10;
|
||
}
|
||
|
||
@keyframes mjr-live-placeholder-sheen {
|
||
0% {
|
||
transform: translateX(-58%);
|
||
opacity: 0.18;
|
||
}
|
||
50% {
|
||
opacity: 0.34;
|
||
}
|
||
100% {
|
||
transform: translateX(58%);
|
||
opacity: 0.18;
|
||
}
|
||
}
|
||
|
||
@keyframes mjr-live-placeholder-pulse {
|
||
0%,
|
||
100% {
|
||
box-shadow:
|
||
0 0 0 1px rgba(118, 214, 255, 0.34),
|
||
0 10px 24px rgba(0, 0, 0, 0.24);
|
||
}
|
||
50% {
|
||
box-shadow:
|
||
0 0 0 1px rgba(118, 214, 255, 0.52),
|
||
0 0 0 4px rgba(118, 214, 255, 0.12),
|
||
0 12px 30px rgba(0, 0, 0, 0.28);
|
||
}
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-live-placeholder="true"] {
|
||
animation: mjr-live-placeholder-pulse 1.9s ease-in-out infinite;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-live-placeholder="true"] .mjr-thumb {
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-live-placeholder-wash {
|
||
position: absolute;
|
||
inset: -8%;
|
||
pointer-events: none;
|
||
z-index: 1;
|
||
background:
|
||
linear-gradient(
|
||
115deg,
|
||
rgba(98, 199, 255, 0) 0%,
|
||
rgba(98, 199, 255, 0.08) 30%,
|
||
rgba(255, 255, 255, 0.24) 50%,
|
||
rgba(98, 199, 255, 0.12) 70%,
|
||
rgba(98, 199, 255, 0) 100%
|
||
);
|
||
animation: mjr-live-placeholder-sheen 2.2s linear infinite;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-live-pill {
|
||
position: absolute;
|
||
top: 6px;
|
||
right: 6px;
|
||
z-index: 12;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-height: 24px;
|
||
padding: 0 8px;
|
||
border-radius: 999px;
|
||
background: rgba(10, 14, 20, 0.78);
|
||
border: 1px solid rgba(118, 214, 255, 0.34);
|
||
color: rgba(255, 255, 255, 0.96);
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.01em;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-live-pill-dot {
|
||
width: 7px;
|
||
height: 7px;
|
||
border-radius: 999px;
|
||
background: #76d6ff;
|
||
box-shadow: 0 0 0 4px rgba(118, 214, 255, 0.16);
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-live-placeholder="true"] .mjr-asset-status-dot {
|
||
animation: mjr-live-placeholder-pulse 1.9s ease-in-out infinite;
|
||
}
|
||
|
||
/* Grid loading overlay */
|
||
.mjr-assets-manager .mjr-grid-loading-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: color-mix(in srgb, #000 35%, transparent);
|
||
color: var(--content-fg, #fff);
|
||
font-size: 13px;
|
||
letter-spacing: 0.3px;
|
||
border-radius: var(--mjr-r-lg);
|
||
pointer-events: none;
|
||
backdrop-filter: blur(2px);
|
||
}
|
||
|
||
@keyframes mjr-skeleton-shimmer {
|
||
0% {
|
||
background-position: 120% 0;
|
||
}
|
||
100% {
|
||
background-position: -120% 0;
|
||
}
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-grid-skeleton-shimmer {
|
||
will-change: background-position;
|
||
}
|
||
|
||
/* Generic headings inside panel */
|
||
.mjr-assets-manager h3,
|
||
.mjr-assets-manager h4 {
|
||
font-family: inherit;
|
||
letter-spacing: 0.01em;
|
||
}
|
||
|
||
/* Panels */
|
||
.mjr-assets-manager .mjr-panel {
|
||
background: var(--mjr-surface-1);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: var(--mjr-r-lg);
|
||
box-shadow: var(--interface-panel-box-shadow, 0 8px 24px rgba(0, 0, 0, 0.25));
|
||
}
|
||
|
||
/* Toolbar */
|
||
.mjr-assets-manager .mjr-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
padding: var(--mjr-pad-md);
|
||
}
|
||
|
||
/* Buttons */
|
||
.mjr-assets-manager .mjr-btn {
|
||
appearance: none;
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-2);
|
||
color: var(--content-fg, #ddd);
|
||
border-radius: var(--mjr-r-md);
|
||
padding: 7px 10px;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 55%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 70%, var(--mjr-accent) 10%);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn:active {
|
||
transform: translateY(1px);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn:disabled {
|
||
opacity: 0.55;
|
||
cursor: not-allowed;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn.mjr-primary {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 60%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-accent) 14%, var(--mjr-surface-2));
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn {
|
||
/* Override inline styles if present */
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-2);
|
||
color: var(--content-fg, #ddd);
|
||
border-radius: var(--mjr-r-md);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 55%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 70%, var(--mjr-accent) 10%);
|
||
}
|
||
|
||
/* Inputs / selects (used inside portaled popovers too) */
|
||
.mjr-input,
|
||
.mjr-select,
|
||
.mjr-assets-manager .mjr-input,
|
||
.mjr-assets-manager .mjr-select {
|
||
appearance: none;
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--comfy-input-bg, rgba(0, 0, 0, 0.25));
|
||
color: var(--input-text, #ddd);
|
||
border-radius: var(--mjr-r-md);
|
||
padding: 8px 10px;
|
||
font-size: 13px;
|
||
outline: none;
|
||
width: 100%;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-input::placeholder {
|
||
color: color-mix(in srgb, var(--mjr-muted) 80%, transparent);
|
||
}
|
||
|
||
.mjr-input:focus,
|
||
.mjr-select:focus,
|
||
.mjr-assets-manager .mjr-input:focus,
|
||
.mjr-assets-manager .mjr-select:focus {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 65%, var(--mjr-border));
|
||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--mjr-accent) 20%, transparent);
|
||
}
|
||
|
||
.mjr-input,
|
||
.mjr-select,
|
||
.mjr-assets-manager .mjr-input,
|
||
.mjr-assets-manager .mjr-select {
|
||
/* Override inline styles if present */
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--comfy-input-bg, rgba(0, 0, 0, 0.25));
|
||
color: var(--input-text, #ddd);
|
||
border-radius: var(--mjr-r-md);
|
||
padding: 8px 10px;
|
||
}
|
||
|
||
/* Tabs: overridden above with queue-like style */
|
||
|
||
/* Removed redundant tab declarations that were using !important */
|
||
|
||
/* Muted text helper */
|
||
.mjr-assets-manager .mjr-muted {
|
||
color: var(--mjr-muted);
|
||
}
|
||
|
||
/* Grid + cards (override inline styles from Card.js) */
|
||
.mjr-assets-manager #mjr-assets-grid {
|
||
gap: 10px !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card,
|
||
.mjr-assets-manager .mjr-card {
|
||
background: var(--mjr-surface-1) !important;
|
||
border: 1px solid var(--mjr-border) !important;
|
||
border-radius: var(--mjr-r-lg) !important;
|
||
overflow: hidden !important;
|
||
min-width: 0;
|
||
transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card:hover,
|
||
.mjr-assets-manager .mjr-card:hover {
|
||
transform: translateY(-1px) !important;
|
||
border-color: color-mix(in srgb, var(--mjr-card-selection-color) 55%, var(--mjr-border)) !important;
|
||
background-color: var(--mjr-card-hover-color) !important;
|
||
box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25) !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card img,
|
||
.mjr-assets-manager .mjr-asset-card video,
|
||
.mjr-assets-manager .mjr-thumb-media {
|
||
display: block;
|
||
width: 100% !important;
|
||
height: 100% !important;
|
||
object-fit: cover !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-thumb {
|
||
width: 100%;
|
||
aspect-ratio: 1 / 1;
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 80%, transparent);
|
||
position: relative;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Keep generation-time badge pinned to the thumbnail corner across grid/feed variants.
|
||
The !important overrides are intentional: GenTimeBadge.vue uses <style scoped> whose
|
||
hashed class has the same specificity as global selectors. Without !important, a
|
||
conflicting rule (e.g. from a theme extension or an older non-scoped context) that sets
|
||
left:0/top:0 would win. left:auto + top:auto explicitly cancel any such accidental reset. */
|
||
.mjr-assets-manager .mjr-thumb > .mjr-gentime-badge,
|
||
.mjr-bottom-feed .mjr-thumb > .mjr-gentime-badge {
|
||
position: absolute !important;
|
||
right: 6px !important;
|
||
bottom: 6px !important;
|
||
left: auto !important;
|
||
top: auto !important;
|
||
z-index: 10 !important;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
padding: 2px 6px !important;
|
||
border-radius: 4px !important;
|
||
background: rgba(0, 0, 0, 0.5) !important;
|
||
border: 1px solid rgba(255, 255, 255, 0.12) !important;
|
||
font-weight: 800 !important;
|
||
letter-spacing: 0.015em;
|
||
text-shadow:
|
||
0 1px 2px rgba(0, 0, 0, 0.9),
|
||
0 0 10px color-mix(in srgb, currentColor 35%, transparent);
|
||
}
|
||
|
||
/* Keep rating/tags badges anchored even when scoped Vue styles are not applied after reload.
|
||
Do not force display here so grid visibility toggles (.mjr-show-badges-*) still control show/hide. */
|
||
.mjr-assets-manager .mjr-thumb > .mjr-rating-badge,
|
||
.mjr-bottom-feed .mjr-thumb > .mjr-rating-badge {
|
||
position: absolute !important;
|
||
top: 6px !important;
|
||
right: 6px !important;
|
||
left: auto !important;
|
||
bottom: auto !important;
|
||
z-index: 10 !important;
|
||
border-radius: 6px;
|
||
background: rgba(0, 0, 0, 0.55);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
|
||
text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-thumb > .mjr-tags-badge,
|
||
.mjr-bottom-feed .mjr-thumb > .mjr-tags-badge {
|
||
position: absolute !important;
|
||
left: 6px !important;
|
||
bottom: 6px !important;
|
||
right: auto !important;
|
||
top: auto !important;
|
||
z-index: 10 !important;
|
||
max-width: calc(100% - 56px);
|
||
border-radius: 4px;
|
||
background: rgba(0, 0, 0, 0.8);
|
||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-thumb-play {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: grid;
|
||
place-items: center;
|
||
font-size: 28px;
|
||
color: rgba(255,255,255,0.9);
|
||
text-shadow: 0 0 10px rgba(0,0,0,0.7);
|
||
pointer-events: none;
|
||
transition: opacity 120ms ease;
|
||
}
|
||
|
||
/* ─── Hover info overlay (positive prompt + gen time) ───────────────────────
|
||
Slides up from the bottom of .mjr-thumb on card hover.
|
||
pointer-events: none → never blocks video mouseenter / play-on-hover.
|
||
z-index: 2 → sits above the thumbnail image, below the play icon.
|
||
Controlled by the .mjr-show-hover-info class on the grid container, which
|
||
is toggled via the "Show prompt on hover" setting.
|
||
─────────────────────────────────────────────────────────────────────────── */
|
||
.mjr-assets-manager .mjr-card-hover-info {
|
||
position: absolute;
|
||
bottom: 0;
|
||
left: 0;
|
||
right: 0;
|
||
padding: 22px 8px 7px;
|
||
background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.78) 100%);
|
||
color: #fff;
|
||
font-size: 10px;
|
||
line-height: 1.4;
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transform: translateY(5px);
|
||
transition: opacity 150ms ease, transform 150ms ease;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 3px;
|
||
z-index: 2;
|
||
}
|
||
/* Only reveal on hover when the setting is enabled (class on grid container) */
|
||
.mjr-grid.mjr-show-hover-info .mjr-card:hover .mjr-card-hover-info {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
.mjr-assets-manager .mjr-card-hover-info .mjr-hover-prompt {
|
||
overflow: hidden;
|
||
display: -webkit-box;
|
||
-webkit-line-clamp: 2;
|
||
-webkit-box-orient: vertical;
|
||
word-break: break-word;
|
||
opacity: 0.9;
|
||
font-size: 9.5px;
|
||
}
|
||
.mjr-assets-manager .mjr-card-hover-info .mjr-hover-gentime {
|
||
color: rgba(255, 210, 120, 0.95);
|
||
font-weight: 600;
|
||
font-size: 9px;
|
||
letter-spacing: 0.02em;
|
||
}
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mjr-assets-manager .mjr-card-hover-info {
|
||
transition: opacity 0ms;
|
||
transform: none;
|
||
}
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-card-meta {
|
||
padding: 8px 10px;
|
||
font-size: 11px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-card-filename {
|
||
font-weight: 600;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
margin-bottom: 2px;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-card-details {
|
||
color: var(--mjr-muted);
|
||
font-size: 10px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
opacity: 0.8;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-card-filename-text {
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
/* Rating & Tags Editors */
|
||
@keyframes fadeIn {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(-4px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
/**
|
||
* Archived CSS Styles - Rating and Tags
|
||
* These styles were removed from theme-comfy.css
|
||
*/
|
||
|
||
/* Animations */
|
||
@keyframes slideInRight {
|
||
from {
|
||
transform: translateX(100%);
|
||
opacity: 0;
|
||
}
|
||
to {
|
||
transform: translateX(0);
|
||
opacity: 1;
|
||
}
|
||
}
|
||
|
||
/* Popovers */
|
||
.mjr-rating-popover,
|
||
.mjr-tags-popover {
|
||
animation: fadeIn 0.2s ease;
|
||
}
|
||
|
||
.mjr-rating-popover,
|
||
.mjr-tags-popover {
|
||
background: var(--comfy-menu-bg, #2a2a2a);
|
||
border: 1px solid var(--border-color, rgba(255, 255, 255, 0.12));
|
||
border-radius: var(--radius-lg, 0.5rem);
|
||
box-shadow: 0 12px 28px rgba(0,0,0,0.35);
|
||
padding: 8px;
|
||
}
|
||
|
||
/* Rating Editor */
|
||
.mjr-rating-editor {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 2px;
|
||
}
|
||
|
||
.mjr-rating-star {
|
||
background: transparent;
|
||
border: 1px solid transparent;
|
||
border-radius: 8px;
|
||
font-size: 20px;
|
||
cursor: pointer;
|
||
padding: 4px 6px;
|
||
line-height: 1;
|
||
color: var(--input-text, #ddd);
|
||
transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease;
|
||
}
|
||
|
||
.mjr-rating-star:hover {
|
||
border-color: color-mix(in srgb, var(--comfy-accent, #5fb3ff) 35%, transparent);
|
||
background: color-mix(in srgb, var(--comfy-menu-secondary-bg, #333) 65%, transparent);
|
||
}
|
||
|
||
.mjr-rating-editor .mjr-rating-star:hover {
|
||
transform: scale(1.2) !important;
|
||
}
|
||
|
||
.mjr-rating-editor .mjr-rating-star:active {
|
||
transform: scale(0.95) !important;
|
||
}
|
||
|
||
/* Tags Editor */
|
||
.mjr-tags-editor {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 12px;
|
||
background: color-mix(in srgb, var(--mjr-surface-1) 92%, transparent);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: var(--mjr-r-sm);
|
||
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
|
||
min-width: 250px;
|
||
max-width: min(350px, calc(100vw - 20px));
|
||
font-family: inherit;
|
||
}
|
||
|
||
.mjr-tags-editor.is-disabled {
|
||
pointer-events: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.mjr-tags-display {
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
gap: 6px;
|
||
min-height: 32px;
|
||
}
|
||
|
||
.mjr-tags-empty {
|
||
color: var(--mjr-muted);
|
||
font-size: 12px;
|
||
font-style: italic;
|
||
}
|
||
|
||
.mjr-tag-chip {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 8px;
|
||
background: color-mix(in srgb, var(--mjr-tag-color) 24%, transparent);
|
||
border: 1px solid color-mix(in srgb, var(--mjr-tag-color) 40%, var(--mjr-border));
|
||
border-radius: 12px;
|
||
font-size: 11px;
|
||
color: var(--mjr-tag-color);
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.mjr-tag-chip-remove {
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
background: none;
|
||
border: 0;
|
||
border-radius: 0;
|
||
box-shadow: none;
|
||
color: inherit;
|
||
cursor: pointer;
|
||
margin: 0;
|
||
padding: 0;
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.mjr-tag-chip-remove:disabled {
|
||
cursor: default;
|
||
}
|
||
|
||
.mjr-tags-input-wrap {
|
||
position: relative;
|
||
}
|
||
|
||
.mjr-tag-input {
|
||
width: 100%;
|
||
padding: 6px 8px;
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 75%, transparent);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: 4px;
|
||
color: var(--content-fg);
|
||
font-size: 13px;
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-tag-input:focus {
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 88%, transparent) !important;
|
||
border-color: var(--mjr-accent) !important;
|
||
}
|
||
|
||
.mjr-tag-chip:hover {
|
||
background: color-mix(in srgb, var(--mjr-tag-color) 34%, transparent) !important;
|
||
border-color: color-mix(in srgb, var(--mjr-tag-color) 60%, var(--mjr-border)) !important;
|
||
}
|
||
|
||
.mjr-tags-dropdown {
|
||
position: absolute;
|
||
top: 100%;
|
||
left: 0;
|
||
right: 0;
|
||
margin-top: 4px;
|
||
background: color-mix(in srgb, var(--mjr-surface-1) 92%, transparent);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: 4px;
|
||
max-height: 150px;
|
||
overflow-y: auto;
|
||
z-index: 1000;
|
||
}
|
||
|
||
.mjr-tag-suggestion {
|
||
padding: 6px 8px;
|
||
cursor: pointer;
|
||
background: transparent;
|
||
color: var(--mjr-tag-color);
|
||
font-size: 12px;
|
||
}
|
||
|
||
.mjr-tag-suggestion.is-active,
|
||
.mjr-tag-suggestion:hover {
|
||
background: color-mix(in srgb, var(--mjr-tag-color) 28%, transparent) !important;
|
||
}
|
||
|
||
/* Badges Interactive */
|
||
.mjr-rating-badge,
|
||
.mjr-tags-badge {
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.mjr-rating-badge {
|
||
color: var(--mjr-rating-color) !important;
|
||
}
|
||
|
||
.mjr-tags-badge {
|
||
color: var(--mjr-tag-color) !important;
|
||
}
|
||
|
||
.mjr-rating-badge:hover,
|
||
.mjr-tags-badge:hover {
|
||
transform: scale(1.05);
|
||
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
|
||
}
|
||
|
||
/* Scrollbar for tags dropdown */
|
||
.mjr-tags-dropdown::-webkit-scrollbar {
|
||
width: 6px;
|
||
}
|
||
|
||
.mjr-tags-dropdown::-webkit-scrollbar-track {
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 65%, transparent);
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.mjr-tags-dropdown::-webkit-scrollbar-thumb {
|
||
background: color-mix(in srgb, var(--mjr-tag-color) 48%, var(--mjr-border));
|
||
border-radius: 3px;
|
||
}
|
||
|
||
.mjr-tags-dropdown::-webkit-scrollbar-thumb:hover {
|
||
background: color-mix(in srgb, var(--mjr-tag-color) 65%, var(--mjr-border));
|
||
}
|
||
|
||
/* Sidebar (can be left or right) */
|
||
.mjr-sidebar {
|
||
transition: all 0.3s ease;
|
||
}
|
||
|
||
.mjr-sidebar.is-open {
|
||
/* Border is set dynamically based on position */
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-header {
|
||
background: var(--mjr-surface-2, #333);
|
||
border-bottom: 1px solid var(--mjr-border, rgba(255,255,255,0.12));
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-content {
|
||
background: var(--mjr-surface-1, #2a2a2a);
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-content::-webkit-scrollbar {
|
||
width: 8px;
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-content::-webkit-scrollbar-track {
|
||
background: rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-content::-webkit-scrollbar-thumb {
|
||
background: rgba(255, 255, 255, 0.2);
|
||
border-radius: 4px;
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-content::-webkit-scrollbar-thumb:hover {
|
||
background: rgba(255, 255, 255, 0.3);
|
||
}
|
||
|
||
/* Custom Roots Popover Styling */
|
||
.mjr-custom-popover {
|
||
min-width: 300px;
|
||
background: var(--mjr-surface-1, var(--comfy-menu-bg, #2a2a2a));
|
||
border: 1px solid var(--mjr-border, var(--border-color, rgba(255, 255, 255, 0.12)));
|
||
border-radius: var(--radius-lg, 0.5rem);
|
||
box-shadow: 0 12px 28px rgba(0,0,0,0.35);
|
||
z-index: var(--mjr-popover-z-index);
|
||
padding: 12px;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-popover-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
margin-bottom: 12px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-popover-row:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-popover-label {
|
||
width: 60px;
|
||
color: var(--mjr-muted, var(--descrip-text, rgba(255, 255, 255, 0.65)));
|
||
font-size: 12px;
|
||
font-weight: 500;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-select {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-btn {
|
||
flex: 1;
|
||
min-width: 0;
|
||
margin-right: 5px;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-btn:last-child {
|
||
margin-right: 0;
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-btn.mjr-primary {
|
||
background: color-mix(in srgb, var(--mjr-accent) 18%, var(--mjr-surface-2));
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 60%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-custom-popover .mjr-btn.mjr-primary:hover {
|
||
background: color-mix(in srgb, var(--mjr-accent) 25%, var(--mjr-surface-2));
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 80%, var(--mjr-border));
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-section {
|
||
transition: all 0.2s ease;
|
||
}
|
||
|
||
.mjr-sidebar .mjr-sidebar-section:hover {
|
||
background: rgba(0, 0, 0, 0.3) !important;
|
||
}
|
||
|
||
/* Inline Sidebar (width-based transitions like archived version) */
|
||
.mjr-inline-sidebar {
|
||
width: 0;
|
||
min-width: 0;
|
||
max-width: 480px;
|
||
overflow: hidden;
|
||
background: var(--mjr-surface-1, #2a2a2a);
|
||
display: flex;
|
||
flex-direction: column;
|
||
transition: width 0.3s ease, min-width 0.3s ease;
|
||
}
|
||
|
||
.mjr-inline-sidebar.is-open {
|
||
width: 400px;
|
||
min-width: 260px;
|
||
}
|
||
|
||
/* Space between sidebar and grid */
|
||
.mjr-assets-manager .mjr-am-browse {
|
||
gap: 0;
|
||
}
|
||
|
||
/* Border based on position */
|
||
.mjr-inline-sidebar[data-position="left"] {
|
||
border-right: 1px solid var(--mjr-border, rgba(255,255,255,0.12));
|
||
}
|
||
|
||
.mjr-inline-sidebar[data-position="right"] {
|
||
border-left: 1px solid var(--mjr-border, rgba(255,255,255,0.12));
|
||
}
|
||
|
||
/* Sidebar placeholder */
|
||
.mjr-sidebar-placeholder {
|
||
padding: 20px;
|
||
text-align: center;
|
||
color: var(--mjr-muted, rgba(255,255,255,0.65));
|
||
font-size: 14px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
/* ========== Viewer Component ========== */
|
||
.mjr-viewer-overlay {
|
||
position: fixed;
|
||
top: 0;
|
||
left: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
background: rgba(0, 0, 0, 0.95);
|
||
/* Sit above MFV (10000) so the full viewer always covers the floating panel */
|
||
z-index: 10001;
|
||
pointer-events: auto;
|
||
display: none;
|
||
flex-direction: column;
|
||
}
|
||
/* Fade-in: animation re-triggers each time JS switches display back to flex */
|
||
.mjr-viewer-overlay[style*="flex"] {
|
||
animation: mjr-fade-in 0.18s ease-out;
|
||
}
|
||
|
||
@keyframes mjr-fade-in {
|
||
from { opacity: 0; transform: scale(0.995); }
|
||
to { opacity: 1; transform: scale(1); }
|
||
}
|
||
|
||
.mjr-viewer-header {
|
||
display: flex;
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
padding: 12px 20px;
|
||
background: linear-gradient(170deg, rgba(24, 27, 33, 0.96), rgba(17, 19, 25, 0.97));
|
||
border-bottom: 0.8px solid rgba(196, 202, 210, 0.2);
|
||
color: white;
|
||
}
|
||
|
||
.mjr-viewer-filename {
|
||
font-size: 14px;
|
||
font-weight: 500;
|
||
max-width: 400px;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-viewer-mode-buttons {
|
||
display: flex;
|
||
gap: 6px;
|
||
}
|
||
|
||
.mjr-viewer-mode-buttons button {
|
||
padding: 4px 12px;
|
||
background: linear-gradient(180deg, rgba(206, 211, 218, 0.1), rgba(206, 211, 218, 0.03));
|
||
border: 0.8px solid rgba(196, 202, 210, 0.3);
|
||
color: rgba(230, 233, 238, 0.95);
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 12px;
|
||
transition: all 0.16s;
|
||
}
|
||
|
||
.mjr-viewer-mode-buttons button:hover {
|
||
background: linear-gradient(180deg, rgba(210, 214, 220, 0.14), rgba(210, 214, 220, 0.06));
|
||
border-color: rgba(214, 218, 224, 0.42);
|
||
}
|
||
|
||
/* Viewer close button pinned to overlay corner */
|
||
.mjr-viewer-close,
|
||
.mjr-viewer-fs {
|
||
border-color: rgba(196, 202, 210, 0.26) !important;
|
||
border-width: 0.8px !important;
|
||
background: linear-gradient(180deg, rgba(206, 211, 218, 0.08), rgba(206, 211, 218, 0.02)),
|
||
rgba(20, 23, 29, 0.94) !important;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
|
||
}
|
||
|
||
.mjr-viewer-close {
|
||
color: #fff4f4 !important;
|
||
border-color: rgba(205, 82, 82, 0.5) !important;
|
||
background: linear-gradient(180deg, rgba(205, 82, 82, 0.3), rgba(205, 82, 82, 0.12)),
|
||
rgba(58, 18, 18, 0.94) !important;
|
||
box-shadow: inset 0 1px 0 rgba(255, 219, 219, 0.16), 0 0 0 1px rgba(205, 82, 82, 0.08) !important;
|
||
}
|
||
|
||
.mjr-viewer-close:hover {
|
||
background: linear-gradient(180deg, rgba(235, 110, 110, 0.38), rgba(235, 110, 110, 0.16)),
|
||
rgba(70, 18, 18, 0.97) !important;
|
||
border-color: rgba(235, 138, 138, 0.64) !important;
|
||
}
|
||
|
||
.mjr-viewer-fs:hover {
|
||
background: linear-gradient(180deg, rgba(210, 214, 220, 0.14), rgba(210, 214, 220, 0.06)),
|
||
rgba(23, 26, 32, 0.95) !important;
|
||
border-color: rgba(214, 218, 224, 0.38) !important;
|
||
}
|
||
|
||
.mjr-viewer-close .pi {
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-viewer-content {
|
||
flex: 1;
|
||
position: relative;
|
||
overflow: hidden;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-viewer-single,
|
||
.mjr-viewer-ab,
|
||
.mjr-viewer-sidebyside {
|
||
width: 100%;
|
||
height: 100%;
|
||
}
|
||
|
||
.mjr-viewer-single {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-viewer-single img,
|
||
.mjr-viewer-single video {
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
object-fit: contain;
|
||
transition: transform 0.2s;
|
||
}
|
||
|
||
.mjr-viewer-ab {
|
||
position: relative;
|
||
display: none;
|
||
}
|
||
|
||
.mjr-viewer-sidebyside {
|
||
display: none;
|
||
flex-direction: row;
|
||
gap: 2px;
|
||
}
|
||
|
||
.mjr-viewer-sidebyside > div {
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
background: rgba(255,255,255,0.05);
|
||
}
|
||
|
||
.mjr-viewer-sidebyside img,
|
||
.mjr-viewer-sidebyside video {
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
object-fit: contain;
|
||
}
|
||
|
||
.mjr-viewer-footer {
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
padding: 12px 20px;
|
||
background: rgba(0, 0, 0, 0.8);
|
||
border-top: 1px solid rgba(255, 255, 255, 0.1);
|
||
color: white;
|
||
gap: 20px;
|
||
}
|
||
|
||
.mjr-viewer-footer button {
|
||
padding: 6px 12px;
|
||
background: transparent;
|
||
border: 1px solid rgba(255, 255, 255, 0.3);
|
||
color: white;
|
||
border-radius: 4px;
|
||
cursor: pointer;
|
||
font-size: 14px;
|
||
transition: all 0.2s;
|
||
}
|
||
|
||
.mjr-viewer-footer button:hover {
|
||
background: rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.mjr-viewer-nav {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 14px;
|
||
}
|
||
|
||
.mjr-viewer-nav-btn {
|
||
width: 40px !important;
|
||
height: 40px !important;
|
||
padding: 0 !important;
|
||
border-radius: 10px !important;
|
||
border: 1px solid rgba(196, 202, 210, 0.42) !important;
|
||
background:
|
||
linear-gradient(180deg, rgba(194, 200, 208, 0.18), rgba(194, 200, 208, 0.07)),
|
||
rgba(34, 38, 44, 0.92) !important;
|
||
color: rgba(234, 236, 240, 0.96) !important;
|
||
font-size: 20px !important;
|
||
font-weight: 700 !important;
|
||
line-height: 1 !important;
|
||
text-shadow: none;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
|
||
transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease !important;
|
||
}
|
||
|
||
.mjr-viewer-nav-btn:hover:not(:disabled) {
|
||
transform: translateY(-1px);
|
||
border-color: rgba(214, 218, 224, 0.56) !important;
|
||
background:
|
||
linear-gradient(180deg, rgba(207, 212, 219, 0.2), rgba(207, 212, 219, 0.1)),
|
||
rgba(39, 43, 49, 0.94) !important;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
|
||
}
|
||
|
||
.mjr-viewer-nav-btn:active:not(:disabled) {
|
||
transform: translateY(0) scale(0.98);
|
||
filter: none;
|
||
}
|
||
|
||
.mjr-viewer-nav-btn:disabled {
|
||
opacity: 0.34 !important;
|
||
filter: grayscale(0.25);
|
||
box-shadow: none;
|
||
border-color: rgba(255, 255, 255, 0.14) !important;
|
||
}
|
||
|
||
.mjr-viewer-index {
|
||
font-size: 13px;
|
||
min-width: 74px;
|
||
text-align: center;
|
||
font-variant-numeric: tabular-nums;
|
||
letter-spacing: 0.04em;
|
||
color: rgba(226, 228, 233, 0.94);
|
||
background: linear-gradient(180deg, rgba(197, 203, 211, 0.15), rgba(197, 203, 211, 0.06));
|
||
border: 1px solid rgba(197, 203, 211, 0.34);
|
||
border-radius: 999px;
|
||
padding: 5px 11px;
|
||
text-shadow: none;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
|
||
}
|
||
|
||
.mjr-viewer-playerbar {
|
||
border-radius: 18px;
|
||
border: 1px solid rgba(194, 200, 208, 0.16);
|
||
background:
|
||
radial-gradient(circle at top left, rgba(90, 150, 255, 0.08), transparent 36%),
|
||
linear-gradient(160deg, rgba(20, 24, 30, 0.94), rgba(12, 15, 21, 0.98));
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.05),
|
||
0 16px 36px rgba(0, 0, 0, 0.22);
|
||
/* overflow must stay visible so the seek ruler ticks/labels (top:-16px / top:-34px)
|
||
that are absolutely positioned above the seek bar are not clipped. */
|
||
overflow: visible;
|
||
}
|
||
|
||
.mjr-viewer-tools {
|
||
align-items: start;
|
||
justify-content: stretch;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-viewer-header {
|
||
position: relative;
|
||
}
|
||
|
||
.mjr-viewer-header::after {
|
||
content: "";
|
||
position: absolute;
|
||
left: 18px;
|
||
right: 18px;
|
||
top: 44px;
|
||
height: 1px;
|
||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
|
||
pointer-events: none;
|
||
opacity: 0.7;
|
||
}
|
||
|
||
.mjr-viewer-header-meta {
|
||
min-height: 30px;
|
||
padding: 4px 8px;
|
||
border-radius: 10px;
|
||
background: rgba(255,255,255,0.035);
|
||
border: 1px solid rgba(255,255,255,0.06);
|
||
}
|
||
|
||
.mjr-viewer-header-top {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 10px;
|
||
position: relative;
|
||
padding-right: 84px;
|
||
padding-left: 12px;
|
||
}
|
||
|
||
.mjr-viewer-header-area--left {
|
||
display: none;
|
||
flex: 1 1 0;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-viewer-header-area--center {
|
||
min-width: 0;
|
||
flex: 1 1 auto;
|
||
}
|
||
|
||
.mjr-viewer-header-area--right {
|
||
justify-content: flex-end;
|
||
flex: 1 1 0;
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-viewer-title-wrap {
|
||
width: auto;
|
||
min-width: 0;
|
||
max-width: min(100%, calc(100vw - 220px));
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 12px;
|
||
}
|
||
|
||
.mjr-viewer-title-line {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
flex-wrap: nowrap;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-viewer-filename {
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.01em;
|
||
display: block;
|
||
margin: 0 auto;
|
||
text-align: center;
|
||
}
|
||
|
||
.mjr-viewer-badges {
|
||
gap: 4px;
|
||
}
|
||
|
||
.mjr-viewer-title-line .mjr-viewer-badges {
|
||
justify-content: center;
|
||
flex-wrap: nowrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-viewer-header-meta--left {
|
||
justify-content: flex-start;
|
||
width: fit-content;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.mjr-viewer-header-meta--left:empty {
|
||
display: none;
|
||
}
|
||
|
||
.mjr-viewer-header-meta--right {
|
||
justify-self: end;
|
||
width: fit-content;
|
||
max-width: 100%;
|
||
}
|
||
|
||
.mjr-viewer-mode-buttons {
|
||
flex: 0 0 auto;
|
||
padding: 3px;
|
||
border-radius: 999px;
|
||
background: rgba(255,255,255,0.04);
|
||
border: 1px solid rgba(255,255,255,0.08);
|
||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
|
||
}
|
||
|
||
.mjr-viewer-tools-deck {
|
||
display: flex;
|
||
flex-wrap: nowrap;
|
||
gap: 8px;
|
||
align-items: center;
|
||
min-width: 0;
|
||
overflow-x: auto;
|
||
overflow-y: hidden;
|
||
scrollbar-width: thin;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel {
|
||
position: relative;
|
||
min-width: auto;
|
||
min-height: 0;
|
||
border-radius: 10px;
|
||
border: 1px solid rgba(255,255,255,0.08);
|
||
background:
|
||
linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
|
||
rgba(10, 12, 16, 0.24);
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255,255,255,0.04),
|
||
0 6px 16px rgba(0,0,0,0.12);
|
||
padding: 5px 6px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel::before {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0 0 auto 0;
|
||
height: 1px;
|
||
background: linear-gradient(90deg, transparent, rgba(255,255,255,0.16), transparent);
|
||
opacity: 0.7;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel-head {
|
||
display: none;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel-heading {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 1px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel-eyebrow {
|
||
font-size: 9px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.14em;
|
||
text-transform: uppercase;
|
||
color: rgba(255,255,255,0.46);
|
||
}
|
||
|
||
.mjr-viewer-tools-panel-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.01em;
|
||
color: rgba(248,250,252,0.96);
|
||
}
|
||
|
||
.mjr-viewer-tools-panel-body {
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel[data-panel="grade"] .mjr-viewer-tools-panel-body {
|
||
display: flex;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel[data-panel="overlay"] .mjr-viewer-tools-panel-body {
|
||
display: flex;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel[data-panel="inspect"] .mjr-viewer-tools-panel-body,
|
||
.mjr-viewer-tools-panel[data-panel="actions"] .mjr-viewer-tools-panel-body,
|
||
.mjr-viewer-tools-panel[data-panel="info"] .mjr-viewer-tools-panel-body {
|
||
display: flex;
|
||
}
|
||
|
||
.mjr-viewer-tools-group {
|
||
width: auto;
|
||
min-height: 30px;
|
||
padding: 5px 7px;
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
gap: 6px;
|
||
border: 1px solid rgba(196, 202, 210, 0.12);
|
||
border-radius: 10px;
|
||
background:
|
||
linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.02)),
|
||
rgba(10, 12, 16, 0.18);
|
||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
|
||
min-width: fit-content;
|
||
}
|
||
|
||
.mjr-viewer-tools-group-label {
|
||
color: rgba(255,255,255,0.75);
|
||
letter-spacing: 0.15px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
margin-right: 5px;
|
||
white-space: nowrap;
|
||
font-size: 10px;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[style*="--mjr-group-accent"] .mjr-viewer-tools-group-label {
|
||
color: rgba(var(--mjr-group-accent), 0.90);
|
||
}
|
||
|
||
.mjr-viewer-tools-group[style*="--mjr-group-accent"] {
|
||
border-color: rgba(var(--mjr-group-accent), 0.35);
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="channel"] .mjr-viewer-tools-group-label,
|
||
.mjr-viewer-tools-group[data-group="analysis"] .mjr-viewer-tools-group-label,
|
||
.mjr-viewer-tools-group[data-group="overlay-guides"] .mjr-viewer-tools-group-label,
|
||
.mjr-viewer-tools-group[data-group="overlay-inspect"] .mjr-viewer-tools-group-label {
|
||
min-width: 42px;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel[data-panel="overlay"] .mjr-viewer-tools-group[data-group="overlay-guides"] {
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="overlay-guides"],
|
||
.mjr-viewer-tools-group[data-group="overlay-inspect"] {
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
align-content: center;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="channel"],
|
||
.mjr-viewer-tools-group[data-group="exposure"],
|
||
.mjr-viewer-tools-group[data-group="gamma"],
|
||
.mjr-viewer-tools-group[data-group="analysis"],
|
||
.mjr-viewer-tools-group[data-group="compare"],
|
||
.mjr-viewer-tools-group[data-group="audio-viz"] {
|
||
justify-content: space-between;
|
||
}
|
||
|
||
.mjr-viewer-tools-actions,
|
||
.mjr-viewer-tools-meta {
|
||
width: auto;
|
||
min-height: 30px;
|
||
box-sizing: border-box;
|
||
padding: 5px 7px;
|
||
border-radius: 10px;
|
||
border: 1px solid rgba(255,255,255,0.06);
|
||
background: rgba(255,255,255,0.03);
|
||
}
|
||
|
||
.mjr-viewer-tools-actions {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: flex-start;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-viewer-tools-meta {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 6px;
|
||
flex-wrap: wrap;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-viewer-tools-action--primary {
|
||
margin-left: 0;
|
||
}
|
||
|
||
.mjr-viewer-tools-action + .mjr-viewer-tools-action {
|
||
margin-left: 4px;
|
||
}
|
||
|
||
.mjr-viewer-tools-select {
|
||
min-height: 24px;
|
||
}
|
||
|
||
.mjr-viewer-tools-range-input {
|
||
width: 92px !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-range span {
|
||
font-size: 11px;
|
||
}
|
||
|
||
@media (max-width: 1480px) {
|
||
.mjr-viewer-tools-deck {
|
||
gap: 6px;
|
||
}
|
||
}
|
||
|
||
@media (max-width: 1220px) {
|
||
.mjr-viewer-header-top {
|
||
flex-wrap: wrap;
|
||
justify-content: center;
|
||
padding-right: 84px;
|
||
padding-left: 0;
|
||
}
|
||
|
||
.mjr-viewer-header-area--center,
|
||
.mjr-viewer-header-area--right {
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-viewer-header-area--center {
|
||
width: 100%;
|
||
flex: 1 1 100%;
|
||
}
|
||
|
||
.mjr-viewer-header-area--right {
|
||
position: static;
|
||
transform: none;
|
||
max-width: 100%;
|
||
width: 100%;
|
||
flex: 1 1 100%;
|
||
}
|
||
|
||
.mjr-viewer-header-meta--right {
|
||
justify-self: center;
|
||
}
|
||
|
||
.mjr-viewer-tools-deck {
|
||
flex-wrap: wrap;
|
||
overflow-x: visible;
|
||
}
|
||
|
||
.mjr-viewer-tools-panel,
|
||
.mjr-viewer-tools-actions,
|
||
.mjr-viewer-tools-meta,
|
||
.mjr-viewer-tools-panel-body {
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-viewer-tools-meta {
|
||
justify-content: flex-start;
|
||
}
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="compare"][data-active="1"] {
|
||
background: rgba(var(--mjr-group-accent), 0.10);
|
||
border-left-color: rgba(var(--mjr-group-accent), 0.60);
|
||
border-radius: 10px;
|
||
padding: 6px 10px;
|
||
box-shadow: inset 0 0 0 1px rgba(var(--mjr-group-accent), 0.22);
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="compare"][data-active="1"] .mjr-viewer-tools-select {
|
||
border-color: rgba(var(--mjr-group-accent), 0.60);
|
||
box-shadow: 0 0 0 2px rgba(var(--mjr-group-accent), 0.18);
|
||
}
|
||
|
||
.mjr-viewer-tools-select:focus {
|
||
outline: none;
|
||
box-shadow: 0 0 0 2px rgba(64,160,255,0.22);
|
||
}
|
||
|
||
/* Native dropdowns: hint dark UI and style options when the browser allows it. */
|
||
.mjr-viewer-header {
|
||
color-scheme: dark;
|
||
}
|
||
|
||
.mjr-viewer-tools-select {
|
||
min-height: 24px;
|
||
background: rgba(0,0,0,0.46) !important;
|
||
color: rgba(255,255,255,0.92) !important;
|
||
border-color: rgba(255,255,255,0.14) !important;
|
||
border-radius: 8px !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-select option {
|
||
background: var(--comfy-menu-bg, #2a2a2a);
|
||
color: var(--content-fg, var(--input-text, #ddd));
|
||
}
|
||
|
||
.mjr-viewer-tools-range-input:focus {
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-viewer-tool-btn--reset {
|
||
border-color: rgba(255,255,255,0.22) !important;
|
||
}
|
||
|
||
.mjr-viewer-tool-btn {
|
||
min-height: 24px !important;
|
||
border-radius: 8px !important;
|
||
border-width: 1px !important;
|
||
background: linear-gradient(180deg, rgba(210,214,220,0.075), rgba(210,214,220,0.025)) !important;
|
||
border-color: rgba(196,202,210,0.16) !important;
|
||
box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
|
||
font-size: 11px !important;
|
||
padding: 0 8px !important;
|
||
}
|
||
|
||
.mjr-viewer-tool-btn:hover {
|
||
border-color: rgba(220,224,230,0.24) !important;
|
||
background: linear-gradient(180deg, rgba(220,224,230,0.1), rgba(220,224,230,0.035)) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="analysis"] .mjr-viewer-tool-btn[data-active="1"] {
|
||
background: linear-gradient(180deg, rgba(255, 166, 92, 0.22), rgba(255, 116, 64, 0.08)) !important;
|
||
border-color: rgba(255, 160, 92, 0.34) !important;
|
||
color: rgba(255, 236, 224, 0.96) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="analysis"] .mjr-viewer-tool-btn[data-active="1"]:hover {
|
||
background: linear-gradient(180deg, rgba(255, 180, 108, 0.28), rgba(255, 128, 72, 0.14)) !important;
|
||
border-color: rgba(255, 184, 116, 0.46) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="overlay-guides"] .mjr-viewer-tool-btn[data-active="1"] {
|
||
background: linear-gradient(180deg, rgba(92, 219, 186, 0.22), rgba(44, 170, 144, 0.08)) !important;
|
||
border-color: rgba(92, 219, 186, 0.34) !important;
|
||
color: rgba(224, 255, 248, 0.96) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="overlay-guides"] .mjr-viewer-tool-btn[data-active="1"]:hover {
|
||
background: linear-gradient(180deg, rgba(102, 230, 196, 0.28), rgba(52, 182, 156, 0.14)) !important;
|
||
border-color: rgba(110, 236, 202, 0.46) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="overlay-inspect"] .mjr-viewer-tool-btn[data-active="1"] {
|
||
background: linear-gradient(180deg, rgba(124, 166, 255, 0.22), rgba(109, 88, 222, 0.08)) !important;
|
||
border-color: rgba(132, 170, 255, 0.36) !important;
|
||
color: rgba(236, 242, 255, 0.97) !important;
|
||
}
|
||
|
||
.mjr-viewer-tools-group[data-group="overlay-inspect"] .mjr-viewer-tool-btn[data-active="1"]:hover {
|
||
background: linear-gradient(180deg, rgba(138, 180, 255, 0.30), rgba(124, 100, 232, 0.14)) !important;
|
||
border-color: rgba(148, 188, 255, 0.48) !important;
|
||
}
|
||
|
||
.mjr-viewer-tool-btn[data-active="1"] {
|
||
filter: saturate(1.12) brightness(1.04);
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255,255,255,0.10),
|
||
0 0 0 1px rgba(255,255,255,0.06),
|
||
0 8px 18px rgba(0,0,0,0.16) !important;
|
||
}
|
||
|
||
.mjr-viewer-help {
|
||
border-radius: 14px !important;
|
||
background: linear-gradient(180deg, rgba(13,17,22,0.96), rgba(8,11,16,0.98)) !important;
|
||
border: 1px solid rgba(255,255,255,0.12) !important;
|
||
box-shadow: 0 18px 34px rgba(0,0,0,0.34) !important;
|
||
}
|
||
|
||
@media (max-width: 1220px) {
|
||
.mjr-viewer-tools {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.mjr-viewer-tools-actions {
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.mjr-viewer-header-top {
|
||
grid-template-columns: 1fr;
|
||
justify-items: center;
|
||
}
|
||
|
||
.mjr-viewer-header-area--left,
|
||
.mjr-viewer-header-area--center,
|
||
.mjr-viewer-header-area--right {
|
||
width: 100%;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-viewer-header-meta--left,
|
||
.mjr-viewer-header-meta--right {
|
||
justify-self: center;
|
||
}
|
||
|
||
.mjr-viewer-tools-body {
|
||
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
|
||
}
|
||
}
|
||
|
||
/* ========== Custom Video Controls (no native bar) ========== */
|
||
.mjr-video-host {
|
||
position: relative;
|
||
}
|
||
|
||
.mjr-video-controls {
|
||
position: absolute;
|
||
left: 12px;
|
||
right: 12px;
|
||
bottom: 12px;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 8px 10px;
|
||
background: rgba(0, 0, 0, 0.6);
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
border-radius: 10px;
|
||
backdrop-filter: blur(10px);
|
||
opacity: 0;
|
||
pointer-events: none;
|
||
transition: opacity 0.15s ease;
|
||
z-index: 5;
|
||
}
|
||
|
||
.mjr-video-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-video-row--top {
|
||
gap: 12px;
|
||
display: grid;
|
||
align-items: center;
|
||
grid-template-columns: auto 1fr auto auto auto;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-row--top {
|
||
grid-template-columns: auto auto 1fr auto auto;
|
||
}
|
||
|
||
.mjr-video-controls--preview .mjr-video-row--top {
|
||
display: flex;
|
||
}
|
||
|
||
.mjr-video-row--bottom {
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-video-group {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
min-width: 0;
|
||
color: rgba(255, 255, 255, 0.85);
|
||
font-size: 12px;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-video-num {
|
||
background: rgba(255, 255, 255, 0.06);
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
color: rgba(255, 255, 255, 0.95);
|
||
border-radius: 8px;
|
||
padding: 5px 8px;
|
||
font-size: 12px;
|
||
line-height: 1;
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-video-num:focus {
|
||
border-color: rgba(255, 255, 255, 0.38);
|
||
}
|
||
|
||
.mjr-video-num--speed {
|
||
color-scheme: dark;
|
||
background: rgba(0, 0, 0, 0.62);
|
||
color: rgba(255, 255, 255, 0.95);
|
||
}
|
||
|
||
.mjr-video-num--speed option {
|
||
background: var(--comfy-menu-bg, #2a2a2a);
|
||
color: var(--content-fg, #ddd);
|
||
}
|
||
|
||
.mjr-video-frame {
|
||
font-size: 12px;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
min-width: 52px;
|
||
text-align: right;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-video-frame.is-step {
|
||
color: #ffd24d;
|
||
}
|
||
|
||
.mjr-video-bottom {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
flex: 1;
|
||
}
|
||
|
||
.mjr-video-bottom--left {
|
||
justify-content: flex-start;
|
||
}
|
||
|
||
.mjr-video-bottom--right {
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.mjr-video-transport {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 8px;
|
||
flex: 0 0 auto;
|
||
}
|
||
|
||
/* Show controls on hover/focus (viewer). */
|
||
.mjr-video-host:hover .mjr-video-controls,
|
||
.mjr-video-controls:focus-within {
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
}
|
||
|
||
/* Preview: keep controls visible because the area is small. */
|
||
.mjr-video-controls--preview {
|
||
position: absolute;
|
||
left: auto;
|
||
right: 10px;
|
||
top: auto;
|
||
bottom: 10px;
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
background: transparent;
|
||
border: none;
|
||
padding: 0;
|
||
display: block;
|
||
width: auto;
|
||
height: auto;
|
||
backdrop-filter: none;
|
||
-webkit-backdrop-filter: none;
|
||
}
|
||
|
||
.mjr-video-preview-btn {
|
||
width: 38px;
|
||
height: 38px;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255,255,255,0.22);
|
||
background: rgba(0,0,0,0.42);
|
||
color: rgba(255,255,255,0.92);
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-video-preview-btn:hover {
|
||
background: rgba(0,0,0,0.50);
|
||
border-color: rgba(255,255,255,0.28);
|
||
}
|
||
|
||
.mjr-video-preview-btn .pi {
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-video-btn {
|
||
background: rgba(255, 255, 255, 0.08);
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
color: #fff;
|
||
border-radius: 8px;
|
||
padding: 6px 10px;
|
||
cursor: pointer;
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-video-btn:hover {
|
||
background: rgba(255, 255, 255, 0.14);
|
||
}
|
||
|
||
.mjr-video-btn.is-on {
|
||
background: rgba(64, 160, 255, 0.25);
|
||
border-color: rgba(64, 160, 255, 0.55);
|
||
}
|
||
|
||
.mjr-video-btn--in {
|
||
border-color: rgba(70, 255, 120, 0.55);
|
||
background: rgba(70, 255, 120, 0.12);
|
||
}
|
||
|
||
.mjr-video-btn--in:hover {
|
||
background: rgba(70, 255, 120, 0.18);
|
||
}
|
||
|
||
.mjr-video-btn--out {
|
||
border-color: rgba(255, 70, 70, 0.55);
|
||
background: rgba(255, 70, 70, 0.10);
|
||
}
|
||
|
||
.mjr-video-btn--out:hover {
|
||
background: rgba(255, 70, 70, 0.16);
|
||
}
|
||
|
||
.mjr-video-time {
|
||
font-size: 12px;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
min-width: 92px;
|
||
text-align: center;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-video-timegroup {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: flex-end;
|
||
gap: 10px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-video-range-count {
|
||
font-size: 12px;
|
||
color: rgba(64, 190, 255, 0.92);
|
||
background: rgba(64, 190, 255, 0.10);
|
||
border: 1px solid rgba(64, 190, 255, 0.25);
|
||
border-radius: 999px;
|
||
padding: 1px 8px;
|
||
line-height: 16px;
|
||
font-variant-numeric: tabular-nums;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-video-range {
|
||
accent-color: rgba(255, 255, 255, 0.9);
|
||
}
|
||
|
||
.mjr-video-range--seek {
|
||
flex: 1;
|
||
min-width: 80px;
|
||
position: relative;
|
||
z-index: 1;
|
||
/* We draw our own playhead/markers; hide the native thumb "dot". */
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
}
|
||
|
||
.mjr-video-range--seek::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
appearance: none;
|
||
width: 0;
|
||
height: 0;
|
||
border: 0;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.mjr-video-range--seek::-moz-range-thumb {
|
||
width: 0;
|
||
height: 0;
|
||
border: 0;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
}
|
||
|
||
.mjr-video-seek-wrap {
|
||
position: relative;
|
||
min-width: 80px;
|
||
flex: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
.mjr-video-seek-zones {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 50%;
|
||
height: 10px;
|
||
transform: translateY(-50%);
|
||
border-radius: 999px;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
z-index: 2;
|
||
}
|
||
|
||
.mjr-video-seek-zone {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
}
|
||
|
||
/* 0..In: trimmed-out range. */
|
||
.mjr-video-seek-zone--leftTrim {
|
||
background: rgba(255, 70, 70, 0.18);
|
||
}
|
||
|
||
/* In..Out: selected playback range highlight. */
|
||
.mjr-video-seek-zone--selected {
|
||
background: rgba(64, 190, 255, 0.55);
|
||
}
|
||
|
||
.mjr-video-seek-zones.is-fullrange .mjr-video-seek-zone--selected {
|
||
background: rgba(255, 255, 255, 0.12);
|
||
}
|
||
|
||
/* Out..End: show out-of-range frames as a different color. */
|
||
.mjr-video-seek-zone--rightTrim {
|
||
background: rgba(255, 70, 70, 0.20);
|
||
}
|
||
|
||
.mjr-video-seek-overlay {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 50%;
|
||
height: 0;
|
||
pointer-events: none;
|
||
z-index: 3;
|
||
}
|
||
|
||
.mjr-video-seek-handle {
|
||
position: absolute;
|
||
top: 50%;
|
||
width: 16px;
|
||
height: 32px;
|
||
transform: translate(-50%, -50%);
|
||
cursor: ew-resize;
|
||
pointer-events: auto;
|
||
touch-action: none;
|
||
user-select: none;
|
||
z-index: 4;
|
||
border-radius: 6px;
|
||
background: rgba(255, 255, 255, 0.06);
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
box-shadow: 0 4px 10px rgba(0,0,0,0.35);
|
||
}
|
||
|
||
.mjr-video-seek-handle:hover {
|
||
background: rgba(255, 255, 255, 0.10);
|
||
border-color: rgba(255, 255, 255, 0.24);
|
||
}
|
||
|
||
.mjr-video-seek-handle--in::after,
|
||
.mjr-video-seek-handle--out::after {
|
||
content: "";
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
width: 2px;
|
||
height: 18px;
|
||
transform: translate(-50%, -50%);
|
||
background: rgba(255, 70, 70, 0.95);
|
||
border-radius: 2px;
|
||
}
|
||
|
||
.mjr-video-seek-handle--in::after {
|
||
background: rgba(70, 255, 120, 0.95);
|
||
}
|
||
|
||
.mjr-video-seek-handle--in::before,
|
||
.mjr-video-seek-handle--out::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 50%;
|
||
width: 0;
|
||
height: 0;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.mjr-video-seek-handle--in::before {
|
||
top: 4px;
|
||
border-left: 5px solid transparent;
|
||
border-right: 5px solid transparent;
|
||
border-bottom: 6px solid rgba(70, 255, 120, 0.95);
|
||
}
|
||
|
||
.mjr-video-seek-handle--out::before {
|
||
bottom: 4px;
|
||
border-left: 5px solid transparent;
|
||
border-right: 5px solid transparent;
|
||
border-top: 6px solid rgba(255, 70, 70, 0.95);
|
||
}
|
||
|
||
.mjr-video-seek-ticks {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: -16px;
|
||
height: 12px;
|
||
border-bottom: 1px solid rgba(255,255,255,0.10);
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-video-seek-labels {
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: -34px;
|
||
height: 14px;
|
||
pointer-events: none;
|
||
font-size: 10px;
|
||
line-height: 14px;
|
||
color: rgba(255,255,255,0.72);
|
||
font-variant-numeric: tabular-nums;
|
||
text-shadow: 0 1px 0 rgba(0,0,0,0.55);
|
||
}
|
||
|
||
.mjr-video-seek-label {
|
||
position: absolute;
|
||
transform: translateX(-50%);
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-video-seek-playhead-label {
|
||
position: absolute;
|
||
top: 12px;
|
||
transform: translateX(-50%);
|
||
padding: 1px 6px;
|
||
border-radius: 999px;
|
||
background: rgba(0,0,0,0.55);
|
||
border: 1px solid rgba(255,255,255,0.14);
|
||
color: rgba(255,255,255,0.92);
|
||
font-size: 10px;
|
||
line-height: 14px;
|
||
font-variant-numeric: tabular-nums;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-video-seek-mark {
|
||
position: absolute;
|
||
top: -10px;
|
||
width: 14px;
|
||
height: 20px;
|
||
background: transparent;
|
||
transform: translateX(-50%);
|
||
cursor: ew-resize;
|
||
pointer-events: auto;
|
||
touch-action: none;
|
||
z-index: 4;
|
||
--mjr-mark-color: rgba(255, 70, 70, 0.95);
|
||
}
|
||
|
||
.mjr-video-seek-mark--in {
|
||
--mjr-mark-color: rgba(70, 255, 120, 0.95);
|
||
}
|
||
|
||
.mjr-video-seek-mark::before {
|
||
content: "";
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 2px;
|
||
transform: translateX(-50%);
|
||
background: var(--mjr-mark-color);
|
||
border-radius: 2px;
|
||
box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
|
||
}
|
||
|
||
.mjr-video-seek-mark::after {
|
||
content: "";
|
||
position: absolute;
|
||
top: -5px;
|
||
left: 50%;
|
||
width: 0;
|
||
height: 0;
|
||
border-left: 5px solid transparent;
|
||
border-right: 5px solid transparent;
|
||
border-bottom: 6px solid var(--mjr-mark-color);
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.mjr-video-seek-mark--in::after {
|
||
border-bottom-color: var(--mjr-mark-color);
|
||
}
|
||
|
||
.mjr-video-seek-mark--out::after {
|
||
top: auto;
|
||
bottom: -5px;
|
||
border-bottom: none;
|
||
border-top: 6px solid var(--mjr-mark-color);
|
||
}
|
||
|
||
.mjr-video-seek-playhead {
|
||
position: absolute;
|
||
top: -12px;
|
||
width: 2px;
|
||
height: 24px;
|
||
background: rgba(255, 200, 70, 0.95);
|
||
box-shadow: 0 0 0 1px rgba(0,0,0,0.35);
|
||
transform: translateX(-1px);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar {
|
||
position: static;
|
||
left: auto;
|
||
right: auto;
|
||
bottom: auto;
|
||
opacity: 1;
|
||
pointer-events: auto;
|
||
width: 100%;
|
||
max-width: none;
|
||
margin: 0;
|
||
padding: 14px;
|
||
border-radius: 18px;
|
||
border: 1px solid rgba(196, 202, 210, 0.12);
|
||
background:
|
||
radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 34%),
|
||
linear-gradient(180deg, rgba(198, 203, 210, 0.025), rgba(198, 203, 210, 0.008)),
|
||
linear-gradient(165deg, rgba(18, 22, 28, 0.82), rgba(12, 15, 21, 0.9));
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.04),
|
||
0 10px 30px rgba(0, 0, 0, 0.14);
|
||
backdrop-filter: none;
|
||
-webkit-backdrop-filter: none;
|
||
gap: 12px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-btn {
|
||
min-height: 38px;
|
||
padding: 8px 12px;
|
||
font-size: 12px;
|
||
border-radius: 12px;
|
||
background: linear-gradient(180deg, rgba(210, 214, 220, 0.07), rgba(210, 214, 220, 0.02));
|
||
border-color: rgba(194, 201, 208, 0.18);
|
||
border-width: 1px;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
|
||
transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-btn:hover {
|
||
transform: translateY(-1px);
|
||
border-color: rgba(220, 224, 230, 0.26);
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.08),
|
||
0 8px 18px rgba(0, 0, 0, 0.14);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-btn.is-on {
|
||
background: linear-gradient(180deg, rgba(100, 170, 255, 0.2), rgba(100, 170, 255, 0.08));
|
||
border-color: rgba(120, 186, 255, 0.42);
|
||
box-shadow: 0 0 0 1px rgba(120, 186, 255, 0.12) inset;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-btn .pi {
|
||
font-size: 14px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-head,
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-actions {
|
||
display: grid;
|
||
grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
|
||
gap: 12px;
|
||
align-items: center;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-status,
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-side {
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
flex-wrap: wrap;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-center {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-head {
|
||
grid-template-columns: minmax(0, 1fr);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-side--right {
|
||
justify-content: flex-end;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-timeline {
|
||
display: grid;
|
||
grid-template-columns: auto minmax(0, 1fr) auto;
|
||
gap: 12px;
|
||
align-items: center;
|
||
padding: 10px 12px;
|
||
border-radius: 16px;
|
||
background: rgba(255, 255, 255, 0.04);
|
||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-media-badge {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
min-height: 28px;
|
||
padding: 0 10px;
|
||
border-radius: 999px;
|
||
background: rgba(78, 224, 196, 0.12);
|
||
border: 1px solid rgba(78, 224, 196, 0.22);
|
||
color: rgba(220, 247, 241, 0.96);
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.08em;
|
||
text-transform: uppercase;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-timegroup {
|
||
justify-content: flex-start;
|
||
gap: 8px;
|
||
padding: 5px 10px;
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.045);
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-time,
|
||
.mjr-video-controls--viewerbar .mjr-video-frame {
|
||
font-variant-numeric: tabular-nums;
|
||
color: rgba(228, 230, 234, 0.92);
|
||
text-shadow: none;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-frame {
|
||
min-width: 94px;
|
||
text-align: center;
|
||
padding: 5px 10px;
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.045);
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-time {
|
||
min-width: auto;
|
||
text-align: left;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-range--seek {
|
||
height: 22px;
|
||
accent-color: rgba(214, 218, 224, 0.92);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-range-count {
|
||
color: rgba(222, 225, 230, 0.95);
|
||
border-color: rgba(194, 201, 209, 0.26);
|
||
border-width: 0.8px;
|
||
background: rgba(194, 201, 209, 0.08);
|
||
text-shadow: none;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-group {
|
||
min-height: 36px;
|
||
padding: 4px 8px;
|
||
border-radius: 12px;
|
||
background: rgba(255, 255, 255, 0.035);
|
||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-group--adjust-left,
|
||
.mjr-video-controls--viewerbar .mjr-video-group--adjust-right,
|
||
.mjr-video-controls--viewerbar .mjr-video-group--speed {
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-num {
|
||
min-height: 34px;
|
||
border-radius: 10px;
|
||
background: rgba(9, 12, 16, 0.55);
|
||
border-color: rgba(255, 255, 255, 0.1);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-transport {
|
||
gap: 10px;
|
||
padding: 6px;
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.045);
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-btn--play {
|
||
min-width: 88px;
|
||
font-weight: 600;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-seek-wrap {
|
||
min-height: 44px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-seek-zones {
|
||
height: 12px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-seek-handle {
|
||
width: 18px;
|
||
height: 34px;
|
||
border-radius: 8px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-volume-wrap {
|
||
padding: 0 4px;
|
||
}
|
||
|
||
.mjr-video-range--volume {
|
||
width: 90px;
|
||
}
|
||
|
||
@media (max-width: 980px) {
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-head,
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-actions,
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-timeline {
|
||
grid-template-columns: 1fr;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-center,
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-side--right {
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-bar-timeline {
|
||
gap: 10px;
|
||
}
|
||
|
||
.mjr-video-controls--viewerbar .mjr-video-transport {
|
||
width: 100%;
|
||
justify-content: center;
|
||
flex-wrap: wrap;
|
||
border-radius: 16px;
|
||
}
|
||
}
|
||
|
||
/* ========== Context Menu Component ========== */
|
||
.mjr-context-menu {
|
||
position: fixed;
|
||
background: var(--comfy-menu-bg);
|
||
border: 1px solid var(--border-color);
|
||
border-radius: 6px;
|
||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
|
||
min-width: 200px;
|
||
/* Above viewer overlay (10001) and MFV dialog (10000) */
|
||
z-index: 10002;
|
||
display: none;
|
||
padding: 4px 0;
|
||
animation: mjr-context-menu-in 0.15s ease-out;
|
||
}
|
||
|
||
.mjr-context-menu,
|
||
.mjr-context-menu * {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
@keyframes mjr-context-menu-in {
|
||
from {
|
||
opacity: 0;
|
||
transform: translateY(-5px);
|
||
}
|
||
to {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
}
|
||
|
||
.mjr-context-menu-item {
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
padding: 8px 14px;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
width: 100%;
|
||
border: 0;
|
||
border-radius: 0;
|
||
background: transparent;
|
||
box-shadow: none;
|
||
margin: 0;
|
||
cursor: pointer;
|
||
color: var(--fg-color);
|
||
font-size: 13px;
|
||
font-family: inherit;
|
||
font-weight: 400;
|
||
letter-spacing: normal;
|
||
line-height: 1.35;
|
||
text-align: left;
|
||
text-decoration: none;
|
||
text-transform: none;
|
||
transition: background 0.15s;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-context-menu-item::-moz-focus-inner {
|
||
border: 0;
|
||
padding: 0;
|
||
}
|
||
|
||
.mjr-context-menu-item:hover,
|
||
.mjr-context-menu-item:focus-visible {
|
||
background: var(--comfy-input-bg);
|
||
outline: none;
|
||
}
|
||
|
||
.mjr-context-menu-item.is-disabled {
|
||
cursor: default;
|
||
opacity: 0.45;
|
||
}
|
||
|
||
.mjr-context-menu-item.is-disabled:hover,
|
||
.mjr-context-menu-item.is-disabled:focus-visible {
|
||
background: transparent;
|
||
}
|
||
|
||
.mjr-context-menu-separator {
|
||
height: 1px;
|
||
background: var(--border-color);
|
||
margin: 4px 0;
|
||
}
|
||
|
||
.mjr-context-menu-item-left,
|
||
.mjr-context-menu-item-right {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 10px;
|
||
}
|
||
|
||
.mjr-context-menu-item-left {
|
||
flex: 1 1 auto;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-context-menu-item-right {
|
||
flex: 0 0 auto;
|
||
margin-left: 16px;
|
||
}
|
||
|
||
.mjr-context-menu-item-left i {
|
||
width: 16px;
|
||
text-align: center;
|
||
opacity: 0.82;
|
||
}
|
||
|
||
.mjr-context-menu-hint {
|
||
opacity: 0.58;
|
||
font-size: 11px;
|
||
white-space: nowrap;
|
||
}
|
||
|
||
.mjr-context-menu-submenu-arrow {
|
||
opacity: 0.72;
|
||
font-size: 16px;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-add-to-collection-menu {
|
||
min-width: 260px;
|
||
max-width: min(360px, calc(100vw - 16px));
|
||
backdrop-filter: blur(12px);
|
||
}
|
||
|
||
.mjr-context-menu-title {
|
||
padding: 8px 14px 10px;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
color: var(--fg-color);
|
||
opacity: 0.92;
|
||
}
|
||
|
||
.mjr-context-menu-note {
|
||
padding: 10px 14px;
|
||
font-size: 12px;
|
||
color: color-mix(in srgb, var(--content-fg) 72%, var(--mjr-muted));
|
||
line-height: 1.45;
|
||
}
|
||
|
||
.mjr-grid-popover,
|
||
.mjr-viewer-popover {
|
||
min-width: 250px;
|
||
max-width: min(360px, calc(100vw - 16px));
|
||
background: var(--mjr-surface-1);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: var(--mjr-r-sm);
|
||
box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mjr-viewer-overlay *,
|
||
.mjr-video-controls,
|
||
.mjr-context-menu {
|
||
animation: none !important;
|
||
transition: none !important;
|
||
scroll-behavior: auto !important;
|
||
}
|
||
}
|
||
|
||
/* Hide header (toolbar) when viewer overlay is in fullscreen */
|
||
.mjr-viewer-overlay:fullscreen .mjr-viewer-header {
|
||
display: none;
|
||
}
|
||
|
||
/* ══════════════════════════════════════════════════════════════════════════
|
||
Majoor Floating Viewer (MFV) — portaled to document.body
|
||
Redeclares CSS variables so the panel works outside .mjr-assets-manager
|
||
(same pattern as .mjr-popover)
|
||
══════════════════════════════════════════════════════════════════════════ */
|
||
|
||
.mjr-mfv {
|
||
--mjr-surface-0: var(--content-bg, #1e1e1e);
|
||
--mjr-surface-1: var(--comfy-menu-bg, #2a2a2a);
|
||
--mjr-surface-2: var(--comfy-menu-secondary-bg, #333);
|
||
--mjr-border: var(--border-color, rgba(255, 255, 255, 0.12));
|
||
--mjr-muted: var(--descrip-text, rgba(255, 255, 255, 0.65));
|
||
--mjr-accent: var(--comfy-accent, #5fb3ff);
|
||
--mjr-status-success: var(--comfy-status-success, #4CAF50);
|
||
|
||
font-family: var(--comfy-font, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
|
||
font-size: 13px;
|
||
line-height: 1.35;
|
||
color: var(--content-fg, var(--input-text, #ddd));
|
||
box-sizing: border-box;
|
||
|
||
/* Visual chrome */
|
||
background: var(--mjr-surface-1);
|
||
border: 1px solid var(--mjr-border);
|
||
border-radius: 8px;
|
||
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.3);
|
||
}
|
||
|
||
.mjr-mfv * {
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
html.mjr-mfv-popout-document {
|
||
background:
|
||
radial-gradient(
|
||
1200px 420px at 50% 0%,
|
||
color-mix(in srgb, var(--primary-background, var(--comfy-accent, #5fb3ff)) 10%, transparent),
|
||
transparent 62%
|
||
),
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--interface-panel-surface, var(--content-bg, #16191f)) 82%, #000 18%),
|
||
color-mix(in srgb, var(--interface-menu-surface, var(--comfy-menu-bg, #1f2227)) 84%, #000 16%)
|
||
);
|
||
}
|
||
|
||
body.mjr-mfv-popout-body {
|
||
background: transparent;
|
||
}
|
||
|
||
#mjr-mfv-popout-root,
|
||
.mjr-mfv-popout-root {
|
||
isolation: isolate;
|
||
}
|
||
|
||
/* ── Header (drag handle) ─────────────────────────────────────────────── */
|
||
.mjr-mfv-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 10px;
|
||
background: var(--mjr-surface-1);
|
||
border-bottom: 1px solid var(--mjr-border);
|
||
cursor: move;
|
||
user-select: none;
|
||
flex-shrink: 0;
|
||
gap: 6px;
|
||
min-height: 34px;
|
||
}
|
||
|
||
.mjr-mfv-header-title {
|
||
font-size: 12px;
|
||
font-weight: 600;
|
||
opacity: 0.78;
|
||
pointer-events: none;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
flex: 1;
|
||
letter-spacing: 0.28px;
|
||
}
|
||
|
||
/* ── Toolbar ─────────────────────────────────────────────────────────── */
|
||
.mjr-mfv-toolbar {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
padding: 4px 8px;
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 50%, var(--mjr-surface-1) 50%);
|
||
border-bottom: 1px solid var(--mjr-border);
|
||
flex-shrink: 0;
|
||
min-height: 36px;
|
||
}
|
||
|
||
.mjr-mfv-toolbar-sep {
|
||
width: 1px;
|
||
height: 18px;
|
||
background: var(--mjr-border);
|
||
margin: 0 3px;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mjr-mfv-progress {
|
||
position: relative;
|
||
overflow: hidden;
|
||
height: 22px;
|
||
border-bottom: 1px solid var(--mjr-border);
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 72%, #000 28%);
|
||
flex-shrink: 0;
|
||
cursor: default;
|
||
}
|
||
|
||
.mjr-mfv-progress.is-clickable {
|
||
cursor: pointer;
|
||
}
|
||
|
||
.mjr-mfv-progress.is-clickable:hover {
|
||
filter: brightness(1.03);
|
||
}
|
||
|
||
.mjr-mfv-progress-bar {
|
||
position: absolute;
|
||
left: 0;
|
||
width: 0%;
|
||
transition: width 70ms ease-in-out;
|
||
}
|
||
|
||
.mjr-mfv-progress-bar--nodes {
|
||
top: 0;
|
||
height: 50%;
|
||
background: color-mix(in srgb, var(--mjr-status-success) 68%, #0b3513 32%);
|
||
}
|
||
|
||
.mjr-mfv-progress-bar--steps {
|
||
top: 50%;
|
||
height: 50%;
|
||
background: color-mix(in srgb, var(--mjr-accent) 64%, #0b2340 36%);
|
||
}
|
||
|
||
.mjr-mfv-progress.is-error .mjr-mfv-progress-bar--nodes,
|
||
.mjr-mfv-progress.is-error .mjr-mfv-progress-bar--steps {
|
||
background: color-mix(in srgb, #d9534f 78%, #4a1414 22%);
|
||
}
|
||
|
||
.mjr-mfv-progress-overlay {
|
||
position: absolute;
|
||
inset: 0;
|
||
background: linear-gradient(to bottom, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.18));
|
||
mix-blend-mode: screen;
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-mfv-progress-text {
|
||
position: relative;
|
||
z-index: 2;
|
||
display: flex;
|
||
align-items: center;
|
||
height: 100%;
|
||
padding: 0 8px;
|
||
color: var(--content-fg, #ddd);
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
text-shadow: 0 0 2px rgba(0, 0, 0, 0.9);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
|
||
.mjr-mfv-pin-group {
|
||
display: flex;
|
||
gap: 2px;
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
}
|
||
.mjr-mfv-pin-btn {
|
||
width: 26px;
|
||
height: 26px;
|
||
border-radius: 5px;
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-2);
|
||
color: var(--content-fg, #ddd);
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
cursor: pointer;
|
||
padding: 0;
|
||
line-height: 24px;
|
||
text-align: center;
|
||
transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
|
||
}
|
||
.mjr-mfv-pin-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 45%, var(--mjr-border));
|
||
background-color: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-accent) 8%);
|
||
}
|
||
.mjr-mfv-pin-btn.is-pinned {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, #ffffff 12%);
|
||
background-color: color-mix(in srgb, var(--mjr-surface-2) 42%, var(--mjr-accent) 58%);
|
||
color: #eef7ff;
|
||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 24%, transparent);
|
||
}
|
||
|
||
/* ── Icon buttons inside MFV (outside .mjr-assets-manager scope) ─────── */
|
||
.mjr-mfv .mjr-icon-btn {
|
||
width: 30px;
|
||
height: 30px;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
border-radius: 7px;
|
||
border: 1px solid var(--mjr-border);
|
||
background: var(--mjr-surface-2);
|
||
color: var(--content-fg, #ddd);
|
||
cursor: pointer;
|
||
padding: 0;
|
||
flex-shrink: 0;
|
||
transition: transform 120ms ease, background-color 120ms ease, border-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 45%, var(--mjr-border));
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-accent) 8%);
|
||
transform: translateY(-1px);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn:focus-visible {
|
||
outline: none;
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, var(--mjr-border));
|
||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--mjr-accent) 24%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn .pi {
|
||
font-size: 13px;
|
||
line-height: 1;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-live-active {
|
||
border-color: color-mix(in srgb, var(--mjr-status-success) 60%, var(--mjr-border));
|
||
color: var(--mjr-status-success);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-status-success) 12%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-status-success) 25%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-live-active .pi {
|
||
opacity: 1;
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-preview-active {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 60%, var(--mjr-border));
|
||
color: var(--mjr-accent);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-accent) 12%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-accent) 25%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-preview-active .pi {
|
||
opacity: 1;
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-nodestream-active {
|
||
border-color: color-mix(in srgb, var(--mjr-status-warning, #ff9800) 60%, var(--mjr-border));
|
||
color: var(--mjr-status-warning, #ff9800);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 80%, var(--mjr-status-warning, #ff9800) 12%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-status-warning, #ff9800) 25%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-nodestream-active .pi {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* Pop-in mode (viewer popped out): raise button contrast/brightness */
|
||
.mjr-mfv.mjr-mfv--popped {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-1) 92%, rgba(255, 255, 255, 0.04)),
|
||
color-mix(in srgb, var(--mjr-surface-0) 92%, rgba(0, 0, 0, 0.18))
|
||
);
|
||
border-color: color-mix(in srgb, var(--mjr-border) 74%, rgba(255, 255, 255, 0.18));
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.05),
|
||
0 24px 56px rgba(0, 0, 0, 0.42);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-header {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 88%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-surface-1) 90%, rgba(0, 0, 0, 0.24))
|
||
);
|
||
border-bottom-color: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.14));
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-header-title {
|
||
opacity: 0.98;
|
||
color: color-mix(in srgb, var(--content-fg, #eef4ff) 94%, #ffffff 6%);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-toolbar {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-1) 88%, rgba(255, 255, 255, 0.04)),
|
||
color-mix(in srgb, var(--mjr-surface-0) 90%, rgba(0, 0, 0, 0.24))
|
||
);
|
||
border-bottom-color: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.14));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-toolbar-sep {
|
||
background: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.18));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-progress {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-0) 82%, #0a1118 18%),
|
||
color-mix(in srgb, var(--mjr-surface-0) 92%, #000 8%)
|
||
);
|
||
border-bottom-color: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.14));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-progress-text {
|
||
color: color-mix(in srgb, var(--content-fg, #eef4ff) 94%, #ffffff 6%);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-content {
|
||
background:
|
||
radial-gradient(circle at top, color-mix(in srgb, var(--mjr-accent) 10%, transparent) 0%, transparent 42%),
|
||
color-mix(in srgb, var(--mjr-surface-0) 82%, #000 18%);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 76%, rgba(255, 255, 255, 0.16));
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 86%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-surface-1) 92%, rgba(0, 0, 0, 0.18))
|
||
);
|
||
color: color-mix(in srgb, var(--content-fg, #ddd) 92%, #ffffff 8%) !important;
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.05),
|
||
0 8px 18px rgba(0, 0, 0, 0.18);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 52%, var(--mjr-border));
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 58%, var(--mjr-accent) 42%),
|
||
color-mix(in srgb, var(--mjr-surface-1) 62%, var(--mjr-accent) 38%)
|
||
);
|
||
color: #f4f8ff !important;
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn .pi {
|
||
opacity: 1;
|
||
color: inherit !important;
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn.mjr-live-active {
|
||
border-color: color-mix(in srgb, var(--mjr-status-success) 60%, #ffffff 40%);
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-status-success) 62%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-status-success) 36%, var(--mjr-surface-1) 64%)
|
||
);
|
||
color: #ffffff !important;
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||
0 0 0 1px color-mix(in srgb, var(--mjr-status-success) 24%, transparent),
|
||
0 0 18px rgba(76, 175, 80, 0.18);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn.mjr-preview-active {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, #ffffff 42%);
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-accent) 62%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-accent) 36%, var(--mjr-surface-1) 64%)
|
||
);
|
||
color: #ffffff !important;
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||
0 0 0 1px color-mix(in srgb, var(--mjr-accent) 24%, transparent),
|
||
0 0 18px rgba(95, 179, 255, 0.18);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn.mjr-nodestream-active {
|
||
border-color: color-mix(in srgb, var(--mjr-status-warning, #ff9800) 58%, #ffffff 42%);
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-status-warning, #ff9800) 62%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-status-warning, #ff9800) 36%, var(--mjr-surface-1) 64%)
|
||
);
|
||
color: #ffffff !important;
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.12),
|
||
0 0 0 1px color-mix(in srgb, var(--mjr-status-warning, #ff9800) 24%, transparent),
|
||
0 0 18px rgba(255, 152, 0, 0.18);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-pin-btn {
|
||
border-color: color-mix(in srgb, var(--mjr-border) 76%, rgba(255, 255, 255, 0.16));
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 84%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-surface-1) 92%, rgba(0, 0, 0, 0.18))
|
||
);
|
||
color: color-mix(in srgb, var(--content-fg, #ddd) 92%, #ffffff 8%);
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-pin-btn:hover {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 52%, var(--mjr-border));
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 56%, var(--mjr-accent) 44%),
|
||
color-mix(in srgb, var(--mjr-surface-1) 64%, var(--mjr-accent) 36%)
|
||
);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-pin-btn.is-pinned {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, #ffffff 42%);
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-accent) 62%, rgba(255, 255, 255, 0.08)),
|
||
color-mix(in srgb, var(--mjr-accent) 36%, var(--mjr-surface-1) 64%)
|
||
);
|
||
color: #ffffff;
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-sidebar {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-1) 94%, rgba(255, 255, 255, 0.04)),
|
||
color-mix(in srgb, var(--mjr-surface-0) 94%, rgba(0, 0, 0, 0.18))
|
||
);
|
||
border-left-color: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.16));
|
||
box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.03);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-mfv-content-wrapper[data-sidebar-pos="left"] .mjr-ws-sidebar {
|
||
border-right-color: color-mix(in srgb, var(--mjr-border) 78%, rgba(255, 255, 255, 0.16));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-sidebar-header {
|
||
background:
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-2) 84%, rgba(255, 255, 255, 0.05)),
|
||
color-mix(in srgb, var(--mjr-surface-1) 92%, rgba(0, 0, 0, 0.18))
|
||
);
|
||
border-bottom-color: color-mix(in srgb, var(--mjr-border) 76%, rgba(255, 255, 255, 0.14));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-sidebar-title {
|
||
color: color-mix(in srgb, var(--content-fg, #eef4ff) 82%, var(--mjr-muted) 18%);
|
||
opacity: 0.88;
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-node {
|
||
border-bottom-color: color-mix(in srgb, var(--mjr-border) 72%, rgba(255, 255, 255, 0.12));
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-node-header {
|
||
background:
|
||
linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
|
||
linear-gradient(
|
||
180deg,
|
||
color-mix(in srgb, var(--mjr-surface-1) 86%, var(--mjr-accent) 14%),
|
||
color-mix(in srgb, var(--mjr-surface-0) 86%, rgba(0, 0, 0, 0.14))
|
||
);
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-node-title {
|
||
color: color-mix(in srgb, var(--content-fg, #eef4ff) 94%, #ffffff 6%);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-widget-label,
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-sidebar-empty,
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-node-empty {
|
||
color: color-mix(in srgb, var(--mjr-muted) 84%, #ffffff 16%);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-input {
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 74%, #05070a 26%);
|
||
border-color: color-mix(in srgb, var(--mjr-border) 74%, rgba(255, 255, 255, 0.18));
|
||
border-radius: 6px;
|
||
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-ws-input:focus {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, #ffffff 10%);
|
||
box-shadow:
|
||
inset 0 1px 0 rgba(255, 255, 255, 0.04),
|
||
0 0 0 2px color-mix(in srgb, var(--mjr-accent) 18%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.mjr-popin-active {
|
||
border-color: color-mix(in srgb, var(--mjr-accent) 58%, #ffffff 42%);
|
||
background: color-mix(in srgb, var(--mjr-surface-2) 45%, var(--mjr-accent) 55%);
|
||
color: #eef7ff;
|
||
}
|
||
|
||
/* ── Content wrapper (horizontal flex: content + sidebar) ────────────── */
|
||
.mjr-mfv-content-wrapper {
|
||
display: flex;
|
||
flex: 1;
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* ── Sidebar position variants ──────────────────────────────────────── */
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="left"] {
|
||
flex-direction: row;
|
||
}
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="left"] .mjr-ws-sidebar {
|
||
border-left: none;
|
||
border-right: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
}
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="bottom"] {
|
||
flex-direction: column;
|
||
}
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="bottom"] .mjr-ws-sidebar {
|
||
border-left: none;
|
||
border-top: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
width: 100%;
|
||
height: 0;
|
||
transition: height 0.2s ease, width 0s;
|
||
}
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="bottom"] .mjr-ws-sidebar.open {
|
||
width: 100%;
|
||
height: 220px;
|
||
overflow-y: auto;
|
||
resize: vertical;
|
||
min-height: 120px;
|
||
max-height: 65%;
|
||
}
|
||
|
||
/* ── Content area ────────────────────────────────────────────────────── */
|
||
.mjr-mfv-content {
|
||
flex: 1;
|
||
overflow: hidden;
|
||
position: relative;
|
||
background: #0d0d0d;
|
||
min-height: 0;
|
||
}
|
||
|
||
.mjr-mfv-media-progress {
|
||
position: absolute;
|
||
top: 10px;
|
||
left: 10px;
|
||
z-index: 6;
|
||
max-width: calc(100% - 20px);
|
||
padding: 5px 9px;
|
||
border-radius: 6px;
|
||
border: 1px solid color-mix(in srgb, var(--mjr-border, rgba(255, 255, 255, 0.18)) 88%, transparent);
|
||
background: color-mix(in srgb, rgba(5, 8, 14, 0.86) 86%, var(--mjr-surface-0, #111) 14%);
|
||
color: var(--content-fg, #f5f7fa);
|
||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
pointer-events: none;
|
||
opacity: 0;
|
||
transform: translateY(-4px);
|
||
transition: opacity 0.16s ease, transform 0.16s ease;
|
||
}
|
||
|
||
.mjr-mfv-media-progress.is-visible {
|
||
opacity: 1;
|
||
transform: translateY(0);
|
||
}
|
||
|
||
.mjr-mfv-media-progress.is-error {
|
||
border-color: color-mix(in srgb, var(--mjr-status-error, #ff5c7a) 72%, transparent);
|
||
background: color-mix(in srgb, rgba(60, 10, 18, 0.9) 82%, var(--mjr-surface-0, #111) 18%);
|
||
}
|
||
|
||
.mjr-mfv-media-progress-text {
|
||
display: block;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
line-height: 1.2;
|
||
}
|
||
|
||
/* ── Workflow Sidebar ────────────────────────────────────────────────── */
|
||
.mjr-ws-sidebar {
|
||
width: 0;
|
||
overflow: hidden;
|
||
background: var(--mjr-surface-1, #2a2a2a);
|
||
border-left: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
transition: width 0.2s ease;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mjr-ws-sidebar.open {
|
||
width: 260px;
|
||
overflow-y: auto;
|
||
resize: horizontal;
|
||
min-width: 180px;
|
||
max-width: 65%;
|
||
transition: none;
|
||
}
|
||
|
||
.mjr-mfv-content-wrapper[data-sidebar-pos="bottom"] .mjr-ws-sidebar {
|
||
resize: none;
|
||
}
|
||
|
||
.mjr-ws-sidebar-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 10px;
|
||
border-bottom: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
flex-shrink: 0;
|
||
min-height: 34px;
|
||
}
|
||
.mjr-ws-sidebar-title {
|
||
font-size: 11px;
|
||
font-weight: 600;
|
||
text-transform: uppercase;
|
||
letter-spacing: 0.5px;
|
||
opacity: 0.65;
|
||
}
|
||
.mjr-ws-sidebar-body {
|
||
padding: 0;
|
||
}
|
||
.mjr-ws-sidebar-empty {
|
||
padding: 24px 16px;
|
||
text-align: center;
|
||
color: rgba(255, 255, 255, 0.25);
|
||
font-size: 11px;
|
||
line-height: 1.5;
|
||
}
|
||
|
||
/* ── Node sections ────────────────────────────────────────────────────── */
|
||
.mjr-ws-node {
|
||
border-bottom: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
}
|
||
.mjr-ws-node-header {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
padding: 6px 10px;
|
||
background: color-mix(in srgb, var(--mjr-surface-0, #1e1e1e) 40%, var(--mjr-surface-1, #2a2a2a) 60%);
|
||
}
|
||
.mjr-ws-node-title {
|
||
font-weight: 600;
|
||
font-size: 12px;
|
||
color: var(--content-fg, #ddd);
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
flex: 1;
|
||
margin-right: 6px;
|
||
}
|
||
.mjr-ws-node-body {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 4px;
|
||
padding: 6px 10px;
|
||
}
|
||
.mjr-ws-node-empty {
|
||
font-size: 11px;
|
||
color: rgba(255, 255, 255, 0.3);
|
||
padding: 4px 0;
|
||
}
|
||
|
||
/* ── Widget rows ──────────────────────────────────────────────────────── */
|
||
.mjr-ws-widget-row {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
gap: 8px;
|
||
}
|
||
.mjr-ws-widget-row--block {
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
}
|
||
.mjr-ws-widget-row--block .mjr-ws-widget-label {
|
||
flex: none;
|
||
padding-top: 0;
|
||
}
|
||
.mjr-ws-widget-row--block .mjr-ws-widget-input {
|
||
width: 100%;
|
||
}
|
||
.mjr-ws-widget-label {
|
||
flex: 0 0 80px;
|
||
font-size: 11px;
|
||
color: var(--descrip-text, rgba(255, 255, 255, 0.55));
|
||
padding-top: 5px;
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
}
|
||
.mjr-ws-widget-input {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.mjr-ws-input {
|
||
width: 100%;
|
||
background: var(--comfy-input-bg, #222);
|
||
color: var(--input-text, #ddd);
|
||
border: 1px solid var(--mjr-border, rgba(255, 255, 255, 0.12));
|
||
border-radius: 4px;
|
||
padding: 4px 6px;
|
||
font-size: 12px;
|
||
font-family: inherit;
|
||
outline: none;
|
||
transition: border-color 120ms ease;
|
||
}
|
||
.mjr-ws-input:focus {
|
||
border-color: var(--mjr-accent, #5fb3ff);
|
||
}
|
||
.mjr-ws-textarea {
|
||
resize: vertical;
|
||
min-height: 28px;
|
||
max-height: 80px;
|
||
line-height: 1.4;
|
||
overflow-y: auto;
|
||
transition: max-height 150ms ease;
|
||
}
|
||
.mjr-ws-text-wrapper {
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 2px;
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.mjr-ws-text-wrapper .mjr-ws-textarea {
|
||
width: 100%;
|
||
}
|
||
.mjr-ws-expand-btn {
|
||
align-self: flex-end;
|
||
background: none;
|
||
border: none;
|
||
color: var(--mjr-accent, #5fb3ff);
|
||
font-size: 10px;
|
||
cursor: pointer;
|
||
padding: 0 4px;
|
||
opacity: 0.8;
|
||
}
|
||
.mjr-ws-expand-btn:hover {
|
||
opacity: 1;
|
||
text-decoration: underline;
|
||
}
|
||
.mjr-ws-readonly {
|
||
opacity: 0.5;
|
||
cursor: default;
|
||
}
|
||
.mjr-ws-checkbox {
|
||
accent-color: var(--mjr-accent, #5fb3ff);
|
||
width: 16px;
|
||
height: 16px;
|
||
margin-top: 4px;
|
||
}
|
||
.mjr-ws-toggle-label {
|
||
display: flex;
|
||
align-items: center;
|
||
}
|
||
|
||
/* ── Locate button inside node header ─────────────────────────────────── */
|
||
.mjr-ws-locate {
|
||
width: 24px !important;
|
||
height: 24px !important;
|
||
border: none !important;
|
||
background: transparent !important;
|
||
opacity: 0.5;
|
||
}
|
||
.mjr-ws-locate:hover {
|
||
opacity: 1;
|
||
}
|
||
|
||
/* ── Run button state ─────────────────────────────────────────────────── */
|
||
.mjr-mfv-run-controls {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 4px;
|
||
}
|
||
.mjr-mfv-run-btn .pi { color: var(--mjr-status-success, #4CAF50); }
|
||
.mjr-mfv-run-btn.running .pi { color: var(--mjr-muted, rgba(255, 255, 255, 0.65)); }
|
||
.mjr-mfv-run-btn.stopping .pi { color: var(--mjr-status-warning, #FFA726); }
|
||
.mjr-mfv-run-btn.error .pi { color: #f44336; }
|
||
|
||
.mjr-mfv-stop-btn .pi { color: #ef5350; }
|
||
.mjr-mfv-stop-btn.active .pi { color: #ff8a65; }
|
||
.mjr-mfv-stop-btn.stopping .pi { color: var(--mjr-status-warning, #FFA726); }
|
||
|
||
/* ── Floating Viewer simple video player ─────────────────────────────── */
|
||
.mjr-mfv-simple-player {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-mfv-simple-player.is-audio {
|
||
background: radial-gradient(circle at 20% 20%, rgba(95, 179, 255, 0.2), rgba(18, 20, 28, 0.95));
|
||
}
|
||
|
||
.mjr-mfv-simple-player-audio-backdrop {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
font-size: 13px;
|
||
font-weight: 600;
|
||
letter-spacing: 0.2px;
|
||
text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
|
||
pointer-events: none;
|
||
padding: 18px;
|
||
text-align: center;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-controls {
|
||
position: absolute;
|
||
left: 12px;
|
||
right: 12px;
|
||
bottom: 12px;
|
||
z-index: 30;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 8px;
|
||
padding: 9px 10px;
|
||
border-radius: 14px;
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
background: linear-gradient(to top, rgba(10, 10, 14, 0.76), rgba(16, 16, 24, 0.55));
|
||
backdrop-filter: blur(10px);
|
||
-webkit-backdrop-filter: blur(10px);
|
||
pointer-events: auto;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-row {
|
||
display: inline-flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-seek {
|
||
--mjr-seek-pct: 0%;
|
||
appearance: none;
|
||
-webkit-appearance: none;
|
||
width: 100%;
|
||
height: 6px;
|
||
border-radius: 999px;
|
||
outline: none;
|
||
border: none;
|
||
background: linear-gradient(
|
||
to right,
|
||
#ff2f52 0%,
|
||
#ff2f52 var(--mjr-seek-pct),
|
||
rgba(255, 255, 255, 0.24) var(--mjr-seek-pct),
|
||
rgba(255, 255, 255, 0.24) 100%
|
||
);
|
||
cursor: pointer;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-seek::-webkit-slider-thumb {
|
||
-webkit-appearance: none;
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255, 255, 255, 0.35);
|
||
background: #ff2f52;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-seek::-moz-range-thumb {
|
||
width: 12px;
|
||
height: 12px;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255, 255, 255, 0.35);
|
||
background: #ff2f52;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-btn {
|
||
width: 30px;
|
||
height: 30px;
|
||
min-width: 30px;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255, 255, 255, 0.22);
|
||
background: rgba(255, 255, 255, 0.08);
|
||
}
|
||
|
||
.mjr-mfv-simple-player-btn .pi {
|
||
font-size: 13px;
|
||
color: rgba(255, 255, 255, 0.95);
|
||
}
|
||
|
||
.mjr-mfv-simple-player-btn.is-disabled,
|
||
.mjr-mfv-simple-player-seek.is-disabled {
|
||
opacity: 0.45;
|
||
cursor: default;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-time {
|
||
margin-left: auto;
|
||
color: rgba(255, 255, 255, 0.92);
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
white-space: nowrap;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
.mjr-mfv-simple-player-frame {
|
||
margin-right: 2px;
|
||
padding: 3px 8px;
|
||
border-radius: 999px;
|
||
border: 1px solid rgba(255, 255, 255, 0.16);
|
||
background: rgba(255, 255, 255, 0.06);
|
||
color: rgba(255, 255, 255, 0.9);
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
white-space: nowrap;
|
||
font-variant-numeric: tabular-nums;
|
||
}
|
||
|
||
/* ── Settings button active state ─────────────────────────────────────── */
|
||
.mjr-mfv-settings-btn.active {
|
||
border-color: color-mix(in srgb, var(--mjr-accent, #5fb3ff) 55%, var(--mjr-border, rgba(255, 255, 255, 0.12)));
|
||
background-color: color-mix(in srgb, var(--mjr-surface-2, #333) 70%, var(--mjr-accent, #5fb3ff) 18%);
|
||
}
|
||
.mjr-mfv-settings-btn.active .pi {
|
||
color: var(--mjr-accent, #5fb3ff);
|
||
}
|
||
|
||
/* ── Close button (red) ──────────────────────────────────────────────── */
|
||
.mjr-mfv .mjr-mfv-close-btn {
|
||
color: #e85050;
|
||
}
|
||
.mjr-mfv .mjr-mfv-close-btn:hover {
|
||
color: #ff6b6b;
|
||
background-color: rgba(232, 80, 80, 0.15);
|
||
}
|
||
|
||
/* ── Empty state ─────────────────────────────────────────────────────── */
|
||
.mjr-mfv-empty {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: rgba(255, 255, 255, 0.25);
|
||
font-size: 11px;
|
||
pointer-events: none;
|
||
text-align: center;
|
||
padding: 12px;
|
||
}
|
||
|
||
/* ── Compare labels ──────────────────────────────────────────────────── */
|
||
.mjr-mfv-label {
|
||
position: absolute;
|
||
top: 8px;
|
||
background: rgba(0, 0, 0, 0.58);
|
||
color: #fff;
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
padding: 2px 7px;
|
||
border-radius: 4px;
|
||
pointer-events: none;
|
||
z-index: 20;
|
||
letter-spacing: 0.4px;
|
||
}
|
||
|
||
.mjr-mfv-label.label-left { left: 8px; }
|
||
.mjr-mfv-label.label-right { right: 8px; }
|
||
|
||
/* ── AB divider ──────────────────────────────────────────────────────── */
|
||
.mjr-mfv-ab-divider {
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 0.5px;
|
||
cursor: col-resize;
|
||
z-index: 10;
|
||
transform: translateX(-50%);
|
||
background: rgba(255, 255, 255, 0.88);
|
||
box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.4);
|
||
transition: background 100ms ease;
|
||
}
|
||
|
||
.mjr-mfv-ab-divider::before {
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 50%;
|
||
width: 12px;
|
||
transform: translateX(-50%);
|
||
}
|
||
|
||
.mjr-mfv-ab-divider:hover,
|
||
.mjr-mfv-ab-divider:active {
|
||
background: var(--mjr-accent, #5fb3ff);
|
||
}
|
||
|
||
/* ══════════════════════════════════════════════════════════════════════════
|
||
MFV Geometry & Layout Classes (replaces inline styles in FloatingViewer.js)
|
||
══════════════════════════════════════════════════════════════════════════ */
|
||
|
||
/* Main MFV container geometry */
|
||
.mjr-mfv {
|
||
position: fixed;
|
||
top: var(--mjr-mfv-top-offset, 60px);
|
||
right: 20px;
|
||
width: 480px;
|
||
height: 380px;
|
||
min-width: 220px;
|
||
min-height: 160px;
|
||
/* Always flex; visibility + opacity control show/hide so CSS transitions work.
|
||
pointer-events:none while hidden prevents accidental interaction. */
|
||
display: flex;
|
||
flex-direction: column;
|
||
resize: both;
|
||
overflow: hidden;
|
||
z-index: 10000;
|
||
/* Hidden state */
|
||
opacity: 0;
|
||
visibility: hidden;
|
||
pointer-events: none;
|
||
transform: translateY(-6px) scale(0.98);
|
||
transform-origin: top right;
|
||
transition: opacity 0.18s ease-out,
|
||
transform 0.18s ease-out,
|
||
visibility 0s linear 0.18s;
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--resizing {
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-mfv.is-visible {
|
||
opacity: 1;
|
||
visibility: visible;
|
||
pointer-events: auto;
|
||
transform: translateY(0) scale(1);
|
||
transition: opacity 0.18s ease-out,
|
||
transform 0.18s ease-out,
|
||
visibility 0s linear 0s;
|
||
}
|
||
|
||
|
||
/* Media elements (img/video) sizing variants */
|
||
.mjr-mfv-media {
|
||
display: block;
|
||
width: 100%;
|
||
height: 100%;
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
object-fit: contain;
|
||
object-position: center;
|
||
}
|
||
|
||
.mjr-mfv-media--fit-height {
|
||
width: 100%;
|
||
height: 100%;
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
object-fit: contain;
|
||
object-position: center;
|
||
}
|
||
|
||
.mjr-mfv-media--fill {
|
||
width: 100%;
|
||
height: 100%;
|
||
max-width: 100%;
|
||
max-height: 100%;
|
||
object-fit: contain;
|
||
object-position: center;
|
||
display: block;
|
||
}
|
||
|
||
/* Audio card inside MFV */
|
||
.mjr-mfv-audio-card {
|
||
width: min(92%, 560px);
|
||
max-width: 100%;
|
||
display: flex;
|
||
flex-direction: column;
|
||
gap: 10px;
|
||
padding: 12px;
|
||
border-radius: 10px;
|
||
border: 1px solid rgba(255, 255, 255, 0.18);
|
||
background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
|
||
box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
|
||
}
|
||
|
||
.mjr-mfv-audio-head {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-mfv-audio-icon {
|
||
color: var(--mjr-badge-audio, #FF9800);
|
||
opacity: 0.95;
|
||
}
|
||
|
||
.mjr-mfv-audio-title {
|
||
min-width: 0;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
white-space: nowrap;
|
||
font-size: 12px;
|
||
color: rgba(255, 255, 255, 0.9);
|
||
}
|
||
|
||
.mjr-mfv-audio-player {
|
||
width: 100%;
|
||
}
|
||
|
||
.mjr-mfv-side-panel .mjr-mfv-audio-card,
|
||
.mjr-mfv-ab-layer .mjr-mfv-audio-card,
|
||
.mjr-mfv-grid-cell .mjr-mfv-audio-card {
|
||
width: calc(100% - 20px);
|
||
}
|
||
|
||
/* Video element specific styles */
|
||
.mjr-mfv-media-video {
|
||
/* Inherits from .mjr-mfv-media or .mjr-mfv-media--fill */
|
||
}
|
||
|
||
/* Gen info overlay — all modes share base layout */
|
||
.mjr-mfv-geninfo,
|
||
.mjr-mfv-geninfo-a,
|
||
.mjr-mfv-geninfo-b {
|
||
position: absolute;
|
||
left: 8px;
|
||
right: 8px;
|
||
bottom: 8px;
|
||
background: rgba(0, 0, 0, 0.65);
|
||
color: #fff;
|
||
padding: 8px 10px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
max-height: 40%;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
overscroll-behavior-y: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
word-break: break-word;
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||
}
|
||
|
||
/* Keep Gen Info above custom simple-player controls when present. */
|
||
.mjr-mfv-geninfo.mjr-mfv-geninfo--above-player,
|
||
.mjr-mfv-geninfo-a.mjr-mfv-geninfo--above-player,
|
||
.mjr-mfv-geninfo-b.mjr-mfv-geninfo--above-player {
|
||
top: 8px;
|
||
bottom: auto;
|
||
max-height: min(45%, calc(100% - 124px));
|
||
}
|
||
|
||
/* Fallback: when simple-player is immediately followed by a geninfo overlay,
|
||
move it up even if the modifier class was not attached. */
|
||
.mjr-mfv-simple-player + .mjr-mfv-geninfo,
|
||
.mjr-mfv-simple-player + .mjr-mfv-geninfo-a,
|
||
.mjr-mfv-simple-player + .mjr-mfv-geninfo-b {
|
||
top: 8px;
|
||
bottom: auto;
|
||
max-height: min(45%, calc(100% - 124px));
|
||
}
|
||
|
||
/* AB mode overlays are attached at container level; shift them when AB layers use simple-player. */
|
||
.mjr-mfv-ab-container:has(.mjr-mfv-ab-layer .mjr-mfv-simple-player) .mjr-mfv-geninfo-a,
|
||
.mjr-mfv-ab-container:has(.mjr-mfv-ab-layer .mjr-mfv-simple-player) .mjr-mfv-geninfo-b {
|
||
top: 8px;
|
||
bottom: auto;
|
||
max-height: min(45%, calc(100% - 124px));
|
||
}
|
||
|
||
/* Shared style for all gen info overlay variants */
|
||
.mjr-mfv-geninfo strong,
|
||
.mjr-mfv-geninfo-a strong,
|
||
.mjr-mfv-geninfo-b strong {
|
||
font-weight: 600;
|
||
margin-right: 4px;
|
||
color: rgba(255, 255, 255, 0.95); /* default — overridden per field below */
|
||
}
|
||
|
||
/* Per-field label colors */
|
||
.mjr-mfv-geninfo [data-field="prompt"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="prompt"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="prompt"] strong { color: #7ec8ff; } /* blue — Prompt */
|
||
|
||
.mjr-mfv-geninfo [data-field="seed"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="seed"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="seed"] strong { color: #ffd47a; } /* amber — Seed */
|
||
|
||
.mjr-mfv-geninfo [data-field="model"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="model"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="model"] strong { color: #7dda8a; } /* green — Model */
|
||
|
||
.mjr-mfv-geninfo [data-field="lora"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="lora"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="lora"] strong { color: #d48cff; } /* violet — LoRA */
|
||
|
||
.mjr-mfv-geninfo [data-field="sampler"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="sampler"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="sampler"] strong { color: #ff9f7a; } /* orange — Sampler */
|
||
|
||
.mjr-mfv-geninfo [data-field="scheduler"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="scheduler"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="scheduler"] strong { color: #ff7a9f; } /* pink — Scheduler */
|
||
|
||
.mjr-mfv-geninfo [data-field="cfg"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="cfg"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="cfg"] strong { color: #7a9fff; } /* indigo — CFG */
|
||
|
||
.mjr-mfv-geninfo [data-field="step"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="step"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="step"] strong { color: #7affd4; } /* teal — Step */
|
||
|
||
.mjr-mfv-geninfo [data-field="genTime"] strong,
|
||
.mjr-mfv-geninfo-a [data-field="genTime"] strong,
|
||
.mjr-mfv-geninfo-b [data-field="genTime"] strong { color: #e0ff7a; } /* lime — Gen Time */
|
||
|
||
.mjr-mfv-geninfo div,
|
||
.mjr-mfv-geninfo-a div,
|
||
.mjr-mfv-geninfo-b div {
|
||
line-height: 1.35;
|
||
margin-bottom: 3px;
|
||
}
|
||
|
||
.mjr-mfv-geninfo div:last-child,
|
||
.mjr-mfv-geninfo-a div:last-child,
|
||
.mjr-mfv-geninfo-b div:last-child {
|
||
margin-bottom: 0;
|
||
}
|
||
|
||
|
||
/* Simple mode container */
|
||
.mjr-mfv-simple-container {
|
||
width: 100%;
|
||
height: 100%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
position: relative;
|
||
}
|
||
|
||
/* AB mode container */
|
||
.mjr-mfv-ab-container {
|
||
position: relative;
|
||
width: 100%;
|
||
height: 100%;
|
||
overflow: hidden;
|
||
background: #000;
|
||
}
|
||
|
||
/* AB mode layers */
|
||
.mjr-mfv-ab-layer {
|
||
position: absolute;
|
||
inset: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
}
|
||
|
||
.mjr-mfv-ab-layer--b {
|
||
/* clip-path applied inline for dynamic divider position */
|
||
}
|
||
|
||
/* Side-by-side mode container */
|
||
.mjr-mfv-side-container {
|
||
display: flex;
|
||
width: 100%;
|
||
height: 100%;
|
||
gap: 2px;
|
||
background: #111;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Side-by-side half panels */
|
||
.mjr-mfv-side-panel {
|
||
flex: 1;
|
||
min-width: 0;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
position: relative;
|
||
background: #0d0d0d;
|
||
}
|
||
|
||
/* Grid compare (2×2) container */
|
||
.mjr-mfv-grid-container {
|
||
display: grid;
|
||
grid-template-columns: 1fr 1fr;
|
||
grid-template-rows: 1fr 1fr;
|
||
width: 100%;
|
||
height: 100%;
|
||
gap: 2px;
|
||
background: #111;
|
||
overflow: hidden;
|
||
}
|
||
|
||
/* Grid cells */
|
||
.mjr-mfv-grid-cell {
|
||
position: relative;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
overflow: hidden;
|
||
background: #0d0d0d;
|
||
min-width: 0;
|
||
min-height: 0;
|
||
}
|
||
|
||
/* Gen info overlays for grid cells C and D */
|
||
.mjr-mfv-geninfo-c,
|
||
.mjr-mfv-geninfo-d {
|
||
position: absolute;
|
||
left: 8px;
|
||
right: 8px;
|
||
bottom: 8px;
|
||
background: rgba(0, 0, 0, 0.65);
|
||
color: #fff;
|
||
padding: 8px 10px;
|
||
border-radius: 6px;
|
||
font-size: 11px;
|
||
max-height: 40%;
|
||
overflow-y: auto;
|
||
overflow-x: hidden;
|
||
overscroll-behavior-y: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
word-break: break-word;
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
|
||
}
|
||
|
||
.mjr-mfv-geninfo-c strong,
|
||
.mjr-mfv-geninfo-d strong {
|
||
font-weight: 600;
|
||
margin-right: 4px;
|
||
color: rgba(255, 255, 255, 0.95);
|
||
}
|
||
|
||
/* Per-field label colors for C/D gen info overlays */
|
||
.mjr-mfv-geninfo-c [data-field="prompt"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="prompt"] strong { color: #7ec8ff; }
|
||
.mjr-mfv-geninfo-c [data-field="seed"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="seed"] strong { color: #ffd47a; }
|
||
.mjr-mfv-geninfo-c [data-field="model"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="model"] strong { color: #7dda8a; }
|
||
.mjr-mfv-geninfo-c [data-field="lora"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="lora"] strong { color: #d48cff; }
|
||
.mjr-mfv-geninfo-c [data-field="sampler"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="sampler"] strong { color: #ff9f7a; }
|
||
.mjr-mfv-geninfo-c [data-field="scheduler"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="scheduler"] strong { color: #ff7a9f; }
|
||
.mjr-mfv-geninfo-c [data-field="cfg"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="cfg"] strong { color: #7a9fff; }
|
||
.mjr-mfv-geninfo-c [data-field="step"] strong,
|
||
.mjr-mfv-geninfo-d [data-field="step"] strong { color: #7affd4; }
|
||
|
||
/* Gen info active state — button glows when at least one field is selected */
|
||
.mjr-mfv .mjr-icon-btn.is-on {
|
||
border-color: rgba(var(--mjr-group-accent, 95, 179, 255), 0.55);
|
||
color: var(--mjr-accent, #5fb3ff);
|
||
background: color-mix(in srgb, var(--mjr-surface-2, #333) 80%, var(--mjr-accent, #5fb3ff) 15%);
|
||
box-shadow: 0 0 0 1px color-mix(in srgb, var(--mjr-accent, #5fb3ff) 25%, transparent);
|
||
}
|
||
|
||
.mjr-mfv .mjr-icon-btn.is-open {
|
||
border-color: color-mix(in srgb, var(--mjr-accent, #5fb3ff) 62%, #ffffff 12%);
|
||
color: #eef7ff;
|
||
background: linear-gradient(180deg, rgba(95, 179, 255, 0.28), rgba(95, 179, 255, 0.14));
|
||
box-shadow:
|
||
inset 0 0 0 1px rgba(255,255,255,0.08),
|
||
0 0 0 1px color-mix(in srgb, var(--mjr-accent, #5fb3ff) 26%, transparent);
|
||
}
|
||
|
||
.mjr-mfv.mjr-mfv--popped .mjr-icon-btn.is-open {
|
||
color: #ffffff !important;
|
||
}
|
||
|
||
/* Gen info dropdown panel */
|
||
.mjr-mfv-gen-dropdown {
|
||
position: absolute;
|
||
z-index: 10001;
|
||
background: color-mix(in srgb, var(--mjr-surface-1, #2a2a2a) 96%, transparent);
|
||
color: var(--content-fg, #ddd);
|
||
padding: 6px 4px;
|
||
border-radius: 8px;
|
||
border: 1px solid rgba(196, 202, 210, 0.18);
|
||
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55), 0 2px 6px rgba(0, 0, 0, 0.3);
|
||
display: none;
|
||
min-width: 150px;
|
||
backdrop-filter: blur(8px);
|
||
-webkit-backdrop-filter: blur(8px);
|
||
}
|
||
|
||
.mjr-mfv-gen-dropdown::before {
|
||
content: "GEN INFO";
|
||
display: block;
|
||
font-size: 9px;
|
||
font-weight: 700;
|
||
letter-spacing: 0.8px;
|
||
color: rgba(255, 255, 255, 0.35);
|
||
padding: 2px 10px 6px;
|
||
border-bottom: 1px solid rgba(196, 202, 210, 0.1);
|
||
margin-bottom: 4px;
|
||
}
|
||
|
||
.mjr-mfv-gen-dropdown.is-visible {
|
||
display: block;
|
||
}
|
||
|
||
.mjr-mfv-gen-dropdown-row {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
font-size: 12px;
|
||
padding: 5px 10px;
|
||
border-radius: 5px;
|
||
cursor: pointer;
|
||
transition: background 100ms ease;
|
||
user-select: none;
|
||
}
|
||
|
||
.mjr-mfv-gen-dropdown-row:hover {
|
||
background: rgba(255, 255, 255, 0.07);
|
||
}
|
||
|
||
.mjr-mfv-gen-dropdown-row input[type="checkbox"] {
|
||
width: 13px;
|
||
height: 13px;
|
||
accent-color: var(--mjr-accent, #5fb3ff);
|
||
cursor: pointer;
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
/* Transform for pan/zoom - applied inline for dynamic values */
|
||
.mjr-mfv-media--transform {
|
||
transform-origin: center;
|
||
}
|
||
|
||
/* Cursor feedback for pan/zoom interactions */
|
||
.mjr-mfv-content--grab {
|
||
cursor: grab;
|
||
}
|
||
|
||
.mjr-mfv-content--grabbing {
|
||
cursor: grabbing;
|
||
}
|
||
|
||
/* Sidebar tab button: allow 2-line label via \n in label string */
|
||
.majoor-assets-tab-button .side-bar-button-label {
|
||
white-space: pre-line;
|
||
}
|
||
|
||
/* Bottom-panel generated feed: compact cards with only the generation-time pill */
|
||
.mjr-bottom-feed {
|
||
min-height: 0;
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-am-grid-scroll {
|
||
flex: 1 1 auto;
|
||
min-height: 0;
|
||
height: 100%;
|
||
overflow: auto;
|
||
scrollbar-gutter: stable;
|
||
overscroll-behavior-y: contain;
|
||
-webkit-overflow-scrolling: touch;
|
||
touch-action: pan-y;
|
||
scroll-behavior: smooth;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: color-mix(in srgb, var(--mjr-surface-2, #2f3540) 70%, #7f8ea3 30%) color-mix(in srgb, var(--mjr-surface-0, #16191f) 88%, #000 12%);
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-am-grid-scroll::-webkit-scrollbar,
|
||
.mjr-feed-group-popover-grid::-webkit-scrollbar {
|
||
width: 10px;
|
||
height: 10px;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-am-grid-scroll::-webkit-scrollbar-thumb,
|
||
.mjr-feed-group-popover-grid::-webkit-scrollbar-thumb {
|
||
background: color-mix(in srgb, var(--mjr-surface-2, #2f3540) 70%, #7f8ea3 30%);
|
||
border-radius: 999px;
|
||
border: 2px solid transparent;
|
||
background-clip: padding-box;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-am-grid-scroll::-webkit-scrollbar-track,
|
||
.mjr-feed-group-popover-grid::-webkit-scrollbar-track {
|
||
background: color-mix(in srgb, var(--mjr-surface-0, #16191f) 88%, #000 12%);
|
||
border-radius: 999px;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-grid {
|
||
gap: 6px !important;
|
||
margin-top: 0 !important;
|
||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 132px), 1fr)) !important;
|
||
min-height: 0;
|
||
height: auto;
|
||
align-content: start;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-card,
|
||
.mjr-bottom-feed .mjr-asset-card {
|
||
border-radius: 12px !important;
|
||
overflow: hidden;
|
||
background: color-mix(in srgb, var(--mjr-surface-1) 92%, #000 8%) !important;
|
||
box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22) !important;
|
||
transform: none !important;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-card:hover,
|
||
.mjr-bottom-feed .mjr-asset-card:hover {
|
||
transform: translateY(-1px) !important;
|
||
box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28) !important;
|
||
|
||
.mjr-bottom-feed .mjr-asset-card.is-selected {
|
||
box-shadow:
|
||
0 0 0 3px color-mix(in srgb, var(--mjr-card-selection-color) 80%, var(--content-fg)),
|
||
0 0 0 6px color-mix(in srgb, var(--mjr-card-selection-color) 30%, transparent),
|
||
0 0 20px color-mix(in srgb, var(--mjr-card-selection-color) 40%, transparent),
|
||
0 10px 28px rgba(0,0,0,0.28) !important;
|
||
outline: 2px solid var(--mjr-card-selection-color) !important;
|
||
overflow: visible !important;
|
||
}
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"],
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] {
|
||
overflow: visible !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb {
|
||
overflow: visible !important;
|
||
isolation: isolate;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::before,
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::after,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::before,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
border-radius: inherit;
|
||
pointer-events: none;
|
||
z-index: -1;
|
||
transition: transform 140ms ease, opacity 140ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::before,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::before {
|
||
transform: translate(5px, 5px) scale(0.985);
|
||
background:
|
||
linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)),
|
||
color-mix(in srgb, var(--mjr-surface-1, #20242b) 84%, #000 16%);
|
||
border: 1px solid rgba(255, 255, 255, 0.08);
|
||
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::after,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-thumb::after {
|
||
transform: translate(10px, 10px) scale(0.97);
|
||
background:
|
||
linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
|
||
color-mix(in srgb, var(--mjr-surface-0, #16191f) 82%, #000 18%);
|
||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||
box-shadow: 0 12px 22px rgba(0, 0, 0, 0.14);
|
||
opacity: 0.75;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]:hover .mjr-thumb::before,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"]:hover .mjr-thumb::before {
|
||
transform: translate(6px, 6px) scale(0.985);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]:hover .mjr-thumb::after,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"]:hover .mjr-thumb::after {
|
||
transform: translate(12px, 12px) scale(0.97);
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-thumb {
|
||
aspect-ratio: 0.95 / 1 !important;
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 72%, #000 28%) !important;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-thumb-play {
|
||
background: radial-gradient(circle at center, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.04) 38%, transparent 70%);
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-badge-ext,
|
||
.mjr-bottom-feed .mjr-badge-rating,
|
||
.mjr-bottom-feed .mjr-badge-tags {
|
||
transform: scale(0.92);
|
||
transform-origin: top left;
|
||
}
|
||
|
||
/* ── Feed card info: default hidden, toggled via mjr-feed-show-* classes on .mjr-grid ── */
|
||
.mjr-bottom-feed .mjr-card-info {
|
||
display: none !important;
|
||
padding: 4px 6px !important;
|
||
min-width: 0;
|
||
}
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-info .mjr-card-info {
|
||
display: block !important;
|
||
}
|
||
|
||
/* Feed filename */
|
||
.mjr-bottom-feed .mjr-card-filename { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-filename .mjr-card-filename { display: block !important; }
|
||
|
||
/* Feed dimensions / duration */
|
||
.mjr-bottom-feed .mjr-meta-res,
|
||
.mjr-bottom-feed .mjr-meta-duration { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-dimensions .mjr-meta-res,
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-dimensions .mjr-meta-duration { display: inline !important; }
|
||
|
||
/* Feed date/time */
|
||
.mjr-bottom-feed .mjr-meta-date,
|
||
.mjr-bottom-feed .mjr-meta-time-val { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-date .mjr-meta-date,
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-date .mjr-meta-time-val { display: inline !important; }
|
||
|
||
/* Feed generation time badge */
|
||
.mjr-bottom-feed .mjr-meta-gentime { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-gentime .mjr-meta-gentime { display: inline-flex !important; }
|
||
|
||
/* Feed workflow dot */
|
||
.mjr-bottom-feed .mjr-card-dot-wrapper { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-dot .mjr-card-dot-wrapper { display: inline-flex !important; }
|
||
|
||
/* Feed badges */
|
||
.mjr-bottom-feed .mjr-badge-ext { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-badges-ext .mjr-badge-ext { display: flex !important; }
|
||
|
||
.mjr-bottom-feed .mjr-badge-rating { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-badges-rating .mjr-badge-rating { display: flex !important; }
|
||
|
||
.mjr-bottom-feed .mjr-badge-tags { display: none !important; }
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-badges-tags .mjr-badge-tags { display: flex !important; }
|
||
|
||
/* Feed meta row styling — flex layout so visible items stay separated */
|
||
.mjr-bottom-feed .mjr-card-meta-row {
|
||
display: flex !important;
|
||
flex-wrap: nowrap !important;
|
||
align-items: center !important;
|
||
gap: 5px !important;
|
||
overflow: hidden !important;
|
||
min-width: 0 !important;
|
||
padding-right: 0 !important;
|
||
line-height: 1.3 !important;
|
||
opacity: 0.78 !important;
|
||
font-size: 0.8em !important;
|
||
/* text-overflow ellipsis doesn't apply on a flex container itself */
|
||
}
|
||
/* Each meta span truncates individually if too long */
|
||
.mjr-bottom-feed .mjr-card-meta-row > span {
|
||
white-space: nowrap;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
min-width: 0;
|
||
flex-shrink: 1;
|
||
}
|
||
/* Gentime badge and time value should stay visible (don't shrink away) */
|
||
.mjr-bottom-feed .mjr-card-meta-row > .mjr-meta-gentime,
|
||
.mjr-bottom-feed .mjr-card-meta-row > .mjr-meta-time-val {
|
||
flex-shrink: 0;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-grid.mjr-feed-show-gentime .mjr-meta-gentime {
|
||
align-items: center;
|
||
gap: 3px;
|
||
padding: 3px 7px;
|
||
border-radius: 999px;
|
||
background: rgba(10, 14, 20, 0.74);
|
||
border: 1px solid rgba(255, 255, 255, 0.12);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
|
||
font-size: 10px;
|
||
font-weight: 800 !important;
|
||
letter-spacing: 0.015em;
|
||
color: rgba(255, 255, 255, 0.98);
|
||
text-shadow:
|
||
0 1px 2px rgba(0, 0, 0, 0.9),
|
||
0 0 10px rgba(255, 255, 255, 0.16);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
}
|
||
|
||
/* ── Audio / 3D placeholder thumbnails in the feed ───────────────────────── */
|
||
|
||
/* Audio cards show the waveform sprite; give it a distinct background so it
|
||
doesn't look like a broken image placeholder in the feed. */
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-kind="audio"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="mp3"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="wav"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="ogg"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="flac"] .mjr-thumb {
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 60%, #1a1f2b 40%) !important;
|
||
}
|
||
|
||
/* 3D model cards use an icon placeholder — add a subtle gradient so they read
|
||
as intentional rather than missing. */
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-kind="model3d"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="glb"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="gltf"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="obj"] .mjr-thumb,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-ext="fbx"] .mjr-thumb {
|
||
background: color-mix(in srgb, var(--mjr-surface-0) 50%, #0d1117 50%) !important;
|
||
}
|
||
|
||
/* ── Feed group button ────────────────────────────────────────────────────── */
|
||
|
||
.mjr-bottom-feed .mjr-feed-group-button {
|
||
position: absolute;
|
||
top: 34px;
|
||
right: 6px;
|
||
z-index: 11;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
min-width: 28px;
|
||
min-height: 28px;
|
||
padding: 4px 8px;
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
border-radius: 999px;
|
||
background: rgba(10, 14, 20, 0.74);
|
||
color: rgba(255, 255, 255, 0.96);
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
cursor: pointer;
|
||
touch-action: manipulation;
|
||
transition: background 120ms ease, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-bottom-feed .mjr-feed-group-button:hover {
|
||
background: rgba(18, 24, 34, 0.9);
|
||
}
|
||
|
||
.mjr-feed-group-button-icon {
|
||
font-size: 11px;
|
||
opacity: 0.9;
|
||
}
|
||
|
||
.mjr-feed-group-button-count {
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
}
|
||
|
||
/* ── Feed group popover ───────────────────────────────────────────────────── */
|
||
|
||
.mjr-feed-group-popover {
|
||
background: var(--comfy-menu-bg, #222);
|
||
border: 1px solid var(--border-color, #3a3a3a);
|
||
border-radius: var(--mjr-r-lg, 8px);
|
||
box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
|
||
overflow: hidden;
|
||
}
|
||
|
||
.mjr-feed-group-popover-title {
|
||
padding: 8px 10px 4px;
|
||
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
|
||
margin-bottom: 8px;
|
||
}
|
||
|
||
.mjr-feed-group-popover-grid {
|
||
padding: 4px 8px 10px;
|
||
max-height: 360px;
|
||
overflow-y: auto;
|
||
overscroll-behavior: contain;
|
||
scrollbar-gutter: stable;
|
||
scrollbar-width: thin;
|
||
scrollbar-color: color-mix(in srgb, var(--mjr-surface-2, #2f3540) 70%, #7f8ea3 30%) color-mix(in srgb, var(--mjr-surface-0, #16191f) 88%, #000 12%);
|
||
}
|
||
|
||
.mjr-feed-group-button-icon,
|
||
.mjr-feed-group-button-count {
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-feed-group-member-card {
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-feed-group-member-card .mjr-thumb {
|
||
aspect-ratio: 1 / 1 !important;
|
||
}
|
||
|
||
.mjr-feed-group-member-card .mjr-card-info {
|
||
display: none !important;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-stack-group-button {
|
||
position: absolute;
|
||
top: 34px;
|
||
right: 6px;
|
||
z-index: 11;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
min-width: 28px;
|
||
min-height: 28px;
|
||
padding: 4px 8px;
|
||
border: 1px solid rgba(255, 255, 255, 0.14);
|
||
border-radius: 999px;
|
||
background: rgba(10, 14, 20, 0.74);
|
||
color: rgba(255, 255, 255, 0.96);
|
||
line-height: 1;
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.24);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
cursor: pointer;
|
||
touch-action: manipulation;
|
||
transform: translateZ(0);
|
||
transition: background 120ms ease, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-stack-group-button:hover {
|
||
background: rgba(18, 24, 34, 0.9);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-stack-group-button > * {
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-filmstrip::-webkit-scrollbar {
|
||
width: 4px;
|
||
height: 4px;
|
||
}
|
||
|
||
.mjr-filmstrip::-webkit-scrollbar-track {
|
||
background: transparent;
|
||
}
|
||
|
||
.mjr-filmstrip::-webkit-scrollbar-thumb {
|
||
border-radius: 999px;
|
||
background: rgba(255, 255, 255, 0.14);
|
||
}
|
||
|
||
.mjr-filmstrip:hover::-webkit-scrollbar-thumb {
|
||
background: rgba(255, 255, 255, 0.22);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-stack-group-button-count {
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
}
|
||
|
||
/* ── Duplicate stack button ──────────────────────────────────────────────── */
|
||
/* Shows on the primary card when same-filename duplicates exist. */
|
||
/* Positioned at bottom-right to not overlap the stack-group button (top-right). */
|
||
.mjr-assets-manager .mjr-dup-stack-button {
|
||
position: absolute;
|
||
bottom: 30px;
|
||
right: 6px;
|
||
z-index: 11;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
gap: 4px;
|
||
min-width: 28px;
|
||
min-height: 28px;
|
||
padding: 4px 8px;
|
||
border: 1px solid rgba(255, 180, 0, 0.38);
|
||
border-radius: 999px;
|
||
background: rgba(30, 18, 0, 0.82);
|
||
color: rgba(255, 200, 60, 0.96);
|
||
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.32);
|
||
backdrop-filter: blur(6px);
|
||
-webkit-backdrop-filter: blur(6px);
|
||
cursor: pointer;
|
||
font-size: 11px;
|
||
line-height: 1;
|
||
touch-action: manipulation;
|
||
transform: translateZ(0);
|
||
transition: background 0.15s, transform 80ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-dup-stack-button:hover {
|
||
background: rgba(50, 30, 0, 0.94);
|
||
border-color: rgba(255, 180, 0, 0.6);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-dup-stack-button > * {
|
||
pointer-events: none;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-dup-stack-count {
|
||
font-size: 10px;
|
||
font-weight: 700;
|
||
line-height: 1;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-dup-stacked="true"] .mjr-dup-stack-button {
|
||
box-shadow:
|
||
0 2px 8px rgba(0, 0, 0, 0.32),
|
||
0 0 0 1px rgba(255, 180, 0, 0.2);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] .mjr-stack-group-button,
|
||
.mjr-bottom-feed .mjr-asset-card[data-mjr-stacked="true"] .mjr-feed-group-button {
|
||
box-shadow:
|
||
0 2px 8px rgba(0, 0, 0, 0.24),
|
||
0 0 0 1px rgba(255, 255, 255, 0.04);
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]:hover,
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-dup-stacked="true"]:hover {
|
||
transform: none !important;
|
||
}
|
||
|
||
/* ── Visual stacking effect — layered cards behind the main card ──────────── */
|
||
/* Creates pseudo-element "cards" offset behind the primary card to visually */
|
||
/* communicate that this card represents a group of multiple images. */
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"] {
|
||
position: relative;
|
||
z-index: 1;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]::before,
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]::after {
|
||
content: "";
|
||
position: absolute;
|
||
inset: 0;
|
||
border-radius: inherit;
|
||
background: var(--comfy-menu-bg, #1a1a2e);
|
||
border: 1px solid rgba(255, 255, 255, 0.06);
|
||
pointer-events: none;
|
||
z-index: -1;
|
||
transition: transform 180ms ease, opacity 180ms ease;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]::before {
|
||
transform: translate(3px, 3px) rotate(1deg);
|
||
opacity: 0.45;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]::after {
|
||
transform: translate(6px, 6px) rotate(2.2deg);
|
||
opacity: 0.25;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]:hover::before {
|
||
transform: translate(4px, 4px) rotate(1.5deg);
|
||
opacity: 0.55;
|
||
}
|
||
|
||
.mjr-assets-manager .mjr-asset-card[data-mjr-stacked="true"]:hover::after {
|
||
transform: translate(8px, 8px) rotate(3deg);
|
||
opacity: 0.35;
|
||
}
|
||
|
||
.mjr-stack-group-popover {
|
||
width: min(440px, 92vw);
|
||
}
|
||
|
||
.mjr-stack-group-member-card {
|
||
min-width: 0;
|
||
}
|
||
|
||
.mjr-stack-group-member-card .mjr-thumb {
|
||
aspect-ratio: 1 / 1 !important;
|
||
}
|
||
|
||
.mjr-stack-group-member-card .mjr-card-info {
|
||
display: none !important;
|
||
}
|
||
|
||
/* ============================================================
|
||
* Light mode overrides (ComfyUI v1.42+ improved light theme)
|
||
* Uses ComfyUI data-theme attribute when set, with
|
||
* prefers-color-scheme as a fallback for older versions.
|
||
* ============================================================ */
|
||
|
||
/* ComfyUI sets data-theme="light" on <html> or <body> */
|
||
:is([data-theme="light"], [data-color-scheme="light"]) .mjr-assets-manager,
|
||
:is([data-theme="light"], [data-color-scheme="light"]) .mjr-popover {
|
||
--mjr-surface-0: var(--interface-panel-surface, #f0f0f0);
|
||
--mjr-surface-1: var(--interface-menu-surface, #fafafa);
|
||
--mjr-surface-2: var(--interface-panel-hover-surface, #e8e8e8);
|
||
--mjr-surface-3: var(--modal-card-background, #ffffff);
|
||
--mjr-border: var(--border-default, rgba(0, 0, 0, 0.14));
|
||
--mjr-muted: var(--muted-foreground, rgba(0, 0, 0, 0.55));
|
||
--mjr-card-hover-color: var(--interface-panel-hover-surface, #e0e0e0);
|
||
}
|
||
|
||
@media (prefers-color-scheme: light) {
|
||
/* Fallback: only apply if ComfyUI hasn't set an explicit data-theme */
|
||
.mjr-assets-manager:not([data-theme-applied]),
|
||
.mjr-popover:not([data-theme-applied]) {
|
||
--mjr-surface-0: var(--interface-panel-surface, #f0f0f0);
|
||
--mjr-surface-1: var(--interface-menu-surface, #fafafa);
|
||
--mjr-surface-2: var(--interface-panel-hover-surface, #e8e8e8);
|
||
--mjr-surface-3: var(--modal-card-background, #ffffff);
|
||
--mjr-border: var(--border-default, rgba(0, 0, 0, 0.14));
|
||
--mjr-muted: var(--muted-foreground, rgba(0, 0, 0, 0.55));
|
||
--mjr-card-hover-color: var(--interface-panel-hover-surface, #e0e0e0);
|
||
}
|
||
}
|
||
|
||
/* ─── Skeleton loaders ──────────────────────────────────────────────────────── */
|
||
|
||
.mjr-card-skeleton {
|
||
background: var(--mjr-surface-1, #2a2a2a);
|
||
border: 1px solid var(--mjr-border, #3a3a3a);
|
||
border-radius: var(--mjr-r-lg, 8px);
|
||
overflow: hidden;
|
||
position: relative;
|
||
/* Match .mjr-thumb aspect ratio so skeletons have the same footprint as real cards. */
|
||
aspect-ratio: 1 / 1;
|
||
}
|
||
|
||
/* Shimmer sweep */
|
||
.mjr-card-skeleton::after {
|
||
content: '';
|
||
position: absolute;
|
||
inset: 0;
|
||
background: linear-gradient(
|
||
90deg,
|
||
transparent 0%,
|
||
color-mix(in srgb, var(--mjr-surface-2, #3a3a3a) 80%, transparent) 50%,
|
||
transparent 100%
|
||
);
|
||
animation: mjr-shimmer 1.4s ease-in-out infinite;
|
||
transform: translateX(-100%);
|
||
}
|
||
|
||
@keyframes mjr-shimmer {
|
||
from { transform: translateX(-100%); }
|
||
to { transform: translateX(100%); }
|
||
}
|
||
|
||
@media (prefers-reduced-motion: reduce) {
|
||
.mjr-card-skeleton::after { animation: none; }
|
||
}
|
||
|
||
/* ─── Responsive summary bar ────────────────────────────────────────────────── */
|
||
|
||
/*
|
||
* Enable container queries on the summary bar so children can respond to its
|
||
* actual rendered width (e.g. when the panel is docked in a narrow sidebar).
|
||
*/
|
||
.mjr-assets-manager .mjr-am-summary {
|
||
container-type: inline-size;
|
||
container-name: mjr-summary-bar;
|
||
}
|
||
|
||
/* Below ~380 px: hide the pills/right section to prevent overflow. */
|
||
@container mjr-summary-bar (max-width: 380px) {
|
||
.mjr-assets-manager .mjr-am-summary-right {
|
||
display: none;
|
||
}
|
||
.mjr-assets-manager .mjr-am-summary-text {
|
||
max-width: 100%;
|
||
}
|
||
}
|