未验证 提交 0693021a 编写于 作者: M Mr.doob 提交者: GitHub

Merge pull request #17867 from gkjohnson/dark-code-docs

Docs Suggestion: Use a dark color theme for code snippets in dark mode
......@@ -13,3 +13,16 @@ pre.prettyprint, code.prettyprint {
background-color: #F5F5F5;
font-family: 'Roboto Mono', monospace;
}
@media (prefers-color-scheme: dark) {
pre .str, code .str { color: #BB55FF; } /* string */
pre .com, code .com { color: #666666; } /* comment */
pre .lit, code .lit { color: #ff3399; } /* literal */
pre .pln, code .pln { color: #aaaaaa; } /* plaintext */
pre.prettyprint, code.prettyprint {
background-color: #333333;
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册