feat: better style when printing the article

This commit is contained in:
grassblock 2025-05-23 22:35:14 +08:00
parent 85fceee138
commit ea3d8accc3
2 changed files with 9 additions and 1 deletions

View file

@ -52,7 +52,7 @@ const cover = customFeaturedImage || matchedImage_src?.src || `/post/${slug}/fea
<Content />
</div>
<div style="margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1rem;">
<div class="extra-post" style="margin-top: 2rem; border-top: 1px solid var(--border-color); padding-top: 1rem;">
<ReplyViaEmail title={entry.data.title} email={authorInfo.email} />
<br>
<a href="/blog">&larr; Back to posts</a>

View file

@ -291,3 +291,11 @@ div.content {
padding: 1rem;
}
}
/* Printing */
@media print {
/* Hide elements not needed for print */
nav.nav,.search-container,footer,div.extra-post {
display: none;
}
}