Merge remote-tracking branch 'origin/main' into colors
# Conflicts: # web/src/catalog.ts # web/src/styles.css
This commit is contained in:
+144
-7
@@ -774,6 +774,134 @@ textarea {
|
||||
color: var(--ink);
|
||||
}
|
||||
|
||||
/* ---------- daemon status dot ---------- */
|
||||
|
||||
/* Colour is the link state; the tooltip names the release the daemon is
|
||||
running. The chip is a button so the keyboard reaches the tooltip too. */
|
||||
.status-chip {
|
||||
position: relative;
|
||||
flex: 0 0 auto;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
.status-dot {
|
||||
width: 8px;
|
||||
height: 8px;
|
||||
border-radius: 50%;
|
||||
background: var(--muted);
|
||||
box-shadow: 0 0 0 3px transparent;
|
||||
transition:
|
||||
background var(--dur) var(--ease-out),
|
||||
box-shadow var(--dur) var(--ease-out);
|
||||
}
|
||||
|
||||
.status-chip[data-state="online"] .status-dot {
|
||||
background: var(--live);
|
||||
}
|
||||
|
||||
.status-chip[data-state="connecting"] .status-dot,
|
||||
.status-chip[data-state="reconnecting"] .status-dot {
|
||||
background: var(--warn);
|
||||
animation: pulse 1.1s var(--ease-out) infinite;
|
||||
}
|
||||
|
||||
.status-chip[data-state="down"] .status-dot,
|
||||
.status-chip[data-state="updating"] .status-dot {
|
||||
background: var(--danger);
|
||||
animation: pulse 1.1s var(--ease-out) infinite;
|
||||
}
|
||||
|
||||
.status-tip {
|
||||
position: absolute;
|
||||
bottom: calc(100% + var(--sp-2));
|
||||
left: 0;
|
||||
z-index: var(--z-sticky);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 2px;
|
||||
min-width: 180px;
|
||||
padding: var(--sp-2);
|
||||
border: 1px solid var(--border);
|
||||
border-radius: var(--r-2);
|
||||
background: var(--surface-2);
|
||||
box-shadow: var(--shadow-2);
|
||||
font-size: var(--fs-11);
|
||||
text-align: left;
|
||||
white-space: nowrap;
|
||||
opacity: 0;
|
||||
visibility: hidden;
|
||||
transition:
|
||||
opacity var(--dur-fast) var(--ease-out),
|
||||
visibility var(--dur-fast) var(--ease-out);
|
||||
}
|
||||
|
||||
.status-chip:hover .status-tip,
|
||||
.status-chip:focus-visible .status-tip {
|
||||
opacity: 1;
|
||||
visibility: visible;
|
||||
}
|
||||
|
||||
.status-tip-state {
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.status-tip-release {
|
||||
color: var(--muted);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
/* ---------- restart overlay ---------- */
|
||||
|
||||
/* Up while the daemon is unreachable or being replaced. Nothing to dismiss:
|
||||
it clears itself when the link is back (docs/RESTART.md). */
|
||||
.restart-modal {
|
||||
max-width: 380px;
|
||||
align-items: center;
|
||||
gap: var(--sp-2);
|
||||
padding: var(--sp-5) var(--sp-4);
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.restart-modal h2 {
|
||||
font-size: var(--fs-15);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.restart-detail {
|
||||
margin: 0;
|
||||
color: var(--muted);
|
||||
font-size: var(--fs-13);
|
||||
}
|
||||
|
||||
.restart-release {
|
||||
margin: 0;
|
||||
color: var(--faint);
|
||||
font-size: var(--fs-11);
|
||||
font-variant-numeric: tabular-nums;
|
||||
}
|
||||
|
||||
.restart-spinner {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border-radius: 50%;
|
||||
border: 2px solid var(--border-strong);
|
||||
border-top-color: var(--accent);
|
||||
animation: spin 900ms linear infinite;
|
||||
}
|
||||
|
||||
@keyframes spin {
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
}
|
||||
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.restart-spinner,
|
||||
.status-dot {
|
||||
animation: none;
|
||||
}
|
||||
}
|
||||
|
||||
.sidebar-search .search {
|
||||
width: 100%;
|
||||
max-width: none;
|
||||
@@ -1710,20 +1838,29 @@ input.leaf-rename:focus {
|
||||
|
||||
/* ---------- mobile special-key bar (Termux-style) ---------- */
|
||||
|
||||
/* Two compact rows (Termux layout) in a 5-column grid the 10 keys flow into:
|
||||
Esc/Tab + Ctrl/Alt on the left, cursor keys as a real-keyboard inverted-T on
|
||||
the right (Home/End fill the top corners). Layout is always defined; only
|
||||
*visibility* is gated: hidden on precise-pointer devices (a physical keyboard
|
||||
already has these keys), shown on touch where the soft keyboard omits them.
|
||||
The shell tracks the visual viewport (see `#app`), so it lands above it. */
|
||||
/* Two compact rows (Termux layout) in an 8-column grid the 16 keys flow into:
|
||||
Esc/Tab + Ctrl/Alt on the left, cursor keys as a real-keyboard inverted-T in
|
||||
the middle (Home/End fill the top corners), then PgUp/PgDn and the shell
|
||||
symbols. Columns never shrink below a thumb's width — on a narrow phone the
|
||||
bar scrolls sideways instead. Layout is always defined; only *visibility* is
|
||||
gated: hidden on precise-pointer devices (a physical keyboard already has
|
||||
these keys), shown on touch where the soft keyboard omits them. The shell
|
||||
tracks the visual viewport (see `#app`), so it lands above it. */
|
||||
.attach-keybar {
|
||||
display: none;
|
||||
grid-template-columns: repeat(5, 1fr);
|
||||
grid-template-columns: repeat(8, minmax(2.5rem, 1fr));
|
||||
gap: var(--sp-1);
|
||||
padding: var(--sp-1) var(--sp-2);
|
||||
padding-bottom: calc(var(--sp-1) + env(safe-area-inset-bottom, 0px));
|
||||
border-top: 1px solid var(--border);
|
||||
background: var(--surface);
|
||||
overflow-x: auto;
|
||||
overscroll-behavior-x: contain;
|
||||
scrollbar-width: none;
|
||||
}
|
||||
|
||||
.attach-keybar::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Shown on touch only while *this* terminal is focused (`keybar-active`, toggled
|
||||
|
||||
Reference in New Issue
Block a user