docs(v2): dark mode syntax highlighting (#2153)

This commit is contained in:
Yangshun Tay 2019-12-29 16:40:17 +08:00 committed by GitHub
parent da6966d208
commit 08ca95af01
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 25 additions and 9 deletions

View file

@ -33,8 +33,12 @@ html[data-theme='dark'] {
}
.docusaurus-highlight-code-line {
background-color: rgb(72, 77, 91);
background-color: rgb(0, 0, 0, 0.1);
display: block;
margin: 0 calc(-1 * var(--ifm-pre-padding));
padding: 0 var(--ifm-pre-padding);
}
html[data-theme='dark'] .docusaurus-highlight-code-line {
background-color: rgb(0, 0, 0, 0.3);
}