swarm-ui: brand text follows the nav accent too
The brand/logo text now rides the same accent value the nav underline uses, including mid-sweep, so the header reads as one accent changing rather than the underline alone — per mara's review comment.
This commit is contained in:
parent
a5584d0fcd
commit
daabb4fe6a
2 changed files with 31 additions and 1 deletions
|
|
@ -30,8 +30,28 @@
|
|||
}
|
||||
.shell-brand {
|
||||
font-weight: 600;
|
||||
/* Base colour only — Shell.tsx overrides it inline to the same
|
||||
currently-active-tab accent `.shell-nav-indicator` uses (falling
|
||||
back to this `--purple` before the first measurement lands, which
|
||||
is also the "hives" default route's own accent, so there's no
|
||||
visible mismatch at first paint). Transition lives here, same
|
||||
140ms hop cadence + the same three-rule motion guard as the
|
||||
indicator, so this and the indicator read as one thing changing,
|
||||
not two independently-synced ones. */
|
||||
color: var(--purple);
|
||||
letter-spacing: 0.02em;
|
||||
transition: color 140ms ease;
|
||||
}
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
.shell-brand {
|
||||
transition: none;
|
||||
}
|
||||
}
|
||||
:root[data-motion='reduce'] .shell-brand {
|
||||
transition: none;
|
||||
}
|
||||
:root[data-motion='allow'] .shell-brand {
|
||||
transition: color 140ms ease;
|
||||
}
|
||||
.shell-nav {
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue