From bcaabdb39c073536c5e048c904d8ea512897510e Mon Sep 17 00:00:00 2001 From: Cameron Date: Mon, 28 Sep 2026 22:55:14 -0700 Subject: [PATCH] Glass everywhere: panels are see-through blurred glass with rounded corners, buttons are glass with an amber label when on, the toolbar is one pill, and the tree opens over a blurred map Co-Authored-By: Claude Opus 5.5 --- src/style.css | 74 ++++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 67 insertions(+), 7 deletions(-) diff --git a/src/style.css b/src/style.css index a8d09fda..347d813f 100644 --- a/src/style.css +++ b/src/style.css @@ -360,9 +360,7 @@ button.on { background: var(--text); color: #000; border-color: var(--text); } .card .x { top: 0; right: 0; min-width: 44px; min-height: 44px; border: 0; font-size: 14px; } /* the toolbar is one glass dock along the bottom: pause and one speed button, the tools, then zoom. The drawer and the machine card stack above it (main.ts) */ - .tools { flex-wrap: nowrap; justify-content: space-between; gap: 0; padding: 4px; border-radius: 22px; max-width: 520px; margin: 0 auto; - background: rgba(28, 28, 26, .55); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); - border: 1px solid rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px rgba(0, 0, 0, .5); } + .tools { justify-content: space-between; border-radius: 22px; max-width: 520px; } .tools > [aria-label="Game speed"] { order: 0; } .tools .btns { gap: 2px; align-items: center; flex: 1 1 auto; } .tools .btns button { flex: 1 1 0; } @@ -375,10 +373,8 @@ button.on { background: var(--text); color: #000; border-color: var(--text); } .tools .cycle { display: block; min-width: 48px; } .tools .cycle:not(.on) { color: var(--muted); } #zout, #zin { display: none; } /* pinch zooms; the frame button stays, and wider phones get + and − back */ - .card { z-index: 3; border-radius: 18px; } - .drawer { border-radius: 18px; overflow: hidden; background: rgba(12, 12, 11, .72); -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6); - border-color: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); } - .drawer.open { background: rgba(0, 0, 0, .88); } + .card { z-index: 3; } + .drawer { overflow: hidden; } .act, .modes button, .treeview .acts2 button { min-height: 44px; } .job button, .schemes .x { min-width: 44px; min-height: 36px; } .allow button { min-height: 36px; padding: 4px 10px; } @@ -430,3 +426,67 @@ button.on { background: var(--text); color: #000; border-color: var(--text); } display: flex; flex-direction: column; gap: 3px; font: 400 11.5px/1.4 var(--sans); color: var(--bone-dim); white-space: pre-line; box-shadow: 0 4px 16px rgba(0,0,0,.6); } .tip[hidden] { display: none; } .tip b { font: 500 10.5px var(--mono); color: var(--text); letter-spacing: .08em; text-transform: uppercase; } + +/* ---------- glass ---------- + Every panel is a pane of dark glass over the map: see-through, blurred, rounded, with a thin bright + edge on top. Buttons are glass too; the one that's on lights up with an amber label. */ +:root { + --glass: rgba(16, 16, 14, .55); + --glass-deep: rgba(8, 8, 7, .78); /* panels full of text: the card, tables, tips */ + --glass-line: rgba(255, 255, 255, .11); + --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .07); + --glass-blur: blur(20px) saturate(1.6); + --glass-shadow: 0 10px 30px rgba(0, 0, 0, .45); + --r: 16px; --r-btn: 10px; + --panel-line: rgba(255, 255, 255, .11); +} +.box, .card, .pathtip, .sitestable, .tip, .tools { + background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r); + -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-hi), var(--glass-shadow); +} +.card, .pathtip, .sitestable, .tip { background: var(--glass-deep); } +.tip { border-radius: var(--r-btn); } +.target.idle { border-color: rgba(242, 169, 59, .5); box-shadow: var(--glass-hi), 0 0 24px rgba(242, 169, 59, .12), var(--glass-shadow); } + +button { background: rgba(255, 255, 255, .04); border-color: var(--glass-line); border-radius: var(--r-btn); transition: background .15s, border-color .15s, color .15s; } +button:hover:not(:disabled) { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .28); } +button.on { background: rgba(255, 255, 255, .16); color: var(--amber); border-color: rgba(255, 255, 255, .22); box-shadow: var(--glass-hi); } +button.on kbd { color: var(--amber); border-color: rgba(242, 169, 59, .4); } +kbd { border-color: var(--glass-line); border-radius: 4px; } +button:focus-visible { outline-color: var(--amber); } +.allow button { border-radius: 999px; } +.allow button.on { background: rgba(255, 255, 255, .06); } +.bar { border-radius: 3px; } +.bar > i { border-radius: 3px; } +.versionplaces select, .found input { background: rgba(255, 255, 255, .04); border-color: var(--glass-line); border-radius: var(--r-btn); } + +/* the toolbar: one glass pill, its groups split by thin lines */ +.tools { width: fit-content; margin: 0 auto; padding: 4px; gap: 0; flex-wrap: nowrap; border-radius: 20px; pointer-events: auto; } +.tools .btns { gap: 2px; align-items: center; } +.tools .btns + .btns { border-left: 1px solid var(--glass-line); padding-left: 4px; margin-left: 4px; } +.tools button { border-color: transparent; background: none; border-radius: 14px; } +.tools button.on { background: rgba(255, 255, 255, .16); border-color: transparent; } + +/* a card's parts: the label sits on a hairline that runs to the edge */ +.sect { border-top: 0; } +.sect > .sub { right: 0; display: flex; align-items: center; gap: 6px; padding-right: 0; background: none; } +.sect > .sub::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); } + +/* the tree opens over a blurred map; its nodes are glass tiles */ +.treeview { background: rgba(0, 0, 0, .78); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4); } +.node { background: rgba(255, 255, 255, .04); border-radius: 12px; } +.node:hover:not(:disabled) { background: rgba(255, 255, 255, .08); } +.treeview .tabs { background: transparent; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); } +.treeview .tabs button, .treeview .tabs button.on { background: rgba(255, 255, 255, .04); } + +@media (max-width: 700px) { + .tools { width: auto; max-width: 520px; } + .tools .btns { flex: 1 1 auto; } + .tools .zoom { flex: none; } +} +@media (prefers-reduced-transparency: reduce) { + .box, .card, .pathtip, .sitestable, .tip, .tools, .treeview { background: #0a0a09; -webkit-backdrop-filter: none; backdrop-filter: none; } +} +.versionrun { border-radius: var(--r); background: rgba(242, 169, 59, .04); } +.card .x { background: none; border-color: transparent; border-radius: 999px; } +.card .x:hover:not(:disabled) { background: rgba(255, 255, 255, .09); } -- 2.51.2