diff --git a/app/assets/css/main.css b/app/assets/css/main.css index b6dea74..396f30a 100644 --- a/app/assets/css/main.css +++ b/app/assets/css/main.css @@ -4059,11 +4059,9 @@ table.board { gap: 6px; width: 100%; padding: 9px 14px; - font-size: 11px; - font-weight: 700; - letter-spacing: 0.06em; - text-transform: uppercase; - color: var(--muted); + font-size: 12.5px; + font-weight: 600; + color: rgb(230 237 243 / 0.82); text-align: left; } @@ -4081,7 +4079,10 @@ table.board { } .fold-note { - max-width: 55%; + flex-shrink: 0; + max-width: 45%; + color: var(--muted); + font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; @@ -4666,3 +4667,260 @@ table.board { .table-pane .truth { margin-top: 4px; } + +/* ── Panel heads: segmented tabs on the left, a title on the right ── */ +.panel-head, +.sel-panel-head { + display: flex; + align-items: center; + gap: 6px; + height: 48px; + flex-shrink: 0; + padding: 0 8px 0 10px; + border-bottom: 1px solid var(--border); +} + +.seg-tabs { + display: flex; + flex: 1; + gap: 2px; + padding: 3px; + background: var(--bg); + border: 1px solid var(--border); + border-radius: 9px; +} + +.seg-tabs button { + flex: 1; + display: flex; + align-items: center; + justify-content: center; + gap: 6px; + height: 28px; + border-radius: 6px; + font-size: 12px; + font-weight: 600; + color: var(--muted); +} + +.seg-tabs button:hover { + color: var(--text); +} + +.seg-tabs button.active { + background: var(--panel-2); + color: var(--text); + box-shadow: 0 1px 2px rgb(0 0 0 / 0.3); +} + +.seg-tabs button.task:not(.active) { + color: var(--lamp); +} + +.seg-tabs .badge { + min-width: 18px; + padding: 0 5px; + border-radius: 999px; + background: rgb(76 194 255 / 0.16); + color: var(--accent); + font-family: var(--font-mono); + font-size: 10px; + line-height: 16px; +} + +.seg-tabs .badge.warn { + background: rgb(232 162 58 / 0.18); + color: #e8a23a; +} + +/* ── This: the circuit you are in ───────────────────────────────── */ +.inspector section.this-head { + padding: 14px 14px 16px; +} + +.title-input { + width: calc(100% + 12px); + margin: -4px -6px 0; + padding: 3px 6px; + border: 1px solid transparent; + border-radius: 6px; + background: transparent; + color: var(--text); + font-size: 17px; + font-weight: 700; + letter-spacing: -0.01em; + outline: none; +} + +.title-input:hover { + border-color: var(--border); +} + +.title-input:focus { + border-color: var(--accent); + background: var(--panel-2); +} + +.this-sub { + margin: 2px 0 12px; + font-size: 12px; + color: var(--muted); +} + +.this-sub a { + color: var(--accent); +} + +.health { + display: flex; + align-items: center; + gap: 8px; + padding: 7px 10px; + border-radius: 8px; + font-size: 12.5px; + font-weight: 600; + color: var(--on); + background: rgb(61 220 132 / 0.08); +} + +.health.warn { + color: #e8a23a; + background: rgb(232 162 58 / 0.1); +} + +.health.error { + color: #ff7a7a; + background: rgb(255 122 122 / 0.1); +} + +.health-notes { + display: flex; + align-items: center; + gap: 5px; + font-size: 11.5px; + font-weight: 500; + color: var(--muted); + cursor: pointer; +} + +.this-head .issue-list { + margin-top: 6px; +} + +.tiles { + display: grid; + grid-template-columns: 1fr 1fr; + gap: 6px; + margin-top: 12px; +} + +.tile { + display: flex; + flex-direction: column; + align-items: flex-start; + min-width: 0; + padding: 8px 10px; + border: 1px solid var(--border); + border-radius: 8px; + background: var(--panel-2); + text-align: left; +} + +button.tile:hover { + border-color: rgb(76 194 255 / 0.5); +} + +.tile-label { + font-size: 11px; + color: var(--muted); +} + +.tile-value { + font-size: 17px; + font-weight: 700; + font-variant-numeric: tabular-nums; + line-height: 1.3; +} + +.tile-note { + font-size: 10.5px; + color: var(--muted); +} + +.inspector section.folds { + padding: 0 14px; + border-bottom: 0; +} + +.folds .fold:first-child { + border-top: 0; +} + +.folds .fold:last-of-type { + margin-bottom: 0; + border-bottom: 1px solid var(--border); +} + +.fold-head > .grow { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; +} + +.cost-list li { + display: flex; + align-items: center; + gap: 10px; + margin: 0 -8px; + padding: 5px 8px; + border-radius: 6px; + cursor: pointer; +} + +.cost-list li:hover { + background: var(--panel-2); +} + +.cost-name { + display: flex; + flex: 1; + flex-direction: column; + min-width: 0; + font-size: 12.5px; +} + +.cost-each { + font-size: 11px; + color: var(--muted); + font-variant-numeric: tabular-nums; +} + +.cost-total { + font-size: 12.5px; + font-weight: 700; + font-variant-numeric: tabular-nums; +} + +.cost-list li.cost-sum { + margin-top: 4px; + padding-top: 8px; + border-top: 1px solid var(--border); + border-radius: 0; + cursor: default; +} + +.cost-list li.cost-sum:hover { + background: none; +} + +.unused-list li { + display: flex; + align-items: center; + gap: 6px; + padding: 3px 0; + font-size: 12.5px; +} + +.unused-list a { + color: var(--accent); +} diff --git a/app/components/editor/CircuitPane.vue b/app/components/editor/CircuitPane.vue index 80daf0e..ad85e9d 100644 --- a/app/components/editor/CircuitPane.vue +++ b/app/components/editor/CircuitPane.vue @@ -1,5 +1,7 @@