模块:Documentation/styles.css:修订间差异
来自RIA | Wiki
更多操作
建立内容为“.template-documentation-sandbox .mbox-image { padding: 0.75em 0 .75em 0.75em; } .template-documentation { clear: both; background-color: rgb(234, 243, 2…”的新页面 |
在自动切换模式下,使用浅色背景+黑色文字 标签:mobile edit mobile web edit advanced mobile edit |
||
| (未显示同一用户的11个中间版本) | |||
| 第1行: | 第1行: | ||
.template-documentation { | .template-documentation { | ||
clear: both; | clear: both; | ||
| 第22行: | 第18行: | ||
line-height: 24px; | line-height: 24px; | ||
margin-left: 0; | margin-left: 0; | ||
-webkit-user-select: none; | -webkit-user-select: none; | ||
| 第61行: | 第56行: | ||
line-height: 24px; | line-height: 24px; | ||
font-size: 1.1em; | font-size: 1.1em; | ||
font-family: "Adobe Heiti Std", "SimHei", sans-serif; | font-family: "HYQiHei", "Noto Sans CJK SC", "Adobe Heiti Std", "SimHei", sans-serif; | ||
font-weight: 600; | |||
letter-spacing: 1px; | letter-spacing: 1px; | ||
text-transform: uppercase; | text-transform: uppercase; | ||
| 第77行: | 第73行: | ||
.template-documentation-footer { | .template-documentation-footer { | ||
background-color: | background-color: rgb(234, 243, 255); | ||
border: 1px solid #a3caff; | border: 1px solid #a3caff; | ||
padding: 0.215em 1em; | padding: 0.215em 1em; | ||
margin-top: 0.215em; | margin-top: 0.215em; | ||
border-bottom-left-radius: 2px; | border-bottom-left-radius: 2px; | ||
border-bottom-right-radius: 2px; | border-bottom-right-radius: 2px; | ||
} | } | ||
@media all and ( | @media all and (min-width: 720px) { | ||
.template-documentation-header .template-documentation-links-tlinks { | .template-documentation-header .template-documentation-links-tlinks { | ||
float: | float: right; | ||
} | |||
} | |||
/* 黑暗模式适配 */ | |||
/* 用户设置的黑暗模式 */ | |||
/* Note: If using a CSS variable, there is no need to make use of `@media screen` */ | |||
@media screen { | |||
html.skin-theme-clientpref-night .template-documentation-header { | |||
background-color: rgb(6, 46, 88); | |||
} | |||
html.skin-theme-clientpref-night .template-documentation-heading { | |||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg); | |||
} | |||
html.skin-theme-clientpref-night .template-documentation, | |||
html.skin-theme-clientpref-night .template-documentation-footer { | |||
border-color: rgb(6, 46, 88); | |||
background-color: rgb(8, 25, 49); | |||
} | |||
/* Citizen:纯黑 */ | |||
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-documentation, | |||
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-documentation-footer { | |||
background-color: black; | |||
} | |||
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-header { | |||
border-bottom: 1px solid rgb(6, 46, 88); | |||
background-color: black; | |||
} | } | ||
} | |||
/* 在MediaWiki更新至1.42前不可用 | |||
* https://phabricator.wikimedia.org/T241946 | |||
@media screen and (prefers-color-scheme: dark) { | |||
// 自动切换 | |||
html.skin-theme-clientpref-os .template-documentation-header { | |||
background-color: rgb(6, 46, 88); | |||
} | |||
html.skin-theme-clientpref-os .template-documentation-heading { | |||
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg); | |||
} | |||
html.skin-theme-clientpref-os .template-documentation, | |||
html.skin-theme-clientpref-os .template-documentation-footer { | |||
border-color: rgb(6, 46, 88); | |||
background-color: rgb(8, 25, 49); | |||
} | |||
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-documentation, | |||
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-documentation-footer { | |||
background-color: black; | |||
} | |||
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-header { | |||
border-bottom: 1px solid rgb(6, 46, 88); | |||
background-color: black; | |||
} | |||
} | |||
*/ | |||
/* 自动切换模式下,使用浅色背景+黑色文字,以保持可读性 */ | |||
html.skin-theme-clientpref-os .template-documentation-header { | |||
background-color: rgb(194, 220, 255); | |||
color: rgb(16, 17, 18); | |||
} | |||
html.skin-theme-clientpref-os .template-documentation, | |||
html.skin-theme-clientpref-os .template-documentation-footer { | |||
border-color: rgb(163, 202, 255); | |||
background-color: rgb(234, 243, 255); | |||
color: rgb(16, 17, 18); | |||
} | } | ||
2026年3月5日 (四) 17:07的最新版本
.template-documentation {
clear: both;
background-color: rgb(234, 243, 255);
border: 1px solid rgb(163, 202, 255);
margin-top: 1em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.template-documentation-header {
background-color: rgb(194, 220, 255);
padding: .642857em 1em .5em;
border-top-left-radius: 2px;
border-top-right-radius: 2px;
}
.template-documentation-header .template-documentation-links-tlinks {
line-height: 24px;
margin-left: 0;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.template-documentation-header .template-documentation-links-tlinkss a.external {
color: rgb(6, 69, 173);
}
.template-documentation-header .template-documentation-links-tlinks a.external:visited {
color: rgb(11, 0, 128);
}
.template-documentation-header .template-documentation-links-tlinks a.external:active {
color: rgb(250, 167, 0);
}
.template-documentation-content {
padding: 0.215em 1em;
}
.template-documentation-content:after {
content: '';
clear: both;
display: block;
}
.template-documentation-heading {
display: inline-block;
padding-left: 30px;
background: center left/24px 24px no-repeat;
/* @noflip */
background-image: url(https://upload.wikimedia.org/wikipedia/commons/f/fb/OOjs_UI_icon_puzzle-ltr.svg);
height: 24px;
line-height: 24px;
font-size: 1.1em;
font-family: "HYQiHei", "Noto Sans CJK SC", "Adobe Heiti Std", "SimHei", sans-serif;
font-weight: 600;
letter-spacing: 1px;
text-transform: uppercase;
}
.template-documentation-content > *:first-child,
.template-documentation-footer > *:first-child {
margin-top: 0.5em;
}
.template-documentation-content > *:last-child,
.template-documentation-footer > *:last-child {
margin-bottom: 0.5em;
}
.template-documentation-footer {
background-color: rgb(234, 243, 255);
border: 1px solid #a3caff;
padding: 0.215em 1em;
margin-top: 0.215em;
border-bottom-left-radius: 2px;
border-bottom-right-radius: 2px;
}
@media all and (min-width: 720px) {
.template-documentation-header .template-documentation-links-tlinks {
float: right;
}
}
/* 黑暗模式适配 */
/* 用户设置的黑暗模式 */
/* Note: If using a CSS variable, there is no need to make use of `@media screen` */
@media screen {
html.skin-theme-clientpref-night .template-documentation-header {
background-color: rgb(6, 46, 88);
}
html.skin-theme-clientpref-night .template-documentation-heading {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg);
}
html.skin-theme-clientpref-night .template-documentation,
html.skin-theme-clientpref-night .template-documentation-footer {
border-color: rgb(6, 46, 88);
background-color: rgb(8, 25, 49);
}
/* Citizen:纯黑 */
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-documentation,
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-documentation-footer {
background-color: black;
}
html.skin-theme-clientpref-night.citizen-feature-pure-black-clientpref-1 .template-header {
border-bottom: 1px solid rgb(6, 46, 88);
background-color: black;
}
}
/* 在MediaWiki更新至1.42前不可用
* https://phabricator.wikimedia.org/T241946
@media screen and (prefers-color-scheme: dark) {
// 自动切换
html.skin-theme-clientpref-os .template-documentation-header {
background-color: rgb(6, 46, 88);
}
html.skin-theme-clientpref-os .template-documentation-heading {
background-image: url(https://upload.wikimedia.org/wikipedia/commons/d/d3/OOjs_UI_icon_puzzle-ltr-invert.svg);
}
html.skin-theme-clientpref-os .template-documentation,
html.skin-theme-clientpref-os .template-documentation-footer {
border-color: rgb(6, 46, 88);
background-color: rgb(8, 25, 49);
}
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-documentation,
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-documentation-footer {
background-color: black;
}
html.skin-theme-clientpref-os.citizen-feature-pure-black-clientpref-1 .template-header {
border-bottom: 1px solid rgb(6, 46, 88);
background-color: black;
}
}
*/
/* 自动切换模式下,使用浅色背景+黑色文字,以保持可读性 */
html.skin-theme-clientpref-os .template-documentation-header {
background-color: rgb(194, 220, 255);
color: rgb(16, 17, 18);
}
html.skin-theme-clientpref-os .template-documentation,
html.skin-theme-clientpref-os .template-documentation-footer {
border-color: rgb(163, 202, 255);
background-color: rgb(234, 243, 255);
color: rgb(16, 17, 18);
}