Side nav sticks just under the header, its circle rising behind it like a corner sun
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
f7b9af7101
commit
e68a9be9bb
1 changed files with 7 additions and 5 deletions
|
|
@ -115,11 +115,13 @@ const circleSize = (box: { width: number; height: number }) =>
|
||||||
circle needs the room to start CIRCLE_GAP below that first line
|
circle needs the room to start CIRCLE_GAP below that first line
|
||||||
rather than over it.
|
rather than over it.
|
||||||
|
|
||||||
The nav sticks STUCK_TOP below the header, as it always has; its
|
Once the page scrolls, the list sticks just STUCK_TOP under the
|
||||||
sticky offset takes back whatever the list sits lower than that. */
|
header, so its circle rises up behind the header like a sun in the
|
||||||
const LIST_TOP = 8 + 80 + (40 - 16) / 2;
|
corner; the sticky offset takes back whatever the list sits lower
|
||||||
const STUCK_TOP = 32;
|
than that. */
|
||||||
const stickAt = (listTop: number) => `calc(var(--header-h, 5rem) + 1rem + ${STUCK_TOP - listTop}px)`;
|
const LIST_TOP = 8 + 100 + (40 - 16) / 2;
|
||||||
|
const STUCK_TOP = 16;
|
||||||
|
const stickAt = (listTop: number) => `calc(var(--header-h, 5rem) + ${STUCK_TOP - listTop}px)`;
|
||||||
const LIST_LEFT = 16;
|
const LIST_LEFT = 16;
|
||||||
const CIRCLE_GAP = 8 + 4;
|
const CIRCLE_GAP = 8 + 4;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue