- commit
- dfe421d86a08aa717d849711a8d10042f0548040
- parent
- f9d1227a93daabdcf2f60b62223d0c36fa647270
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2023-11-17 11:57
style: use color-scheme: dark
Diffstat
| M | static/style.css | 22 | +++++++++------------- |
1 files changed, 9 insertions, 13 deletions
diff --git a/static/style.css b/static/style.css
@@ -21,27 +21,23 @@ textarea {
21 21 padding: 0.5em;
22 22 font-size: 120%;
23 23 line-height: 1.5;
24 -1 }
25 -1
26 -1 textarea[readonly] {
27 -1 background: #eee;
-1 24 background-color: transparent;
-1 25 outline: none;
28 26 }
29 27
30 28 footer {
31 29 padding: 0.5em;
32 -1 background-color: #eee;
33 30 border-block-start: 1px solid black;
34 31 text-align: center;
35 32 }
36 33
-1 34 footer,
-1 35 textarea[readonly] {
-1 36 background-color: rgba(128,128,128,0.1);
-1 37 }
-1 38
37 39 @media (prefers-color-scheme: dark) {
38 -1 textarea {
39 -1 color: white;
40 -1 background: black;
41 -1 }
42 -1 footer,
43 -1 textarea[readonly] {
44 -1 background: #333;
45 -1 color: white;
-1 40 :root {
-1 41 color-scheme: dark;
46 42 }
47 43 }