projects
/
~bandali
/
bndl.org
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
49ead25
)
restore dark mode/theme
author
Amin Bandali
<bandali@gnu.org>
Sun, 10 Oct 2021 12:25:06 +0000
(08:25 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Sun, 10 Oct 2021 12:25:06 +0000
(08:25 -0400)
txt2html
patch
|
blob
|
blame
|
history
diff --git
a/txt2html
b/txt2html
index
5b0acb8
..
b26b202
100644
(file)
--- a/
txt2html
+++ b/
txt2html
@@
-127,10
+127,14
@@
hreflang="fa" title="persian" />\n)
? qq(<link rel="alternate" href="https://bndl.org/"
hreflang="en" title="english" />\n)
: '',
? qq(<link rel="alternate" href="https://bndl.org/"
hreflang="en" title="english" />\n)
: '',
+ qq(<style>\@media(prefers-color-scheme:dark){
+body{background:#1c1c1c;color:white;}a:link{color:#acdeff;}
+a:visited{color:#f8f;}a:active{color:#e00;}}),
$opt_lang eq 'fa'
$opt_lang eq 'fa'
- ? qq(
<style>
\@font-face{font-family:sahel;font-weight:normal;
+ ? qq(
\n
\@font-face{font-family:sahel;font-weight:normal;
src:local('Sahel WOL'),local('Sahel'),
src:local('Sahel WOL'),local('Sahel'),
-url('sahel.woff2')format('woff2');}pre{font-family:sahel}
</style>\n
)
+url('sahel.woff2')format('woff2');}pre{font-family:sahel})
: '',
: '',
+ "</style>\n",
"</head><body><pre>$txt</pre></body></html>\n");
STDOUT->flush;
"</head><body><pre>$txt</pre></body></html>\n");
STDOUT->flush;