Commit 91c31f3
committed
Settings: scroll-aware top fade on the content wrapper
- `.settings-content-wrapper` is now masked at the top via `mask-image` (set inline via Svelte `style:mask-image` because stylelint's allowed-values list rejects the `calc(var(...) / 5)` mask form)
- Mask is driven by `scrollTop`: band height grows 0 → 70 px as the user scrolls 0 → 70 px, then caps. Within the band the top 20 % is fully transparent (hides scrolled-up content) and the bottom 80 % linearly fades to fully visible. At `scrollTop=0` the band collapses to zero, so the mask is "all visible" — no fade at rest
- Replaces the earlier absolute-positioned `.content-fade` overlay (which sat ON TOP of content and used `backdrop-filter`); that approach blurred scrolled-up rows into a soft haze but read as a separate plate. The new approach is the content's own visibility fading, which integrates with the translucent window bg behind it
- `padding-top` reverted to `var(--spacing-lg)` so the first title sits where it did before; section-nav `scrollTo` offset reverted to the original 16 px1 parent 6948093 commit 91c31f3
1 file changed
Lines changed: 36 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
25 | 45 | | |
26 | 46 | | |
27 | 47 | | |
| |||
294 | 314 | | |
295 | 315 | | |
296 | 316 | | |
297 | | - | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
298 | 325 | | |
299 | 326 | | |
300 | 327 | | |
| |||
349 | 376 | | |
350 | 377 | | |
351 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
352 | 387 | | |
353 | 388 | | |
354 | 389 | | |
| |||
0 commit comments