- commit
- ea826f0640e8029fdf7da9646fc46ee674d30dec
- parent
- cdfc96809e59575110387065859a45389e7eb261
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-09-12 05:35
add info on auto-deletion
Diffstat
M | index.html | 3 | +++ |
M | static/style.css | 22 | ++++++++++++++++++---- |
2 files changed, 21 insertions, 4 deletions
diff --git a/index.html b/index.html
@@ -9,6 +9,9 @@ 9 9 </head> 10 10 <body> 11 11 <textarea autocomplete="off" readonly autofocus></textarea> -1 12 <footer> -1 13 Data (including history) will automatically be deleted after 7 days of inactivity. -1 14 </footer> 12 15 <script type="module" src="/static/pad.js"></script> 13 16 </body> 14 17 </html>
diff --git a/static/style.css b/static/style.css
@@ -1,17 +1,23 @@ -1 1 * { -1 2 box-sizing: border-box; -1 3 } -1 4 1 5 html, 2 6 body { 3 7 margin: 0; 4 8 padding: 0;5 -1 overflow: hidden;-1 9 } -1 10 -1 11 body { -1 12 height: 100vh; -1 13 display: grid; -1 14 grid-template-rows: 1fr min-content; 6 15 } 7 16 8 17 textarea { 9 18 border: 0; 10 19 resize: none;11 -1 height: 100vh;12 -1 width: 100%;13 20 padding: 0.5em;14 -1 box-sizing: border-box;15 21 font-size: 120%; 16 22 line-height: 1.5; 17 23 } @@ -20,11 +26,19 @@ textarea[readonly] { 20 26 background: #eee; 21 27 } 22 28 -1 29 footer { -1 30 padding: 0.5em; -1 31 background-color: #eee; -1 32 border-top: 1px solid; -1 33 text-align: center; -1 34 } -1 35 23 36 @media (prefers-color-scheme: dark) { 24 37 textarea { 25 38 color: white; 26 39 background: black; 27 40 } -1 41 footer, 28 42 textarea[readonly] { 29 43 background: #666; 30 44 }