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 />
|
<Content />
|
||||||
</div>
|
</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} />
|
<ReplyViaEmail title={entry.data.title} email={authorInfo.email} />
|
||||||
<br>
|
<br>
|
||||||
<a href="/blog">← Back to posts</a>
|
<a href="/blog">← Back to posts</a>
|
||||||
|
|
|
@ -291,3 +291,11 @@ div.content {
|
||||||
padding: 1rem;
|
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