To fix issues with printing the homepage grid
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.2.0/styles/default.min.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gutenberg-css@0.6.1/dist/gutenberg.min.css" media="print">
+ <link rel="stylesheet" href="/print.css" media="print">
+ <style media="print">
+ header {
+ display: none;
+ }
+ </style>
<title>ardislu.dev</title>
</head>
<meta name="description" content="Ardis Lu's personal blog.">
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/style.css">
- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/gutenberg-css@0.6.1/dist/gutenberg.min.css" media="print">
+ <link rel="stylesheet" href="/print.css" media="print">
<title>ardislu.dev</title>
</head>
--- /dev/null
+@page {
+ margin: 0.5in;
+}
+
+* {
+ background: transparent !important;
+ color: #000 !important;
+ box-shadow: none !important;
+ text-shadow: none !important;
+}
+
+h1 {
+ font-size: 16pt;
+}
+
+h2 {
+ font-size: 13pt;
+}
+
+p {
+ font-size: 11pt;
+}
+
+a {
+ text-decoration: underline;
+}
+
+a[href]:after {
+ content: " (" attr(href) ")";
+}
+
+pre {
+ white-space: pre-wrap;
+}
+
+.card-container {
+ display: block;
+}
+
+.card {
+ break-inside: avoid;
+ border: none;
+}