Dawnline 0.12.1
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
- Device cards on a computer keep "↓ 3.2 GB ↑ 557 MB" on one line, clear of the week's bars (0.12.0 let them run together in the two columns). A narrow card gets slightly smaller numbers and thinner bars, with the bars in the middle of the row; resizing the window, the card glides between its two shapes - A device whose settings changed shows one big Reconnect button, the same as Connect on a device not set up yet, in place of its week and the orange Update pill. It opens the same question as Reconnect in the ⋯ menu
This commit is contained in:
1 parent
fb73ac3a9f
commit
db9657c01c
11 files changed
+145
-101
No files matched your search
@@ -1,5 +1,5 @@
|
||||
/* "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. */
|
||||
as down and up over bars, or Connect or Reconnect), the card that adds one, the first device. */
|
||||
|
||||
.dgrid {
|
||||
display: grid;
|
||||
@@ -19,6 +19,9 @@
|
||||
flex-direction: column;
|
||||
gap: 8px;
|
||||
min-width: 0;
|
||||
container: card / inline-size;
|
||||
/* How a card glides between its full and compact shapes (a window resized across 330 or 270 px). */
|
||||
--fit: var(--spring-smooth-dur, 524ms) var(--spring-smooth, ease);
|
||||
}
|
||||
.dev.is-here {
|
||||
box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent);
|
||||
@@ -75,14 +78,16 @@
|
||||
border-radius: var(--r-row);
|
||||
padding: 12px 14px 12px 16px;
|
||||
display: flex;
|
||||
align-items: flex-end;
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
gap: 12px;
|
||||
gap: 16px;
|
||||
min-height: 66px;
|
||||
}
|
||||
/* The words take what the bars leave, never more. */
|
||||
.use-txt {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
}
|
||||
.use-lbl {
|
||||
@@ -96,36 +101,37 @@
|
||||
line-height: 24px;
|
||||
font-weight: 500;
|
||||
letter-spacing: -0.02em;
|
||||
transition:
|
||||
font-size var(--fit),
|
||||
line-height var(--fit);
|
||||
}
|
||||
.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);
|
||||
/* A card under 330 px (a computer's two columns; the query reads inside its 8 px padding) keeps down and up on
|
||||
one line by being compact: smaller numbers, thinner bars. A phone's card stays as it is. */
|
||||
@container card (max-width: 313px) {
|
||||
.use-val {
|
||||
font-size: 15px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.bars-week {
|
||||
--gap: 3px;
|
||||
}
|
||||
.bars-week i {
|
||||
width: 4px;
|
||||
border-radius: 2px;
|
||||
}
|
||||
}
|
||||
.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;
|
||||
/* The narrowest (under 270 px): a step smaller again, so a day under the pointer fits as well as the week. */
|
||||
@container card (max-width: 253px) {
|
||||
.use-val {
|
||||
font-size: 14px;
|
||||
line-height: 22px;
|
||||
}
|
||||
.use-val .ud {
|
||||
column-gap: 8px;
|
||||
}
|
||||
}
|
||||
.dev.add {
|
||||
align-items: center;
|
||||
@@ -178,3 +184,14 @@
|
||||
.dev.first .btn {
|
||||
max-width: 320px;
|
||||
}
|
||||
|
||||
/* A jump of the cards' width: the new shape at once, with the layout (page/devices.ts). */
|
||||
.dgrid.snap .dev * {
|
||||
transition: none;
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.use-val {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user