215 lines
6.2 KiB
CSS
215 lines
6.2 KiB
CSS
/* Cortex-OS Umbrella panel — Plan B brand-aligned (8-property DESIGN.md subset). */
|
|
|
|
:root {
|
|
--bg: #0f1115;
|
|
--bg-2: #15181f;
|
|
--fg: #e7eaf0;
|
|
--fg-dim: #98a0b3;
|
|
--accent: #6ee7b7;
|
|
--accent-2: #fbbf24;
|
|
--warn: #f87171;
|
|
--rounded: 8px;
|
|
--pad: 12px;
|
|
--mono: ui-monospace, "JetBrains Mono", "SF Mono", monospace;
|
|
}
|
|
|
|
.umbrella-root {
|
|
position: fixed; inset: 0;
|
|
background: var(--bg); color: var(--fg);
|
|
display: grid;
|
|
grid-template-rows: auto 1fr auto;
|
|
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
|
|
font-size: 14px;
|
|
z-index: 9999;
|
|
}
|
|
.umbrella-header {
|
|
background: var(--bg-2);
|
|
padding: var(--pad);
|
|
border-bottom: 1px solid #2a2f3a;
|
|
display: grid;
|
|
grid-template-columns: auto 1fr auto;
|
|
gap: var(--pad);
|
|
align-items: center;
|
|
}
|
|
.umbrella-header h1 { margin: 0; font-size: 16px; font-weight: 600; color: var(--accent); }
|
|
.umbrella-stats { font-family: var(--mono); font-size: 12px; color: var(--fg-dim); }
|
|
.umbrella-controls { display: flex; gap: 8px; align-items: center; }
|
|
.umbrella-controls input[type=search] {
|
|
background: var(--bg); color: var(--fg);
|
|
border: 1px solid #2a2f3a; border-radius: var(--rounded);
|
|
padding: 6px 10px; width: 200px; font-size: 13px;
|
|
}
|
|
.umbrella-controls button {
|
|
background: var(--bg); color: var(--fg);
|
|
border: 1px solid #2a2f3a; border-radius: var(--rounded);
|
|
padding: 6px 10px; font-size: 12px; cursor: pointer;
|
|
}
|
|
.umbrella-controls button:hover { border-color: var(--accent); color: var(--accent); }
|
|
.umbrella-controls button.active {
|
|
border-color: var(--accent-2);
|
|
color: var(--accent-2);
|
|
background: rgba(251,191,36,0.08);
|
|
}
|
|
.umbrella-filters {
|
|
grid-column: 1 / -1;
|
|
display: flex; flex-wrap: wrap; gap: 6px;
|
|
}
|
|
.umbrella-disclosure {
|
|
grid-column: 1 / -1;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 6px;
|
|
}
|
|
.chip {
|
|
background: var(--bg); color: var(--fg-dim);
|
|
border: 1px solid #2a2f3a; border-radius: 999px;
|
|
padding: 4px 10px; font-size: 11px; cursor: pointer;
|
|
font-family: var(--mono);
|
|
}
|
|
.chip.active { color: var(--accent); border-color: var(--accent); background: rgba(110,231,183,0.08); }
|
|
.chip.disclosure-chip { border-style: dashed; }
|
|
.chip.disclosure-chip.active { border-style: solid; }
|
|
|
|
.umbrella-canvas { position: relative; display: grid; grid-template-columns: 1fr; overflow: hidden; }
|
|
.umbrella-cy { position: absolute; inset: 0; }
|
|
.umbrella-layer-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
pointer-events: none;
|
|
z-index: 1;
|
|
}
|
|
.umbrella-cy { z-index: 2; }
|
|
.layer-band {
|
|
position: absolute;
|
|
border: 1px solid rgba(231,234,240,0.10);
|
|
border-radius: 8px;
|
|
background: rgba(21,24,31,0.42);
|
|
box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
|
|
}
|
|
.layer-band.collapsed {
|
|
opacity: 0.76;
|
|
}
|
|
.layer-band-label {
|
|
position: absolute;
|
|
left: 12px;
|
|
top: 8px;
|
|
display: flex;
|
|
gap: 8px;
|
|
align-items: baseline;
|
|
font-family: var(--mono);
|
|
color: var(--fg);
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
font-size: 11px;
|
|
background: rgba(15,17,21,0.72);
|
|
border-radius: 4px;
|
|
padding: 2px 6px;
|
|
}
|
|
.layer-band-label .count {
|
|
color: var(--fg-dim);
|
|
font-size: 10px;
|
|
}
|
|
.layer-band.collapsed .layer-band-label .count {
|
|
color: var(--accent-2);
|
|
}
|
|
.umbrella-side {
|
|
position: absolute; top: 0; right: 0; bottom: 0;
|
|
width: 420px; background: var(--bg-2);
|
|
border-left: 1px solid #2a2f3a;
|
|
transform: translateX(100%);
|
|
transition: transform 180ms ease-out;
|
|
overflow: hidden;
|
|
display: flex; flex-direction: column;
|
|
}
|
|
.umbrella-side[data-open="true"] { transform: translateX(0); }
|
|
.umbrella-side .close {
|
|
position: absolute; top: 8px; right: 8px;
|
|
background: transparent; color: var(--fg-dim);
|
|
border: none; cursor: pointer; font-size: 20px; line-height: 1;
|
|
}
|
|
.side-content { padding: var(--pad); overflow-y: auto; height: 100%; }
|
|
.side-content h2 { margin: 0 0 8px; font-size: 16px; color: var(--accent); }
|
|
.side-meta { font-family: var(--mono); font-size: 11px; color: var(--fg-dim); margin-bottom: 12px; }
|
|
.side-meta div { margin-bottom: 2px; }
|
|
.side-meta b { color: var(--fg); }
|
|
.side-body {
|
|
background: var(--bg);
|
|
border-radius: var(--rounded); padding: 10px;
|
|
font-family: var(--mono); font-size: 12px;
|
|
white-space: pre-wrap; word-break: break-word;
|
|
max-height: 50vh; overflow-y: auto;
|
|
border: 1px solid #2a2f3a;
|
|
}
|
|
.side-edges { margin-top: 12px; font-size: 12px; }
|
|
.side-edges h3 { font-size: 12px; color: var(--fg-dim); text-transform: uppercase; margin: 8px 0 4px; font-weight: 500; letter-spacing: 0.05em; }
|
|
.side-edges ul { list-style: none; padding: 0; margin: 0; }
|
|
.side-edges li { padding: 3px 0; font-family: var(--mono); }
|
|
.side-edges li button {
|
|
background: transparent; color: var(--accent);
|
|
border: none; cursor: pointer; font-family: var(--mono); font-size: 12px;
|
|
padding: 0; text-align: left;
|
|
}
|
|
.side-edges li button:hover { text-decoration: underline; }
|
|
.side-edges .etype { color: var(--fg-dim); font-size: 10px; text-transform: uppercase; margin-right: 6px; }
|
|
|
|
.umbrella-footer {
|
|
background: var(--bg-2); padding: 6px var(--pad);
|
|
border-top: 1px solid #2a2f3a;
|
|
font-family: var(--mono); font-size: 11px; color: var(--fg-dim);
|
|
display: flex; justify-content: space-between; align-items: center;
|
|
}
|
|
.umbrella-footer a { color: var(--accent); }
|
|
|
|
body.umbrella-inline {
|
|
margin: 0;
|
|
background: var(--bg);
|
|
}
|
|
body.umbrella-inline .umbrella-root {
|
|
position: fixed;
|
|
inset: 0;
|
|
z-index: 1;
|
|
}
|
|
body.umbrella-inline .umbrella-header {
|
|
padding: 8px;
|
|
grid-template-columns: 1fr;
|
|
gap: 6px;
|
|
}
|
|
body.umbrella-inline .umbrella-header h1 {
|
|
display: none;
|
|
}
|
|
body.umbrella-inline .umbrella-stats {
|
|
font-size: 10px;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
body.umbrella-inline .umbrella-controls {
|
|
flex-wrap: wrap;
|
|
gap: 5px;
|
|
}
|
|
body.umbrella-inline .umbrella-controls input[type=search] {
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
padding: 5px 8px;
|
|
font-size: 12px;
|
|
}
|
|
body.umbrella-inline .umbrella-controls button,
|
|
body.umbrella-inline .chip {
|
|
padding: 4px 7px;
|
|
font-size: 10px;
|
|
}
|
|
body.umbrella-inline .umbrella-filters,
|
|
body.umbrella-inline .umbrella-disclosure {
|
|
max-height: 58px;
|
|
overflow: auto;
|
|
}
|
|
body.umbrella-inline .umbrella-footer {
|
|
display: none;
|
|
}
|
|
body.umbrella-inline .umbrella-side {
|
|
width: 100%;
|
|
}
|
|
body.umbrella-inline .side-body {
|
|
max-height: 38vh;
|
|
}
|