mirror of
https://github.com/openmlsys/openmlsys-zh.git
synced 2026-04-01 01:41:17 +08:00
feat: add dark mode image background for mdbook dark themes
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -15,3 +15,4 @@ command = "python3 tools/mdbook_zh_preprocessor.py"
|
||||
git-repository-url = "https://github.com/openmlsys/openmlsys-zh"
|
||||
mathjax-support = true
|
||||
preferred-dark-theme = "navy"
|
||||
additional-css = ["theme/dark-mode-images.css"]
|
||||
|
||||
8
theme/dark-mode-images.css
Normal file
8
theme/dark-mode-images.css
Normal file
@@ -0,0 +1,8 @@
|
||||
/* 暗色模式下为图片添加浅灰色背景,提高透明背景图片的可读性 */
|
||||
.navy img,
|
||||
.coal img,
|
||||
.ayu img {
|
||||
background-color: #e8e8e8;
|
||||
border-radius: 4px;
|
||||
padding: 8px;
|
||||
}
|
||||
Reference in New Issue
Block a user