fix: 顶栏颜色跟随小程序主题并保留跟随系统
This commit is contained in:
@@ -256,3 +256,23 @@ page {
|
||||
border-top: var(--line-card);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* ==========================================================
|
||||
系统主题探测器(跟随系统模式)
|
||||
以官方 onThemeChange/getAppBaseInfo 为主,这里是 CSS 兜底通道。
|
||||
========================================================== */
|
||||
.system-theme-detector {
|
||||
position: fixed;
|
||||
left: -9999px;
|
||||
top: 0;
|
||||
width: 1px;
|
||||
height: 1px;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
.system-theme-detector {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user