From: Ardis Lu Date: Wed, 22 May 2024 04:02:24 +0000 (-0700) Subject: Add print stylesheet X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=7becab96f29e2d89dfed87681ecc71a234c4bcb7;p=block-hash-calculator Add print stylesheet --- diff --git a/index.html b/index.html index eece6cc..a872b41 100644 --- a/index.html +++ b/index.html @@ -9,9 +9,10 @@ Block Hash Calculator diff --git a/print.css b/print.css new file mode 100644 index 0000000..aa2cc89 --- /dev/null +++ b/print.css @@ -0,0 +1,48 @@ +@page { + margin: 0.5in; +} + +* { + font-family: monospace; + background: transparent; + color: #000; + padding: 0; + border: none; + margin: 0; +} + +h1, +p, +a, +button { + display: none; +} + +label, +h2, +input, +code { + display: block; + margin-block-end: 8px; +} + +label, +h2 { + font-size: 11pt; +} + +input, +code { + font-size: 10pt; + margin-inline-start: 16px; +} + +input::-webkit-outer-spin-button, +input::-webkit-inner-spin-button { + -webkit-appearance: none; + margin: 0; +} + +input { + -moz-appearance: textfield; +} \ No newline at end of file