mirror of
https://github.com/facebook/docusaurus.git
synced 2025-08-02 16:29:47 +02:00
docs(v2): dark mode syntax highlighting (#2153)
This commit is contained in:
parent
da6966d208
commit
08ca95af01
5 changed files with 25 additions and 9 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue