refactor(web): rail and tab bar as Tailwind utilities
Phone search mode keys on a named group, and hover is redefined to apply on every pointer, as the board's own :hover rules always did. Refs #280 Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
db22e4a1d2
commit
288d4b26ad
@@ -824,265 +824,6 @@ button.chip {
|
||||
fill: var(--ink);
|
||||
}
|
||||
|
||||
/* ---- the rail and the tab bar ------------------------------------------- */
|
||||
|
||||
.rail {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 20;
|
||||
padding-top: var(--safe-top);
|
||||
border-bottom: 1px solid var(--line);
|
||||
background: var(--panel);
|
||||
box-shadow: inset 0 1px var(--highlight);
|
||||
}
|
||||
|
||||
.rail-inner {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
width: 100%;
|
||||
max-width: 68rem;
|
||||
height: var(--rail-h);
|
||||
margin-inline: auto;
|
||||
padding-inline: var(--gutter);
|
||||
}
|
||||
|
||||
.rail-id {
|
||||
display: flex;
|
||||
flex: none;
|
||||
align-items: center;
|
||||
gap: var(--space-3);
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
/* §9.7: the wordmark is a link home */
|
||||
.wordmark {
|
||||
font-family: var(--font-display);
|
||||
font-size: var(--text-xl);
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.1em;
|
||||
line-height: 1;
|
||||
color: var(--ink);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.wordmark:hover,
|
||||
.wordmark:focus-visible {
|
||||
color: var(--accent-bright);
|
||||
}
|
||||
|
||||
.rail-nav {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: var(--space-2);
|
||||
min-height: var(--control-h);
|
||||
padding: 0 var(--space-3);
|
||||
font-family: var(--font-readout);
|
||||
font-size: var(--text-xs);
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.08em;
|
||||
color: var(--ink-muted);
|
||||
text-decoration: none;
|
||||
border-bottom: 2px solid transparent;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
color: var(--accent-bright);
|
||||
}
|
||||
|
||||
.nav-link[aria-current="page"] {
|
||||
color: var(--accent);
|
||||
border-bottom-color: var(--accent);
|
||||
}
|
||||
|
||||
/* attention: amber count on the queues destination, wherever it sits */
|
||||
.nav-count {
|
||||
font-size: var(--text-xs);
|
||||
color: var(--signal-warn);
|
||||
}
|
||||
|
||||
.rail-search {
|
||||
position: relative;
|
||||
display: none;
|
||||
flex: 1;
|
||||
align-items: center;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.rail-search-glyph {
|
||||
position: absolute;
|
||||
left: var(--space-3);
|
||||
color: var(--ink-faint);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
width: 100%;
|
||||
min-height: var(--control-h);
|
||||
padding: 0 var(--space-8) 0 var(--space-8);
|
||||
font-size: var(--text-base);
|
||||
color: var(--ink);
|
||||
background: var(--ground);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: inset 0 1px var(--lowlight);
|
||||
caret-color: var(--accent);
|
||||
transition: border-color 150ms var(--ease-out);
|
||||
}
|
||||
|
||||
.search-input::placeholder {
|
||||
color: var(--ink-faint);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
.search-input:hover {
|
||||
border-color: var(--line-strong);
|
||||
}
|
||||
|
||||
.search-input:focus {
|
||||
border-color: var(--accent);
|
||||
outline: none;
|
||||
}
|
||||
|
||||
.search-hint {
|
||||
position: absolute;
|
||||
right: var(--space-3);
|
||||
display: none;
|
||||
padding: 0 var(--space-1);
|
||||
font-size: var(--text-2xs);
|
||||
color: var(--ink-faint);
|
||||
border: 1px solid var(--line);
|
||||
border-radius: var(--radius);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.rail-search-close {
|
||||
flex: none;
|
||||
margin-left: var(--space-2);
|
||||
}
|
||||
|
||||
.rail-version {
|
||||
display: none;
|
||||
font-size: var(--text-xs);
|
||||
}
|
||||
|
||||
.tabbar {
|
||||
position: fixed;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: 20;
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
height: var(--tabbar-space);
|
||||
padding-bottom: var(--safe-bottom);
|
||||
background: var(--panel);
|
||||
border-top: 1px solid var(--line);
|
||||
}
|
||||
|
||||
.tab {
|
||||
position: relative;
|
||||
display: grid;
|
||||
place-items: center;
|
||||
align-content: center;
|
||||
gap: var(--space-1);
|
||||
font-size: var(--text-2xs);
|
||||
font-weight: 600;
|
||||
text-transform: uppercase;
|
||||
letter-spacing: 0.1em;
|
||||
color: var(--ink-faint);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.tab[aria-current="page"] {
|
||||
color: var(--accent);
|
||||
}
|
||||
|
||||
.tab[aria-current="page"]::before {
|
||||
content: "";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 30%;
|
||||
right: 30%;
|
||||
height: 2px;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.tab-badge {
|
||||
position: absolute;
|
||||
top: var(--space-1);
|
||||
left: 55%;
|
||||
min-width: 1.1rem;
|
||||
height: 1.1rem;
|
||||
padding: 0 var(--space-1);
|
||||
border-radius: 999px;
|
||||
font-size: var(--text-2xs);
|
||||
font-weight: 700;
|
||||
line-height: 1.1rem;
|
||||
text-align: center;
|
||||
color: var(--ground);
|
||||
background: var(--signal-warn);
|
||||
}
|
||||
|
||||
/* phone search mode: the field takes the rail, the identity steps aside */
|
||||
.rail[data-searching] .rail-id,
|
||||
.rail[data-searching] .rail-search-open {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rail[data-searching] .rail-search {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
@media (min-width: 40rem) {
|
||||
.tabbar,
|
||||
.rail-search-close {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* biome-ignore lint/style/noDescendingSpecificity: the phone search-mode rule never applies from 40rem */
|
||||
.rail-search-open {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.rail-id {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.rail-nav {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: var(--space-1);
|
||||
}
|
||||
|
||||
.rail-search,
|
||||
.rail[data-searching] .rail-search {
|
||||
display: flex;
|
||||
max-width: 26rem;
|
||||
margin-left: auto;
|
||||
}
|
||||
|
||||
.rail[data-searching] .rail-id {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.search-input {
|
||||
font-size: var(--text-sm);
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 64rem) {
|
||||
.search-hint,
|
||||
.rail-version {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
||||
/* ---- the row ------------------------------------------------------------------ */
|
||||
|
||||
/* lead | body | actions, then the tray full width. The body is minmax(0, 1fr):
|
||||
|
||||
Reference in New Issue
Block a user