From 2d6281c1450ae4fe45ed90f30481c0859833cd2e Mon Sep 17 00:00:00 2001 From: Mark Nottingham Date: Wed, 6 Dec 2023 14:18:03 +1100 Subject: [PATCH] Make printing nicer --- asset/style.css | 36 +++++++++++++++++++++++++++++++----- index.html | 8 ++++---- 2 files changed, 35 insertions(+), 9 deletions(-) diff --git a/asset/style.css b/asset/style.css index c184f9c..244b0de 100644 --- a/asset/style.css +++ b/asset/style.css @@ -83,15 +83,10 @@ th.category a { } #key { - position: fixed; - bottom: 0; - width: 80vw; - left: 10vw; background-color: white; margin-bottom: 0; padding: 10px; border: 1px solid #999; - border-bottom: none; } input.select { @@ -173,3 +168,34 @@ pre code { .noFrame { display: none; } + + +@page { + size: A4; + margin: 11mm 17mm 17mm 17mm; +} + +@media screen { + #key { + position: fixed; + bottom: 0; + width: 80vw; + left: 10vw; + border-bottom: none; + } +} + +@media print { + html, body { + width: 210mm; + height: 297mm; + } + + #key { + width: 100%; + } + + .noPrint * { + display: none; + } +} diff --git a/index.html b/index.html index 5de2ffa..db8f814 100644 --- a/index.html +++ b/index.html @@ -63,7 +63,7 @@

HTTP Caching Tests

implementation's results, file issues or learn more, see the repository.

-

See also test results interspersed with the current specification text.

+

See also test results interspersed with the current specification text.

passed   @@ -77,16 +77,16 @@

HTTP Caching Tests

not tested

-