模板:If darkmode/styles.css:修訂間差異

出自眾神廳
跳至導覽 跳至搜尋
CSS國家模板>Xiplus-abot
已保护“Template:If darkmode/styles.css”:​高風險模板:1420引用<!-- 機器人3 -->​([编辑=仅允许自动确认用户](无限期)​[移动=仅允许自动确认用户](无限期))
 
已匯入 1 筆修訂
 
(無差異)

2026年9月17日 (四) 09:27的最新修訂

/* 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;
	}	

}