feat: better style when printing the article
This commit is contained in:
parent
85fceee138
commit
ea3d8accc3
2 changed files with 9 additions and 1 deletions
|
@ -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">← Back to posts</a>
|
||||
|
|
|
@ -290,4 +290,12 @@ div.content {
|
|||
.content-box {
|
||||
padding: 1rem;
|
||||
}
|
||||
}
|
||||
|
||||
/* Printing */
|
||||
@media print {
|
||||
/* Hide elements not needed for print */
|
||||
nav.nav,.search-container,footer,div.extra-post {
|
||||
display: none;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue