Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc: add dark mode styles #36306

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions doc/api_assets/hljs.css
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,31 @@
color: #666;
font-weight: lighter;
}

@media (prefers-color-scheme: dark) {
.hljs-symbol {
color: #f92672;
}
.hljs-attribute,
.hljs-keyword {
color: #66d9ef;
}
.hljs-string {
color: #99cc7d;
}
.hljs-regexp,
.hljs-number {
color: #dbbdf9;
}
.hljs-doctag {
color: #040404;
}
.hljs-doctag .hljs-type,
.hljs-doctag .hljs-variable,
.hljs-comment {
color: #8292a2;
}
.hljs-built_in {
color: #f5bc75;
}
}
16 changes: 16 additions & 0 deletions doc/api_assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -716,3 +716,19 @@ kbd {
overflow: hidden;
}
}
@media (prefers-color-scheme: dark) {
body {
background-color: #090c15;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you please remove the trailing whitespace?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure thing, 2 minutes

color: #cbd4d9;
}
a:link {
color: #5fa04e;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also the trailing whitespace here.

}
#column2.interior, #column2 ul {
background-color: #0d111d;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

...and here as well.

}
pre,tt,code {
color: #e9edf0;
background-color: #2c3437;
}
}