Template:If darkmode/styles.css:修订间差异
外观
CaelLab-import(留言 | 贡献) CaelLab-import将页面Template:If darkmode/styles.css的内容模型从“wikitext”更改为“已过滤的CSS”:导入自中文维基百科 |
小 已保护“Template:If darkmode/styles.css”:security: TSU CSS injection hardening 2026-11-03([编辑=仅允许管理员](无限期)[移动=仅允许管理员](无限期)) |
||
(没有差异)
| |||
2026年11月3日 (二) 05:31的最新版本
/* this should be the fallback */
.ifdarkmode > .isdarkmode {
display: none;
}
.ifdarkmode > .nodarkmode {
display: inherit; /* fallback */
display: initial;
}
html.skin-theme-clientpref-night .ifdarkmode > .nodarkmode {
display: none;
}
html.skin-theme-clientpref-night .ifdarkmode > .isdarkmode {
display: inherit; /* fallback */
display: initial;
}
/* dark mode gadget */
html.client-dark-mode .ifdarkmode > .nodarkmode {
display: none;
}
html.client-dark-mode .ifdarkmode > .isdarkmode {
display: inherit; /* fallback */
display: initial;
}
@media screen and (prefers-color-scheme: dark) {
html.skin-theme-clientpref-os .ifdarkmode > .nodarkmode {
display: none;
}
html.skin-theme-clientpref-os .ifdarkmode > .isdarkmode {
display: inherit; /* fallback */
display: initial;
}
}
@media screen and (prefers-color-scheme: light) {
html.skin-theme-clientpref-os .ifdarkmode > .isdarkmode {
display: none;
}
html.skin-theme-clientpref-os .ifdarkmode > .nodarkmode {
display: inherit; /* fallback */
display: initial;
}
}