MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
无编辑摘要 标签:已被回退 |
无编辑摘要 标签:已被回退 |
||
| 第1行: | 第1行: | ||
/* ===== 自定义背景图片(适配多比例) ===== */ | /* ===== 自定义背景图片(适配多比例) ===== */ | ||
.skin- | |||
/* 亮色模式:覆盖 html + body + 内容层 */ | |||
html:not(.skin-theme-clientpref-night) { | |||
background-color: #f5f5f5 !important; | background-color: #f5f5f5 !important; | ||
background-image: url('/images/0/07/Light.jpg') !important; | background-image: url('/images/0/07/Light.jpg') !important; | ||
| 第9行: | 第11行: | ||
} | } | ||
.skin-citizen.skin-theme-clientpref-night { | html:not(.skin-theme-clientpref-night) body, | ||
html:not(.skin-theme-clientpref-night) #content, | |||
html:not(.skin-theme-clientpref-night) .mw-body, | |||
html:not(.skin-theme-clientpref-night) .citizen-body, | |||
html:not(.skin-theme-clientpref-night) .citizen-body-container { | |||
background-color: transparent !important; | |||
background-image: none !important; | |||
} | |||
/* 暗色模式:覆盖 html + body + 内容层 */ | |||
html.skin-theme-clientpref-night { | |||
background-color: #0d0e12 !important; | background-color: #0d0e12 !important; | ||
background-image: url('/images/f/fc/Dark.jpg') !important; | background-image: url('/images/f/fc/Dark.jpg') !important; | ||
| 第18行: | 第30行: | ||
} | } | ||
/* | html.skin-theme-clientpref-night body, | ||
html.skin-theme-clientpref-night #content, | |||
html.skin-theme-clientpf-night .mw-body, | |||
html.skin-theme-clientpref-night .citizen-body, | |||
html.skin-theme-clientpref-night .citizen-body-container { | |||
background-color: transparent !important; | |||
background-image: none !important; | |||
} | |||
/* 超宽屏 */ | |||
@media screen and (min-width: 1921px) { | @media screen and (min-width: 1921px) { | ||
html { | |||
background-size: cover !important; | background-size: cover !important; | ||
} | } | ||
} | } | ||
/* | /* 竖屏手机 */ | ||
@media screen and (max-width: 768px) and (orientation: portrait) { | @media screen and (max-width: 768px) and (orientation: portrait) { | ||
html { | |||
background-attachment: scroll !important; | background-attachment: scroll !important; | ||
background-position: center center !important; | background-position: center center !important; | ||
| 第38行: | 第57行: | ||
/* 横屏手机/平板 */ | /* 横屏手机/平板 */ | ||
@media screen and (max-width: 1024px) and (orientation: landscape) { | @media screen and (max-width: 1024px) and (orientation: landscape) { | ||
html { | |||
background-position: center center !important; | background-position: center center !important; | ||
background-size: cover !important; | background-size: cover !important; | ||
| 第45行: | 第63行: | ||
} | } | ||
/* | /* 低性能设备 */ | ||
@media (prefers-reduced-motion: reduce) { | @media (prefers-reduced-motion: reduce) { | ||
html { | |||
background-attachment: scroll !important; | background-attachment: scroll !important; | ||
} | } | ||
} | } | ||
2026年5月18日 (一) 06:04的版本
/* ===== 自定义背景图片(适配多比例) ===== */
/* 亮色模式:覆盖 html + body + 内容层 */
html:not(.skin-theme-clientpref-night) {
background-color: #f5f5f5 !important;
background-image: url('/images/0/07/Light.jpg') !important;
background-size: cover !important;
background-position: center center !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
}
html:not(.skin-theme-clientpref-night) body,
html:not(.skin-theme-clientpref-night) #content,
html:not(.skin-theme-clientpref-night) .mw-body,
html:not(.skin-theme-clientpref-night) .citizen-body,
html:not(.skin-theme-clientpref-night) .citizen-body-container {
background-color: transparent !important;
background-image: none !important;
}
/* 暗色模式:覆盖 html + body + 内容层 */
html.skin-theme-clientpref-night {
background-color: #0d0e12 !important;
background-image: url('/images/f/fc/Dark.jpg') !important;
background-size: cover !important;
background-position: center center !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
}
html.skin-theme-clientpref-night body,
html.skin-theme-clientpref-night #content,
html.skin-theme-clientpf-night .mw-body,
html.skin-theme-clientpref-night .citizen-body,
html.skin-theme-clientpref-night .citizen-body-container {
background-color: transparent !important;
background-image: none !important;
}
/* 超宽屏 */
@media screen and (min-width: 1921px) {
html {
background-size: cover !important;
}
}
/* 竖屏手机 */
@media screen and (max-width: 768px) and (orientation: portrait) {
html {
background-attachment: scroll !important;
background-position: center center !important;
background-size: cover !important;
}
}
/* 横屏手机/平板 */
@media screen and (max-width: 1024px) and (orientation: landscape) {
html {
background-position: center center !important;
background-size: cover !important;
}
}
/* 低性能设备 */
@media (prefers-reduced-motion: reduce) {
html {
background-attachment: scroll !important;
}
}