1
0
mirror of https://github.com/ZSCNetSupportDept/website.git synced 2025-10-29 01:15:04 +08:00

使用Mermaid图表功能,不过好像和黑暗模式不太兼容

This commit is contained in:
2025-03-23 15:56:47 +08:00
parent c61c133d7d
commit 813351c1c8
2 changed files with 24 additions and 3 deletions

View File

@@ -47,3 +47,9 @@ html[data-theme='dark'] .markdown h2 {
background: linear-gradient(to right, rgba(255, 255, 255, 0.01), rgba(255, 255, 255, 0));
border-left-color: var(--ifm-color-primary-light);
}
/* 强制 Mermaid 图表在黑暗模式下使用白色背景 */
html[data-theme='dark'] .mermaid {
background-color: #ffffff !important;
color: #000000 !important;
}