Files
gregowahoo-comfyui-navigator/web/styles.css
T

188 lines
3.9 KiB
CSS

/* comfyui-navigator: panel styled to mirror the rgthree Fast Groups Muter
node's actual visual treatment — dark teal body, blue header bar,
tight rows with "Enable X" + toggle pill + nav arrow. Flat, no fancy
shadows; meant to look like the rgthree node lifted off the canvas. */
.cnv-panel {
position: fixed;
top: 80px;
right: 12px;
width: 290px;
max-height: calc(100vh - 120px);
display: flex;
flex-direction: column;
background: #0e283f; /* rgthree muter body color */
border: 1px solid #000000;
border-radius: 8px;
font: 12px/1.3 ui-sans-serif, system-ui, sans-serif;
color: #e5e7eb;
user-select: none;
z-index: 1000;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}
.cnv-panel--dragging { opacity: 0.92; }
.cnv-panel--dragging * { cursor: grabbing !important; }
/* Header = the muter's title bar */
.cnv-panel__header {
display: flex;
align-items: center;
gap: 6px;
padding: 8px 10px;
background: #1e4f88;
color: #ffffff;
cursor: grab;
font-size: 12px;
font-weight: 500;
text-shadow: 0 1px 0 rgba(0,0,0,0.4);
}
.cnv-panel__header-grip {
opacity: 0.55;
font-size: 11px;
}
.cnv-panel__header-title {
flex: 1;
}
.cnv-panel__header-count {
background: rgba(0, 0, 0, 0.25);
color: #ffffff;
border-radius: 999px;
padding: 1px 8px;
font-size: 10px;
font-weight: 400;
}
.cnv-panel__header-collapse {
background: transparent;
border: none;
color: #ffffff;
cursor: pointer;
font-size: 12px;
padding: 0 4px;
}
.cnv-panel__header-collapse:hover { opacity: 0.7; }
.cnv-panel__search-wrap {
padding: 5px 8px;
background: #0a1e30;
border-bottom: 1px solid #000;
}
.cnv-panel__search {
width: 100%;
box-sizing: border-box;
background: #07172a;
border: 1px solid #000;
border-radius: 3px;
padding: 4px 7px;
color: #cfe3ff;
font: inherit;
outline: none;
}
.cnv-panel__search::placeholder { color: #466a91; }
.cnv-panel__search:focus { border-color: #1e4f88; }
.cnv-panel__list {
overflow-y: auto;
flex: 1;
padding: 0;
}
/* Rows mirror the muter's widget rows */
.cnv-row {
display: flex;
align-items: center;
gap: 6px;
padding: 4px 8px;
background: #0e283f;
border-bottom: 1px solid #000;
cursor: pointer;
min-height: 24px;
}
.cnv-row:hover { background: #163657; }
.cnv-row:last-child { border-bottom: none; }
.cnv-row__dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--cnv-color, #3b82f6);
flex-shrink: 0;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6);
}
.cnv-row__title {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #ffffff;
font-size: 12px;
}
.cnv-row__title-prefix {
color: #6f93bf;
}
.cnv-row__shortcut {
font-size: 10px;
color: #466a91;
font-family: ui-monospace, monospace;
}
/* Toggle = compact pill like rgthree's "no/yes + circle" */
.cnv-toggle {
display: inline-flex;
align-items: center;
gap: 5px;
background: #07172a;
border: 1px solid #000;
border-radius: 999px;
padding: 1px 6px 1px 4px;
cursor: pointer;
font-size: 11px;
color: #cfe3ff;
min-width: 42px;
justify-content: space-between;
flex-shrink: 0;
}
.cnv-toggle__knob {
width: 8px;
height: 8px;
border-radius: 50%;
background: #ffffff;
opacity: 0.4;
}
.cnv-toggle__label { line-height: 1; }
.cnv-toggle--on .cnv-toggle__knob { opacity: 1; background: #ffffff; }
.cnv-toggle--placeholder { opacity: 0.35; cursor: default; border-style: dashed; }
.cnv-row__jump {
background: transparent;
border: none;
color: #6f93bf;
cursor: pointer;
padding: 1px 3px;
font-size: 13px;
line-height: 1;
}
.cnv-row__jump:hover { color: #ffffff; }
.cnv-row__menu {
background: transparent;
border: none;
color: #466a91;
cursor: pointer;
padding: 1px 3px;
font-size: 12px;
line-height: 1;
}
.cnv-row__menu:hover { color: #cfe3ff; }
.cnv-panel--collapsed .cnv-panel__search-wrap,
.cnv-panel--collapsed .cnv-panel__list { display: none; }