148 lines
5.6 KiB
CSS
148 lines
5.6 KiB
CSS
:root {
|
|
--bg: #15171c;
|
|
--panel: #1e2129;
|
|
--panel-2: #262a34;
|
|
--line: #343946;
|
|
--text: #e6e8ee;
|
|
--muted: #8d94a6;
|
|
--accent: #5aa9ff;
|
|
--accent-2: #ffb547;
|
|
--danger: #ff6b6b;
|
|
--ok: #52d273;
|
|
}
|
|
|
|
* { box-sizing: border-box; }
|
|
html, body { height: 100%; margin: 0; }
|
|
body {
|
|
background: var(--bg);
|
|
color: var(--text);
|
|
font: 13px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
header {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 8px 14px;
|
|
background: var(--panel);
|
|
border-bottom: 1px solid var(--line);
|
|
}
|
|
header h1 { font-size: 15px; margin: 0 12px 0 0; letter-spacing: .3px; }
|
|
header label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
|
|
header .live { color: var(--text); }
|
|
header .live:has(input:checked) { color: var(--accent-2); font-weight: 600; }
|
|
.spacer { flex: 1; }
|
|
#status { color: var(--muted); font-variant-numeric: tabular-nums; max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
#status.err { color: var(--danger); }
|
|
#status.ok { color: var(--ok); }
|
|
|
|
main {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: 420px 1fr;
|
|
min-height: 0;
|
|
}
|
|
|
|
#controls {
|
|
overflow-y: auto;
|
|
padding: 10px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 10px;
|
|
border-right: 1px solid var(--line);
|
|
}
|
|
|
|
.card {
|
|
background: var(--panel);
|
|
border: 1px solid var(--line);
|
|
border-radius: 8px;
|
|
padding: 10px 12px;
|
|
}
|
|
.card h2 {
|
|
margin: 0 0 8px;
|
|
font-size: 12px;
|
|
text-transform: uppercase;
|
|
letter-spacing: .8px;
|
|
color: var(--muted);
|
|
display: flex;
|
|
justify-content: space-between;
|
|
gap: 8px;
|
|
}
|
|
.card h2 small { text-transform: none; letter-spacing: 0; font-weight: 400; color: var(--muted); opacity: .8; }
|
|
|
|
.row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: end; margin: 6px 0; }
|
|
.row label { display: flex; flex-direction: column; gap: 3px; color: var(--muted); font-size: 12px; }
|
|
.row label.grow { flex: 1; }
|
|
.row label.check { flex-direction: row; align-items: center; color: var(--text); }
|
|
.row label input:not([type=checkbox]), .row label select { width: 100%; }
|
|
|
|
input, select, button {
|
|
font: inherit;
|
|
color: var(--text);
|
|
background: var(--panel-2);
|
|
border: 1px solid var(--line);
|
|
border-radius: 5px;
|
|
padding: 5px 7px;
|
|
}
|
|
input[type=number] { width: 7ch; }
|
|
input[type=checkbox] { width: auto; accent-color: var(--accent); }
|
|
input:focus, select:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
|
|
button { cursor: pointer; }
|
|
button:hover { border-color: var(--accent); }
|
|
button.primary { background: var(--accent); border-color: var(--accent); color: #0b1220; font-weight: 600; }
|
|
button.danger { color: var(--danger); }
|
|
button:disabled { opacity: .5; cursor: default; }
|
|
|
|
.tabs { display: flex; gap: 4px; margin-top: 6px; }
|
|
.tabs button { flex: 1; background: transparent; color: var(--muted); }
|
|
.tabs button.active { background: var(--panel-2); color: var(--text); border-color: var(--accent); }
|
|
|
|
.hint { color: var(--muted); font-size: 12px; margin: 6px 0 0; }
|
|
.hint b { color: var(--text); }
|
|
|
|
/* sliders: label | range | number */
|
|
.slider { display: grid; grid-template-columns: 92px 1fr 64px; gap: 8px; align-items: center; margin: 4px 0; }
|
|
.slider span { color: var(--muted); font-size: 12px; }
|
|
.slider input[type=range] { width: 100%; padding: 0; background: transparent; border: 0; accent-color: var(--accent); }
|
|
.slider input[type=number] { width: 100%; }
|
|
|
|
/* fixtures */
|
|
.fixture { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; padding: 6px 0; border-top: 1px solid var(--line); }
|
|
.fixture:first-child { border-top: 0; }
|
|
.fixture .name { display: flex; align-items: center; gap: 8px; grid-column: 1 / -1; }
|
|
.fixture .name .swatch { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
|
|
.fixture .name small { color: var(--muted); }
|
|
.fixture .opts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; padding-left: 26px; }
|
|
.fixture .opts label { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
|
|
.fixture.off .opts { display: none; }
|
|
.fixture.notmover { opacity: .45; }
|
|
|
|
/* points table */
|
|
#point-table { width: 100%; border-collapse: collapse; }
|
|
#point-table th { color: var(--muted); font-weight: 500; text-align: left; font-size: 11px; padding: 2px 4px; }
|
|
#point-table td { padding: 2px 4px; }
|
|
#point-table td input { width: 100%; padding: 3px 5px; }
|
|
#point-table tr.sel td { background: rgba(90, 169, 255, .12); }
|
|
#point-table tr td:first-child { color: var(--muted); font-variant-numeric: tabular-nums; width: 2.5ch; }
|
|
|
|
.list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 220px; overflow-y: auto; }
|
|
.list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line); }
|
|
.list li:first-child { border-top: 0; }
|
|
.list li .lname { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
|
.list li small { color: var(--muted); }
|
|
.list li button { padding: 2px 8px; font-size: 12px; }
|
|
.list .empty { color: var(--muted); font-style: italic; }
|
|
|
|
.result { color: var(--muted); font-size: 12px; }
|
|
.result.ok { color: var(--ok); }
|
|
.result.err { color: var(--danger); }
|
|
|
|
/* stage */
|
|
#stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
|
|
.toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
|
|
.toolbar label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
|
|
#time { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 12ch; }
|
|
#canvas { flex: 1; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: none; }
|