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
- The device menu (⋯) is an iOS-style menu on frosted glass: the copy actions show the address they copy, Rename, Reconnect and Remove sit under them, and one highlight glides from row to row - The language picker shows flags; pick a language with a click, or press the pill and slide onto one. The flag and the code change in place - The page's QR code opens as a small card under its button, with Copy link and Share - All dropdowns look and behave the same: frosted glass, one open at a time, and a press outside, Escape or the button again closes them - Setting a device up: when it can't finish connecting or connects but passes no data, the sheet keeps just the status and what it means. No data now says the router drops its traffic because the address doesn't match, and the device's card says "Connected, but no data" right away instead of "Connected" - Setting a phone up from another device: Download and Copy for the connection sit on its row, next to the arrow - On iPhone and iPad the caret shows as soon as a field is focused, the page no longer zooms on a pinch or a double tap, and sheets and their animations run smoother - A press near the edge of a button or a card always counts, even as it shrinks under the pointer - Animations settle without a jump at the end - New green, orange and red - The focus ring shows only while moving around with the keyboard
469 lines
9.7 KiB
CSS
469 lines
9.7 KiB
CSS
/* The set-up sheet: the numbered steps, the way from the device to the server while the page waits
|
|
(its line morphing into "<device> connected", and how it looks when the device can't finish
|
|
connecting or connects with no data), 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 connection (flows/setup-view.ts): its picker over its box, in step 2, a row or the again-row alike. */
|
|
.conn {
|
|
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;
|
|
}
|
|
/* Running and knocking are two loops that never stop: a state fades its own in and the other out where
|
|
each stands (a new animation-name would start over at 0%, off the track, in one frame). Connected, no
|
|
data and given up show neither. */
|
|
.way-glow > span {
|
|
position: absolute;
|
|
inset: 0;
|
|
transition: opacity 200ms var(--ease-out);
|
|
}
|
|
.way.trying .run,
|
|
.way.done .run,
|
|
.way.nodata .run,
|
|
.way.stopped .run,
|
|
.way:not(.trying) .knock {
|
|
opacity: 0;
|
|
}
|
|
.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-end {
|
|
color: var(--ok);
|
|
background: var(--ok-soft);
|
|
}
|
|
.way.done .way-end.home,
|
|
.way.nodata .way-end.home {
|
|
transition-delay: 600ms;
|
|
}
|
|
/* The router's icon pops as the green gets there: it dips to .6 first (from rest to rest, on the way's
|
|
curve), so it starts from its own size, and springs back on BOUNCY's own curve and time from 600 ms,
|
|
with its colour. */
|
|
.way.done .way-end.home .i {
|
|
animation:
|
|
way-dip 120ms cubic-bezier(0.45, 0, 0.55, 1) 480ms,
|
|
way-pop var(--spring-bouncy-dur, 572ms) var(--spring-bouncy, ease) 600ms;
|
|
}
|
|
@keyframes way-dip {
|
|
to {
|
|
transform: scale(0.6);
|
|
}
|
|
}
|
|
@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);
|
|
}
|
|
|
|
/* Can't finish: the light runs almost to the router and falls back, a break flashes at the router,
|
|
and the router's end turns orange. */
|
|
.way-glow .knock i {
|
|
background: linear-gradient(90deg, transparent 32%, var(--warn) 50%, transparent 68%);
|
|
animation: way-knock 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
|
|
}
|
|
@keyframes way-knock {
|
|
0% {
|
|
transform: translateX(-70%);
|
|
}
|
|
48% {
|
|
transform: translateX(34%);
|
|
}
|
|
62% {
|
|
transform: translateX(26%);
|
|
opacity: 1;
|
|
}
|
|
86%,
|
|
100% {
|
|
transform: translateX(-70%);
|
|
opacity: 0;
|
|
}
|
|
}
|
|
/* The break flashes all along on the knock's beat (both start with the way) and fades in and out with
|
|
can't finish, from whatever it shows. */
|
|
.way-break {
|
|
position: absolute;
|
|
right: -2px;
|
|
top: -5px;
|
|
width: 2px;
|
|
height: 18px;
|
|
opacity: 0;
|
|
transition: opacity 200ms var(--ease-out);
|
|
}
|
|
.way.trying .way-break {
|
|
opacity: 1;
|
|
}
|
|
.way-break i {
|
|
position: absolute;
|
|
inset: 0;
|
|
border-radius: 2px;
|
|
background: var(--warn);
|
|
transform: rotate(18deg);
|
|
animation: way-break 1.8s cubic-bezier(0.45, 0, 0.55, 1) infinite;
|
|
}
|
|
@keyframes way-break {
|
|
0%,
|
|
40% {
|
|
opacity: 0.25;
|
|
transform: rotate(18deg) scaleY(0.7);
|
|
}
|
|
50% {
|
|
opacity: 1;
|
|
transform: rotate(18deg) scaleY(1.15);
|
|
}
|
|
70%,
|
|
100% {
|
|
opacity: 0.25;
|
|
transform: rotate(18deg) scaleY(0.7);
|
|
}
|
|
}
|
|
.way.trying .way-end.home {
|
|
color: var(--warn);
|
|
background: color-mix(in srgb, var(--warn) 14%, transparent);
|
|
}
|
|
.way.trying .way-text b,
|
|
.way.nodata .way-text b {
|
|
color: var(--warn);
|
|
}
|
|
/* No data: the way is green (it connects), but a packet falls through on its way to the router. */
|
|
.way.nodata .way-fill {
|
|
clip-path: inset(0);
|
|
}
|
|
.way.nodata .way-end {
|
|
color: var(--ok);
|
|
background: var(--ok-soft);
|
|
}
|
|
.way-pkt {
|
|
position: absolute;
|
|
top: 50%;
|
|
left: 0;
|
|
width: 8px;
|
|
height: 8px;
|
|
margin-top: -4px;
|
|
border-radius: 50%;
|
|
background: var(--warn);
|
|
box-shadow: 0 0 10px color-mix(in srgb, var(--warn) 70%, transparent);
|
|
opacity: 0;
|
|
animation: way-drop 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
|
|
}
|
|
.way-pkt.b {
|
|
animation-delay: 1.1s;
|
|
}
|
|
@keyframes way-drop {
|
|
0% {
|
|
left: 0;
|
|
opacity: 0;
|
|
transform: none;
|
|
}
|
|
8% {
|
|
opacity: 1;
|
|
}
|
|
46% {
|
|
left: 48%;
|
|
opacity: 1;
|
|
transform: none;
|
|
}
|
|
66%,
|
|
100% {
|
|
left: 54%;
|
|
opacity: 0;
|
|
transform: translateY(16px) scale(0.5);
|
|
}
|
|
}
|
|
|
|
/* 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;
|
|
}
|
|
/* Still frames: the break stands at the router, and no packet falls. */
|
|
.way-break i {
|
|
animation: none;
|
|
}
|
|
.way-pkt {
|
|
display: none;
|
|
}
|
|
}
|