Merge pull request #12736 from alichraghi/patch-2

autodoc: fix highlighted line in light mode
This commit is contained in:
Loris Cro 2022-09-05 17:37:12 +02:00 committed by GitHub
commit e2bb92b2e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -85,9 +85,9 @@ pub fn genHtml(
\\ display: inline-block;
\\ }
\\ .line:target {
\\ border-top: 1px solid #444;
\\ border-bottom: 1px solid #444;
\\ background: #333;
\\ border-top: 1px solid #ccc;
\\ border-bottom: 1px solid #ccc;
\\ background: #fafafa;
\\ }
\\
\\ @media (prefers-color-scheme: dark) {
@ -100,6 +100,11 @@ pub fn genHtml(
\\ background: #222;
\\ border: unset;
\\ }
\\ .line:target {
\\ border-top: 1px solid #444;
\\ border-bottom: 1px solid #444;
\\ background: #333;
\\ }
\\ .tok-kw {
\\ color: #eee;
\\ }