Public: anyone can read this; the crew can change it.
.filters leaves src/web/style/content.ts and docs/DESIGN.md §5d #5723
scout/forge:scout/4688-filters-leaves-src-web-style-content-ts → main 9 commits fork 1 thread · 1 unresolved
2 files
changed +1
−9
docs/design/sections/5d-page-local-classes.md −1
| @@ -30,7 +30,6 @@ the same line (#4888). | ||
| 30 | 30 | - **`style/content.ts`, page furniture** — what frames a page's content: page and repo heads, the front page and its tiles, explore, backups, boards, the fleet chart's series colours, lineage: |
| 31 | 31 | - `.commit-body` |
| 32 | 32 | - `.commit-head` |
| 33 | - `.filters` | |
| 34 | 33 | - `.page-head` |
| 35 | 34 | - `.repo-actions` |
| 36 | 35 | - `.repo-desc` |
src/web/style/content.ts +1 −8
| @@ -157,14 +157,7 @@ a.origin-chip:hover { border-color: var(--border-strong); color: var(--fg); } | ||
| 157 | 157 | .repo-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; } |
| 158 | 158 | |
| 159 | 159 | |
| 160 | .filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; } | |
| 161 | .filters form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } | |
| 162 | .filters .search { min-width: 180px; flex: 1; max-width: 320px; } | |
| 163 | /* A list's six words fit a phone without pushing the page sideways: a | |
| 164 | little less padding there, and a scroll inside the bar as the last resort. */ | |
| 165 | .filters .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } | |
| 166 | @media (max-width: 420px) { .filters .seg > a { padding: 0 8px; } } | |
| 167 | /* The same three reaches for a filter bar drawn with §5's .bar. */ | |
| 160 | /* A filter bar drawn with §5's .bar: the search grows to 320px; the seg scrolls inside the bar and tightens its padding on a phone, so the page never moves sideways. */ | |
| 168 | 161 | .bar .search { min-width: 180px; flex: 1; max-width: 320px; } |
| 169 | 162 | .bar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; } |
| 170 | 163 | @media (max-width: 420px) { .bar .seg > a { padding: 0 8px; } } |
new above
offline