This commit is contained in:
PhatenIoT-yan
2026-03-09 16:50:37 +08:00
parent 14544eccd3
commit e469ee0144
55 changed files with 4539 additions and 417 deletions

View File

@@ -240,4 +240,25 @@ hide content only for mobile devices
.card-wide hr {
margin: 0.5rem 0;
}
}
/*
针对暗黑模式 (slate) 的自定义样式
目标:将顶部 Header 标题和菜单栏文字强制设为白色
*/
[data-md-color-scheme="slate"] .md-header__title,
[data-md-color-scheme="slate"] .md-header__topic,
[data-md-color-scheme="slate"] .md-header__option,
[data-md-color-scheme="slate"] .md-header__option,
/* [data-md-color-scheme="slate"] .md-header__nav .md-header__nav__title, 如果有辅助导航标题 */
[data-md-color-scheme="slate"] .md-tabs__link /* 顶部 Tab 导航文字 */
/* [data-md-color-scheme="slate"] .md-nav__link 侧边或顶部普通导航链接 */
{
color: #CCCCCC !important;
}
/* 确保当前选中的 Tab 也是白色(或者保持高亮色,视需求而定,这里统一设为白色以确保可见) */
[data-md-color-scheme="slate"] .md-tabs__link--active {
color: #CCCCCC !important;
font-weight: bold;
}