From dbd4d1b5793d040149e2c60ed92813583ab0bd81 Mon Sep 17 00:00:00 2001 From: Felix Date: Fri, 29 May 2020 11:47:26 -0500 Subject: [PATCH] Add basic print stylesheet --- src/parts/_core.css | 1 + src/parts/_print.css | 53 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 src/parts/_print.css diff --git a/src/parts/_core.css b/src/parts/_core.css index 76f0428..eaa3316 100644 --- a/src/parts/_core.css +++ b/src/parts/_core.css @@ -5,3 +5,4 @@ @import '_links.css'; @import '_code.css'; @import '_misc.css'; +@import '_print.css'; diff --git a/src/parts/_print.css b/src/parts/_print.css new file mode 100644 index 0000000..b088192 --- /dev/null +++ b/src/parts/_print.css @@ -0,0 +1,53 @@ +@media print { + body, + pre, + code, + summary, + details, + button, + input, + textarea { + background-color: #fff; + } + + button, + input, + textarea { + border: 1px solid #000; + } + + body, + h1, + h2, + h3, + h4, + h5, + h6, + pre, + code, + button, + input, + textarea, + footer, + summary, + strong { + color: #000; + } + + summary::marker { + color: #000; + } + + summary::-webkit-details-marker { + color: #000; + } + + tbody tr:nth-child(even) { + background-color: #f2f2f2; + } + + a { + color: #00f; + text-decoration: underline; + } +}