Dawnline 0.14.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
- A device is renamed where its name stands on its card: a click on the
name, Return or Space on it, or Rename in the ⋯ menu turns it into a
field with the name selected. Return saves, and the words shimmer until
the router answers. Esc or a click elsewhere puts the old name back. The
rename window is gone, and the page no longer redraws under a name being
edited
- Device names take up to 20 characters: letters of any language, digits,
spaces and - _ . The router refuses anything else when a device is added
or renamed, so a name can't carry symbols into configurations, file
names or the AmneziaVPN key. The portal and the admin turn a character
like that away as it is typed: the field shakes, its outline goes red
and a short line says why. Suggested names (a phone's model, "Phone 2")
are stripped of such characters and cut to fit. Names set before this
stay as they are
- LAN Bypass: Add a device, in the portal and in the admin, has a switch
that keeps the device's own local network (printer, TV, NAS) reachable
while it is connected. It is off by default and stays as chosen; the
admin's device drawer shows it. With home and internet access the switch
says which addresses still lead to the home network
- Health warns when a server's home network is on one of the subnets home
routers come with (192.168.0.x, 192.168.1.x and others). People with
home access who connect from a network on the same addresses reach your
home instead of their own, LAN Bypass or not
- The router tells when a device can't connect properly. After the problem
lasts three minutes, the portal card and the admin drawer name it:
can't finish connecting (the network may block it), connected but no
data (an outdated configuration, and the card offers Reconnect), on two
devices at once, or a connection that keeps dropping. Activity lists
these under Problems, one line per device per hour, and says when the
device connects normally again
- The set-up sheet's connection line follows what the device does:
waiting, can't finish, connected, or connected but no data. The sheet
closes by itself only once data comes through. On the device itself and
for a router, the steps regroup to what fixes the problem: "Set it up
again" when the handshake never finishes, "Add the connection again"
("Import the configuration again" for a router) when no data comes
- Set-up in the portal: a QR code too long for a camera to read gives its
place to a code that opens the set-up link (a LAN Bypass configuration
or a long AmneziaVPN key can be that long). A TV, box or NAS added from
a phone gets the steps for setting up from another device. Back from
"Open on the device" keeps the kind, LAN Bypass and the name typed. The
packet-size note under the kinds is gone
- The portal on phones keeps its place: nothing jumps when an access row
opens or folds, a notice comes or goes, or Safari redraws the cards. A
reload, or coming back from the VPN app, opens where the page was. Cards
glide to their new height, and an animation interrupted half-way goes on
from where it is instead of snapping. A double click no longer closes
the sheet it just opened
- In the admin, a device's drawer has its own MTU and keep-alive (empty
means the server's), each with a Change dialog. A change touches only
that device's configuration and restarts nothing on the router. Opening
the drawer no longer counts as handing out the configuration: "Update
config" stays until the new configuration is shown as a QR code,
downloaded or copied ("Show the new configuration"). New keys set the
device up again, as the portal's Reconnect does
- "Speed now" on a server's Overview is live: one point a second over the
last two minutes, all there as soon as the Overview opens. The agent
keeps those two minutes in memory and writes them out only while someone
is looking
- Disguise values that AmneziaWG refuses or crashes on are stopped before
they reach the kernel. That covers overlapping H1-H4, Jmin above Jmax,
broken I1-I5 tags, padding under 12 with header protection, and more.
Import and restore refuse them. After a hand edit in uci, the server's
tunnel stays down and Health and the service log say why and what to do.
Errors are full sentences in the reader's language
- The header protection key no longer shows in the status that read-only
users can see: the Server page says only that the key is set, and each
device's configuration still has it. The server no longer turns off
WireGuard's protection against handshake floods (devices keep
DisableCookies). A device can't be added with a server's own key
- An AmneziaWG update whose kernel module can't be swapped (another
AmneziaWG interface holds the old one) no longer fails. It is installed,
the tunnels come back on the old module, and Health and Components say
the update starts after a reboot. On apk firmware, an install that apk
left at the old version counts as failed. A module installed by hand is
recorded, so after a firmware upgrade Health can tell that it is gone
- Dawnline reads only its own tunnels, each one separately. Another
AmneziaWG interface on the router no longer slows the agent's
once-a-second check, has its keys read or breaks Dawnline's reads. A
portal request reads only that person's server: one process however many
servers there are
- Fewer false disconnects: a tunnel that netifd sets up again no longer
logs everyone as leaving and coming back, and a device with a long
keep-alive stays online between handshakes. One configuration on two
devices isn't logged as roaming every few seconds, and new keys end the
old session at once. A tunnel that is missing devices is synced within a
minute, and traffic across a tunnel restart is no longer undercounted
- Renaming a server no longer restarts its tunnel. If a tunnel's interface
is edited outside Dawnline (LuCI, uci), the watchdog sets it up again
with Dawnline's settings and names only the changed options. The routing
rules for "Internet like a home device" change one at a time, new ones
first, so traffic never falls between them. Health and the Server page
warn when the address's AAAA record isn't this router's, or the router
has no public IPv6: devices that prefer IPv6 fail to connect
- The README screenshots come in English and Russian; the portal's are
taken from its demo. The demo has a switch beside × in the set-up sheet
to show each state of the connection line. In Russian, long labels in
the admin's wide option buttons wrap under their icon. DESIGN.md
describes the switch, renaming on the card, the shimmer, the shake and
how the portal scrolls. New tests cover link states, the meter, access,
Health, firewall rules, network settings and packages
This commit is contained in:
1 parent
58492be021
commit
dc0f159447
155 files changed
+11062
-1461
No files matched your search
@@ -84,7 +84,7 @@
|
||||
align-items: center;
|
||||
gap: 8px;
|
||||
}
|
||||
.acc-row.open .acc-val.hide-open {
|
||||
.acc-row.open > .acc-head > .acc-val.hide-open {
|
||||
opacity: 0;
|
||||
filter: blur(4px);
|
||||
transform: translateX(8px);
|
||||
@@ -97,15 +97,17 @@
|
||||
transform: rotate(90deg);
|
||||
transition: transform var(--spring-soft-dur, 470ms) var(--spring-soft, ease);
|
||||
}
|
||||
.acc-row.open .acc-chev {
|
||||
/* Only the row's own head and body: a row inside an open row keeps its own state (the router's
|
||||
"Configuration" inside "Set it up again"). */
|
||||
.acc-row.open > .acc-head > .acc-chev {
|
||||
transform: rotate(-90deg);
|
||||
}
|
||||
.acc-body {
|
||||
display: none;
|
||||
padding: 0 8px 16px 40px;
|
||||
}
|
||||
.acc-row.open .acc-body,
|
||||
.acc-row.closing .acc-body {
|
||||
.acc-row.open > .acc-body,
|
||||
.acc-row.closing > .acc-body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 12px;
|
||||
@@ -128,6 +130,33 @@
|
||||
.acc.inset .seg {
|
||||
background: color-mix(in srgb, var(--knob) 65%, var(--field));
|
||||
}
|
||||
/* Steps inside an inset row ("Set it up again") sit on field: their badges step up as the picker
|
||||
does, and one step more on hover. */
|
||||
.acc.inset .badge {
|
||||
background: color-mix(in srgb, var(--knob) 65%, var(--field));
|
||||
}
|
||||
.acc.inset .badge:hover {
|
||||
background: var(--knob);
|
||||
}
|
||||
/* The router's file step inside an inset row: its card, its inset "Configuration" row and what
|
||||
that row opens step up one the same way; its buttons one more, and one more again on hover. */
|
||||
.acc.inset .filecard,
|
||||
.acc.inset .acc.inset .acc-row {
|
||||
background: color-mix(in srgb, var(--knob) 65%, var(--field));
|
||||
}
|
||||
.acc.inset .acc.inset .acc-row:not(.open):not(.still):hover {
|
||||
background: var(--knob);
|
||||
}
|
||||
.acc.inset .filecard-ic,
|
||||
.acc.inset .acc.inset .btn.soft {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 6%);
|
||||
}
|
||||
.acc.inset .acc.inset .btn.soft:hover {
|
||||
background: color-mix(in srgb, var(--knob), var(--text) 12%);
|
||||
}
|
||||
.acc.inset .acc.inset .conf {
|
||||
background: var(--knob);
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.acc-chev {
|
||||
|
||||
@@ -8,6 +8,10 @@ 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;
|
||||
/* No scroll anchoring: on a phone "Your access" shows above the devices but comes after them in the page
|
||||
(main.ts), so the browser would hold "Your devices" still while an access row opens or folds, and pull a page
|
||||
scrolled less than the fold to the very top. A row grows and folds in place; a repaint glides what moves. */
|
||||
overflow-anchor: none;
|
||||
}
|
||||
body {
|
||||
margin: 0;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* 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. */
|
||||
go button and its own caret and selection, the icon picker, the kinds with their ring, the option
|
||||
row with its switch, badges, hints and menu paths, the link row, QR codes and the row that puts a
|
||||
code beside its words. */
|
||||
|
||||
.knob {
|
||||
width: 32px;
|
||||
@@ -199,7 +200,7 @@
|
||||
gap: 12px;
|
||||
padding: 0 4px 0 16px;
|
||||
overflow: hidden;
|
||||
transition: box-shadow 200ms var(--ease-out);
|
||||
transition: box-shadow var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease);
|
||||
}
|
||||
.field:focus-within {
|
||||
box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--text) 16%, transparent);
|
||||
@@ -228,8 +229,8 @@
|
||||
place-items: center;
|
||||
flex: none;
|
||||
transition:
|
||||
background-color 200ms var(--ease-out),
|
||||
color 200ms var(--ease-out),
|
||||
background-color var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease),
|
||||
color var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease),
|
||||
transform 200ms var(--ease-out);
|
||||
}
|
||||
.go .i {
|
||||
@@ -247,6 +248,142 @@
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
/* The field's own caret (ui/caret.ts): the input's is hidden, ours glides to where the next letter
|
||||
goes. As macOS draws it (Sonoma, NSTextInsertionIndicator): the accent, a 2 px capsule the line's
|
||||
height, on for 0.6 s and off for 0.6 s with a soft fade either way; solid while typing, blinking
|
||||
again 0.5 s after the last key. */
|
||||
.field.own-caret {
|
||||
position: relative;
|
||||
}
|
||||
.field.own-caret input {
|
||||
caret-color: transparent;
|
||||
}
|
||||
.caret {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
width: 2px;
|
||||
height: 20px;
|
||||
margin-top: -10px;
|
||||
border-radius: 1px;
|
||||
background: var(--accent);
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 100ms linear;
|
||||
will-change: transform;
|
||||
}
|
||||
.caret.on {
|
||||
opacity: 1;
|
||||
}
|
||||
.caret.on.blink {
|
||||
animation: caret-blink 1.2s ease-in-out infinite;
|
||||
}
|
||||
@keyframes caret-blink {
|
||||
0%,
|
||||
38% {
|
||||
opacity: 1;
|
||||
}
|
||||
50%,
|
||||
88% {
|
||||
opacity: 0;
|
||||
}
|
||||
100% {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
/* Where the caret measures the text: the input's font, out of sight. */
|
||||
.caret-mirror {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
top: 0;
|
||||
visibility: hidden;
|
||||
white-space: pre;
|
||||
}
|
||||
/* With a mouse or trackpad, an iOS-style selection: the native one is see-through (the text keeps
|
||||
its colour) and ours is drawn under the text, an accent wash a little taller than the line with a
|
||||
handle at each end (2 px, the knob on top at the start and under it at the end). They fade in as
|
||||
a selection starts and out as it collapses. */
|
||||
.field.own-sel input {
|
||||
position: relative;
|
||||
z-index: 1;
|
||||
}
|
||||
.field.own-sel input::selection {
|
||||
background: transparent;
|
||||
color: var(--text);
|
||||
}
|
||||
.caret-sel {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
height: 22px;
|
||||
margin-top: -11px;
|
||||
border-radius: 4px;
|
||||
background: color-mix(in srgb, var(--accent) 26%, transparent);
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 140ms linear;
|
||||
}
|
||||
.caret-hd {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
left: 0;
|
||||
top: 50%;
|
||||
width: 2px;
|
||||
height: 22px;
|
||||
margin-top: -11px;
|
||||
border-radius: 1px;
|
||||
background: var(--accent);
|
||||
pointer-events: none;
|
||||
opacity: 0;
|
||||
transition: opacity 140ms linear;
|
||||
}
|
||||
.caret-hd::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
width: 9px;
|
||||
height: 9px;
|
||||
margin-left: -4.5px;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
}
|
||||
.caret-hd.s::after {
|
||||
top: -7px;
|
||||
}
|
||||
.caret-hd.e::after {
|
||||
bottom: -7px;
|
||||
}
|
||||
.field.selecting .caret-sel,
|
||||
.field.selecting .caret-hd {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Words on their way to the router (ui/shimmer.ts): the input's own are hidden under a copy that dims and lets a
|
||||
light band sweep across it, the band the words' colour over a muted base; the caret steps aside meanwhile. */
|
||||
.field.saving input {
|
||||
color: transparent;
|
||||
}
|
||||
.field.saving .caret {
|
||||
opacity: 0 !important;
|
||||
animation: none !important;
|
||||
}
|
||||
.shim-clip {
|
||||
position: absolute;
|
||||
z-index: 2;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
}
|
||||
.shim {
|
||||
--shim-high: var(--text);
|
||||
--shim-base: color-mix(in oklab, var(--text) 38%, var(--raised));
|
||||
position: absolute;
|
||||
top: 0;
|
||||
white-space: pre;
|
||||
-webkit-background-clip: text;
|
||||
background-clip: text;
|
||||
color: transparent;
|
||||
}
|
||||
|
||||
/* The icon picker (skiper21's tabs): icons only, the picked one widens and shows its name. */
|
||||
.seg {
|
||||
position: relative;
|
||||
@@ -398,6 +535,98 @@
|
||||
font-size: 11.5px;
|
||||
}
|
||||
}
|
||||
|
||||
/* An option with a switch (Add a device's LAN Bypass): a field-coloured block on the raised sheet,
|
||||
its glass icon grey while off, the whole row the switch. Hover tints it; it does not shrink. */
|
||||
.swrow {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px 12px 12px 14px;
|
||||
border-radius: 16px;
|
||||
background: var(--field);
|
||||
color: var(--text);
|
||||
text-align: left;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
transition: background-color 200ms;
|
||||
}
|
||||
.swrow:hover {
|
||||
background: color-mix(in srgb, var(--field), var(--knob) 50%);
|
||||
}
|
||||
.kinds + .swrow {
|
||||
margin: 16px 0 12px;
|
||||
}
|
||||
.swrow .gi {
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
flex: none;
|
||||
transition:
|
||||
filter var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease),
|
||||
opacity var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease);
|
||||
}
|
||||
.swrow:not(.on) .gi {
|
||||
filter: grayscale(1);
|
||||
opacity: 0.55;
|
||||
}
|
||||
.sw-t {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 1px;
|
||||
}
|
||||
.sw-t b {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.015em;
|
||||
}
|
||||
.sw-sub {
|
||||
font-size: 13px;
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
/* The switch: a knob-coloured track on the field, the accent when on. Held down, the knob reaches
|
||||
halfway toward where it goes (as iOS switches do: off it stretches to the right, on to the left);
|
||||
let go and it finishes the move. */
|
||||
.sw {
|
||||
position: relative;
|
||||
flex: none;
|
||||
width: 44px;
|
||||
height: 26px;
|
||||
border-radius: 999px;
|
||||
background: var(--knob);
|
||||
transition: background-color var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease);
|
||||
}
|
||||
.sw::after {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 3px;
|
||||
left: 3px;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
border-radius: 10px;
|
||||
background: var(--text-2);
|
||||
transition:
|
||||
transform var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease),
|
||||
width var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease),
|
||||
background-color var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease);
|
||||
}
|
||||
.swrow.on .sw {
|
||||
background: var(--accent);
|
||||
}
|
||||
.swrow.on .sw::after {
|
||||
transform: translateX(18px);
|
||||
background: var(--accent-ink);
|
||||
}
|
||||
.swrow:active .sw::after {
|
||||
width: 27px;
|
||||
}
|
||||
.swrow.on:active .sw::after {
|
||||
transform: translateX(11px);
|
||||
}
|
||||
.or {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -499,6 +728,11 @@
|
||||
line-height: 18px;
|
||||
color: var(--text-2);
|
||||
}
|
||||
/* A hint that says what is wrong (under a name field): red, over the hint's own grey (this file comes after
|
||||
base.css's .bad-t). */
|
||||
.hint.bad-t {
|
||||
color: var(--bad);
|
||||
}
|
||||
.hint a,
|
||||
.hint button {
|
||||
color: var(--accent);
|
||||
@@ -595,7 +829,8 @@
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
/* A code swapping for another: the old one lies over the new one while it fades. */
|
||||
/* A code swapping for another: the old one lies over the new one while it fades, and one turned back to while it
|
||||
fades up again where it lies. */
|
||||
.qrbox > svg.old {
|
||||
position: absolute;
|
||||
inset: 0;
|
||||
@@ -657,4 +892,8 @@
|
||||
opacity: 1;
|
||||
filter: none;
|
||||
}
|
||||
/* The caret stands still: a blink is motion the visitor asked to be spared. */
|
||||
.caret.on.blink {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
@@ -72,6 +72,46 @@
|
||||
.dev-stat.here-t {
|
||||
color: var(--accent);
|
||||
}
|
||||
/* Why a name it was given won't do (flows/rename.ts). */
|
||||
.dev-stat.bad-t {
|
||||
color: var(--bad);
|
||||
}
|
||||
|
||||
/* A name the person may change (flows/rename.ts): it hugs its words, a faint wash under the pointer says it can
|
||||
be clicked; editing, it gives way to its own input in the same font and place, with nothing around it but the
|
||||
field's caret and selection. */
|
||||
.dev-name.can-edit {
|
||||
align-self: flex-start;
|
||||
max-width: calc(100% + 12px);
|
||||
margin: 0 -6px;
|
||||
padding: 0 6px;
|
||||
border-radius: 8px;
|
||||
cursor: text;
|
||||
outline: none;
|
||||
transition: background-color 150ms var(--ease-out);
|
||||
}
|
||||
.dev-name.can-edit:hover {
|
||||
background: color-mix(in srgb, var(--raised), var(--text) 6%);
|
||||
}
|
||||
/* Not when an edit gave focus back to it (flows/rename.ts): only reached with Tab. */
|
||||
.dev-name.can-edit:focus-visible:not(.quiet) {
|
||||
box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent);
|
||||
}
|
||||
.field.inline,
|
||||
.field.inline:focus-within {
|
||||
height: 30px;
|
||||
margin: -4px -6px;
|
||||
padding: 0 6px;
|
||||
gap: 0;
|
||||
border-radius: 8px;
|
||||
background: none;
|
||||
box-shadow: none;
|
||||
overflow: visible;
|
||||
}
|
||||
.field.inline input {
|
||||
font: 500 16px/22px var(--font);
|
||||
letter-spacing: -0.02em;
|
||||
}
|
||||
.dev-use {
|
||||
margin-top: auto;
|
||||
background: var(--field);
|
||||
|
||||
@@ -176,6 +176,12 @@ body.scrolled .edge-fade.top {
|
||||
line-height: 18px;
|
||||
}
|
||||
|
||||
/* The notice's slot holds its margin (flow-root) and clips it while its height glides, so a notice that comes or
|
||||
goes is uncovered or folded away instead of hanging over what follows (page/notices.ts). */
|
||||
.notice-slot {
|
||||
display: flow-root;
|
||||
overflow-y: clip;
|
||||
}
|
||||
/* A notice wears its tone: the fill tinted, the rim a little stronger. */
|
||||
.notice {
|
||||
display: flex;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/* 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. */
|
||||
(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;
|
||||
@@ -21,6 +22,10 @@
|
||||
.step + .step {
|
||||
margin-top: 20px;
|
||||
}
|
||||
/* No data: the connection step alone in its row (flows/setup-view.ts regroup). */
|
||||
.step[hidden] + .step {
|
||||
margin-top: 0;
|
||||
}
|
||||
.step-n {
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
@@ -108,8 +113,22 @@
|
||||
}
|
||||
.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;
|
||||
@@ -134,19 +153,26 @@
|
||||
.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 {
|
||||
.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-pop 420ms var(--spring-bouncy, ease) 600ms backwards;
|
||||
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 {
|
||||
@@ -191,6 +217,121 @@
|
||||
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;
|
||||
@@ -315,4 +456,11 @@
|
||||
.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;
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
/* 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). */
|
||||
/* The sheet: a drawer floating at the bottom of a phone, a dialog in the middle of a computer, × 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
|
||||
@@ -60,6 +61,8 @@
|
||||
right: 22px;
|
||||
top: 22px;
|
||||
}
|
||||
/* The viewport: as tall as its view, give or take the gap or overhang under the view while it glides to a new height
|
||||
(ui/sheet.ts); what does not fit yet, and a view on its way out, is clipped. */
|
||||
.vp {
|
||||
position: relative;
|
||||
overflow: hidden;
|
||||
@@ -116,9 +119,6 @@
|
||||
max-width: 32ch;
|
||||
text-wrap: balance;
|
||||
}
|
||||
.kinds-note {
|
||||
margin: 14px 2px 16px;
|
||||
}
|
||||
.view > .hint.bad-t {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user