Files
gregowahoo-comfyui-navigator/web/styles.css
T
Greg c60c42e7c0 v0.1.0: redesign as floating muter mirror
Each row in the panel is now a real two-way toggle wired to the
corresponding widget on rgthree's Fast Groups Muter. Click the checkbox
in the panel → muter widget flips. Toggle the muter widget directly on
the canvas → panel checkbox catches up on the next poll (600ms). Save +
load works because all state still lives in rgthree.

Per row layout:
  [checkbox] [color dot] Group Name [shortcut N] [→ jump] [⋯ menu]

Click body of row = jump. Explicit → button = same jump (visible
affordance). ⋯ opens the same context menu as right-click. Groups with
no managing muter render a dashed placeholder where the checkbox would
be (visual signal: "this group is unmanaged").

Kept: drag-to-reposition, collapse, search, matchColors filter (only
groups in the primary muter render), keyboard 1-9 = jump, version
marker, all rgthree integration (single-muter Solo, all-muter Reset).

Bumped to v0.1.0 since the row contract changed.
2026-05-24 12:14:41 -05:00

157 lines
3.2 KiB
CSS

.cnv-panel {
position: fixed;
top: 80px;
right: 12px;
width: 240px;
max-height: calc(100vh - 120px);
display: flex;
flex-direction: column;
background: rgba(15, 23, 42, 0.94);
border: 1px solid #3b82f6;
border-radius: 10px;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
font: 12px/1.3 ui-sans-serif, system-ui, sans-serif;
color: #e5e7eb;
user-select: none;
z-index: 1000;
overflow: hidden;
}
.cnv-panel--dragging { opacity: 0.85; }
.cnv-panel--dragging * { cursor: grabbing !important; }
.cnv-panel__header {
display: flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
background: rgba(30, 41, 59, 0.95);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
cursor: grab;
font-weight: 600;
letter-spacing: 0.05em;
color: #60a5fa;
text-transform: uppercase;
font-size: 10px;
}
.cnv-panel__header-grip { opacity: 0.6; }
.cnv-panel__header-title { flex: 1; }
.cnv-panel__header-count {
background: rgba(96, 165, 250, 0.18);
color: #93c5fd;
border-radius: 999px;
padding: 1px 7px;
font-size: 10px;
}
.cnv-panel__header-collapse {
background: transparent;
border: none;
color: #94a3b8;
cursor: pointer;
font-size: 12px;
padding: 0 4px;
border-radius: 4px;
}
.cnv-panel__header-collapse:hover { color: #e5e7eb; background: rgba(255,255,255,0.06); }
.cnv-panel__search-wrap {
padding: 6px 8px;
border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cnv-panel__search {
width: 100%;
box-sizing: border-box;
background: rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 6px;
padding: 5px 8px;
color: #e5e7eb;
font: inherit;
outline: none;
}
.cnv-panel__search:focus { border-color: #60a5fa; }
.cnv-panel__list {
overflow-y: auto;
flex: 1;
padding: 4px;
}
.cnv-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 6px;
border-radius: 6px;
cursor: pointer;
border-left: 3px solid var(--cnv-color, #3b82f6);
}
.cnv-row:hover { background: rgba(255, 255, 255, 0.06); }
.cnv-row--active { background: rgba(96, 165, 250, 0.14); }
.cnv-row__cb {
width: 14px;
height: 14px;
margin: 0;
cursor: pointer;
accent-color: var(--cnv-color, #3b82f6);
flex-shrink: 0;
}
.cnv-row__cb--placeholder {
display: inline-block;
width: 14px;
height: 14px;
border-radius: 3px;
border: 1px dashed rgba(255, 255, 255, 0.15);
background: transparent;
}
.cnv-row__dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: var(--cnv-color, #3b82f6);
flex-shrink: 0;
}
.cnv-row__title {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.cnv-row__shortcut {
font-size: 10px;
color: #64748b;
background: rgba(255, 255, 255, 0.06);
border-radius: 3px;
padding: 1px 5px;
font-family: ui-monospace, monospace;
}
.cnv-row__jump,
.cnv-row__menu {
background: transparent;
border: none;
color: #94a3b8;
cursor: pointer;
padding: 1px 4px;
border-radius: 4px;
font-size: 13px;
line-height: 1;
}
.cnv-row__jump:hover,
.cnv-row__menu:hover {
background: rgba(255, 255, 255, 0.1);
color: #e5e7eb;
}
.cnv-panel--collapsed .cnv-panel__search-wrap,
.cnv-panel--collapsed .cnv-panel__list { display: none; }