File tree Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Expand file tree Collapse file tree 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 4
4
--light-highlight-code-background-color :#eee ;
5
5
--light-link-color :#00e ;
6
6
--light-visited-color :#551a8b ;
7
+ --light-example-brightness :95% ;
7
8
8
9
--dark-color :#fefefe ;
9
10
--dark-background-color :#212121 ;
10
11
--dark-highlight-code-background-color :#333 ;
11
12
--dark-link-color :#2997ff ;
12
13
--dark-visited-color :#aa6fdf ;
14
+ --dark-example-brightness :125% ;
13
15
}
14
16
15
17
@media (prefers-color-scheme : light ) {
19
21
--highlight-code-background-color :var (--light-highlight-code-background-color );
20
22
--link-color :var (--light-link-color );
21
23
--visited-color :var (--light-visited-color );
24
+ --example-brightness :var (--light-example-brightness );
22
25
}
23
26
}
24
27
@media (prefers-color-scheme : dark ) {
28
31
--highlight-code-background-color :var (--dark-highlight-code-background-color );
29
32
--link-color :var (--dark-link-color );
30
33
--visited-color :var (--dark-visited-color );
34
+ --example-brightness :var (--dark-example-brightness );
31
35
}
32
36
}
33
37
Original file line number Diff line number Diff line change 1
1
@import url (" darkmode.css" );
2
2
3
- body {
3
+ body , html {
4
4
color :var (--color );
5
5
background :var (--background-color );
6
6
}
7
7
8
- :link {
9
- color :var (--link-color );
8
+ h1 , h2 , h3 , h4 {
9
+ color :var (--color );
10
+ }
11
+
12
+ div .example {
13
+ color :var (--color );
14
+ background :var (--background-color );
15
+ filter :brightness (var (--example-brightness ));
16
+ }
17
+
18
+ :link , a [href ]:hover {
19
+ color :var (--link-color ) !important ;
10
20
}
11
21
12
- :visited {
13
- color :var (--visited-color );
22
+ a [ href ] :visited {
23
+ color :var (--visited-color ) !important ;
14
24
}
15
25
Original file line number Diff line number Diff line change 90
90
# Create print version of ledger manpage
91
91
pdfroff -man -dpaper=letter -P-pletter $src/doc/ledger.1 > ledger.1.pdf
92
92
# Patch web version of ledger manual to support dark mode
93
- sed -e 's@</style>@&<link rel="stylesheet" type="text/css" href="/ css/doc.css">@' ledger3.html -i
93
+ sed -e 's@</style>@&\n <link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/g nulib/manual. css"><link rel="stylesheet" type="text/css" href="/stylesheets /doc.css">@' ledger3.html -i
94
94
'' ;
95
95
96
96
postInstall = ''
117
117
texi2pdf --batch ledger-mode.texi
118
118
makeinfo --force --html --no-split ledger-mode.texi
119
119
# Patch web version of ledger mode manual to support dark mode
120
- sed -e 's@</style>@&<link rel="stylesheet" type="text/css" href="/ css/doc.css">@' ledger-mode.html -i
120
+ sed -e 's@</style>@&\n <link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/g nulib/manual. css"><link rel="stylesheet" type="text/css" href="/stylesheets /doc.css">@' ledger-mode.html -i
121
121
runHook postBuild
122
122
'' ;
123
123
You can’t perform that action at this time.
0 commit comments