Improve print format

This commit is contained in:
Jade Ellis
2024-07-16 22:35:27 +01:00
parent 9dbdcf2493
commit 732ccb548d
2 changed files with 9 additions and 2 deletions
+2 -1
View File
@@ -1,5 +1,6 @@
<script lang="ts"> <script lang="ts">
import url from "./logo.svg?url"; import url from "./logo.svg?url";
import { SITE_URL } from "$lib/metadata";
// https://www.aleksandrhovhannisyan.com/ // https://www.aleksandrhovhannisyan.com/
// https://github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com/tree/master // https://github.com/AleksandrHovhannisyan/aleksandrhovhannisyan.com/tree/master
</script> </script>
@@ -12,7 +13,7 @@
> >
<ul class="navbar-links"> <ul class="navbar-links">
<li> <li>
<a class="navbar-link-home" href="/"> <a class="navbar-link-home" href={SITE_URL}>
<img <img
src={url} src={url}
class="navbar-logo" class="navbar-logo"
+7 -1
View File
@@ -46,6 +46,12 @@
} }
} }
@media print {
:root {
--background-color: white;
}
}
h2, h2,
h3, h3,
h4, h4,
@@ -62,7 +68,7 @@ canvas {
} }
@media print { @media print {
a::after { a:not(:where(.footnote-ref, .footnote-backref)):after {
content: " (" attr(href) ")"; content: " (" attr(href) ")";
} }
} }