style: add dark style for `pre` and `code` (#6382)

pull/6414/head
Konv Suu 2023-03-27 08:11:29 +08:00 committed by GitHub
parent 6d60eba281
commit 9dbe035efe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,16 @@
html[data-doc-theme='dark'] {
pre code {
background: #262626;
border-color: #262626;
}
code[class*='language-'],
pre[class*='language-'] {
color: black;
}
:not(pre) > code[class*='language-'],
pre[class*='language-'] {
background: #262626;
}
}

View File

@ -9,6 +9,7 @@
@import './toc';
@import './not-found';
@import './highlight';
@import './highlight.dark';
@import './demo';
@import './icons';
@import './mock-browser';