]> git.ardis.lu - block-hash-calculator/commitdiff
Add print stylesheet
authorArdis Lu <ardisglu@gmail.com>
Wed, 22 May 2024 04:02:24 +0000 (21:02 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 22 May 2024 04:02:24 +0000 (21:02 -0700)
index.html
print.css [new file with mode: 0644]

index eece6cc31d8c9b30cae769e18dd4e3c1cb4c8032..a872b4145df877021bd0d792c2429dc5db9f76b7 100644 (file)
@@ -9,9 +9,10 @@
   <link rel="icon" href="data:,">
   <title>Block Hash Calculator</title>
   <style>
-    @layer base;
+    @layer base, print;
 
     @import "./style.css" layer(base);
+    @import "./print.css" layer(print) print;
   </style>
 </head>
 
diff --git a/print.css b/print.css
new file mode 100644 (file)
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
This page took 0.049108 seconds and 4 git commands to generate.