From 13ecf4a4a362cbb8a10ff5260298581eb1fa6c99 Mon Sep 17 00:00:00 2001 From: Brandon Rozek Date: Tue, 29 Oct 2024 12:02:03 -0400 Subject: [PATCH] Print CSS Style --- assets/css/style.css | 35 ++++++++++++++++++++++++++++-- layouts/blog/single.html | 2 +- layouts/index.html | 2 +- layouts/partials/reading_time.html | 2 +- layouts/partials/sharepost.html | 2 +- layouts/partials/webmentions.html | 4 ++-- 6 files changed, 39 insertions(+), 8 deletions(-) diff --git a/assets/css/style.css b/assets/css/style.css index 06d4447..059a4fb 100644 --- a/assets/css/style.css +++ b/assets/css/style.css @@ -2,8 +2,6 @@ ** General */ :root { - --bg-color: #f2f0e9; - --bg-color: #f6f4ef; --bg-color: #faf9f6; --acent-color: #5c3c2e; --text-color: #020101; @@ -533,3 +531,36 @@ main .e-content .toot-photos img { src: url(/webfonts/ibm-plex-mono/700.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; } + +@media print { + html, body { + background-color: white; + } + + a, a:visited { + color: #000; + text-decoration: none; + } + a::after{ + content: " (" attr(href) ") "; + } + + blockquote, code { + background: #fff; + margin: 0; + padding: 0 1.5em; + border: none; + } + + .dt-published::after { + content: " by Brandon Rozek" + } + + header, + nav, + footer, + hr, + .noprint { + display: none !important; + } +} \ No newline at end of file diff --git a/layouts/blog/single.html b/layouts/blog/single.html index 32bc6c0..20d1d78 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -25,7 +25,7 @@ -
+ diff --git a/layouts/index.html b/layouts/index.html index 7f7c353..d01dd7e 100644 --- a/layouts/index.html +++ b/layouts/index.html @@ -28,7 +28,7 @@ -

You can also find me on:

+

You can also find me on: