MediaWiki:Common.css:修订间差异
外观
IdleTap-bot(留言 | 贡献) 全局 mbox/fmbox 背景色 #ddeeff → #f8f9fa 对齐求闻 标签:清空 |
IdleTap-bot(留言 | 贡献) 恢复 Common.css(revid 4512,修正全局 mbox/fmbox 默认背景为 #f8f9fa) |
||
| 第1行: | 第1行: | ||
.infobox { | |||
float: right; | |||
margin: 0 0 1em 1em; | |||
width: 24em; | |||
border-spacing: 5px; | |||
border: 1px solid var(--border-color-base, #ccc); | |||
background: var(--color-surface-1, #f8f9fa); | |||
color: var(--color-base, #202122); | |||
} | |||
.infobox-header { | |||
text-align: center; | |||
font-size: 120%; | |||
padding: 5px; | |||
background: var(--color-surface-3, #e0e0e0); | |||
font-weight: bold; | |||
} | |||
.infobox th { | |||
text-align: left; | |||
padding: 4px; | |||
background: var(--color-surface-2, #eaecf0); | |||
} | |||
.infobox td { | |||
padding: 4px; | |||
border-bottom: 1px solid var(--border-color-muted, #ddd); | |||
} | |||
/* Better source needed 内联模板样式 */ | |||
.better-source-inline { | |||
font-size: 0.85em; | |||
color: #0645ad; | |||
white-space: nowrap; | |||
} | |||
.better-source-inline a { | |||
color: #0645ad; | |||
text-decoration: none; | |||
border-bottom: 1px dotted #0645ad; | |||
} | |||
.better-source-inline a:hover { | |||
text-decoration: underline; | |||
} | |||
.better-source-bracket { | |||
color: #0645ad; | |||
font-weight: normal; | |||
} | |||
.primary-source-inline { | |||
font-size: 0.85em; | |||
color: #0645ad; | |||
white-space: nowrap; | |||
} | |||
.primary-source-inline a { | |||
color: #0645ad; | |||
text-decoration: none; | |||
border-bottom: 1px dotted #0645ad; | |||
} | |||
.primary-source-inline a:hover { | |||
text-decoration: underline; | |||
} | |||
.primary-source-bracket { | |||
color: #0645ad; | |||
font-weight: normal; | |||
} | |||
/* ============================================ | |||
来源维护内联模板统一样式 | |||
============================================ */ | |||
/* 通用基础样式 */ | |||
.citation-tag-inline { | |||
font-size: 0.85em; | |||
white-space: nowrap; | |||
font-family: sans-serif; | |||
} | |||
.citation-tag-inline a { | |||
text-decoration: none; | |||
border-bottom: 1px dotted; | |||
cursor: help; | |||
} | |||
.citation-tag-inline a:hover { | |||
text-decoration: underline; | |||
border-bottom: 1px solid; | |||
} | |||
.citation-tag-bracket { | |||
font-weight: normal; | |||
} | |||
/* Failed verification — 橙色,表示来源与内容不符(最严重) */ | |||
.failed-verification-inline, | |||
.failed-verification-inline a, | |||
.failed-verification-bracket { | |||
color: #c2580e; | |||
} | |||
.failed-verification-inline a { | |||
border-bottom-color: #c2580e; | |||
} | |||
/* Primary source inline — 蓝色,需要二手来源 */ | |||
.primary-source-inline, | |||
.primary-source-inline a, | |||
.primary-source-bracket { | |||
color: #0645ad; | |||
} | |||
.primary-source-inline a { | |||
border-bottom-color: #0645ad; | |||
} | |||
/* Better source needed — 蓝色,来源不够好 */ | |||
.better-source-inline, | |||
.better-source-inline a, | |||
.better-source-bracket { | |||
color: #0645ad; | |||
} | |||
.better-source-inline a { | |||
border-bottom-color: #0645ad; | |||
} | |||
/* Citation needed — 红色,完全无来源(可选配套) */ | |||
.citation-needed-inline, | |||
.citation-needed-inline a, | |||
.citation-needed-bracket { | |||
color: #d33; | |||
} | |||
.citation-needed-inline a { | |||
border-bottom-color: #d33; | |||
} | |||
/* ============================================ | |||
Documentation 模板样式 | |||
============================================ */ | |||
.documentation-box { | |||
border: 1px solid #a2a9b1; | |||
background: #f8f9fa; | |||
padding: 0; | |||
margin: 1em 0; | |||
clear: both; | |||
} | |||
.documentation-title { | |||
font-weight: bold; | |||
font-size: 1.1em; | |||
padding: 0.5em 1em; | |||
border-bottom: 1px solid #a2a9b1; | |||
background: #eaecf0; | |||
} | |||
.documentation-body { | |||
padding: 0.8em 1em; | |||
} | |||
.documentation-body p { | |||
margin: 0.3em 0; | |||
} | |||
.documentation-links { | |||
font-size: 0.85em; | |||
padding: 0.5em 1em; | |||
border-top: 1px solid #a2a9b1; | |||
background: #eaecf0; | |||
text-align: right; | |||
} | |||
.documentation-missing .documentation-body { | |||
color: #72777d; | |||
} | |||
#siteSub { | |||
display: block !important; | |||
margin-top: 0.2em; | |||
color: #54595d; | |||
} | |||
/* ============================================ | |||
Message box 全局样式(对齐求闻百科) | |||
使 #mw-clearyourcache 等非 .mw-parser-output 容器中的 mbox/fmbox 正常显示边框 | |||
============================================ */ | |||
.mbox { | |||
box-sizing: border-box; | |||
margin: 4px 24px; | |||
border: 1px solid #c8ccd1; | |||
border-left-width: 6px; | |||
background-color: #f8f9fa; | |||
color: #202122; | |||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
width: auto; | |||
max-width: 100%; | |||
} | |||
.mbox-body { | |||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
width: 100%; | |||
} | |||
.mbox-text, .mbox-text { | |||
border: none; | |||
padding: 8px; | |||
width: 100%; | |||
flex: 1 1 auto; | |||
line-height: 1.75; | |||
font-size: 16px; | |||
} | |||
.mbox-image { | |||
border: none; | |||
padding: 8px 0 8px 8px; | |||
text-align: center; | |||
flex: 0 0 auto; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
.mbox-imageright { | |||
border: none; | |||
padding: 8px 8px 8px 0; | |||
text-align: center; | |||
flex: 0 0 auto; | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | |||
.mbox-empty-cell { | |||
border: none; | |||
padding: 0; | |||
width: 1px; | |||
} | |||
.hide-when-compact { | |||
display: inline; | |||
} | |||
.mbox { | |||
background-color: #f8f9fa; | |||
} | |||
.mbox-speedy { background-color: #ffeeee; border-left-color: #bb2222; } | |||
.mbox-delete { background-color: #f0f0d8; border-left-color: #aa9977; } | |||
.mbox-content { background-color: #ffeedd; border-left-color: #f28500; } | |||
.mbox-style { background-color: #ffffcc; border-left-color: #ffbb33; } | |||
.mbox-move { background-color: #ffeeff; border-left-color: #9933cc; } | |||
.mbox-protection { background-color: #eeeeee; border-left-color: #606060; } | |||
.mbox-notice { background-color: #ddeeff; border-left-color: #3366cc; } | |||
.mbox-license { background-color: #f7f8ff; border-left-color: #999999; } | |||
.mbox-featured { background-color: #ffeecc; border-left-color: #cba135; } | |||
.mbox-policy { background-color: #ccffcc; border-left-color: #118811; } | |||
.mbox-guideline { background-color: #ddeeff; border-left-color: #3366cc; } | |||
.mbox-rule { background-color: #ffffcc; border-left-color: #ffbb33; } | |||
.mbox-draft { background-color: #eeeeee; border-left-color: #606060; } | |||
.mbox-setindex { background-color: #fefefe; border-left-color: #999999; } | |||
.mbox-disambig { background-color: #fefefe; border-left-color: #999999; } | |||
.fmbox { | |||
box-sizing: border-box; | |||
margin: 4px 24px; | |||
border: 1px solid #c8ccd1; | |||
border-left-width: 6px; | |||
background-color: #f8f9fa; | |||
color: #202122; | |||
display: flex; | |||
flex-direction: row; | |||
align-items: center; | |||
width: auto; | |||
max-width: 100%; | |||
} | |||
.fmbox-warning { border-left-color: #b32424; } | |||
.fmbox-editnotice { border-left-color: #36c; } | |||
.fmbox-system { border-left-color: #a2a9b1; } | |||
.fmbox-copyright { border-left-color: #00803b; } | |||
2026年8月4日 (二) 03:36的版本
.infobox {
float: right;
margin: 0 0 1em 1em;
width: 24em;
border-spacing: 5px;
border: 1px solid var(--border-color-base, #ccc);
background: var(--color-surface-1, #f8f9fa);
color: var(--color-base, #202122);
}
.infobox-header {
text-align: center;
font-size: 120%;
padding: 5px;
background: var(--color-surface-3, #e0e0e0);
font-weight: bold;
}
.infobox th {
text-align: left;
padding: 4px;
background: var(--color-surface-2, #eaecf0);
}
.infobox td {
padding: 4px;
border-bottom: 1px solid var(--border-color-muted, #ddd);
}
/* Better source needed 内联模板样式 */
.better-source-inline {
font-size: 0.85em;
color: #0645ad;
white-space: nowrap;
}
.better-source-inline a {
color: #0645ad;
text-decoration: none;
border-bottom: 1px dotted #0645ad;
}
.better-source-inline a:hover {
text-decoration: underline;
}
.better-source-bracket {
color: #0645ad;
font-weight: normal;
}
.primary-source-inline {
font-size: 0.85em;
color: #0645ad;
white-space: nowrap;
}
.primary-source-inline a {
color: #0645ad;
text-decoration: none;
border-bottom: 1px dotted #0645ad;
}
.primary-source-inline a:hover {
text-decoration: underline;
}
.primary-source-bracket {
color: #0645ad;
font-weight: normal;
}
/* ============================================
来源维护内联模板统一样式
============================================ */
/* 通用基础样式 */
.citation-tag-inline {
font-size: 0.85em;
white-space: nowrap;
font-family: sans-serif;
}
.citation-tag-inline a {
text-decoration: none;
border-bottom: 1px dotted;
cursor: help;
}
.citation-tag-inline a:hover {
text-decoration: underline;
border-bottom: 1px solid;
}
.citation-tag-bracket {
font-weight: normal;
}
/* Failed verification — 橙色,表示来源与内容不符(最严重) */
.failed-verification-inline,
.failed-verification-inline a,
.failed-verification-bracket {
color: #c2580e;
}
.failed-verification-inline a {
border-bottom-color: #c2580e;
}
/* Primary source inline — 蓝色,需要二手来源 */
.primary-source-inline,
.primary-source-inline a,
.primary-source-bracket {
color: #0645ad;
}
.primary-source-inline a {
border-bottom-color: #0645ad;
}
/* Better source needed — 蓝色,来源不够好 */
.better-source-inline,
.better-source-inline a,
.better-source-bracket {
color: #0645ad;
}
.better-source-inline a {
border-bottom-color: #0645ad;
}
/* Citation needed — 红色,完全无来源(可选配套) */
.citation-needed-inline,
.citation-needed-inline a,
.citation-needed-bracket {
color: #d33;
}
.citation-needed-inline a {
border-bottom-color: #d33;
}
/* ============================================
Documentation 模板样式
============================================ */
.documentation-box {
border: 1px solid #a2a9b1;
background: #f8f9fa;
padding: 0;
margin: 1em 0;
clear: both;
}
.documentation-title {
font-weight: bold;
font-size: 1.1em;
padding: 0.5em 1em;
border-bottom: 1px solid #a2a9b1;
background: #eaecf0;
}
.documentation-body {
padding: 0.8em 1em;
}
.documentation-body p {
margin: 0.3em 0;
}
.documentation-links {
font-size: 0.85em;
padding: 0.5em 1em;
border-top: 1px solid #a2a9b1;
background: #eaecf0;
text-align: right;
}
.documentation-missing .documentation-body {
color: #72777d;
}
#siteSub {
display: block !important;
margin-top: 0.2em;
color: #54595d;
}
/* ============================================
Message box 全局样式(对齐求闻百科)
使 #mw-clearyourcache 等非 .mw-parser-output 容器中的 mbox/fmbox 正常显示边框
============================================ */
.mbox {
box-sizing: border-box;
margin: 4px 24px;
border: 1px solid #c8ccd1;
border-left-width: 6px;
background-color: #f8f9fa;
color: #202122;
display: flex;
flex-direction: row;
align-items: center;
width: auto;
max-width: 100%;
}
.mbox-body {
display: flex;
flex-direction: row;
align-items: center;
width: 100%;
}
.mbox-text, .mbox-text {
border: none;
padding: 8px;
width: 100%;
flex: 1 1 auto;
line-height: 1.75;
font-size: 16px;
}
.mbox-image {
border: none;
padding: 8px 0 8px 8px;
text-align: center;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.mbox-imageright {
border: none;
padding: 8px 8px 8px 0;
text-align: center;
flex: 0 0 auto;
display: flex;
align-items: center;
justify-content: center;
}
.mbox-empty-cell {
border: none;
padding: 0;
width: 1px;
}
.hide-when-compact {
display: inline;
}
.mbox {
background-color: #f8f9fa;
}
.mbox-speedy { background-color: #ffeeee; border-left-color: #bb2222; }
.mbox-delete { background-color: #f0f0d8; border-left-color: #aa9977; }
.mbox-content { background-color: #ffeedd; border-left-color: #f28500; }
.mbox-style { background-color: #ffffcc; border-left-color: #ffbb33; }
.mbox-move { background-color: #ffeeff; border-left-color: #9933cc; }
.mbox-protection { background-color: #eeeeee; border-left-color: #606060; }
.mbox-notice { background-color: #ddeeff; border-left-color: #3366cc; }
.mbox-license { background-color: #f7f8ff; border-left-color: #999999; }
.mbox-featured { background-color: #ffeecc; border-left-color: #cba135; }
.mbox-policy { background-color: #ccffcc; border-left-color: #118811; }
.mbox-guideline { background-color: #ddeeff; border-left-color: #3366cc; }
.mbox-rule { background-color: #ffffcc; border-left-color: #ffbb33; }
.mbox-draft { background-color: #eeeeee; border-left-color: #606060; }
.mbox-setindex { background-color: #fefefe; border-left-color: #999999; }
.mbox-disambig { background-color: #fefefe; border-left-color: #999999; }
.fmbox {
box-sizing: border-box;
margin: 4px 24px;
border: 1px solid #c8ccd1;
border-left-width: 6px;
background-color: #f8f9fa;
color: #202122;
display: flex;
flex-direction: row;
align-items: center;
width: auto;
max-width: 100%;
}
.fmbox-warning { border-left-color: #b32424; }
.fmbox-editnotice { border-left-color: #36c; }
.fmbox-system { border-left-color: #a2a9b1; }
.fmbox-copyright { border-left-color: #00803b; }