diff --git a/src/style.css b/src/style.css index bd9d350e..8ec78b85 100644 --- a/src/style.css +++ b/src/style.css @@ -510,3 +510,32 @@ button:focus-visible { outline-color: var(--amber); } .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); } + +/* the trash can next to the close button: let go of this machine */ +.card .x { display: grid; place-items: center; } +.card .x svg { display: block; } +.card .trash { right: 32px; color: var(--muted); } +.card .trash:hover:not(:disabled) { color: var(--danger); } +.card .head { padding-right: 52px; } + +/* phones: softer, calmer panels. Mode is one segmented track, programs are rounded chips, + and the top bar's page buttons are quiet tabs instead of heavy boxes */ +@media (max-width: 700px) { + .card { padding: 14px 14px 12px; gap: 10px; border-radius: 22px; } + .card .x { top: 4px; right: 4px; } + .card .trash { right: 46px; } + .card .head { padding-right: 92px; row-gap: 4px; } + .card h3 { font-size: 13px; } + .card .chips { gap: 4px 14px; } + .sect { gap: 6px; padding-top: 12px; } + .modes { gap: 2px; padding: 3px; background: rgba(0, 0, 0, .35); border: 1px solid var(--glass-line); border-radius: 13px; } + .modes button { min-height: 38px; border: 0; background: none; border-radius: 10px; color: var(--muted); font-size: 10.5px; letter-spacing: .12em; } + .modes button.on { background: rgba(255, 255, 255, .13); color: var(--amber); box-shadow: var(--glass-hi); } + .acts.progs { gap: 5px; } + .acts.progs > .act { min-height: 40px; padding: 6px 4px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0; column-gap: 0; justify-content: center; text-align: center; } + .act[data-act="uninstall"] { border-color: rgba(229, 72, 77, .35); } + .topbar { border-radius: 20px; padding: 6px 12px 8px; } + .brand { gap: 2px; margin-left: -6px; } + .brand button { min-height: 40px; padding: 0 10px; border-color: transparent; background: none; color: var(--bone-dim); letter-spacing: .04em; } + .brand button:hover:not(:disabled) { background: rgba(255, 255, 255, .07); border-color: transparent; } +} diff --git a/src/ui.ts b/src/ui.ts index 0171ee2c..e52d829f 100644 --- a/src/ui.ts +++ b/src/ui.ts @@ -134,11 +134,15 @@ function heldText(held: DataType[]) { /** A labelled part of a card: what it's doing, its mode, its program. */ const section = (label: string, body: string) => body ? `