/ music / double-pendulum
Sign in
music / double-pendulum
double-pendulum / src / style.css
69 lines · 3.6 KBBlameHistoryRaw
1/* Deliberately bare; real styling comes later. */
2:root {
3 --bg: #0b0b0b;
4 --fg: #d8d8d8;
5 --dim: #2e2e2e;
6 --muted: #777;
7 color-scheme: dark;
8}
9* { box-sizing: border-box; }
10html, body { margin: 0; background: var(--bg); color: var(--fg); }
11body { font: 14px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
12a { color: var(--fg); text-decoration: none; }
13a:hover { text-decoration: underline; }
14button {
15 font: inherit; color: var(--fg); background: none; border: 1px solid var(--dim);
16 padding: 2px 10px; cursor: pointer;
18button:hover { border-color: var(--muted); }
20.album { max-width: 640px; margin: 15vh auto; padding: 0 16px; }
21.album h1 { font-weight: normal; font-size: 18px; margin: 0 0 24px; }
22.tracks { padding-left: 1.5em; }
24.page { display: flex; min-height: 100vh; }
25.stage { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 16px; gap: 12px; }
26header { color: var(--muted); }
27header a { color: var(--muted); }
28.sep { color: var(--dim); }
30.view { flex: 1; display: flex; min-height: 0; align-items: center; justify-content: center; }
31.view canvas { width: min(90vw, 80vh); aspect-ratio: 1; display: block; }
32.page.with-author .view canvas { width: min(calc(100vw - 420px), 80vh); }
33@media (max-width: 720px) {
34 .page { flex-direction: column; }
35 .view canvas, .page.with-author .view canvas { width: min(calc(100vw - 32px), 70vh); }
38.transport { display: flex; align-items: center; gap: 12px; }
39.transport .play { min-width: 64px; }
40.progress { flex: 1; height: 1px; background: var(--dim); position: relative; }
41.progress.seekable { cursor: pointer; height: 9px; background: linear-gradient(var(--dim), var(--dim)) center / 100% 1px no-repeat; }
42.progress .bar { position: absolute; left: 0; top: 50%; height: 1px; margin-top: -0.5px; background: var(--fg); width: 0; }
43.edit { color: var(--muted); }
45.author {
46 width: 360px; flex: none; height: 100vh; overflow-y: auto; position: sticky; top: 0;
47 border-left: 1px solid var(--dim); padding: 12px; font-size: 12px;
49@media (max-width: 720px) { .author { width: auto; height: auto; position: static; border-left: none; border-top: 1px solid var(--dim); } }
50.author .actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
51.author .status { color: var(--muted); }
52.author fieldset { border: none; border-top: 1px solid var(--dim); margin: 10px 0 0; padding: 6px 0 0; }
53.author legend { color: var(--muted); padding: 0 6px 0 0; }
54.author .row { display: grid; grid-template-columns: 110px 1fr 64px 36px; gap: 6px; align-items: center; margin: 3px 0; }
55.author .row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
56.author .row:has(select) , .author .row:has(input[type=checkbox]) { grid-template-columns: 110px 1fr; }
57.author .row:has(select) select { justify-self: start; }
58.author .row:has(input[type=checkbox]) input { justify-self: start; }
59.author > .row { grid-template-columns: 110px 80px; }
60.author input[type=number], .author select {
61 font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--dim); padding: 1px 3px; width: 100%;
63.author input[type=range] { width: 100%; accent-color: var(--muted); }
64.author .unit { color: var(--muted); }
65.readouts { display: grid; grid-template-columns: 110px 1fr; gap: 2px 6px; margin: 8px 0; color: var(--muted); }
66.readouts dt, .readouts dd { margin: 0; }
67.readouts dd { color: var(--fg); }
68.author .row.text { grid-template-columns: 110px 1fr; align-items: start; }
69.author textarea { font: inherit; font-size: 11px; color: var(--fg); background: var(--bg); border: 1px solid var(--dim); width: 100%; resize: vertical; }
↑↓ move↵openescclose