Dawnline 0.10.0
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
Build packages / CI (push) Blocked by required conditions
Build packages / Version (push) Waiting to run
CI / Web (format, types, tests, bundles) (push) Blocked by required conditions
CI / ShellCheck (push) Blocked by required conditions
CI / ucode static checks (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 24.10) (push) Blocked by required conditions
CI / ucode compiles and tests pass (OpenWrt 25.12) (push) Blocked by required conditions
- Portal redesigned from scratch. No header bar: the page opens with the server's name and the person's and fades under the edges. Device cards show the status, the last 7 days (hover a day for its figures) and a Connect or Update button; "Your access" folds into rows: what they can reach (with the names at home), data this month day by day, and when access ends. The page follows the system's light or dark theme - Adding a device: pick the kind (PC, Mobile, Router, Other) and a name, or add it from the device itself with the page's QR code. The set-up sheet then shows the app for that system and the connection, waits for the first connection, says "<device> connected" and closes on its own - Switching apps in the set-up sheet changes only what differs: the old words blur into the new ones, and the menu path is shown for iOS and Android in one line. Names, numbers and statuses that change on the page morph in place - Dialogs open in the middle on a computer, on the same spring as the menu; buttons that wait for the router show a spinner at once - A paused account gets one card that says so; the page's messages are short and no longer send people to the admin. A QR code of the page sits beside the breadcrumb, to open it on another device - Allowed hours are shown in the visitor's own time zone - The portal's Title setting is gone: the page and its tab take the server's name. A title set before is removed on upgrade - The admin names .conf files after the server too, as the portal does (Outline-Home.conf); its device menu says "Download AmneziaWG config" and "Copy AmneziaVPN config", and its QR codes use the portal's round look in the admin's light or dark colours - README rewritten, with screenshots made from a demo cast (scripts/capture-screenshots.mjs --demo)
This commit is contained in:
1 parent
edeb1506fd
commit
4f12ca19e7
94 files changed
+8076
-5009
No files matched your search
@@ -0,0 +1,345 @@
|
||||
/* "Your access": what it reaches as two tiles and the names at home; the data as a ring in the head
|
||||
and the month day by day inside; until when as the days left over a calendar of the weeks, and
|
||||
the hours as a bar of the day. */
|
||||
|
||||
.reach2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
.reach-tile {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
padding: 12px 12px 12px 14px;
|
||||
border-radius: 16px;
|
||||
background: var(--field);
|
||||
min-width: 0;
|
||||
}
|
||||
.reach-tile .rt-ic {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
.reach-tile b {
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.015em;
|
||||
}
|
||||
.reach-tile .rt-sub {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.reach-tile .rt-mark {
|
||||
position: absolute;
|
||||
top: 12px;
|
||||
right: 12px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 50%;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
background: var(--ok-soft);
|
||||
color: var(--ok);
|
||||
}
|
||||
.reach-tile .rt-mark .i {
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
stroke-width: 2.4;
|
||||
}
|
||||
.reach-tile.off b {
|
||||
color: var(--text-2);
|
||||
}
|
||||
.reach-tile.off .rt-sub {
|
||||
color: var(--text-3);
|
||||
}
|
||||
.reach-tile.off .rt-ic {
|
||||
opacity: 0.45;
|
||||
}
|
||||
.reach-tile.off .rt-mark {
|
||||
background: var(--knob);
|
||||
color: var(--text-3);
|
||||
}
|
||||
.lbl-s {
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.names {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.namechip {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
height: 32px;
|
||||
padding: 0 10px 0 12px;
|
||||
border-radius: 10px;
|
||||
background: var(--field);
|
||||
font-family: var(--mono);
|
||||
font-size: 13px;
|
||||
letter-spacing: 0;
|
||||
transition:
|
||||
background-color 150ms,
|
||||
transform 150ms var(--ease-out);
|
||||
}
|
||||
.namechip:hover {
|
||||
background: var(--knob);
|
||||
}
|
||||
.namechip:active {
|
||||
transform: scale(0.96);
|
||||
}
|
||||
.namechip .faint {
|
||||
color: var(--text-3);
|
||||
}
|
||||
.namechip .i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
.ring {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.ring .trk {
|
||||
stroke: var(--bar);
|
||||
}
|
||||
.ring .arc {
|
||||
stroke: var(--accent);
|
||||
}
|
||||
.ring .arc.warn {
|
||||
stroke: var(--warn);
|
||||
}
|
||||
.ring .arc.bad {
|
||||
stroke: var(--bad);
|
||||
}
|
||||
.month {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.mbars {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 3px;
|
||||
height: 64px;
|
||||
}
|
||||
.mbars i {
|
||||
flex: 1;
|
||||
border-radius: 2.5px;
|
||||
background: var(--bar);
|
||||
min-height: 3px;
|
||||
transition: background-color 120ms;
|
||||
}
|
||||
.mbars i.future {
|
||||
background: color-mix(in srgb, var(--bar) 45%, transparent);
|
||||
}
|
||||
.mbars i.today {
|
||||
background: var(--accent);
|
||||
}
|
||||
.mbars i:not(.future):hover {
|
||||
background: var(--text-2);
|
||||
}
|
||||
.month-axis {
|
||||
position: relative;
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 11px;
|
||||
color: var(--text-3);
|
||||
font-weight: 500;
|
||||
}
|
||||
.month-axis .td {
|
||||
position: absolute;
|
||||
transform: translateX(-50%);
|
||||
color: var(--accent);
|
||||
}
|
||||
.month-axis .hide {
|
||||
visibility: hidden;
|
||||
}
|
||||
.month-read {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
margin-top: 10px;
|
||||
font-size: 13px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.month-read b {
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.meter {
|
||||
height: 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--bar);
|
||||
overflow: hidden;
|
||||
}
|
||||
.meter > i {
|
||||
display: block;
|
||||
height: 100%;
|
||||
border-radius: 3px;
|
||||
background: var(--accent);
|
||||
}
|
||||
.meter > i.warn {
|
||||
background: var(--warn);
|
||||
}
|
||||
.meter > i.bad {
|
||||
background: var(--bad);
|
||||
}
|
||||
|
||||
.until {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 16px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 16px;
|
||||
background: var(--field);
|
||||
}
|
||||
.until-num {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
.until-num b {
|
||||
font-size: 36px;
|
||||
line-height: 40px;
|
||||
font-weight: 600;
|
||||
letter-spacing: -0.045em;
|
||||
}
|
||||
.until-num span {
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.until-num .until-sub {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: var(--text-3);
|
||||
}
|
||||
.until.soon .until-num b {
|
||||
color: var(--warn);
|
||||
}
|
||||
.cal {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 6px;
|
||||
flex: none;
|
||||
}
|
||||
.cal-h,
|
||||
.cal-g {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(7, 10px);
|
||||
gap: 5px;
|
||||
}
|
||||
.cal-h span {
|
||||
font-size: 9px;
|
||||
line-height: 10px;
|
||||
font-weight: 600;
|
||||
color: var(--text-3);
|
||||
text-align: center;
|
||||
}
|
||||
.cal-g i {
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border-radius: 3px;
|
||||
background: color-mix(in srgb, var(--text) 16%, transparent);
|
||||
}
|
||||
.cal-g i.past {
|
||||
background: color-mix(in srgb, var(--text) 5%, transparent);
|
||||
}
|
||||
.cal-g i.today {
|
||||
background: var(--accent);
|
||||
}
|
||||
.cal-g i.end {
|
||||
background: transparent;
|
||||
box-shadow: inset 0 0 0 1.5px var(--accent);
|
||||
}
|
||||
.cal-g i.after {
|
||||
background: transparent;
|
||||
}
|
||||
.until.soon .cal-g i.today {
|
||||
background: var(--warn);
|
||||
}
|
||||
.until.soon .cal-g i.end {
|
||||
box-shadow: inset 0 0 0 1.5px var(--warn);
|
||||
}
|
||||
.acc-row.open .cal-g i {
|
||||
animation: cal-in 360ms var(--ease-out) backwards;
|
||||
animation-delay: calc(var(--i) * 7ms);
|
||||
}
|
||||
@keyframes cal-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: scale(0.4);
|
||||
}
|
||||
}
|
||||
.hours {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
padding: 14px 16px;
|
||||
border-radius: 16px;
|
||||
background: var(--field);
|
||||
}
|
||||
.hours-top {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: baseline;
|
||||
font-size: 13px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.hours-top b {
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.hours-bar {
|
||||
position: relative;
|
||||
height: 8px;
|
||||
border-radius: 4px;
|
||||
background: color-mix(in srgb, var(--text) 8%, transparent);
|
||||
}
|
||||
.hours-bar i {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
border-radius: 4px;
|
||||
background: color-mix(in srgb, var(--ok) 70%, transparent);
|
||||
}
|
||||
.hours-now {
|
||||
position: absolute;
|
||||
top: -4px;
|
||||
width: 2px;
|
||||
height: 16px;
|
||||
margin-left: -1px;
|
||||
border-radius: 1px;
|
||||
background: var(--text);
|
||||
box-shadow: 0 0 0 2px var(--field);
|
||||
}
|
||||
.hours-now.out {
|
||||
background: var(--warn);
|
||||
}
|
||||
.hours-axis {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
font-size: 10px;
|
||||
color: var(--text-3);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.acc-row.open .cal-g i {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
/* The bouncy accordion: rows touch while closed and share their rounded ends; an open row lifts
|
||||
out with 10px gaps and its own corners (ui/accordion.ts animates between the two shapes). Inside
|
||||
the sheet ("inset") the rows sit one step lighter than the sheet. */
|
||||
|
||||
.acc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.acc-row {
|
||||
background: var(--raised);
|
||||
overflow: hidden;
|
||||
border-radius: 0;
|
||||
padding: 0 8px;
|
||||
transition: background-color 150ms;
|
||||
}
|
||||
.acc-row.rt {
|
||||
border-top-left-radius: var(--r-row);
|
||||
border-top-right-radius: var(--r-row);
|
||||
}
|
||||
.acc-row.rb {
|
||||
border-bottom-left-radius: var(--r-row);
|
||||
border-bottom-right-radius: var(--r-row);
|
||||
}
|
||||
.acc-row.open {
|
||||
margin-block: 10px;
|
||||
}
|
||||
.acc-row.open:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
.acc-row.open:last-child {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
.acc-row:not(.open):not(.still):hover {
|
||||
background: color-mix(in srgb, var(--raised), var(--knob) 40%);
|
||||
}
|
||||
.acc-head {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
height: 52px;
|
||||
padding: 0 6px 0 8px;
|
||||
text-align: left;
|
||||
}
|
||||
.acc-row.still .acc-head {
|
||||
cursor: default;
|
||||
padding-right: 10px;
|
||||
}
|
||||
.acc-head .gi {
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
}
|
||||
.acc-title {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.acc-title .t {
|
||||
min-width: 0;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
/* A row whose body shows its numbers drops them from its head while open. */
|
||||
.acc-val {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
color: var(--text-2);
|
||||
font-size: 14px;
|
||||
white-space: nowrap;
|
||||
transition:
|
||||
opacity 200ms var(--ease-out),
|
||||
filter 200ms var(--ease-out),
|
||||
transform 260ms var(--ease-out);
|
||||
}
|
||||
.acc-val > span {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.acc-row.open .acc-val.hide-open {
|
||||
opacity: 0;
|
||||
filter: blur(4px);
|
||||
transform: translateX(8px);
|
||||
pointer-events: none;
|
||||
}
|
||||
.acc-chev {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--text-2);
|
||||
transform: rotate(90deg);
|
||||
transition: transform var(--spring-soft-dur, 470ms) var(--spring-soft, ease);
|
||||
}
|
||||
.acc-row.open .acc-chev {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.acc-body {
|
||||
display: none;
|
||||
padding: 0 8px 16px 40px;
|
||||
}
|
||||
.acc-row.open .acc-body,
|
||||
.acc-row.closing .acc-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
}
|
||||
.acc .desc {
|
||||
margin: 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
opacity: 0.6;
|
||||
}
|
||||
.acc.inset .acc-row {
|
||||
background: var(--field);
|
||||
}
|
||||
.acc.inset .acc-row:not(.open):not(.still):hover {
|
||||
background: color-mix(in srgb, var(--field), var(--knob) 50%);
|
||||
}
|
||||
.acc.inset .acc-body {
|
||||
padding-left: 8px;
|
||||
}
|
||||
.acc.inset .seg {
|
||||
background: color-mix(in srgb, var(--knob) 65%, var(--field));
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.acc-chev {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
/* The ground every part stands on: the reset, the type, focus and selection, the small utilities,
|
||||
the icons (line icons and the glass ones). */
|
||||
|
||||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
html {
|
||||
-webkit-text-size-adjust: 100%;
|
||||
/* The page keeps its width when a sheet locks the scroll: no sideways jump behind the scrim. */
|
||||
scrollbar-gutter: stable;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
background: var(--bg);
|
||||
color: var(--text);
|
||||
font: 400 15px/22px var(--font);
|
||||
letter-spacing: -0.011em;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
/* An app, not a document: the arrow over text. Controls set the hand; what is typed or copied by
|
||||
hand (fields, the link, the configuration) keeps the I-beam. */
|
||||
cursor: default;
|
||||
}
|
||||
body.locked {
|
||||
overflow: hidden;
|
||||
}
|
||||
input,
|
||||
textarea,
|
||||
.linkrow .mono,
|
||||
.conf {
|
||||
cursor: text;
|
||||
}
|
||||
::selection {
|
||||
background: var(--sel-bg);
|
||||
color: var(--sel-fg);
|
||||
}
|
||||
button {
|
||||
font: inherit;
|
||||
color: inherit;
|
||||
letter-spacing: inherit;
|
||||
background: none;
|
||||
border: 0;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
cursor: pointer;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
}
|
||||
button:disabled {
|
||||
cursor: default;
|
||||
}
|
||||
a {
|
||||
color: inherit;
|
||||
text-decoration: none;
|
||||
}
|
||||
:focus {
|
||||
outline: none;
|
||||
}
|
||||
:focus-visible {
|
||||
outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
[hidden] {
|
||||
display: none !important;
|
||||
}
|
||||
.offscreen {
|
||||
position: fixed;
|
||||
left: -9999px;
|
||||
top: 0;
|
||||
opacity: 0;
|
||||
}
|
||||
.mono {
|
||||
font-family: var(--mono);
|
||||
letter-spacing: 0;
|
||||
}
|
||||
.num {
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
.ok-t {
|
||||
color: var(--ok);
|
||||
}
|
||||
.warn-t {
|
||||
color: var(--warn);
|
||||
}
|
||||
.bad-t {
|
||||
color: var(--bad);
|
||||
}
|
||||
.here-t {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
/* line icons */
|
||||
.i {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
flex: none;
|
||||
}
|
||||
|
||||
/* glass icons: the colours come from here (the CSP drops style attributes) */
|
||||
.gi {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
flex: none;
|
||||
overflow: visible;
|
||||
--ta: var(--t-grey-a);
|
||||
--tb: var(--t-grey-b);
|
||||
}
|
||||
.gi.t-blue {
|
||||
--ta: var(--t-blue-a);
|
||||
--tb: var(--t-blue-b);
|
||||
}
|
||||
.gi.t-green {
|
||||
--ta: var(--t-green-a);
|
||||
--tb: var(--t-green-b);
|
||||
}
|
||||
.gi.t-red {
|
||||
--ta: var(--t-red-a);
|
||||
--tb: var(--t-red-b);
|
||||
}
|
||||
.gi.t-orange {
|
||||
--ta: var(--t-orange-a);
|
||||
--tb: var(--t-orange-b);
|
||||
}
|
||||
.gi .ta {
|
||||
stop-color: var(--ta);
|
||||
}
|
||||
.gi .tb {
|
||||
stop-color: var(--tb);
|
||||
}
|
||||
.gi .fa {
|
||||
stop-color: var(--gi-a);
|
||||
}
|
||||
.gi .fb {
|
||||
stop-color: var(--gi-b);
|
||||
}
|
||||
.gi .fc {
|
||||
stop-color: var(--ta);
|
||||
stop-opacity: 0.28;
|
||||
}
|
||||
.gi .ge {
|
||||
stroke: var(--gi-edge);
|
||||
}
|
||||
.gi .gr {
|
||||
stroke: var(--gi-rim);
|
||||
}
|
||||
.gi .gd {
|
||||
stroke: var(--gi-detail);
|
||||
}
|
||||
.gi .gdf {
|
||||
color: var(--gi-detail);
|
||||
}
|
||||
@@ -0,0 +1,660 @@
|
||||
/* The controls every part uses: round knobs, buttons (and their busy orb), the field with its
|
||||
go button, the icon picker, the kinds with their ring, badges, hints and menu paths, the link row,
|
||||
QR codes and the row that puts a code beside its words. */
|
||||
|
||||
.knob {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
border-radius: 50%;
|
||||
background: var(--knob);
|
||||
color: var(--text);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
transition:
|
||||
transform 150ms var(--ease-out),
|
||||
background-color 150ms;
|
||||
}
|
||||
.knob:hover {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 6%);
|
||||
}
|
||||
.knob:active {
|
||||
transform: scale(0.8);
|
||||
}
|
||||
.knob .i {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.knob.back .i {
|
||||
transform: rotate(180deg);
|
||||
}
|
||||
.knob[aria-expanded='true'] {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 10%);
|
||||
}
|
||||
|
||||
.btn {
|
||||
height: 48px;
|
||||
border-radius: 999px;
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 0 20px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.015em;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
transition:
|
||||
transform 200ms var(--ease-out),
|
||||
background-color 200ms var(--ease-out),
|
||||
color 200ms var(--ease-out);
|
||||
}
|
||||
.btn:active {
|
||||
transform: scale(0.95);
|
||||
}
|
||||
.btn.block {
|
||||
width: 100%;
|
||||
}
|
||||
.btn.sm {
|
||||
height: 40px;
|
||||
font-size: 15px;
|
||||
padding: 0 16px;
|
||||
}
|
||||
.btn.accent {
|
||||
background: var(--accent);
|
||||
color: var(--accent-ink);
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn.accent:hover {
|
||||
background: color-mix(in srgb, var(--accent) 82%, transparent);
|
||||
}
|
||||
/* The quiet accent: a card's Connect, tinted rather than filled. */
|
||||
.btn.tint {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
font-weight: 600;
|
||||
}
|
||||
.btn.tint:hover {
|
||||
background: color-mix(in srgb, var(--accent) 20%, transparent);
|
||||
}
|
||||
.btn.tint:active {
|
||||
background: color-mix(in srgb, var(--accent) 24%, transparent);
|
||||
}
|
||||
.btn.soft {
|
||||
background: var(--knob);
|
||||
color: var(--text);
|
||||
}
|
||||
.btn.soft:hover {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 6%);
|
||||
}
|
||||
.btn.red {
|
||||
background: var(--bad);
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
}
|
||||
/* Waiting for the router: the button keeps its size, its content blurs away and an orb comes up in
|
||||
its place (ui/busy.ts runs the change). The orb is B4 Converge from aicss.dev's Orbs, at its own
|
||||
28px stage and twice its speed: one circle walks a triangle, sharp at each corner and smaller,
|
||||
softer in between; a second breathes in the middle. */
|
||||
.busy {
|
||||
position: relative;
|
||||
}
|
||||
.orb {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
margin: auto;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
overflow: hidden;
|
||||
contain: strict;
|
||||
pointer-events: none;
|
||||
}
|
||||
.orb i {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
margin: -3.5px 0 0 -3.5px;
|
||||
border-radius: 50%;
|
||||
background: currentColor;
|
||||
animation: orb-converge 1.8s linear infinite both;
|
||||
}
|
||||
.orb i:nth-child(2) {
|
||||
animation: orb-breathe 1.8s ease-in-out infinite both;
|
||||
}
|
||||
/* Top, bottom right, bottom left: a beat at each corner, then away (ease-in) and in (ease-out). */
|
||||
@keyframes orb-converge {
|
||||
0% {
|
||||
transform: translate(0px, -5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
10% {
|
||||
transform: translate(0px, -5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
|
||||
}
|
||||
22% {
|
||||
transform: translate(2.15px, -1.25px) scale(0.72);
|
||||
filter: blur(0.8px);
|
||||
animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
|
||||
}
|
||||
33% {
|
||||
transform: translate(4.3px, 2.5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
43% {
|
||||
transform: translate(4.3px, 2.5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
|
||||
}
|
||||
55% {
|
||||
transform: translate(0px, 2.5px) scale(0.72);
|
||||
filter: blur(0.8px);
|
||||
animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
|
||||
}
|
||||
66% {
|
||||
transform: translate(-4.3px, 2.5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: linear;
|
||||
}
|
||||
77% {
|
||||
transform: translate(-4.3px, 2.5px) scale(1);
|
||||
filter: blur(0);
|
||||
animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
|
||||
}
|
||||
88% {
|
||||
transform: translate(-2.15px, -1.25px) scale(0.72);
|
||||
filter: blur(0.8px);
|
||||
animation-timing-function: cubic-bezier(0.33, 1, 0.68, 1);
|
||||
}
|
||||
100% {
|
||||
transform: translate(0px, -5px) scale(1);
|
||||
filter: blur(0);
|
||||
}
|
||||
}
|
||||
@keyframes orb-breathe {
|
||||
0%,
|
||||
100% {
|
||||
opacity: 0.16;
|
||||
filter: blur(2.4px);
|
||||
transform: scale(1.2);
|
||||
}
|
||||
50% {
|
||||
opacity: 0.32;
|
||||
filter: blur(1.6px);
|
||||
transform: scale(0.98);
|
||||
}
|
||||
}
|
||||
|
||||
.field {
|
||||
height: 48px;
|
||||
border-radius: var(--r-field);
|
||||
background: var(--field);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 0 4px 0 16px;
|
||||
overflow: hidden;
|
||||
transition: box-shadow 200ms var(--ease-out);
|
||||
}
|
||||
.field:focus-within {
|
||||
box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 16%, transparent);
|
||||
}
|
||||
.field input {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
border: 0;
|
||||
outline: 0;
|
||||
background: transparent;
|
||||
padding: 0;
|
||||
font: 500 16px/24px var(--font);
|
||||
color: var(--text);
|
||||
letter-spacing: -0.012em;
|
||||
}
|
||||
.field input::placeholder {
|
||||
color: var(--text-3);
|
||||
}
|
||||
.go {
|
||||
width: 48px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
background: var(--knob);
|
||||
color: var(--text-3);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
transition:
|
||||
background-color 200ms var(--ease-out),
|
||||
color 200ms var(--ease-out),
|
||||
transform 200ms var(--ease-out);
|
||||
}
|
||||
.go .i {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.go.ready {
|
||||
background: var(--accent);
|
||||
color: var(--accent-ink);
|
||||
}
|
||||
.go.ready:active {
|
||||
transform: scale(0.9);
|
||||
}
|
||||
.go:not(.ready) {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* The icon picker (skiper21's tabs): icons only, the picked one widens and shows its name. */
|
||||
.seg {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
height: 48px;
|
||||
padding: 0 4px;
|
||||
border-radius: var(--r-field);
|
||||
background: var(--field);
|
||||
}
|
||||
.seg-pill {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 4px;
|
||||
height: 40px;
|
||||
border-radius: 12px;
|
||||
background: var(--seg);
|
||||
box-shadow: var(--seg-shadow);
|
||||
pointer-events: none;
|
||||
}
|
||||
.seg-b {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
height: 40px;
|
||||
font-size: 16px;
|
||||
font-weight: 500;
|
||||
color: var(--text-3);
|
||||
white-space: nowrap;
|
||||
transition: color 200ms var(--ease-out);
|
||||
}
|
||||
.seg-b.on {
|
||||
color: var(--text);
|
||||
}
|
||||
.seg-b:not(.on):hover {
|
||||
color: var(--text-2);
|
||||
}
|
||||
.appseg .seg-b {
|
||||
flex: 0 0 56px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
justify-content: safe center;
|
||||
gap: 8px;
|
||||
padding: 0 18px;
|
||||
overflow: hidden;
|
||||
}
|
||||
.appseg .seg-b.on {
|
||||
flex: 1 1 56px;
|
||||
}
|
||||
.appseg .seg-b .i {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.appseg .seg-l {
|
||||
max-width: 0;
|
||||
opacity: 0;
|
||||
margin-left: -8px;
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.appseg .seg-b.on .seg-l {
|
||||
max-width: 180px;
|
||||
opacity: 1;
|
||||
margin-left: 0;
|
||||
}
|
||||
/* Three apps on a phone: the icons take less room, so the picked one's name fits whole. */
|
||||
.appseg {
|
||||
container-type: inline-size;
|
||||
}
|
||||
@container (max-width: 300px) {
|
||||
.appseg .seg-b {
|
||||
flex-basis: 44px;
|
||||
padding: 0 12px;
|
||||
}
|
||||
}
|
||||
|
||||
/* What a new device is: four tiles, the picked one ringed in place; the label under its tile. */
|
||||
.kinds {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
position: relative;
|
||||
container-type: inline-size;
|
||||
}
|
||||
.kind {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
color: var(--text-3);
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
font-weight: 500;
|
||||
transition: color 200ms var(--ease-out);
|
||||
}
|
||||
.kind-tile {
|
||||
width: 100%;
|
||||
height: 56px;
|
||||
border-radius: 14px;
|
||||
background: var(--field);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
transition:
|
||||
background-color 200ms var(--ease-out),
|
||||
transform 200ms var(--ease-out),
|
||||
box-shadow 220ms var(--ease-out);
|
||||
}
|
||||
.kind.on .kind-tile {
|
||||
box-shadow: inset 0 0 0 1.5px var(--accent);
|
||||
}
|
||||
.kind-lbl {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.kind:hover .kind-tile,
|
||||
.kind:focus-visible .kind-tile {
|
||||
background: var(--knob);
|
||||
}
|
||||
.kind:active .kind-tile {
|
||||
transform: scale(0.94);
|
||||
}
|
||||
.kind:focus-visible {
|
||||
outline: none;
|
||||
}
|
||||
.kind:focus-visible .kind-lbl,
|
||||
.kind.on {
|
||||
color: var(--text);
|
||||
}
|
||||
.kind .gi {
|
||||
width: 26px;
|
||||
height: 26px;
|
||||
filter: grayscale(1);
|
||||
opacity: 0.55;
|
||||
transition:
|
||||
filter 260ms var(--ease-out),
|
||||
opacity 260ms var(--ease-out);
|
||||
}
|
||||
.kind.on .gi {
|
||||
filter: none;
|
||||
opacity: 1;
|
||||
}
|
||||
@container (max-width: 330px) {
|
||||
.kind-tile {
|
||||
height: 50px;
|
||||
}
|
||||
.kind {
|
||||
font-size: 11.5px;
|
||||
}
|
||||
}
|
||||
.or {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
margin: 22px 0;
|
||||
color: var(--text-3);
|
||||
font-size: 12px;
|
||||
font-weight: 500;
|
||||
letter-spacing: 0.06em;
|
||||
}
|
||||
.or::before,
|
||||
.or::after {
|
||||
content: '';
|
||||
flex: 1;
|
||||
height: 1px;
|
||||
background: var(--line);
|
||||
}
|
||||
|
||||
/* A store (or an action) as a tile: its mark, two lines, a chevron or the open mark. */
|
||||
.badge {
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: 60px;
|
||||
padding: 0 14px 0 12px;
|
||||
border-radius: 18px;
|
||||
background: var(--field);
|
||||
transition:
|
||||
background-color 200ms,
|
||||
transform 200ms var(--ease-out);
|
||||
}
|
||||
.badge:hover {
|
||||
background: var(--knob);
|
||||
}
|
||||
.badge:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
.badge .b-ic {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
background: var(--text);
|
||||
color: var(--raised);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
}
|
||||
.badge .b-ic .i {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
}
|
||||
.badge .b-t {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.badge .b-top {
|
||||
font-size: 12px;
|
||||
line-height: 16px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.badge .b-main {
|
||||
font-size: 15px;
|
||||
line-height: 20px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.badge > .i {
|
||||
color: var(--text-3);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
/* Step 2 is neutral like the other tiles; only its mark keeps the accent. */
|
||||
.badge.primary .b-ic {
|
||||
background: var(--accent-soft);
|
||||
color: var(--accent);
|
||||
}
|
||||
.badges2 {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
gap: 8px;
|
||||
}
|
||||
.badges2 .badge {
|
||||
padding: 0 10px;
|
||||
gap: 10px;
|
||||
}
|
||||
.badges2 .badge > .i {
|
||||
display: none;
|
||||
}
|
||||
.badges2 .b-ic {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
.hint {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.hint a,
|
||||
.hint button {
|
||||
color: var(--accent);
|
||||
font-weight: 500;
|
||||
}
|
||||
.howto {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.howto li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
}
|
||||
.howto li + li::before {
|
||||
content: '›';
|
||||
color: var(--text-3);
|
||||
}
|
||||
.howto b {
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.linkrow {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
height: 44px;
|
||||
padding: 0 4px 0 14px;
|
||||
border-radius: 14px;
|
||||
background: color-mix(in srgb, var(--knob) 72%, var(--field));
|
||||
}
|
||||
.view > .linkrow {
|
||||
background: var(--field);
|
||||
}
|
||||
.linkrow .mono {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
user-select: all;
|
||||
}
|
||||
.linkrow .knob {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
border-radius: 10px;
|
||||
background: transparent;
|
||||
}
|
||||
.linkrow .knob:hover {
|
||||
background: var(--knob);
|
||||
}
|
||||
|
||||
/* QR codes: the night look on a dark theme, dark on white on a light one; a dense code fills its row. */
|
||||
.qrbox {
|
||||
position: relative;
|
||||
width: 148px;
|
||||
height: 148px;
|
||||
flex: none;
|
||||
border-radius: 18px;
|
||||
overflow: hidden;
|
||||
background: var(--qr-bg);
|
||||
}
|
||||
.qrbox.light {
|
||||
box-shadow: inset 0 0 0 1px var(--line);
|
||||
}
|
||||
.qrbox.big {
|
||||
width: 208px;
|
||||
height: 208px;
|
||||
border-radius: 24px;
|
||||
align-self: center;
|
||||
}
|
||||
.qrbox.big + .linkrow {
|
||||
margin-top: 16px;
|
||||
}
|
||||
.qrbox.dense {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
height: auto;
|
||||
aspect-ratio: 1;
|
||||
align-self: stretch;
|
||||
border-radius: 22px;
|
||||
}
|
||||
.qrbox svg {
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
/* A code swapping for another: the old one lies over the new one while it fades. */
|
||||
.qrbox > svg.old {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
}
|
||||
.coderow {
|
||||
display: flex;
|
||||
gap: 14px;
|
||||
align-items: flex-start;
|
||||
}
|
||||
.coderow.stacked {
|
||||
flex-direction: column;
|
||||
align-items: stretch;
|
||||
}
|
||||
.coderow .side {
|
||||
position: relative;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.coderow .side b {
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
}
|
||||
.side .words {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
}
|
||||
.side .words.old {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
.side .arr {
|
||||
color: var(--text-2);
|
||||
font-weight: 400;
|
||||
margin: 0 6px;
|
||||
}
|
||||
@media (max-width: 380px) {
|
||||
.coderow {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
/* The orb's own still frame: the front circle sharp, the other two a soft halo behind it. */
|
||||
.orb i {
|
||||
animation: none;
|
||||
opacity: 0.3;
|
||||
filter: blur(1.4px);
|
||||
}
|
||||
.orb i:first-child {
|
||||
opacity: 1;
|
||||
filter: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
/* "Your devices": the grid, a card per device (its glass icon, name and one-line status, ⋯; the week
|
||||
as a number and bars, the Update pill, or Connect), the card that adds one, the first device. */
|
||||
|
||||
.dgrid {
|
||||
display: grid;
|
||||
gap: 10px;
|
||||
grid-template-columns: minmax(0, 1fr);
|
||||
}
|
||||
@media (min-width: 560px) {
|
||||
.dgrid {
|
||||
grid-template-columns: repeat(2, minmax(0, 1fr));
|
||||
}
|
||||
}
|
||||
.dev {
|
||||
background: var(--raised);
|
||||
border-radius: var(--r-card);
|
||||
padding: 8px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
}
|
||||
.dev.is-here {
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
|
||||
}
|
||||
.dev.off {
|
||||
opacity: 0.5;
|
||||
}
|
||||
.dev-top {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 8px 6px 6px 10px;
|
||||
}
|
||||
.dev-top .gi {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
}
|
||||
.dev-id {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.dev-name {
|
||||
font-size: 16px;
|
||||
line-height: 22px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
/* Every card the same height: a one-line status. */
|
||||
.dev-stat {
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.dev-stat.ok-t {
|
||||
color: var(--ok);
|
||||
}
|
||||
.dev-stat.warn-t {
|
||||
color: var(--warn);
|
||||
}
|
||||
.dev-stat.here-t {
|
||||
color: var(--accent);
|
||||
}
|
||||
.dev-use {
|
||||
margin-top: auto;
|
||||
background: var(--field);
|
||||
border-radius: var(--r-row);
|
||||
padding: 12px 14px 12px 16px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
min-height: 66px;
|
||||
}
|
||||
.use-txt {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
.use-lbl {
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.use-val {
|
||||
font-size: 17px;
|
||||
line-height: 24px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.spark {
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
gap: 4px;
|
||||
height: 34px;
|
||||
}
|
||||
.spark i {
|
||||
width: 6px;
|
||||
border-radius: 3px;
|
||||
background: var(--bar);
|
||||
transition: background-color 150ms;
|
||||
}
|
||||
.spark i.today {
|
||||
background: var(--accent);
|
||||
}
|
||||
.spark i:hover {
|
||||
background: var(--text-2);
|
||||
}
|
||||
.spark i.today:hover {
|
||||
background: color-mix(in srgb, var(--accent) 75%, var(--text));
|
||||
}
|
||||
.dev .setup-btn {
|
||||
margin-top: auto;
|
||||
}
|
||||
.upd-pill {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
align-self: center;
|
||||
gap: 6px;
|
||||
height: 32px;
|
||||
padding: 0 12px 0 10px;
|
||||
border-radius: 999px;
|
||||
flex: none;
|
||||
background: color-mix(in srgb, var(--warn) 14%, transparent);
|
||||
color: var(--warn);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
transition:
|
||||
background-color 150ms,
|
||||
transform 150ms var(--ease-out);
|
||||
}
|
||||
.upd-pill:hover {
|
||||
background: color-mix(in srgb, var(--warn) 22%, transparent);
|
||||
}
|
||||
.upd-pill:active {
|
||||
transform: scale(0.94);
|
||||
}
|
||||
.upd-pill .i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
.dev.add {
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 144px;
|
||||
gap: 10px;
|
||||
color: var(--text-2);
|
||||
font-weight: 500;
|
||||
transition:
|
||||
background-color 200ms var(--ease-out),
|
||||
transform 200ms var(--ease-out);
|
||||
}
|
||||
.dev.add:hover {
|
||||
background: color-mix(in srgb, var(--raised), var(--knob) 45%);
|
||||
}
|
||||
.dev.add:active {
|
||||
transform: scale(0.98);
|
||||
}
|
||||
.dev.add .gi {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
/* Nothing yet: one card across the grid, what comes and the button. */
|
||||
.dev.first {
|
||||
grid-column: 1 / -1;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
padding: 28px 24px 24px;
|
||||
gap: 6px;
|
||||
}
|
||||
.dev.first .gi {
|
||||
width: 44px;
|
||||
height: 44px;
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.dev.first b {
|
||||
font-size: 18px;
|
||||
line-height: 24px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.dev.first p {
|
||||
margin: 0 0 14px;
|
||||
color: var(--text-2);
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
max-width: 34ch;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.dev.first .btn {
|
||||
max-width: 320px;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
/* Dawnline personal portal: the stylesheet, one file per part, joined into one portal.css by the
|
||||
build (tsup.config.ts). Order matters only where a later part refines an earlier one. */
|
||||
@import './tokens.css';
|
||||
@import './base.css';
|
||||
@import './controls.css';
|
||||
@import './morph.css';
|
||||
@import './accordion.css';
|
||||
@import './page.css';
|
||||
@import './devices.css';
|
||||
@import './access.css';
|
||||
@import './sheet.css';
|
||||
@import './setup.css';
|
||||
@import './menu-toast.css';
|
||||
@@ -0,0 +1,109 @@
|
||||
/* The ⋯ menu (a highlight that glides after the pointer, tinted for Reconnect and Remove) and the
|
||||
toast slot at the bottom. */
|
||||
|
||||
.menu {
|
||||
position: fixed;
|
||||
z-index: 60;
|
||||
min-width: 224px;
|
||||
padding: 6px;
|
||||
border-radius: 20px;
|
||||
background: var(--field);
|
||||
box-shadow:
|
||||
var(--pop-shadow),
|
||||
inset 0 0 0 1px var(--line);
|
||||
}
|
||||
.menu-hl {
|
||||
position: absolute;
|
||||
left: 6px;
|
||||
right: 6px;
|
||||
top: 6px;
|
||||
height: 40px;
|
||||
border-radius: 14px;
|
||||
background: var(--knob);
|
||||
opacity: 0;
|
||||
transition: opacity 150ms var(--ease-out);
|
||||
pointer-events: none;
|
||||
}
|
||||
.menu-hl.moving {
|
||||
transition:
|
||||
opacity 150ms var(--ease-out),
|
||||
transform var(--spring-quick-dur, 300ms) var(--spring-quick, ease-out),
|
||||
background-color 150ms;
|
||||
}
|
||||
.menu-hl.bad {
|
||||
background: var(--bad-soft);
|
||||
}
|
||||
.menu-hl.warn {
|
||||
background: color-mix(in srgb, var(--warn) 13%, transparent);
|
||||
}
|
||||
.mi {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
width: 100%;
|
||||
height: 40px;
|
||||
padding: 0 12px;
|
||||
border-radius: 14px;
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
text-align: left;
|
||||
}
|
||||
.mi .i {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.mi.warn,
|
||||
.mi.warn .i {
|
||||
color: var(--warn);
|
||||
}
|
||||
.mi.bad,
|
||||
.mi.bad .i {
|
||||
color: var(--bad);
|
||||
}
|
||||
.menu-sep {
|
||||
height: 1px;
|
||||
margin: 6px 12px;
|
||||
background: var(--line);
|
||||
}
|
||||
|
||||
/* One toast at a time; a new one comes in over the leaving one. */
|
||||
.toasts {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
height: 42px;
|
||||
bottom: calc(24px + env(safe-area-inset-bottom, 0px));
|
||||
z-index: 70;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: flex-end;
|
||||
pointer-events: none;
|
||||
padding-left: var(--gutter-l);
|
||||
padding-right: var(--gutter-r);
|
||||
}
|
||||
.toast {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
height: 42px;
|
||||
padding: 0 18px 0 13px;
|
||||
border-radius: 999px;
|
||||
background: var(--toast);
|
||||
color: var(--toast-fg);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
box-shadow: var(--pop-shadow);
|
||||
white-space: nowrap;
|
||||
}
|
||||
.toast .i {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
color: var(--ok);
|
||||
}
|
||||
.toast.bad .i {
|
||||
color: var(--bad);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
/* A text morphing in place (ui/morph.ts): the new letters in the flow, the old ones laid over them
|
||||
against the edge that stays put while they go; done, it is plain text again. */
|
||||
.mt {
|
||||
position: relative;
|
||||
}
|
||||
.mt-ib {
|
||||
display: inline-block;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mt-new {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.mt-old {
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
pointer-events: none;
|
||||
}
|
||||
.mt-new.w,
|
||||
.mt-old.w {
|
||||
white-space: inherit;
|
||||
}
|
||||
.mt-new i,
|
||||
.mt-old i {
|
||||
font-style: normal;
|
||||
display: inline-block;
|
||||
white-space: pre;
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
/* The page's frame: the edge fades, the breadcrumb, the two columns and their heads, the notice that
|
||||
says what stops the devices, and the card that stands alone when the link stopped working. */
|
||||
|
||||
/* The page fades out under the edges (iconiqui's dia-text, measured): on top a blur that thins out
|
||||
over a darkening ramp, once the page scrolls; at the bottom only the ramp. Above the page, under
|
||||
sheets, menus and toasts. */
|
||||
.edge-fade {
|
||||
position: fixed;
|
||||
left: 0;
|
||||
right: 0;
|
||||
z-index: 30;
|
||||
pointer-events: none;
|
||||
}
|
||||
.edge-fade.top {
|
||||
top: 0;
|
||||
height: calc(80px + env(safe-area-inset-top, 0px));
|
||||
opacity: 0;
|
||||
transition: opacity 200ms;
|
||||
background: linear-gradient(var(--bg) 0%, color-mix(in srgb, var(--bg) 75%, transparent) 50%, transparent 100%);
|
||||
-webkit-backdrop-filter: blur(12px);
|
||||
backdrop-filter: blur(12px);
|
||||
-webkit-mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.88) 44%, transparent 100%);
|
||||
mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.88) 44%, transparent 100%);
|
||||
}
|
||||
body.scrolled .edge-fade.top {
|
||||
opacity: 1;
|
||||
}
|
||||
.edge-fade.bot {
|
||||
bottom: 0;
|
||||
height: calc(96px + env(safe-area-inset-bottom, 0px));
|
||||
background: linear-gradient(to top in oklab, var(--bg) 0%, transparent 100%);
|
||||
}
|
||||
|
||||
/* The breadcrumb (iconiqui, measured): 32px high, the mark in a 32px box, 15px crumbs 6px apart
|
||||
with a 14px chevron, the current one brighter. The mark is one colour: the text's. */
|
||||
.crumbs {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
height: 32px;
|
||||
margin: 0 0 32px;
|
||||
}
|
||||
.cr-mark {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
}
|
||||
.logo {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
flex: none;
|
||||
overflow: hidden;
|
||||
}
|
||||
.logo .sun,
|
||||
.logo .bar {
|
||||
fill: var(--text);
|
||||
}
|
||||
.cr-path {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
letter-spacing: -0.15px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.cr-path span {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.cr-path .cur {
|
||||
color: var(--text);
|
||||
font-weight: 500;
|
||||
}
|
||||
.cr-path .i {
|
||||
width: 14px;
|
||||
height: 14px;
|
||||
}
|
||||
|
||||
/* Phones: one column, access first. From 960px: devices left, access right and sticky. The foot
|
||||
clears the bottom fade at the end of the scroll. */
|
||||
.page {
|
||||
max-width: 1072px;
|
||||
margin: 0 auto;
|
||||
padding-left: var(--gutter-l);
|
||||
padding-right: var(--gutter-r);
|
||||
padding-block: calc(40px + env(safe-area-inset-top, 0px)) 112px;
|
||||
}
|
||||
.cols {
|
||||
display: grid;
|
||||
gap: 40px;
|
||||
}
|
||||
.cols > .access {
|
||||
order: -1;
|
||||
}
|
||||
@media (min-width: 960px) {
|
||||
.cols {
|
||||
grid-template-columns: minmax(0, 1fr) 384px;
|
||||
gap: 36px;
|
||||
align-items: start;
|
||||
}
|
||||
.cols > .access {
|
||||
order: 0;
|
||||
position: sticky;
|
||||
top: calc(84px + env(safe-area-inset-top, 0px));
|
||||
}
|
||||
}
|
||||
.sec-head {
|
||||
display: flex;
|
||||
align-items: baseline;
|
||||
gap: 8px;
|
||||
padding: 0 4px 12px;
|
||||
}
|
||||
.sec-head h2 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.025em;
|
||||
}
|
||||
.sec-head .aside {
|
||||
color: var(--text-3);
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
}
|
||||
.sec-head .aside.warn-t {
|
||||
color: var(--warn);
|
||||
}
|
||||
.note-s {
|
||||
margin: 12px 4px 0;
|
||||
color: var(--text-3);
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
/* A notice wears its tone: the fill tinted, the rim a little stronger. */
|
||||
.notice {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 14px;
|
||||
padding: 14px 18px 14px 14px;
|
||||
border-radius: 24px;
|
||||
background: var(--raised);
|
||||
margin: 0 0 22px;
|
||||
}
|
||||
.notice .gi {
|
||||
width: 36px;
|
||||
height: 36px;
|
||||
}
|
||||
.notice .t {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-width: 0;
|
||||
}
|
||||
.notice b {
|
||||
font-weight: 500;
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.notice span {
|
||||
color: var(--text-2);
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.notice.warn {
|
||||
background: color-mix(in srgb, var(--warn) 10%, var(--raised));
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 22%, transparent);
|
||||
}
|
||||
.notice.bad {
|
||||
background: color-mix(in srgb, var(--bad) 10%, var(--raised));
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 22%, transparent);
|
||||
}
|
||||
|
||||
/* The page when there is nothing else: the link stopped working, or nothing could load. */
|
||||
/* One card in place of the page: the breadcrumb over it, the two together in the middle of the screen. */
|
||||
.page.single {
|
||||
min-height: 100vh;
|
||||
min-height: 100dvh;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
padding-block: calc(24px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-bottom, 0px));
|
||||
}
|
||||
/* Centred on its words, the mark hanging to their left, then nudged right by about half the mark's width:
|
||||
to the eye the mark and words together sit in the middle. The row keeps room for the mark on both sides. */
|
||||
.page.single .crumbs {
|
||||
position: relative;
|
||||
left: 12px;
|
||||
max-width: calc(100% - 84px);
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
.page.single .cr-mark {
|
||||
position: absolute;
|
||||
right: calc(100% + 10px);
|
||||
top: 0;
|
||||
}
|
||||
.page.single .page-body {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
}
|
||||
.page.single .gone {
|
||||
margin: 0;
|
||||
}
|
||||
.gone {
|
||||
max-width: 400px;
|
||||
margin: 12vh auto 0;
|
||||
padding: 32px 24px 28px;
|
||||
border-radius: var(--r-sheet);
|
||||
background: var(--raised);
|
||||
text-align: center;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
}
|
||||
.gone .gi {
|
||||
width: 56px;
|
||||
height: 56px;
|
||||
margin-bottom: 16px;
|
||||
}
|
||||
.gone h1 {
|
||||
margin: 0;
|
||||
font-size: 22px;
|
||||
line-height: 28px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.03em;
|
||||
}
|
||||
.gone p {
|
||||
margin: 6px 0 0;
|
||||
color: var(--text-2);
|
||||
text-wrap: balance;
|
||||
}
|
||||
@@ -0,0 +1,318 @@
|
||||
/* The set-up sheet: the numbered steps, the way from the device to the server while the page waits
|
||||
(and its line morphing into "<device> connected"), the .conf for a router, and the scan line that
|
||||
speaks for both phone systems. */
|
||||
|
||||
.setup {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.setup .notice {
|
||||
margin: 0 0 16px;
|
||||
}
|
||||
/* The steps fold to nothing under the way round: their gap is a block inside them, not padding
|
||||
(a border-box never folds below its padding). */
|
||||
.steps-gap {
|
||||
height: 22px;
|
||||
}
|
||||
.step {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
}
|
||||
.step + .step {
|
||||
margin-top: 20px;
|
||||
}
|
||||
.step-n {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
border-radius: 50%;
|
||||
background: var(--knob);
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
}
|
||||
.step-b {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
.step-t {
|
||||
font-size: 16px;
|
||||
line-height: 24px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.step-box {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
}
|
||||
|
||||
/* The way, as on the old portal: one dotted line, three layers through the same dots (the dots, the
|
||||
light along them that runs and rests a beat, the green that fills them from the device); the
|
||||
router's end lights up last, when the green gets there. */
|
||||
.way {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding: 12px 14px;
|
||||
border-radius: 20px;
|
||||
background: var(--field);
|
||||
margin-bottom: 18px;
|
||||
}
|
||||
.way-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
}
|
||||
.way-end {
|
||||
width: 34px;
|
||||
height: 34px;
|
||||
border-radius: 11px;
|
||||
background: var(--knob);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
flex: none;
|
||||
color: var(--text-2);
|
||||
transition:
|
||||
background-color 400ms var(--ease-out),
|
||||
color 400ms var(--ease-out);
|
||||
}
|
||||
.way-end .i {
|
||||
width: 17px;
|
||||
height: 17px;
|
||||
}
|
||||
.way-end.home {
|
||||
color: var(--accent);
|
||||
background: color-mix(in srgb, var(--accent) 14%, transparent);
|
||||
}
|
||||
.way-track {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
height: 8px;
|
||||
}
|
||||
.way-track::before,
|
||||
.way-glow,
|
||||
.way-fill {
|
||||
content: '';
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
-webkit-mask: radial-gradient(circle, #000 1.4px, transparent 1.9px) 0 50% / 9px 8px repeat-x;
|
||||
mask: radial-gradient(circle, #000 1.4px, transparent 1.9px) 0 50% / 9px 8px repeat-x;
|
||||
}
|
||||
.way-track::before {
|
||||
background: var(--text-3);
|
||||
opacity: 0.8;
|
||||
}
|
||||
.way-glow {
|
||||
overflow: hidden;
|
||||
transition: opacity 200ms var(--ease-out);
|
||||
}
|
||||
.way-glow i {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: linear-gradient(90deg, transparent 32%, var(--accent) 50%, transparent 68%);
|
||||
transform: translateX(-70%);
|
||||
animation: way-run 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
|
||||
}
|
||||
@keyframes way-run {
|
||||
0% {
|
||||
transform: translateX(-70%);
|
||||
}
|
||||
72%,
|
||||
100% {
|
||||
transform: translateX(70%);
|
||||
}
|
||||
}
|
||||
.way-fill {
|
||||
background: var(--ok);
|
||||
clip-path: inset(0 100% 0 0);
|
||||
transition: clip-path 700ms var(--ease-out) 80ms;
|
||||
}
|
||||
.way.done .way-fill {
|
||||
clip-path: inset(0);
|
||||
}
|
||||
.way.done .way-glow,
|
||||
.way.stopped .way-glow {
|
||||
opacity: 0;
|
||||
}
|
||||
.way.done .way-end {
|
||||
color: var(--ok);
|
||||
background: var(--ok-soft);
|
||||
}
|
||||
.way.done .way-end.home {
|
||||
transition-delay: 600ms;
|
||||
}
|
||||
.way.done .way-end.home .i {
|
||||
animation: way-pop 420ms var(--spring-bouncy, ease) 600ms backwards;
|
||||
}
|
||||
@keyframes way-pop {
|
||||
from {
|
||||
transform: scale(0.6);
|
||||
}
|
||||
to {
|
||||
transform: none;
|
||||
}
|
||||
}
|
||||
.way-text {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
min-height: 30px;
|
||||
margin-top: 10px;
|
||||
text-align: center;
|
||||
}
|
||||
.way-text .t {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
/* The line morphs into "<device> connected" (ui/morph.ts) and turns green. */
|
||||
.way-text b {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
font-weight: 500;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
transition: color 300ms var(--ease-out);
|
||||
}
|
||||
.way-text .ws {
|
||||
color: var(--text-2);
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
}
|
||||
.way.done .way-text b {
|
||||
color: var(--ok);
|
||||
}
|
||||
|
||||
/* The .conf for a router: a file card, and the configuration folded with its keys masked. */
|
||||
.filecard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
padding: 12px;
|
||||
border-radius: 18px;
|
||||
background: var(--field);
|
||||
}
|
||||
.fc-row {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
min-width: 0;
|
||||
}
|
||||
.filecard-ic {
|
||||
width: 38px;
|
||||
height: 46px;
|
||||
border-radius: 9px;
|
||||
background: var(--knob);
|
||||
font: 600 10px/1 var(--mono);
|
||||
display: grid;
|
||||
place-items: center;
|
||||
color: var(--text-2);
|
||||
flex: none;
|
||||
}
|
||||
.filecard .t {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
.filecard .t .mono {
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.filecard .t span:last-child {
|
||||
font-size: 12px;
|
||||
color: var(--text-2);
|
||||
line-height: 16px;
|
||||
}
|
||||
.confbar {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
}
|
||||
.conf {
|
||||
margin: 0;
|
||||
padding: 12px 14px;
|
||||
border-radius: 14px;
|
||||
background: var(--field);
|
||||
font: 12px/18px var(--mono);
|
||||
max-height: 16rem;
|
||||
overflow: auto;
|
||||
white-space: pre;
|
||||
color: var(--text-2);
|
||||
}
|
||||
.conf .k {
|
||||
color: var(--text);
|
||||
}
|
||||
.conf .sec {
|
||||
color: var(--accent);
|
||||
}
|
||||
.conf .mask {
|
||||
color: var(--text-3);
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
|
||||
/* Where the app scans, for both phone systems: the mark and the word that differs change in place. */
|
||||
.osm {
|
||||
white-space: normal;
|
||||
}
|
||||
.osm-ic {
|
||||
display: inline-grid;
|
||||
width: 1.05em;
|
||||
height: 1.05em;
|
||||
margin-right: 0.25em;
|
||||
vertical-align: -0.16em;
|
||||
}
|
||||
.osm-ic > svg {
|
||||
grid-area: 1 / 1;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
.osm-ic .eye {
|
||||
fill: var(--field);
|
||||
}
|
||||
.osm-p {
|
||||
display: inline-block;
|
||||
white-space: pre;
|
||||
}
|
||||
/* "In AmneziaWG:" and the path on one line; where they don't fit, the path goes under it whole, and
|
||||
stays there while it morphs (never split, never a part dropping on its own). */
|
||||
.scanline {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: baseline;
|
||||
column-gap: 0.3em;
|
||||
}
|
||||
.scanline .osm {
|
||||
white-space: nowrap;
|
||||
}
|
||||
/* A narrow screen: the path under the label for every app, so switching apps never moves it between lines. */
|
||||
@media (max-width: 440px) {
|
||||
.scanline {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
}
|
||||
}
|
||||
.way-text b .mt-old {
|
||||
color: var(--text-2);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.way-glow {
|
||||
display: none;
|
||||
}
|
||||
.way-fill {
|
||||
transition: none;
|
||||
}
|
||||
.way.done .way-end.home .i {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,281 @@
|
||||
/* The sheet: a drawer floating at the bottom on every width, × and a view's own buttons pinned in its
|
||||
corner, the views inside (head, line under it), and the question look (Remove, Reconnect). */
|
||||
|
||||
/* Closed, the sheet is out of the page (display, not visibility): each open computes its styles
|
||||
afresh. Hidden by visibility, Chromium could keep the inherited "hidden" on the views' box after a
|
||||
quick close and reopen (a double tap on Reconnect), and the sheet opened empty but for its buttons. */
|
||||
.sheet-root {
|
||||
position: fixed;
|
||||
inset: 0;
|
||||
z-index: 50;
|
||||
display: none;
|
||||
}
|
||||
.sheet-root.open {
|
||||
display: block;
|
||||
}
|
||||
.scrim {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
background: var(--scrim);
|
||||
-webkit-backdrop-filter: blur(8px);
|
||||
backdrop-filter: blur(8px);
|
||||
}
|
||||
.sheet {
|
||||
position: absolute;
|
||||
left: var(--gutter-l);
|
||||
right: var(--gutter-r);
|
||||
bottom: calc(16px + env(safe-area-inset-bottom, 0px));
|
||||
margin: 0 auto;
|
||||
max-width: 400px;
|
||||
max-height: calc(100% - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
|
||||
background: var(--raised);
|
||||
border-radius: var(--r-sheet);
|
||||
box-shadow: var(--sheet-shadow);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* On a computer (and a tablet held wide): a dialog in the middle of the screen, which comes up from
|
||||
its centre (ui/sheet.ts); a phone keeps the drawer at the bottom. The breakpoint is the one the
|
||||
sheet widens at for a dense code. Centred by the layout, not a transform, so its text stays on the
|
||||
pixel grid and its own transform stays free for the motion. */
|
||||
@media (min-width: 760px) {
|
||||
.sheet-root.open {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.sheet {
|
||||
position: relative;
|
||||
left: auto;
|
||||
right: auto;
|
||||
bottom: auto;
|
||||
margin: 0;
|
||||
width: calc(100% - var(--gutter-l) - var(--gutter-r));
|
||||
}
|
||||
}
|
||||
.sheet .x {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
right: 22px;
|
||||
top: 22px;
|
||||
}
|
||||
.vp {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
flex: none;
|
||||
}
|
||||
.sheet-scroll {
|
||||
flex: 1 1 auto;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
overscroll-behavior: contain;
|
||||
}
|
||||
.view {
|
||||
padding: 0 24px 24px;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
/* Pulled down by its head to close: the head takes the touch, the rest scrolls. */
|
||||
.vhead {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
height: 76px;
|
||||
padding-right: 44px;
|
||||
flex: none;
|
||||
cursor: grab;
|
||||
touch-action: none;
|
||||
}
|
||||
.vhead h2 {
|
||||
flex: 1;
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.5px;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
.vhead.center h2 {
|
||||
text-align: center;
|
||||
}
|
||||
.vhead.with-acts {
|
||||
padding-right: 126px;
|
||||
}
|
||||
.vsub {
|
||||
margin: -16px 0 18px;
|
||||
color: var(--text-2);
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
}
|
||||
.vhead.center + .vsub {
|
||||
text-align: center;
|
||||
margin: -6px auto 24px;
|
||||
max-width: 32ch;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.kinds-note {
|
||||
margin: 14px 2px 16px;
|
||||
}
|
||||
.view > .hint.bad-t {
|
||||
margin-top: 8px;
|
||||
}
|
||||
.secure-note {
|
||||
margin-top: 12px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* A view's own buttons beside × and pinned like it: icons only, each the size and colour of ×; the
|
||||
two join with tighter inner corners. */
|
||||
.sheet-acts {
|
||||
position: absolute;
|
||||
z-index: 3;
|
||||
top: 22px;
|
||||
right: 58px;
|
||||
}
|
||||
.hpill {
|
||||
position: relative;
|
||||
display: flex;
|
||||
gap: 2px;
|
||||
}
|
||||
.hp-b {
|
||||
display: grid;
|
||||
place-items: center;
|
||||
width: 38px;
|
||||
height: 32px;
|
||||
background: var(--knob);
|
||||
color: var(--text);
|
||||
transition:
|
||||
background-color 150ms,
|
||||
transform 150ms var(--ease-out);
|
||||
}
|
||||
.hp-b:first-of-type {
|
||||
border-radius: 16px 6px 6px 16px;
|
||||
}
|
||||
.hp-b:last-of-type {
|
||||
border-radius: 6px 16px 16px 6px;
|
||||
}
|
||||
.hp-b .i {
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
}
|
||||
.hp-b:hover {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 6%);
|
||||
}
|
||||
.hp-b:active {
|
||||
transform: scale(0.94);
|
||||
}
|
||||
.hp-b.done {
|
||||
color: var(--ok);
|
||||
}
|
||||
/* Their tooltip: a small toast-coloured pill under the keys, one for both. */
|
||||
.hp-tip {
|
||||
position: absolute;
|
||||
z-index: 4;
|
||||
left: 0;
|
||||
top: calc(100% + 8px);
|
||||
height: 26px;
|
||||
padding: 0 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: 999px;
|
||||
background: var(--toast);
|
||||
color: var(--toast-fg);
|
||||
font: 500 12px/1 var(--font);
|
||||
letter-spacing: -0.1px;
|
||||
white-space: nowrap;
|
||||
box-shadow:
|
||||
0 0 0 1px var(--line-glass),
|
||||
var(--pop-shadow);
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
overflow: hidden;
|
||||
transform-origin: 50% 0;
|
||||
}
|
||||
.hp-tip.on {
|
||||
opacity: 1;
|
||||
}
|
||||
.hp-tip .tt {
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
justify-content: center;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.hp-tip .tt-m {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
white-space: nowrap;
|
||||
}
|
||||
/* Connected: nothing is left to do here, so × and the view's buttons step away; the sheet then closes by itself. */
|
||||
.sheet .x,
|
||||
.sheet-acts {
|
||||
transition:
|
||||
transform 150ms var(--ease-out),
|
||||
background-color 150ms,
|
||||
opacity 240ms var(--ease-out),
|
||||
filter 240ms var(--ease-out),
|
||||
scale 240ms var(--ease-out);
|
||||
}
|
||||
.sheet.arrived .x,
|
||||
.sheet.arrived .sheet-acts {
|
||||
opacity: 0;
|
||||
filter: blur(3px);
|
||||
scale: 0.9;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
/* A question before something that cannot be undone. */
|
||||
.center-col {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
text-align: center;
|
||||
}
|
||||
.center-col.ask {
|
||||
padding-top: 28px;
|
||||
}
|
||||
.center-col.secure {
|
||||
padding-top: 4px;
|
||||
}
|
||||
.center-col .gi.xl {
|
||||
width: 64px;
|
||||
height: 64px;
|
||||
margin: 8px 0 16px;
|
||||
}
|
||||
.center-col h3 {
|
||||
margin: 0;
|
||||
font-size: 20px;
|
||||
line-height: 28px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.5px;
|
||||
}
|
||||
.center-col p {
|
||||
margin: 6px 0 22px;
|
||||
color: var(--text-2);
|
||||
font-size: 15px;
|
||||
line-height: 21px;
|
||||
max-width: 30ch;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.center-col.secure p {
|
||||
margin-top: 0;
|
||||
}
|
||||
.btnrow {
|
||||
display: flex;
|
||||
gap: 8px;
|
||||
width: 100%;
|
||||
}
|
||||
.btnrow .btn {
|
||||
flex: 1;
|
||||
}
|
||||
.btnrow2 {
|
||||
display: grid;
|
||||
gap: 8px;
|
||||
}
|
||||
.btnrow2 .btn {
|
||||
width: 100%;
|
||||
}
|
||||
@@ -0,0 +1,130 @@
|
||||
/* The portal's fonts and tokens. Dark first (the skiper21 palette, measured), light by the system's
|
||||
choice. Surfaces step up in brightness (ground → raised → field → knob) instead of borders; the
|
||||
accent is the one sky blue, colour otherwise only means state (ok green, warn orange, bad red). */
|
||||
|
||||
@font-face {
|
||||
font-family: Geist;
|
||||
src: url(geist-latin-wght-normal.woff2) format('woff2');
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
unicode-range:
|
||||
U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-21FF, U+2212, U+2215;
|
||||
}
|
||||
@font-face {
|
||||
font-family: Geist;
|
||||
src: url(geist-cyrillic-wght-normal.woff2) format('woff2');
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'Geist Mono';
|
||||
src: url(geist-mono-latin-wght-normal.woff2) format('woff2');
|
||||
font-weight: 100 900;
|
||||
font-display: swap;
|
||||
}
|
||||
|
||||
:root {
|
||||
color-scheme: dark;
|
||||
--bg: #080808;
|
||||
--raised: #121212;
|
||||
--field: #161616;
|
||||
--knob: #232323;
|
||||
--seg: rgba(237, 237, 237, 0.05);
|
||||
--seg-shadow: none;
|
||||
--line: rgba(255, 255, 255, 0.06);
|
||||
--text: #ededed;
|
||||
--text-2: #8c8c8a;
|
||||
--text-3: #4f4f4e;
|
||||
--accent: #4eafff;
|
||||
--accent-ink: #ffffff;
|
||||
--accent-soft: rgba(78, 175, 255, 0.13);
|
||||
--ok: #57d64b;
|
||||
--ok-soft: rgba(87, 214, 75, 0.14);
|
||||
--warn: #ff8a3d;
|
||||
--bad: #ff5c5c;
|
||||
--bad-soft: rgba(255, 92, 92, 0.13);
|
||||
--sel-bg: rgba(131, 209, 255, 0.25);
|
||||
--sel-fg: #64c6ff;
|
||||
--scrim: rgba(8, 8, 8, 0.8);
|
||||
--line-glass: rgba(255, 255, 255, 0.07);
|
||||
--pop-shadow: 0 18px 48px -14px rgba(0, 0, 0, 0.75);
|
||||
--sheet-shadow: 0 24px 64px -16px rgba(0, 0, 0, 0.6);
|
||||
--bar: rgba(237, 237, 237, 0.13);
|
||||
--toast: #232323;
|
||||
--toast-fg: #ededed;
|
||||
--qr-bg: #0a0a0a;
|
||||
/* glass icons: the frosted pane, its rim and edge, the detail strokes; the tones' two stops */
|
||||
--gi-a: rgba(255, 255, 255, 0.58);
|
||||
--gi-b: rgba(255, 255, 255, 0.14);
|
||||
--gi-rim: rgba(255, 255, 255, 0.5);
|
||||
--gi-edge: rgba(0, 0, 0, 0);
|
||||
--gi-detail: #ffffff;
|
||||
--t-grey-a: #cfcfcd;
|
||||
--t-grey-b: #5a5a59;
|
||||
--t-blue-a: #a6d9ff;
|
||||
--t-blue-b: #1d84e6;
|
||||
--t-green-a: #a8f29c;
|
||||
--t-green-b: #3aa32c;
|
||||
--t-red-a: #ffadad;
|
||||
--t-red-b: #dc3a3a;
|
||||
--t-orange-a: #ffc08f;
|
||||
--t-orange-b: #ec6a12;
|
||||
|
||||
--font: Geist, -apple-system, system-ui, 'Segoe UI', sans-serif;
|
||||
--mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
|
||||
--r-sheet: 36px;
|
||||
--r-card: 28px;
|
||||
--r-row: 20px;
|
||||
--r-field: 16px;
|
||||
--r-tile: 12px;
|
||||
--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
|
||||
--gutter-l: max(16px, env(safe-area-inset-left, 0px));
|
||||
--gutter-r: max(16px, env(safe-area-inset-right, 0px));
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: light) {
|
||||
:root {
|
||||
color-scheme: light;
|
||||
--bg: #f2f2f1;
|
||||
--raised: #ffffff;
|
||||
--field: #f3f3f2;
|
||||
--knob: #e8e8e7;
|
||||
--seg: #ffffff;
|
||||
--seg-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 0.5px rgba(0, 0, 0, 0.05);
|
||||
--line: rgba(0, 0, 0, 0.07);
|
||||
--text: #0b0b0b;
|
||||
--text-2: #6d6d6b;
|
||||
--text-3: #a6a6a4;
|
||||
--accent: #2b9dff;
|
||||
--accent-soft: rgba(43, 157, 255, 0.12);
|
||||
--ok: #33a328;
|
||||
--ok-soft: rgba(51, 163, 40, 0.12);
|
||||
--warn: #ee6a12;
|
||||
--bad: #e5484d;
|
||||
--bad-soft: rgba(229, 72, 77, 0.1);
|
||||
--sel-bg: rgba(78, 175, 255, 0.22);
|
||||
--sel-fg: #0a76cf;
|
||||
--scrim: rgba(236, 236, 235, 0.62);
|
||||
--line-glass: rgba(0, 0, 0, 0.07);
|
||||
--pop-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.2);
|
||||
--sheet-shadow: 0 24px 64px -18px rgba(0, 0, 0, 0.22);
|
||||
--bar: rgba(11, 11, 11, 0.11);
|
||||
--toast: #0b0b0b;
|
||||
--toast-fg: #f2f2f1;
|
||||
--qr-bg: #ffffff;
|
||||
--gi-a: rgba(250, 250, 249, 0.72);
|
||||
--gi-b: rgba(206, 206, 204, 0.5);
|
||||
--gi-rim: rgba(255, 255, 255, 0.9);
|
||||
--gi-edge: rgba(0, 0, 0, 0.11);
|
||||
--gi-detail: rgba(28, 28, 28, 0.72);
|
||||
--t-grey-a: #a9a9a7;
|
||||
--t-grey-b: #3d3d3c;
|
||||
--t-blue-a: #7cc4ff;
|
||||
--t-blue-b: #0a6fd6;
|
||||
--t-green-a: #82e070;
|
||||
--t-green-b: #2e8a22;
|
||||
--t-red-a: #ff9090;
|
||||
--t-red-b: #c92a2a;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user