Commit cb33a42
committed
Add fade-out effect on the last visible paragraph of access-restricted posts
Uses a CSS mask gradient on the last <p> child of .gh-content, scoped via
:has() to only apply when a .gh-post-upgrade-cta sibling is present.
This gives readers a visual cue that the article continues beyond the
preview, a common pattern on paywalled content (Medium, Substack, NYT…).
No HTML changes, no new files.1 parent 038f9d6 commit cb33a42
3 files changed
Lines changed: 11 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2266 | 2266 | | |
2267 | 2267 | | |
2268 | 2268 | | |
| 2269 | + | |
| 2270 | + | |
| 2271 | + | |
| 2272 | + | |
| 2273 | + | |
| 2274 | + | |
| 2275 | + | |
| 2276 | + | |
| 2277 | + | |
2269 | 2278 | | |
2270 | 2279 | | |
2271 | 2280 | | |
| |||
0 commit comments