Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion assets/built/screen.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion assets/built/screen.css.map

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions assets/css/screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -2266,6 +2266,15 @@ unless a heading is the very first element in the post content */
font-family: var(--font-mono);
}

/* Fade out the last visible paragraph on access-restricted posts so it's
obvious to the reader that the article continues beyond the preview.
Scoped via :has() to only apply when the upgrade CTA is present, so
regular posts are unaffected. */
.gh-content:has(> .gh-post-upgrade-cta) > p:last-of-type {
-webkit-mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
Comment on lines +2274 to +2275
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major | ⚖️ Poor tradeoff

The gradient starts too early, potentially making most of the paragraph unreadable.

The gradient begins at 1% opacity, meaning 99% of the paragraph's height will fade from opaque to transparent. For a typical paragraph of 5-10 lines, most of the text will be partially transparent or invisible, severely impacting readability. Consider starting the fade at a higher percentage (e.g., 50-70%) to keep more of the paragraph legible while still providing the visual cue that content continues.

🎨 Suggested gradient adjustment
-.gh-content:has(> .gh-post-upgrade-cta) > p:last-of-type {
-    -webkit-mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
-    mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
-}
+.gh-content:has(> .gh-post-upgrade-cta) > p:last-of-type {
+    -webkit-mask-image: linear-gradient(to bottom, var(--color-black) 60%, transparent 100%);
+    mask-image: linear-gradient(to bottom, var(--color-black) 60%, transparent 100%);
+}
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
-webkit-mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
mask-image: linear-gradient(to bottom, var(--color-black) 1%, transparent 100%);
-webkit-mask-image: linear-gradient(to bottom, var(--color-black) 60%, transparent 100%);
mask-image: linear-gradient(to bottom, var(--color-black) 60%, transparent 100%);
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@assets/css/screen.css` around lines 2274 - 2275, The mask gradient on the
paragraph is starting at 1% which fades almost the entire block; update the mask
declarations (-webkit-mask-image and mask-image) to begin the opaque region much
lower (e.g., change the first color stop from 1% to around 50–70%) so the
majority of the paragraph remains fully readable while only the final portion
fades to transparent; locate the two properties in the CSS and adjust the first
stop percentage to ~60% (or your desired 50–70% value).

}

/* 16. Cards
/* ---------------------------------------------------------- */

Expand Down