Files
road-compiler/workbench/client/src/styles.css
T

945 lines
18 KiB
CSS

:root {
font-family: system-ui, sans-serif;
color: #202523;
background: #eef1ef;
}
* {
box-sizing: border-box;
}
body {
margin: 0;
}
header {
height: 50px;
display: flex;
gap: 12px;
align-items: center;
padding: 0 16px;
background: #183a32;
color: white;
}
header span {
color: #c9d8d2;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dirty {
color: #ffe08a;
font-weight: 700;
}
.scene {
margin-left: auto;
white-space: nowrap;
}
main {
display: grid;
grid-template-columns: 260px minmax(0, 1fr) 320px;
height: calc(100vh - 50px);
}
aside {
overflow: auto;
background: white;
padding: 16px;
}
.issues {
border-right: 1px solid #d5dfda;
}
.inspector {
border-left: 1px solid #d5dfda;
padding: 12px;
}
.map {
min-height: 400px;
background: #d7e2de;
}
.button {
display: inline-flex;
align-items: center;
gap: 5px;
border: 1px solid #82988f;
background: white;
color: #1d392f;
padding: 7px 10px;
border-radius: 3px;
cursor: pointer;
text-decoration: none;
font: inherit;
}
.button:disabled {
opacity: 0.55;
cursor: default;
}
header .button {
white-space: nowrap;
}
.mode-switch {
display: inline-flex;
align-items: center;
gap: 8px;
white-space: nowrap;
font-size: 12px;
}
.mode-switch input[type='checkbox'] {
appearance: none;
width: 34px;
height: 18px;
margin: 0;
border-radius: 999px;
border: 1px solid #9aa6b2;
background: #dfe5eb;
position: relative;
cursor: pointer;
transition:
background 0.15s ease,
border-color 0.15s ease;
}
.mode-switch input[type='checkbox']::after {
content: '';
position: absolute;
width: 14px;
height: 14px;
top: 1px;
left: 1px;
border-radius: 50%;
background: #fff;
box-shadow: 0 1px 2px rgb(0 0 0 / 20%);
transition: transform 0.15s ease;
}
.mode-switch input[type='checkbox']:checked {
background: #2563eb;
border-color: #2563eb;
}
.mode-switch input[type='checkbox']:checked::after {
transform: translateX(16px);
}
h1 {
font-size: 16px;
margin: 0 0 8px;
}
h2 {
font-size: 14px;
margin: 12px 0 8px;
}
label,
output {
display: block;
margin: 10px 0;
}
input[type='number'] {
display: block;
width: 100%;
padding: 7px;
border: 1px solid #aab8b2;
}
dl {
display: grid;
grid-template-columns: 1fr auto;
gap: 5px 10px;
margin: 0;
}
dt {
color: #52615b;
}
dd {
margin: 0;
}
hr {
border: 0;
border-top: 1px solid #dde4e1;
margin: 16px 0;
}
ul {
list-style: none;
padding: 0;
margin: 0;
}
.issues li .button {
width: 100%;
text-align: left;
margin: 4px 0;
background: #fff7e5;
border-color: #e7c67b;
}
.issues input:disabled {
cursor: not-allowed;
}
.issues label:has(input:disabled) {
color: #7b8a83;
}
.overview-details summary {
cursor: pointer;
color: #1d392f;
font-size: 14px;
font-weight: 600;
}
.issues-details summary {
cursor: pointer;
color: #1d392f;
font-size: 14px;
font-weight: 600;
}
.issues-details[open] summary {
margin-bottom: 8px;
}
.issue-tabs {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 3px;
margin-bottom: 8px;
padding: 3px;
background: #edf3f0;
}
.issue-tabs .button {
justify-content: center;
min-height: 30px;
border-color: transparent;
padding: 4px;
color: #52615b;
font-size: 12px;
}
.issue-tabs .button.active {
border-color: #b7cfc4;
background: #fff;
color: #1d392f;
font-weight: 600;
}
.overview-details[open] summary {
margin-bottom: 8px;
}
.segmented {
display: flex;
}
.segmented .button {
flex: 1;
border-radius: 0;
padding: 6px 4px;
}
.segmented .active {
background: #286956;
border-color: #286956;
color: white;
}
pre {
white-space: pre-wrap;
overflow-wrap: anywhere;
color: #52615b;
}
.import-screen {
min-height: 100vh;
display: grid;
place-items: center;
padding: 24px;
}
.import-screen form {
width: min(460px, 100%);
background: white;
padding: 28px;
box-shadow: 0 8px 30px #0003;
}
.import-screen input {
margin: 18px 0;
}
@media (max-width: 900px) {
header {
height: auto;
min-height: 50px;
flex-wrap: wrap;
padding-block: 8px;
}
main {
grid-template-columns: minmax(0, 1fr);
height: calc(100vh - 66px);
}
.issues {
display: none;
}
.inspector {
position: absolute;
right: 0;
bottom: 0;
width: min(360px, 100%);
max-height: 55vh;
border-top: 1px solid #d5dfda;
}
}
.overview-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
}
.overview-grid div,
.overview-status,
.overview-diagnostics {
border: 1px solid #dce5e1;
padding: 7px;
background: #f8fbfa;
}
.overview-grid span,
.overview-status span,
.overview-diagnostics > span {
display: block;
color: #52615b;
font-size: 12px;
}
.overview-grid strong {
display: block;
margin-top: 2px;
font-size: 16px;
font-variant-numeric: tabular-nums;
}
.overview-status {
display: flex;
justify-content: space-between;
margin-top: 8px;
}
.overview-diagnostics {
display: flex;
flex-wrap: wrap;
gap: 6px;
margin-top: 8px;
}
.overview-diagnostics > span {
width: 100%;
}
.overview-diagnostics strong {
background: #fff4dc;
color: #7c5200;
padding: 2px 5px;
font-size: 12px;
}
.parameters {
margin-bottom: 16px;
}
.parameters-heading {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
}
.parameters-heading h1 {
margin: 0;
}
.parameters-pending {
min-width: 78px;
color: #286956;
font-size: 12px;
white-space: nowrap;
}
.parameters-pending.is-idle {
visibility: hidden;
}
.parameters ul {
display: grid;
gap: 6px;
}
.parameter-group {
display: grid;
gap: 6px;
}
.parameter-group__header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
padding: 7px 8px 0;
color: #52615b;
}
.parameter-group__header span {
display: grid;
gap: 2px;
}
.parameter-group__header small {
color: #7b8a83;
font-size: 11px;
}
.parameter-group__toggle {
border: 0;
background: none;
color: #286956;
cursor: pointer;
font-size: 12px;
padding: 3px 0;
text-decoration: underline;
}
.parameter-group__details {
margin: 0 0 0 12px;
padding-left: 8px;
border-left: 2px solid #dce5e1;
}
.parameter {
display: grid;
grid-template-columns: 1fr auto;
gap: 2px 10px;
border: 1px solid #dce5e1;
background: #f8fbfa;
padding: 7px;
}
.parameter-label {
color: #52615b;
font-size: 12px;
}
.parameter-dot {
display: inline-block;
width: 6px;
height: 6px;
margin-left: 5px;
border-radius: 50%;
background: #2f7d5d;
vertical-align: middle;
}
.parameter-value {
font-size: 15px;
font-variant-numeric: tabular-nums;
text-align: right;
}
.parameter-value em {
color: #52615b;
font-size: 12px;
font-style: normal;
}
.parameter-stepper {
display: inline-flex;
gap: 2px;
margin-left: 2px;
}
.parameter-stepper button {
display: inline-grid;
width: 22px;
height: 22px;
place-items: center;
padding: 0;
border: 1px solid #b7c8bf;
border-radius: 3px;
background: #f8fbf9;
color: #286956;
}
.parameter-stepper button:disabled {
opacity: 0.45;
cursor: default;
}
.parameter-range {
grid-column: 1 / -1;
color: #7b8a83;
font-size: 11px;
font-variant-numeric: tabular-nums;
}
.parameter.disabled {
background: #f2f4f3;
}
.parameter--highlighted {
border-color: #d7a23c;
background: #fff8e8;
box-shadow: 0 0 0 2px rgb(215 162 60 / 22%);
animation: parameter-highlight-pulse 1.8s ease-out 1;
}
.parameter--highlighted .parameter-label {
color: #6f5318;
font-weight: 600;
}
.parameter--highlighted .parameter-input {
border-color: #c58b1b;
background: #fffdf7;
}
@keyframes parameter-highlight-pulse {
0% {
box-shadow: 0 0 0 4px rgb(215 162 60 / 35%);
}
100% {
box-shadow: 0 0 0 2px rgb(215 162 60 / 22%);
}
}
.parameter.disabled .parameter-value {
color: #9aa8a1;
}
.parameter.disabled .parameter-range {
color: #8a7a55;
}
.parameter-empty {
color: #7b8a83;
font-size: 12px;
margin: 0;
}
.parameter-input {
width: 76px;
border: 1px solid #aab8b2;
background: white;
padding: 3px 5px;
font: inherit;
font-size: 14px;
font-variant-numeric: tabular-nums;
text-align: right;
}
.parameter-input:focus {
outline: 2px solid #2f7d5d;
outline-offset: -1px;
}
.parameter-input.rejected {
border-color: #c2452f;
background: #fdf3f1;
}
.parameter-input:disabled {
background: #f2f4f3;
color: #9aa8a1;
}
.parameter-range.rejected {
color: #c2452f;
}
.parameter-extreme {
border: 0;
background: none;
padding: 0;
font: inherit;
font-variant-numeric: tabular-nums;
color: #2f7d5d;
text-decoration: underline;
cursor: pointer;
}
.parameter-range.rejected .parameter-extreme {
color: #c2452f;
}
.parameter-reset {
border: 0;
background: none;
padding: 0;
margin-left: 8px;
font: inherit;
font-size: 11px;
color: #7b8a83;
text-decoration: underline;
cursor: pointer;
}
.parameter-reset:hover {
color: #c2452f;
}
.workbench-inspector {
display: grid;
gap: 8px;
}
.inspector-summary {
border: 1px solid #cddbd5;
border-left: 3px solid #286956;
background: #f6faf8;
padding: 9px 10px;
}
.inspector-summary span,
.inspector-summary small {
display: block;
color: #63736c;
font-size: 12px;
}
.inspector-summary strong {
display: block;
margin: 3px 0;
color: #1d392f;
font-size: 14px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.inspector-section {
border: 1px solid #d5dfda;
background: #fff;
}
.inspector-section.open {
border-color: #a9c3b8;
}
.inspector-section-toggle {
display: grid;
grid-template-columns: minmax(0, 1fr) auto 20px;
align-items: center;
width: 100%;
min-height: 40px;
border: 0;
padding: 8px 9px;
background: #f4f8f6;
color: #1d392f;
cursor: pointer;
font: inherit;
text-align: left;
}
.inspector-section.open .inspector-section-toggle {
background: #eaf3ee;
}
.inspector-section-toggle small {
max-width: 120px;
overflow: hidden;
color: #63736c;
font-size: 11px;
text-align: right;
text-overflow: ellipsis;
white-space: nowrap;
}
.inspector-section-chevron {
text-align: right;
transition: transform 120ms ease;
}
.inspector-section-chevron.open {
transform: rotate(180deg);
}
.inspector-section-body {
display: grid;
gap: 12px;
padding: 10px;
}
.inspector-section-body h2 {
margin: 0 0 8px;
}
.inspector-section-body form {
display: grid;
gap: 8px;
}
.inspector-section-body label,
.inspector-section-body output {
margin: 0;
}
.inspector-section-body select,
.inspector-section-body input[type='number'] {
margin-top: 4px;
}
.inspector-section-body input[type='checkbox'] {
accent-color: #286956;
}
.inspector-section-body .button {
justify-content: center;
}
.connections-list {
display: grid;
gap: 7px;
}
.connections-list label {
border-bottom: 1px solid #edf1ef;
padding-bottom: 7px;
}
.connections-list label:last-child {
border-bottom: 0;
padding-bottom: 0;
}
.form-context,
.form-hint {
margin: 0;
color: #63736c;
font-size: 12px;
line-height: 1.45;
}
.form-hint {
color: #7b6542;
}
/* JunctionTools keeps the map visible while the contextual editor stays docked. */
.junction-workspace {
position: fixed;
top: 3.5rem;
right: 1rem;
bottom: 1rem;
width: min(430px, calc(100vw - 2rem));
z-index: 20;
overflow: auto;
background: var(--panel, #fff);
border: 1px solid #cbd5e1;
border-radius: 10px;
box-shadow: 0 14px 40px rgb(15 23 42 / 20%);
padding: 1rem 1.25rem;
}
.junction-page {
min-height: 100vh;
}
.junction-page > header {
display: none;
}
.junction-page > main {
height: 100vh;
grid-template-columns: minmax(0, 1fr);
background: #d7e2de;
}
.junction-page > main > .issues,
.junction-page > main > .inspector {
display: none;
}
.junction-page .junction-workspace {
top: 0;
right: 0;
bottom: 0;
width: min(430px, 38vw);
border-radius: 0;
border-top: 0;
border-right: 0;
border-bottom: 0;
box-shadow: -16px 0 36px rgb(15 23 42 / 18%);
}
.junction-page .junction-workspace__header {
position: sticky;
z-index: 2;
top: -1rem;
margin: -1rem -1.25rem 1.5rem;
padding: 1rem 1.25rem;
align-items: center;
background: #173b32;
color: #f4fbf7;
border-bottom: 1px solid #2e594d;
}
.junction-page .junction-workspace__header p,
.junction-page .junction-workspace__eyebrow {
color: #abc5ba;
}
.junction-page .junction-workspace__header .button {
border-color: #97b5a8;
background: #eff7f2;
}
.junction-page .junction-workspace__header h2 {
font-size: 1.15rem;
}
.junction-page .junction-workspace__body {
max-width: none;
}
.junction-workspace__header {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 1rem;
}
.junction-workspace__header-actions {
display: flex;
align-items: center;
gap: 0.5rem;
flex-wrap: wrap;
}
.junction-workspace__header h2 {
margin: 0.2rem 0;
}
.junction-workspace__title-line {
display: flex;
align-items: baseline;
gap: 0.65rem;
min-width: 0;
}
.junction-workspace__title-line h2 {
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.junction-workspace__title-line code {
color: inherit;
font-size: 0.8em;
font-weight: 500;
}
.junction-workspace__header p {
margin: 0;
color: #64748b;
}
.junction-workspace__eyebrow {
font-size: 0.75rem;
color: #64748b;
text-transform: uppercase;
letter-spacing: 0.08em;
white-space: nowrap;
}
.junction-workspace__body {
max-width: 42rem;
margin-top: 1.5rem;
}
.junction-workspace__body dl {
display: grid;
grid-template-columns: 7rem 1fr;
gap: 0.5rem 1rem;
}
.junction-workspace__body dt {
color: #64748b;
}
.junction-workspace__actions {
display: flex;
gap: 0.5rem;
margin-top: 1.5rem;
}
.junction-workspace__facilities {
display: grid;
gap: 4px;
margin: 8px 0 0;
padding: 0;
list-style: none;
}
.junction-workspace__facilities li {
padding: 5px 7px;
border-left: 2px solid #d7a23c;
background: #fffaf0;
color: #5d4a21;
font-size: 12px;
}
.junction-workspace__facilities button {
width: 100%;
padding: 0;
border: 0;
background: none;
color: inherit;
text-align: left;
cursor: pointer;
}
.junction-workspace__object-list {
display: grid;
gap: 5px;
}
.junction-workspace__object-list button {
display: block;
width: 100%;
padding: 6px 9px;
border: 1px solid #d8e1df;
border-radius: 4px;
background: #f8fbfa;
color: #23423a;
text-align: left;
cursor: pointer;
}
.junction-workspace__object-list button:hover,
.junction-workspace__object-list button.is-selected {
border-color: #0e7490;
background: #e6f4f6;
color: #075985;
}
.junction-workspace__structure-facilities {
border: 1px solid #d8e1df;
border-radius: 4px;
background: #fbfdfc;
}
.junction-workspace__structure-facilities summary {
padding: 6px 9px;
color: #31574c;
cursor: pointer;
font-size: 12px;
}
.junction-workspace__structure-facilities ul {
display: grid;
gap: 3px;
margin: 0;
padding: 0 9px 8px 25px;
color: #50645e;
font-size: 12px;
}
.junction-workspace__standard-diagnostic {
margin-top: 5px;
padding: 7px 9px;
border-left: 3px solid #94a3b8;
border-radius: 3px;
background: #f8fafc;
color: #475569;
font-size: 12px;
}
.junction-workspace__standard-diagnostic button {
width: 100%;
border: 0;
background: transparent;
color: inherit;
text-align: left;
cursor: pointer;
}
.junction-workspace__standard-diagnostic.is-pass {
border-left-color: #2f855a;
background: #f0fdf4;
color: #166534;
}
.junction-workspace__standard-diagnostic.is-warning {
border-left-color: #d49318;
background: #fffaf0;
color: #7c5a16;
}
.junction-workspace__standard-diagnostic.is-blocking,
.junction-workspace__standard-diagnostic.is-error {
border-left-color: #c2413b;
background: #fff1f0;
color: #9f2f2a;
}
.junction-workspace__facility-selection {
margin: 8px 0 0;
padding: 6px 8px;
border: 1px solid #d7a23c;
background: #fff7e6;
color: #70551a;
font-size: 12px;
}
.junction-workspace__browse-hint {
margin: 1.5rem 0 0;
padding: 0.75rem 1rem;
border-left: 3px solid #94a3b8;
background: #f8fafc;
color: #475569;
}
.junction-workspace__candidate {
display: grid;
gap: 0.25rem;
margin-bottom: 1rem;
padding: 0.65rem 0.75rem;
border-left: 3px solid #d49318;
background: #fffaf0;
color: #5d4a21;
}
.junction-workspace__candidate span {
color: #63736c;
font-size: 12px;
}
.junction-workspace__candidate-toggle {
justify-self: start;
margin-top: 0.25rem;
}
.junction-workspace__candidate-nodes {
display: grid;
gap: 0.35rem;
margin: 0.35rem 0 0;
padding: 0.55rem 0.65rem;
border: 1px solid #ead9ac;
background: #fffdf7;
}
.junction-workspace__candidate-nodes legend {
padding: 0 0.25rem;
color: #5d4a21;
font-size: 12px;
}
.junction-workspace__candidate-nodes label {
display: flex;
gap: 0.45rem;
align-items: center;
color: #475569;
font-size: 12px;
}
.junction-workspace__candidate-node-badge {
display: inline-grid;
flex: 0 0 1.5rem;
width: 1.5rem;
height: 1.5rem;
place-items: center;
border: 2px solid currentColor;
border-radius: 50%;
font-size: 11px;
font-weight: 800;
line-height: 1;
}
.junction-workspace__candidate-nodes label.is-included {
color: #0e7490;
}
.junction-workspace__candidate-nodes label.is-included .junction-workspace__candidate-node-badge {
color: #fff;
background: #0e7490;
}
.junction-workspace__candidate-nodes label.is-included input {
accent-color: #0e7490;
}
.junction-workspace__candidate-nodes label.is-excluded input {
accent-color: #94a3b8;
}
.junction-workspace__candidate-nodes label.is-excluded .junction-workspace__candidate-node-badge {
color: #94a3b8;
background: transparent;
}
.junction-workspace__candidate-nodes label.is-excluded {
color: #94a3b8;
text-decoration: line-through;
}
@media (max-width: 900px) {
.junction-workspace {
top: auto;
right: 0.5rem;
bottom: 0.5rem;
left: 0.5rem;
width: auto;
max-height: 68vh;
}
}