authorgravatar for 63465728+alichraghi@users.noreply.github.comAli Chraghi <63465728+alichraghi@users.noreply.github.com> 2022-09-04 14:13:47+04:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2022-09-04 14:13:47+04:30
log5b3ca4bb53c3e56025e4cb04f11d6b6df74d9ad9
treeabab8bab3eaf5b147ec12693a49bd31c1ccab2c8
parentb7d5582dede8f4cae341365ac9c47c840bd80eff
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

autodoc: fix highlighted line in light mode


1 files changed, 8 insertions(+), 3 deletions(-)

src/autodoc/render_source.zig+8-3
......@@ -85,9 +85,9 @@ pub fn genHtml(
8585 \\ display: inline-block;
8686 \\ }
8787 \\ .line:target {
88 \\ border-top: 1px solid #444;
89 \\ border-bottom: 1px solid #444;
90 \\ background: #333;
88 \\ border-top: 1px solid #ccc;
89 \\ border-bottom: 1px solid #ccc;
90 \\ background: #fafafa;
9191 \\ }
9292 \\
9393 \\ @media (prefers-color-scheme: dark) {
......@@ -100,6 +100,11 @@ pub fn genHtml(
100100 \\ background: #222;
101101 \\ border: unset;
102102 \\ }
103 \\ .line:target {
104 \\ border-top: 1px solid #444;
105 \\ border-bottom: 1px solid #444;
106 \\ background: #333;
107 \\ }
103108 \\ .tok-kw {
104109 \\ color: #eee;
105110 \\ }