You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9498448
Browse filesBrowse the repository at this point in the historyBrowse files
Open the invite, slide the sheet, and sweep out dead CSS
Four things Samet asked for, and one that fell out of paying for them.
The home page gets its join link back, under the announcement panel. The
card itself stays on the directory; this is the one-line route to it. It
deliberately skips the .network-section box -- the other things in that
column are sections with a heading and content, and this is a single action.
The invite card now opens by default. On the top of the feed it was closed
for good reason: everyone arriving at the feed had to scroll past it. On the
directory the reverse holds, because whoever is on that page is already
asking how to join. Only the collapse is remembered now -- the stored value
answers "did they close it", not "did they open it", and the old check for
'expanded' would have done nothing once the default flipped.
The announcement pill kept its light background in dark mode. Its light
appearance shares one declaration with the mobile search button, but the dark
rule listed only the search button. Sharing half of an object's definition is
worse than not sharing it: the drift is silent.
The sheet slides up instead of appearing. That needs allow-discrete on
display and overlay, plus @starting-style for the entry values -- without the
latter there is no "before" state and the panel simply arrives. A browser
assertion samples the box in the same task as the click and requires it to
start below the viewport, which is what catches a deleted @starting-style;
deleting it fails nothing else. Reduced motion pins the end state rather than
just dropping the transition, which would leave the panel offscreen.
The three additions blew the CSS budget, so I went looking before raising it
and found 24 classes with no markup anywhere -- leftovers from the retired
Projects and Replies routes and the header's removed Saved button. Deleting
them freed 8650 bytes, far more than the additions cost.
So the ceiling comes down instead of up: gzip 15850 -> 15300, raw 92000 ->
87000. A ceiling sitting far above the real number measures nothing, and this
one had been raised twice in two rounds.
My first pruning script rewrote selector lists and blank lines while deleting,
including splitting a comment across a comma. Reverted it and wrote a
line-based one that only deletes; the diff is 381 removed lines and zero
added.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
0 commit comments