File tree Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Expand file tree Collapse file tree 4 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 102
102
# Create print version of ledger manpage
103
103
pdfroff -man -dpaper=letter -P-pletter $src/doc/ledger.1 > ledger.1.pdf
104
104
# Patch web version of ledger manual to support dark mode
105
- sed -e 's@</style>@&<link rel="stylesheet" type="text/css" href="/stylesheets/doc.css">@' ledger3.html -i
105
+ sed -e 's@</style>@&\n<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/doc.css">@' ledger3.html -i
106
106
'' ;
107
107
108
108
postInstall = ''
129
129
texi2pdf --batch ledger-mode.texi
130
130
makeinfo --force --html --no-split ledger-mode.texi
131
131
# Patch web version of ledger mode manual to support dark mode
132
- sed -e 's@</style>@&<link rel="stylesheet" type="text/css" href="/stylesheets/doc.css">@' ledger-mode.html -i
132
+ sed -e 's@</style>@&\n<link rel="stylesheet" type="text/css" href="https://www.gnu.org/software/gnulib/manual.css"> <link rel="stylesheet" type="text/css" href="/stylesheets/doc.css">@' ledger-mode.html -i
133
133
runHook postBuild
134
134
'' ;
135
135
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
+ --light-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 , div .example {
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
+ filter :brightness (var (--exmaple-brightness ));
10
14
}
11
15
12
- :visited {
13
- color :var (--visited -color );
16
+ :link , a [ href ] :hover {
17
+ color :var (--link -color ) !important ;
14
18
}
15
19
20
+ a [href ]:visited {
21
+ color :var (--visited-color ) !important ;
22
+ }
You can’t perform that action at this time.
0 commit comments