Author
|
zPlus <zplus@peers.community>
2024-03-18 15:04:44
|
Committer
|
zPlus <zplus@peers.community>
2024-03-18 15:04:44
|
Commit
|
12c45ac
(patch)
|
Tree
|
fc97e84
|
Parent(s)
|
|
Improve dark theme.
commits diff:
ff2d6d2..12c45ac
1 file changed,
26 insertions,
0 deletions
—
download
Diffstat
Diff options
+26/-0
M freepost/static/css/freepost.css
241
|
241
|
|
white-space: -o-pre-wrap;
|
242
|
242
|
|
}
|
243
|
243
|
|
|
|
244
|
+ |
@media (prefers-color-scheme: dark) {
|
|
245
|
+ |
pre {
|
|
246
|
+ |
background-color: #000;
|
|
247
|
+ |
color: #fff;
|
|
248
|
+ |
}
|
|
249
|
+ |
}
|
|
250
|
+ |
|
244
|
251
|
|
/* Monospace <pre/> to write some nice ASCII art in frontpage */
|
245
|
252
|
|
pre.new_year {
|
246
|
253
|
|
background-color: transparent;
|
272
|
279
|
|
white-space: -o-pre-wrap;
|
273
|
280
|
|
}
|
274
|
281
|
|
|
|
282
|
+ |
@media (prefers-color-scheme: dark) {
|
|
283
|
+ |
:not(pre) > code {
|
|
284
|
+ |
background-color: #000;
|
|
285
|
+ |
color: #fff;
|
|
286
|
+ |
}
|
|
287
|
+ |
}
|
|
288
|
+ |
|
275
|
289
|
|
/* A <div> that respects \n without converting to <br> */
|
276
|
290
|
|
div.pre {
|
277
|
291
|
|
white-space: pre;
|
729
|
743
|
|
font-size: 1.5em;
|
730
|
744
|
|
}
|
731
|
745
|
|
|
|
746
|
+ |
@media (prefers-color-scheme: dark) {
|
|
747
|
+ |
.container > .content > .post > .title {
|
|
748
|
+ |
color: #fff;
|
|
749
|
+ |
}
|
|
750
|
+ |
}
|
|
751
|
+ |
|
732
|
752
|
|
/* Info below post title */
|
733
|
753
|
|
.container > .content > .post > .info {
|
734
|
754
|
|
margin: 1em 0;
|
744
|
764
|
|
word-wrap: break-word;
|
745
|
765
|
|
}
|
746
|
766
|
|
|
|
767
|
+ |
@media (prefers-color-scheme: dark) {
|
|
768
|
+ |
.container > .content > .post > .text {
|
|
769
|
+ |
color: #fff;
|
|
770
|
+ |
}
|
|
771
|
+ |
}
|
|
772
|
+ |
|
747
|
773
|
|
/* The "new comment" form for this post page */
|
748
|
774
|
|
.container > .content > .post .new_comment > input[type=submit] {
|
749
|
775
|
|
margin: 1em 0;
|