fix: show an article's summary as a subtitle (v2.20.3)
On the article page the summary shared the body's reading style, so it read as the first paragraph. It now sits under the title as a dek: sans font, slightly larger, muted, with a rule before the body. The homepage teaser keeps the reading style, where it stands in for the body. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
acd6bf819d
commit
964a44c95e
5 files changed
+18
-3
No files matched your search
@@ -89,6 +89,10 @@ main { flex: 1; margin-bottom: var(--spacing-xl); }
|
||||
.h-entry > .p-name a:hover { color: var(--color-link); }
|
||||
.e-content, .p-summary { font-family: var(--font-reading); font-size: 1.125rem; line-height: 1.65; overflow-wrap: anywhere; }
|
||||
.e-content > :last-child, .p-summary > :last-child { margin-bottom: 0; }
|
||||
/* Article summary (v2.20.3): a subtitle under the title, not a first paragraph.
|
||||
The homepage teaser keeps the reading style above, where it stands in for the body. */
|
||||
.p-summary.dek { font-family: var(--font-body); font-size: 1.25rem; line-height: 1.45; color: var(--color-text-light);
|
||||
margin: calc(-1 * var(--spacing-sm)) 0 var(--spacing-lg); padding-bottom: var(--spacing-md); border-bottom: 1px solid var(--color-border); }
|
||||
.e-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
|
||||
.e-content a:hover { text-decoration-color: currentColor; }
|
||||
.e-content blockquote { margin: 0 0 var(--spacing-md); padding-left: var(--spacing-md); border-left: 3px solid var(--color-border); color: var(--color-text-light); }
|
||||
|
||||
Reference in new issue
Block a user