MediaWiki:Common.css:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
無編輯摘要 |
||
| 第1,782行: | 第1,782行: | ||
border-top-color: #3a3d42; | border-top-color: #3a3d42; | ||
color: #a2a9b1; | color: #a2a9b1; | ||
} | |||
} | |||
/* ========================================================= | |||
條目審核模板 | |||
========================================================= */ | |||
/* ---------- 訊息框 ---------- */ | |||
.qa-box { | |||
display: flex; | |||
align-items: flex-start; | |||
gap: 0.8em; | |||
margin: 0 0 1em; | |||
padding: 0.6em 0.9em; | |||
border: 1px solid #c8ccd1; | |||
border-left: 4px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
font-size: 92%; | |||
line-height: 1.6; | |||
} | |||
.qa-small { | |||
padding: 0.4em 0.8em; | |||
font-size: 88%; | |||
} | |||
.qa-mark { | |||
display: flex; | |||
flex: 0 0 auto; | |||
align-items: center; | |||
justify-content: center; | |||
width: 2em; | |||
height: 2em; | |||
background-color: #a2a9b1; | |||
color: #ffffff; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 110%; | |||
font-weight: bold; | |||
line-height: 1; | |||
} | |||
.qa-small .qa-mark { | |||
width: 1.7em; | |||
height: 1.7em; | |||
font-size: 95%; | |||
} | |||
.qa-body { | |||
flex: 1 1 auto; | |||
min-width: 0; | |||
} | |||
.qa-title { | |||
font-weight: bold; | |||
} | |||
.qa-text { | |||
margin-top: 0.15em; | |||
} | |||
.qa-meta { | |||
margin-top: 0.3em; | |||
color: #72777d; | |||
font-size: 88%; | |||
} | |||
.qa-meta:empty { | |||
display: none; | |||
} | |||
/* 各類型配色 */ | |||
.qa-type-featured { border-left-color: #9a7b2f; background-color: #fdfaf1; } | |||
.qa-type-certified { border-left-color: #36669a; background-color: #f5f8fc; } | |||
.qa-type-incomplete { border-left-color: #b35c2e; background-color: #fdf6f1; } | |||
.qa-type-review { border-left-color: #6b4a8b; background-color: #f8f5fb; } | |||
.qa-type-conflict { border-left-color: #8e2f35; background-color: #fcf4f4; } | |||
.qa-type-update { border-left-color: #a8662c; background-color: #fdf8f2; } | |||
.qa-type-term { border-left-color: #8a7a3b; background-color: #fbfaf2; } | |||
.qa-type-merge { border-left-color: #2f7f7a; background-color: #f2f9f8; } | |||
.qa-type-delete { border-color: #d9a3a7; border-left-color: #8e2f35; background-color: #f9eaea; } | |||
.qa-type-featured .qa-mark { background-color: #9a7b2f; } | |||
.qa-type-certified .qa-mark { background-color: #36669a; } | |||
.qa-type-incomplete .qa-mark { background-color: #b35c2e; } | |||
.qa-type-review .qa-mark { background-color: #6b4a8b; } | |||
.qa-type-conflict .qa-mark { background-color: #8e2f35; } | |||
.qa-type-update .qa-mark { background-color: #a8662c; } | |||
.qa-type-term .qa-mark { background-color: #8a7a3b; } | |||
.qa-type-merge .qa-mark { background-color: #2f7f7a; } | |||
.qa-type-delete .qa-mark { background-color: #8e2f35; } | |||
/* ---------- 級別徽章 ---------- */ | |||
.qa-badge { | |||
display: inline-block; | |||
padding: 0.1em 0.55em; | |||
border: 1px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
color: #54595d; | |||
font-size: 80%; | |||
font-weight: bold; | |||
letter-spacing: 0.1em; | |||
line-height: 1.5; | |||
white-space: nowrap; | |||
} | |||
.qa-badge-featured { border-color: #9a7b2f; background-color: #fdfaf1; color: #7a5f1f; } | |||
.qa-badge-certified { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; } | |||
.qa-badge-incomplete { border-color: #b35c2e; background-color: #fdf6f1; color: #8f4822; } | |||
/* 標題右側的徽章 */ | |||
.mw-indicators .qa-badge { | |||
font-size: 75%; | |||
} | |||
/* ---------- 行內待確認 ---------- */ | |||
.qa-inline { | |||
color: #8e2f35; | |||
font-size: 75%; | |||
white-space: nowrap; | |||
} | |||
.qa-inline span { | |||
cursor: help; | |||
border-bottom: 1px dotted #8e2f35; | |||
} | |||
/* ---------- 評分星 ---------- */ | |||
.qa-stars { | |||
color: #9a7b2f; | |||
letter-spacing: 0.08em; | |||
white-space: nowrap; | |||
} | |||
/* ---------- 討論頁:條目審核 ---------- */ | |||
.qa-review { | |||
margin: 0 0 1.2em; | |||
border: 1px solid #c8ccd1; | |||
background-color: #ffffff; | |||
} | |||
.qa-review-header { | |||
display: flex; | |||
align-items: center; | |||
justify-content: space-between; | |||
gap: 1em; | |||
padding: 0.45em 0.8em 0.4em; | |||
border-top: 3px solid #6b4a8b; | |||
border-bottom: 1px solid #eaecf0; | |||
background-color: #f8f9fa; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 115%; | |||
font-weight: bold; | |||
} | |||
.qa-review-header .qa-badge { | |||
font-family: sans-serif; | |||
font-size: 70%; | |||
} | |||
.qa-review-grid { | |||
display: grid; | |||
grid-template-columns: 3fr 2fr; | |||
} | |||
.qa-review-admin, | |||
.qa-review-user { | |||
padding: 0.8em; | |||
} | |||
.qa-review-user { | |||
border-left: 1px solid #eaecf0; | |||
text-align: center; | |||
} | |||
.qa-review-subtitle { | |||
margin-bottom: 0.5em; | |||
padding-bottom: 0.25em; | |||
border-bottom: 1px solid #eaecf0; | |||
color: #54595d; | |||
font-size: 85%; | |||
font-weight: bold; | |||
letter-spacing: 0.15em; | |||
text-align: left; | |||
} | |||
table.qa-review-table { | |||
width: 100%; | |||
border-collapse: collapse; | |||
font-size: 92%; | |||
} | |||
.qa-review-table th, | |||
.qa-review-table td { | |||
padding: 0.3em 0.5em; | |||
border-bottom: 1px solid #eaecf0; | |||
text-align: left; | |||
vertical-align: middle; | |||
} | |||
.qa-review-table th { | |||
width: 7em; | |||
background-color: #f8f9fa; | |||
white-space: nowrap; | |||
} | |||
.qa-review-table td.qa-num { | |||
width: 3em; | |||
color: #54595d; | |||
text-align: right; | |||
} | |||
.qa-review-total th, | |||
.qa-review-total td { | |||
border-top: 1px solid #c8ccd1; | |||
font-weight: bold; | |||
} | |||
.qa-score-big { | |||
margin: 0.2em 0 0.1em; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 260%; | |||
line-height: 1.1; | |||
} | |||
.qa-review-user .qa-stars { | |||
font-size: 130%; | |||
} | |||
.qa-review-note, | |||
.qa-review-meta { | |||
margin-top: 0.4em; | |||
color: #72777d; | |||
font-size: 85%; | |||
} | |||
.qa-review-comment { | |||
margin-top: 0.6em; | |||
padding: 0.5em 0.7em; | |||
border-left: 3px solid #d6cfe2; | |||
background-color: #fbfbfc; | |||
font-size: 92%; | |||
line-height: 1.7; | |||
} | |||
.qa-review-empty { | |||
padding: 1em 0; | |||
color: #a2a9b1; | |||
font-size: 88%; | |||
text-align: center; | |||
} | |||
.qa-more { | |||
margin-top: 0.8em; | |||
padding-top: 0.5em; | |||
border-top: 1px solid #eaecf0; | |||
font-size: 88%; | |||
text-align: right; | |||
} | |||
/* ---------- 討論頁:用戶評分 ---------- */ | |||
.qa-vote { | |||
display: flex; | |||
align-items: baseline; | |||
gap: 0.8em; | |||
padding: 0.4em 0; | |||
border-bottom: 1px solid #eaecf0; | |||
font-size: 92%; | |||
} | |||
.qa-vote-text { | |||
flex: 1 1 auto; | |||
min-width: 0; | |||
} | |||
.qa-vote-sign { | |||
flex: 0 0 auto; | |||
color: #72777d; | |||
font-size: 88%; | |||
} | |||
/* ---------- 手機 ---------- */ | |||
@media screen and (max-width: 640px) { | |||
.qa-review-grid { | |||
grid-template-columns: 1fr; | |||
} | |||
.qa-review-user { | |||
border-top: 1px solid #eaecf0; | |||
border-left: 0; | |||
} | |||
.qa-vote { | |||
flex-wrap: wrap; | |||
} | |||
.qa-vote-sign { | |||
width: 100%; | |||
} | |||
} | |||
/* ---------- 夜間模式 ---------- */ | |||
@media screen { | |||
html.skin-theme-clientpref-night .qa-box, | |||
html.skin-theme-clientpref-night .qa-review, | |||
html.skin-theme-clientpref-night .qa-review-comment, | |||
html.skin-theme-clientpref-night .qa-badge { | |||
border-top-color: #3a3d42; | |||
border-right-color: #3a3d42; | |||
border-bottom-color: #3a3d42; | |||
background-color: #1b1d20; | |||
color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-night .qa-review-header, | |||
html.skin-theme-clientpref-night .qa-review-table th { | |||
border-bottom-color: #3a3d42; | |||
background-color: #232528; | |||
color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-night .qa-review-user, | |||
html.skin-theme-clientpref-night .qa-review-subtitle, | |||
html.skin-theme-clientpref-night .qa-review-table td, | |||
html.skin-theme-clientpref-night .qa-vote, | |||
html.skin-theme-clientpref-night .qa-more { | |||
border-color: #3a3d42; | |||
} | |||
html.skin-theme-clientpref-night .qa-stars { | |||
color: #d4b05a; | |||
} | } | ||
} | } | ||
2026年9月20日 (日) 04:39的版本
/* =========================================================
Encyclato 全站樣式
維基經典風格
目錄
1. 資訊面板本體
2. 資訊面板標題
3. 分區標題
4. 欄名與內容
5. 圖像與簽名
6. 國旗與國徽
7. 格言與國歌
8. 歷代國旗與國徽(摺疊)
9. 任期與前任繼任
10. 跨欄內容、備註與頁尾
11. 數值警告與分級
12. 政黨色
13. 維基標準表格
14. 歷史朝代資訊面板
15. 主條目提示(hatnote)
16. 導覽框(navbox)
17. 前後任接續框
18. 公文與御批
19. 參考文獻與輔助類別
20. 窄螢幕
21. 夜間模式
22. 列印
========================================================= */
/* =========================================================
1. 資訊面板本體
========================================================= */
table.encyclato-infobox {
float: right !important;
clear: right !important;
width: 22em;
max-width: calc(100% - 1em);
margin: 0.5em 0 0.5em 1em !important;
padding: 0.2em;
border: 1px solid #a2a9b1;
border-collapse: separate !important;
border-spacing: 3px !important;
background-color: #f8f9fa;
color: #202122;
font-size: 88%;
line-height: 1.5em;
box-sizing: border-box;
}
table.encyclato-infobox + table.encyclato-infobox {
clear: right;
}
table.encyclato-infobox > tbody > tr > th,
table.encyclato-infobox > tbody > tr > td {
padding: 0.2em 0.4em;
border: 0;
vertical-align: top;
}
table.encyclato-infobox p {
margin: 0;
}
table.encyclato-infobox ul,
table.encyclato-infobox ol {
margin-top: 0;
margin-bottom: 0;
}
table.encyclato-infobox img {
max-width: 100%;
height: auto;
}
table.encyclato-infobox small {
font-size: 90%;
}
/* 空白列 */
table.encyclato-infobox > tbody > tr.infobox-hidden {
display: none !important;
}
/* =========================================================
2. 資訊面板標題
caption:艦級、車輛等面板
infobox-banner:國家、人物、政黨等面板
========================================================= */
table.encyclato-infobox > caption,
table.encyclato-infobox > tbody > tr > th.infobox-banner {
padding: 0.2em 0.4em 0.3em;
background: transparent;
color: #202122;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 125%;
font-weight: bold;
line-height: 1.3em;
text-align: center;
}
table.encyclato-infobox .infobox-banner-title {
font-size: 100%;
}
table.encyclato-infobox .infobox-native-name,
table.encyclato-infobox .infobox-banner-native {
margin-top: 0.1em;
font-size: 80%;
font-weight: normal;
}
table.encyclato-infobox .infobox-banner-role {
margin-top: 0.15em;
font-family: sans-serif;
font-size: 72%;
font-weight: bold;
}
table.encyclato-infobox .infobox-banner-sub {
margin-top: 0.2em;
font-family: sans-serif;
font-size: 68%;
font-weight: normal;
}
/* 國家或政黨狀態:斜體小字 */
table.encyclato-infobox .infobox-status-wrap {
margin-top: 0.15em;
font-family: sans-serif;
font-size: 68%;
font-weight: normal;
}
table.encyclato-infobox .infobox-status {
font-style: italic;
}
table.encyclato-infobox .infobox-status-active {
color: #14866d;
}
table.encyclato-infobox .infobox-status-defunct {
color: #54595d;
}
/* =========================================================
3. 分區標題
========================================================= */
table.encyclato-infobox > tbody > tr > th.infobox-section {
padding: 0.2em 0.4em;
border: 0 !important;
background-color: #eaecf0;
font-weight: bold;
text-align: center;
}
/* 次級標題,例如人物面板的職務名稱 */
table.encyclato-infobox > tbody > tr > th.infobox-subsection {
padding: 0.2em 0.4em;
border: 0 !important;
background-color: #e6e6fa;
font-weight: bold;
text-align: center;
}
/* =========================================================
4. 欄名與內容
========================================================= */
table.encyclato-infobox > tbody > tr > th.infobox-label {
width: auto;
padding-right: 0.65em;
background: transparent;
font-weight: bold;
text-align: left;
white-space: nowrap;
}
table.encyclato-infobox > tbody > tr > th.infobox-label + td {
background: transparent;
text-align: left;
overflow-wrap: anywhere;
}
/* 四字以內的欄名兩端對齊 */
table.encyclato-infobox .infobox-label-text {
display: inline-block;
width: 4em;
text-align: justify;
text-align-last: justify;
text-justify: inter-character;
}
/* 職稱、建立事件等自訂欄名允許換行 */
table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic {
white-space: normal;
}
/* 第二行的補充資訊,例如出生地 */
table.encyclato-infobox .infobox-subline {
display: block;
}
/* 年份與排名:括號小字 */
table.encyclato-infobox .infobox-year,
table.encyclato-infobox .infobox-rank {
margin-left: 0.2em;
color: #54595d;
font-size: 90%;
white-space: nowrap;
}
table.encyclato-infobox .infobox-year::before,
table.encyclato-infobox .infobox-rank::before {
content: "(";
}
table.encyclato-infobox .infobox-year::after,
table.encyclato-infobox .infobox-rank::after {
content: ")";
}
/* =========================================================
5. 圖像與簽名
========================================================= */
table.encyclato-infobox .infobox-image-cell,
table.encyclato-infobox .infobox-portrait-cell,
table.encyclato-infobox .infobox-map-cell,
table.encyclato-infobox .infobox-wide-image {
padding: 0.4em 0.2em;
text-align: center;
vertical-align: middle;
}
table.encyclato-infobox .infobox-portrait-caption,
table.encyclato-infobox .infobox-map-caption {
margin-top: 0.2em;
font-size: 94%;
line-height: 1.4em;
}
table.encyclato-infobox .infobox-signature-cell {
padding: 0.4em 0.2em;
text-align: center;
}
table.encyclato-infobox .infobox-signature-label {
display: block;
font-weight: bold;
}
table.encyclato-infobox .infobox-signature-cell img {
max-width: 150px;
max-height: 80px;
width: auto;
}
/* =========================================================
6. 國旗與國徽
========================================================= */
table.encyclato-infobox .infobox-emblem-cell,
table.encyclato-infobox .infobox-symbol-cell {
width: 50%;
padding: 0.4em 0.2em;
text-align: center;
vertical-align: bottom;
}
table.encyclato-infobox .infobox-emblem-media,
table.encyclato-infobox .infobox-symbol-media {
line-height: 0;
}
table.encyclato-infobox .infobox-flag-media img {
border: 1px solid #c8ccd1;
}
table.encyclato-infobox .infobox-emblem-name,
table.encyclato-infobox .infobox-symbol-name {
display: block;
margin-top: 0.2em;
font-size: 94%;
font-weight: normal;
}
table.encyclato-infobox .infobox-emblem-meta {
display: block;
color: #54595d;
font-size: 85%;
line-height: 1.4em;
}
/* 舊版國旗列的多餘換行修正 */
table.encyclato-infobox tr.infobox-symbol-row br:first-child,
table.encyclato-infobox tr.infobox-symbol-row br:last-child {
display: none;
}
/* =========================================================
7. 格言與國歌
========================================================= */
table.encyclato-infobox .infobox-motto-cell {
padding: 0.3em 0.4em;
text-align: center;
}
table.encyclato-infobox .infobox-motto-line {
margin: 0.1em 0;
}
table.encyclato-infobox .infobox-motto-label {
margin-right: 0.3em;
font-weight: bold;
}
table.encyclato-infobox .infobox-motto-label::after {
content: ":";
}
/* =========================================================
8. 歷代國旗與國徽(摺疊)
========================================================= */
table.encyclato-infobox .infobox-history-cell {
padding: 0.2em 0.4em;
}
table.encyclato-infobox .infobox-history-title {
font-weight: bold;
text-align: center;
}
table.encyclato-infobox .mw-collapsible-toggle {
float: right;
font-weight: normal;
}
table.encyclato-infobox .infobox-history-item {
display: flex;
align-items: flex-end;
gap: 0.4em;
padding: 0.4em 0 0.2em;
}
table.encyclato-infobox .infobox-history-col {
flex: 1 1 50%;
text-align: center;
}
/* =========================================================
9. 任期與前任繼任
========================================================= */
table.encyclato-infobox .infobox-term-cell {
padding: 0.1em 0.4em 0.3em;
text-align: center;
}
table.encyclato-infobox .infobox-succession-cell {
width: 50%;
padding: 0.2em 0.4em;
text-align: center;
vertical-align: top;
}
table.encyclato-infobox .infobox-succession-label {
display: block;
font-weight: bold;
}
/* =========================================================
10. 跨欄內容、備註與頁尾
========================================================= */
table.encyclato-infobox .infobox-wide-cell {
padding: 0.2em 0.4em;
text-align: left;
}
table.encyclato-infobox .infobox-note {
padding: 0.3em 0.4em;
font-size: 90%;
text-align: left;
}
table.encyclato-infobox .infobox-footer-cell {
padding: 0.3em 0.4em;
text-align: center;
}
table.encyclato-infobox .infobox-footer-line + .infobox-footer-line {
margin-top: 0.1em;
}
table.encyclato-infobox .infobox-footer-label {
margin-right: 0.3em;
font-weight: bold;
}
table.encyclato-infobox .infobox-footer-label::after {
content: ":";
}
/* =========================================================
11. 數值警告與分級
不限定在資訊面板內,一般表格也可使用
========================================================= */
.infobox-warning {
margin-left: 0.3em;
color: #d33;
font-size: 85%;
font-weight: bold;
white-space: nowrap;
}
.infobox-value-invalid {
color: #d33;
}
.infobox-grade::after {
margin-left: 0.35em;
font-weight: bold;
}
/* 人類發展指數:越高越好 */
.infobox-hdi-1::after { content: "極高"; color: #006400; }
.infobox-hdi-2::after { content: "高"; color: #2e8b57; }
.infobox-hdi-3::after { content: "中"; color: #b8860b; }
.infobox-hdi-4::after { content: "低"; color: #b22222; }
/* 基尼係數:越低越平均 */
.infobox-gini-1::after { content: "極低"; color: #006400; }
.infobox-gini-2::after { content: "低"; color: #2e8b57; }
.infobox-gini-3::after { content: "中等"; color: #b8860b; }
.infobox-gini-4::after { content: "高"; color: #cc5500; }
.infobox-gini-5::after { content: "極高"; color: #b22222; }
/* =========================================================
12. 政黨色
party-bar-*:表頭上緣色條
party-bg-*:執政或當選儲存格的淡色底
party-swatch-*:文字前的小色塊
========================================================= */
/* 紫荊政友會 */
.party-bar-zijing { border-top: 4px solid #6b4a8b !important; }
.party-bg-zijing { background-color: #efe7f5 !important; }
.party-swatch-zijing { background-color: #6b4a8b; }
/* 中央黨(3701-3731) */
.party-bar-zhongyang { border-top: 4px solid #8a6aa8 !important; }
.party-bg-zhongyang { background-color: #f3edf8 !important; }
.party-swatch-zhongyang { background-color: #8a6aa8; }
/* 日月新潮流 */
.party-bar-riyue { border-top: 4px solid #c9a227 !important; }
.party-bg-riyue { background-color: #fbf3d9 !important; }
.party-swatch-riyue { background-color: #c9a227; }
/* 中間派 */
.party-bar-zhongjian { border-top: 4px solid #9aa0a6 !important; }
.party-bg-zhongjian { background-color: #eeeeee !important; }
.party-swatch-zhongjian { background-color: #9aa0a6; }
/* 聯合政府 */
.party-bg-coalition { background-color: #eeeeee !important; }
/* 其他與無黨籍 */
.party-bar-other { border-top: 4px solid #c8ccd1 !important; }
.party-swatch-other { background-color: #c8ccd1; }
/* 色塊共用樣式 */
[class*="party-swatch-"] {
display: inline-block;
width: 0.9em;
height: 0.9em;
margin-right: 0.3em;
border: 1px solid #a2a9b1;
vertical-align: -0.1em;
}
/* =========================================================
13. 維基標準表格
========================================================= */
table.wikitable {
margin: 1em 0;
border: 1px solid #a2a9b1;
border-collapse: collapse;
background-color: #f8f9fa;
color: #202122;
}
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
padding: 0.2em 0.4em;
border: 1px solid #a2a9b1;
}
table.wikitable > * > tr > th {
background-color: #eaecf0;
text-align: center;
}
table.wikitable > caption {
padding: 0.2em 0;
font-weight: bold;
}
/* 列標題不加粗、靠左 */
table.wikitable.plainrowheaders > * > tr > th[scope="row"] {
font-weight: normal;
text-align: left;
}
/* 合計列固定在底部,不參與排序 */
table.wikitable > * > tr.sortbottom > th,
table.wikitable > * > tr.sortbottom > td {
background-color: #eaecf0;
font-weight: bold;
}
/* 數字欄靠右 */
table.wikitable .num {
text-align: right;
white-space: nowrap;
}
/* 置中表格 */
table.wikitable.center {
margin-left: auto;
margin-right: auto;
}
/* 全寬表格 */
table.wikitable.fullwidth {
width: 100%;
}
/* =========================================================
14. 歷史朝代資訊面板
模板:歷史朝代資訊面板
========================================================= */
table.dynasty-info-table {
width: 100%;
margin: 1em 0;
border: 1px solid #a2a9b1;
border-collapse: collapse;
border-spacing: 0;
background: #fff;
color: #202122;
font-size: 95%;
line-height: 1.45;
}
table.dynasty-info-table > caption {
padding: 0.55em 0.7em;
border: 1px solid #a2a9b1;
border-bottom: 0;
background: #eaecf0;
font-size: 125%;
font-weight: 700;
text-align: center;
}
table.dynasty-info-table > tbody > tr > th,
table.dynasty-info-table > tbody > tr > td {
padding: 0.42em 0.6em;
border: 1px solid #c8ccd1;
vertical-align: middle;
}
table.dynasty-info-table > tbody > tr.dynasty-info-head > th {
background: #eaecf0;
font-weight: 700;
text-align: center;
}
table.dynasty-info-table .dynasty-col-period { width: 12%; }
table.dynasty-info-table .dynasty-col-name { width: 16%; }
table.dynasty-info-table .dynasty-col-date { width: 19%; }
table.dynasty-info-table .dynasty-col-story { width: 53%; }
table.dynasty-info-table .dynasty-period {
background: #f1f3f5;
font-weight: 700;
text-align: center;
vertical-align: middle;
}
table.dynasty-info-table .dynasty-name {
background: #fff;
font-weight: 600;
text-align: center;
}
table.dynasty-info-table .dynasty-date {
background: #fff;
text-align: center;
white-space: nowrap;
}
table.dynasty-info-table .dynasty-story {
background: #fff;
text-align: left;
}
table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > td,
table.dynasty-info-table > tbody > tr.dynasty-data-row:hover > th {
background-color: #f8f9fa;
}
table.dynasty-info-table > tbody > tr.dynasty-hidden {
display: none;
}
/* =========================================================
15. 主條目提示(hatnote)
用法:<div class="hatnote">另請參閱主條目:[[大奭學制]]</div>
========================================================= */
.hatnote {
margin-bottom: 0.5em;
padding-left: 1.6em;
font-style: italic;
}
.hatnote i {
font-style: normal;
}
.hatnote + .hatnote {
margin-top: -0.5em;
}
/* =========================================================
16. 導覽框(navbox)
置於條目底部,串連同一主題的條目
========================================================= */
table.navbox {
clear: both;
width: 100%;
margin: 1em auto 0;
padding: 1px;
border: 1px solid #a2a9b1;
border-spacing: 0;
background-color: #fdfdfd;
font-size: 88%;
text-align: center;
}
table.navbox + table.navbox {
margin-top: -1px;
}
table.navbox .navbox-title {
padding: 0.25em 1em;
background-color: #ccccff;
font-size: 114%;
font-weight: bold;
}
table.navbox .navbox-group {
width: 1%;
padding: 0.25em 1em;
background-color: #ddddff;
font-weight: bold;
text-align: right;
white-space: nowrap;
}
table.navbox .navbox-list {
padding: 0.25em 0.5em;
border-left: 2px solid #fdfdfd;
text-align: left;
line-height: 1.6em;
}
table.navbox .navbox-even {
background-color: #f7f7f7;
}
table.navbox .navbox-odd {
background-color: transparent;
}
/* 清單項目以「・」分隔 */
table.navbox .navbox-list ul {
display: inline;
margin: 0;
padding: 0;
list-style: none;
}
table.navbox .navbox-list li {
display: inline;
margin: 0;
}
table.navbox .navbox-list li + li::before {
content: "・";
padding: 0 0.1em;
font-weight: bold;
}
/* =========================================================
17. 前後任接續框
用於人物條目底部,標示前任與繼任
========================================================= */
table.succession-box {
clear: both;
width: 100%;
margin: 1em auto 0;
border: 1px solid #a2a9b1;
border-collapse: collapse;
background-color: #f8f9fa;
font-size: 90%;
text-align: center;
}
table.succession-box > * > tr > th,
table.succession-box > * > tr > td {
padding: 0.3em 0.6em;
border: 1px solid #a2a9b1;
}
table.succession-box > * > tr > th {
background-color: #eaecf0;
}
table.succession-box .succession-before,
table.succession-box .succession-after {
width: 30%;
}
table.succession-box .succession-title {
width: 40%;
font-weight: bold;
}
/* =========================================================
18. 公文與御批
用於呈現奏摺、政牒、咨牒、札等公文原文
========================================================= */
.encyclato-document {
max-width: 48em;
margin: 1em 0;
padding: 1em 1.4em;
border: 1px solid #c8b99a;
background-color: #fbf8f1;
color: #202122;
font-family: 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
line-height: 1.9;
}
.encyclato-document .doc-title {
margin-bottom: 0.6em;
font-size: 110%;
font-weight: bold;
text-align: center;
}
.encyclato-document .doc-route {
margin-bottom: 0.8em;
color: #54595d;
font-size: 90%;
text-align: center;
}
.encyclato-document .doc-body p {
margin: 0.4em 0;
text-indent: 2em;
}
/* 挪抬:於敬稱前自動空一格 */
.encyclato-document .doc-honor::before {
content: "\3000";
}
/* 落款與文號 */
.encyclato-document .doc-sign {
margin-top: 1em;
color: #202122;
text-align: right;
}
.encyclato-document .doc-number {
color: #54595d;
font-size: 90%;
text-align: right;
}
/* 御批:硃筆 */
.encyclato-document .doc-vermilion,
.doc-vermilion {
color: #b8262b;
font-family: 'DFKai-SB', 'BiauKai', 'Kaiti TC', 'STKaiti', 'KaiTi', serif;
font-size: 112%;
font-weight: bold;
}
.encyclato-document .doc-vermilion-block {
margin-top: 1em;
padding-top: 0.6em;
border-top: 1px dashed #c8b99a;
}
/* =========================================================
19. 參考文獻與輔助類別
========================================================= */
.reflist {
margin-bottom: 0.5em;
font-size: 90%;
column-width: 30em;
}
.reflist ol.references {
margin-top: 0;
}
.nowrap {
white-space: nowrap;
}
.plainlist ul {
margin: 0;
padding: 0;
list-style: none;
}
.plainlist li {
margin-bottom: 0;
}
.muted {
color: #54595d;
}
/* =========================================================
20. 窄螢幕
========================================================= */
@media screen and (max-width: 720px) {
table.wikitable,
table.succession-box {
display: block;
overflow-x: auto;
}
table.navbox .navbox-group {
white-space: normal;
}
.encyclato-document {
padding: 0.8em 1em;
}
}
@media screen and (max-width: 520px) {
table.encyclato-infobox {
width: 20em;
max-width: calc(100% - 0.5em);
margin: 0.5em 0 0.5em 0.6em !important;
}
}
/* =========================================================
21. 夜間模式
適用 MediaWiki 1.43 以後的 Vector 2022 外觀
========================================================= */
@media screen {
html.skin-theme-clientpref-night table.encyclato-infobox,
html.skin-theme-clientpref-night table.wikitable,
html.skin-theme-clientpref-night table.succession-box,
html.skin-theme-clientpref-night table.dynasty-info-table {
border-color: #72777d;
background-color: #1b1d20;
color: #eaecf0;
}
html.skin-theme-clientpref-night table.encyclato-infobox > caption,
html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-banner {
color: #eaecf0;
}
html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-section,
html.skin-theme-clientpref-night table.wikitable > * > tr > th,
html.skin-theme-clientpref-night table.succession-box > * > tr > th,
html.skin-theme-clientpref-night table.dynasty-info-table th {
background-color: #2a2d31;
color: #eaecf0;
}
html.skin-theme-clientpref-night table.encyclato-infobox th.infobox-subsection {
background-color: #2e2b45;
}
html.skin-theme-clientpref-night table.wikitable > * > tr > th,
html.skin-theme-clientpref-night table.wikitable > * > tr > td,
html.skin-theme-clientpref-night table.dynasty-info-table td {
border-color: #72777d;
}
html.skin-theme-clientpref-night table.dynasty-info-table td {
background-color: #1b1d20;
}
html.skin-theme-clientpref-night .encyclato-document {
border-color: #6b5f47;
background-color: #22201b;
color: #eaecf0;
}
html.skin-theme-clientpref-night .doc-vermilion {
color: #ff6b6b;
}
html.skin-theme-clientpref-night table.navbox {
background-color: #1b1d20;
}
html.skin-theme-clientpref-night table.navbox .navbox-title {
background-color: #3a3a66;
}
html.skin-theme-clientpref-night table.navbox .navbox-group {
background-color: #2e2e52;
}
html.skin-theme-clientpref-night table.navbox .navbox-even {
background-color: #232528;
}
html.skin-theme-clientpref-night .party-bg-zijing { background-color: #3a2d47 !important; }
html.skin-theme-clientpref-night .party-bg-zhongyang { background-color: #3d3148 !important; }
html.skin-theme-clientpref-night .party-bg-riyue { background-color: #45391a !important; }
html.skin-theme-clientpref-night .party-bg-zhongjian,
html.skin-theme-clientpref-night .party-bg-coalition { background-color: #34373b !important; }
}
/* =========================================================
22. 列印
========================================================= */
@media print {
table.encyclato-infobox {
border-color: #000;
background: #fff !important;
}
table.navbox,
.mw-collapsible-toggle {
display: none !important;
}
.encyclato-document {
border-color: #000;
background: #fff;
}
}
/* =========================================================
首頁與國家分類頁
維基風格・統一區塊樣式
========================================================= */
/* 隱藏首頁標題;若首頁名稱不是「首頁」,請改成實際頁名 */
body.page-首頁 .firstHeading,
body.page-首頁 #siteSub {
display: none;
}
/* ---------------------------------------------------------
1. 格狀配置
--------------------------------------------------------- */
.mp-grid,
.cp-grid {
display: grid;
gap: 1.1em;
align-items: stretch;
margin-bottom: 1.5em;
}
.mp-grid > div,
.cp-grid > div {
min-width: 0;
}
/* 首頁 */
.mp-grid {
grid-template-columns: 1fr 1fr 1fr 1fr;
grid-template-areas:
"logo logo logo logo"
"intro intro intro news"
"cats feature feature news"
"cats feature feature daily"
"map map map countries";
}
.mp-area-logo { grid-area: logo; }
.mp-area-intro { grid-area: intro; }
.mp-area-news { grid-area: news; }
.mp-area-cats { grid-area: cats; }
.mp-area-feature { grid-area: feature; }
.mp-area-daily { grid-area: daily; }
.mp-area-map { grid-area: map; }
.mp-area-countries { grid-area: countries; }
/* 國家分類頁 */
.cp-grid {
grid-template-columns: 1fr 1fr 1fr;
grid-template-areas:
"head head head"
"spot region region"
"system form status"
"era org org";
}
.cp-area-head { grid-area: head; }
.cp-area-spot { grid-area: spot; }
.cp-area-region { grid-area: region; }
.cp-area-system { grid-area: system; }
.cp-area-form { grid-area: form; }
.cp-area-status { grid-area: status; }
.cp-area-era { grid-area: era; }
.cp-area-org { grid-area: org; }
/* ---------------------------------------------------------
2. Logo
--------------------------------------------------------- */
.mp-area-logo {
padding: 0.4em 0 0.2em;
text-align: center;
line-height: 0;
}
.mp-area-logo img {
max-width: 100%;
height: auto;
}
/* ---------------------------------------------------------
3. 區塊外框
白底細框,標題上緣以細色線區分
--------------------------------------------------------- */
.mp-box {
display: flex;
flex-direction: column;
border: 1px solid #c8ccd1;
background-color: #ffffff;
}
.mp-box-header {
padding: 0.45em 0.8em 0.4em;
border-top: 3px solid #a2a9b1;
border-bottom: 1px solid #eaecf0;
background-color: #f8f9fa;
color: #202122;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 115%;
font-weight: bold;
letter-spacing: 0.05em;
}
.mp-box-body {
flex: 1 1 auto;
padding: 0.8em;
}
.mp-more {
margin-top: 0.8em;
padding-top: 0.5em;
border-top: 1px solid #eaecf0;
font-size: 88%;
text-align: right;
}
/* 各區塊的識別色線(低飽和) */
.mp-box-featured .mp-box-header { border-top-color: #3a7d5c; }
.mp-box-news .mp-box-header { border-top-color: #36669a; }
.mp-box-daily .mp-box-header { border-top-color: #a8662c; }
.mp-box-cats .mp-box-header { border-top-color: #8a7a3b; }
.mp-box-world .mp-box-header { border-top-color: #6b4a8b; }
.cp-box-gray .mp-box-header { border-top-color: #72777d; }
.cp-box-teal .mp-box-header { border-top-color: #2f7f7a; }
/* ---------------------------------------------------------
4. 介紹詞與分類頁首
--------------------------------------------------------- */
.mp-box-intro,
.cp-head {
justify-content: center;
padding: 1.4em 1.6em;
border-top: 3px solid #6b4a8b;
background-color: #fbfbfc;
text-align: center;
}
.mp-intro-title,
.cp-head-title {
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 190%;
line-height: 1.3;
}
.cp-head-title {
letter-spacing: 0.35em;
}
/* 標題下的短飾線 */
.mp-intro-title::after,
.cp-head-title::after {
display: block;
width: 3em;
height: 2px;
margin: 0.45em auto 0.6em;
background-color: #6b4a8b;
content: "";
}
.mp-intro-text,
.cp-head-text {
max-width: 44em;
margin: 0 auto 0.5em;
color: #202122;
line-height: 1.8;
}
.mp-intro-stats,
.cp-head-stats {
color: #72777d;
font-size: 88%;
}
/* ---------------------------------------------------------
5. 分類導覽
--------------------------------------------------------- */
.mp-cat-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 0.4em;
}
.mp-cat {
border: 1px solid #eaecf0;
border-left: 3px solid #d9d1b0;
background-color: #ffffff;
font-size: 95%;
}
.mp-cat a {
display: block;
padding: 0.35em 0.6em;
}
.mp-cat:hover {
border-left-color: #8a7a3b;
background-color: #fffdf3;
}
/* ---------------------------------------------------------
6. 典範條目與每日條目
--------------------------------------------------------- */
.mp-feature-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(12em, 1fr));
gap: 0.9em;
}
.mp-card {
display: flex;
flex-direction: column;
border: 1px solid #eaecf0;
background-color: #ffffff;
}
.mp-card:hover {
border-color: #a2a9b1;
}
/* 圖片固定 16:9 */
.mp-card-image,
.mp-daily-image {
aspect-ratio: 16 / 9;
overflow: hidden;
background-color: #f8f9fa;
line-height: 0;
}
.mp-card-image img,
.mp-daily-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
.mp-card-title {
padding: 0.5em 0.6em 0.1em;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 110%;
font-weight: bold;
line-height: 1.4;
}
.mp-card-text {
padding: 0 0.6em 0.6em;
color: #54595d;
font-size: 88%;
line-height: 1.65;
}
.mp-daily {
border: 1px solid #eaecf0;
}
/* ---------------------------------------------------------
7. 新聞動態
--------------------------------------------------------- */
ul.mp-news {
margin: 0;
padding: 0;
list-style: none;
}
ul.mp-news li {
margin: 0;
padding: 0.45em 0;
border-bottom: 1px solid #eaecf0;
line-height: 1.55;
}
ul.mp-news li:first-child {
padding-top: 0;
}
ul.mp-news li:last-child {
border-bottom: 0;
}
.mp-news-date {
display: block;
margin-bottom: 0.1em;
color: #36669a;
font-size: 80%;
font-weight: bold;
letter-spacing: 0.05em;
}
/* ---------------------------------------------------------
8. 世界地圖
--------------------------------------------------------- */
.mp-map {
aspect-ratio: 2 / 1;
overflow: hidden;
background-color: #f8f9fa;
line-height: 0;
}
.mp-map img {
width: 100%;
height: 100%;
object-fit: contain;
}
/* ---------------------------------------------------------
9. 預留位
--------------------------------------------------------- */
.mp-placeholder {
display: flex;
align-items: center;
justify-content: center;
min-height: 5em;
background-color: #f5f6f8;
color: #a2a9b1;
font-size: 85%;
letter-spacing: 0.1em;
line-height: 1.4;
}
/* ---------------------------------------------------------
10. 首位國家
--------------------------------------------------------- */
.cp-area-spot .mp-box-body {
display: flex;
flex-direction: column;
align-items: stretch;
}
.cp-spot-flag {
margin-bottom: 0.7em;
padding: 0.8em;
border: 1px solid #eaecf0;
background-color: #f8f9fa;
text-align: center;
line-height: 0;
}
.cp-spot-flag img {
max-width: 100%;
height: auto;
border: 1px solid #c8ccd1;
}
.cp-spot-name {
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 155%;
font-weight: bold;
line-height: 1.3;
text-align: center;
}
.cp-spot-native {
margin-bottom: 0.7em;
color: #72777d;
letter-spacing: 0.4em;
text-align: center;
}
/* 基本資料:資訊框式分隔列 */
.cp-facts {
display: grid;
grid-template-columns: auto 1fr;
margin-bottom: 0.7em;
border-top: 1px solid #eaecf0;
font-size: 92%;
}
.cp-fact-label,
.cp-fact-value {
padding: 0.3em 0.5em;
border-bottom: 1px solid #eaecf0;
}
.cp-fact-label {
background-color: #f8f9fa;
font-weight: bold;
white-space: nowrap;
}
.cp-spot-text {
color: #202122;
font-size: 92%;
line-height: 1.7;
}
/* ---------------------------------------------------------
11. 分組
--------------------------------------------------------- */
.cp-group-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(16em, 1fr));
gap: 1em 1.4em;
align-content: start;
}
.cp-group-title {
margin: 0.9em 0 0.45em;
padding-bottom: 0.25em;
border-bottom: 1px solid #eaecf0;
color: #54595d;
font-size: 85%;
font-weight: bold;
letter-spacing: 0.15em;
}
.cp-group > .cp-group-title:first-child,
.mp-box-body > .cp-group-title:first-child {
margin-top: 0;
}
/* ---------------------------------------------------------
12. 國家方格
--------------------------------------------------------- */
.cp-chips {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(9.5em, 1fr));
gap: 0.4em;
}
.cp-chip {
display: flex;
align-items: center;
gap: 0.55em;
min-width: 0;
padding: 0.35em 0.5em;
border: 1px solid #eaecf0;
background-color: #ffffff;
font-size: 92%;
line-height: 1.4;
}
.cp-chip:hover {
border-color: #a2a9b1;
background-color: #f8f9fa;
}
.cp-chip a {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.cp-chip-flag {
display: inline-block;
flex: 0 0 auto;
width: 30px;
height: 20px;
overflow: hidden;
border: 1px solid #c8ccd1;
background-color: #eaecf0;
line-height: 0;
}
.cp-chip-flag img {
width: 30px;
height: 20px;
object-fit: cover;
}
/* 預留方格:安靜的淡灰樣式 */
.cp-chip-empty,
.cp-chip-empty:hover {
border-color: #f0f1f3;
background-color: #fafbfc;
color: #b0b5bb;
}
.cp-chip-empty .cp-chip-flag {
border-color: #eaecf0;
background-color: #f0f1f3;
}
/* ---------------------------------------------------------
13. 中等寬度:兩欄
--------------------------------------------------------- */
@media screen and (max-width: 1100px) {
.mp-grid {
grid-template-columns: 1fr 1fr;
grid-template-areas:
"logo logo"
"intro intro"
"feature feature"
"cats news"
"daily news"
"map map"
"countries countries";
}
.cp-grid {
grid-template-columns: 1fr 1fr;
grid-template-areas:
"head head"
"spot region"
"system form"
"status era"
"org org";
}
}
/* ---------------------------------------------------------
14. 手機:單欄
--------------------------------------------------------- */
@media screen and (max-width: 640px) {
.mp-grid {
grid-template-columns: 1fr;
grid-template-areas:
"logo"
"intro"
"feature"
"news"
"daily"
"cats"
"map"
"countries";
}
.cp-grid {
grid-template-columns: 1fr;
grid-template-areas:
"head"
"spot"
"region"
"system"
"form"
"status"
"era"
"org";
}
.mp-box-intro,
.cp-head {
padding: 1em;
}
}
/* ---------------------------------------------------------
15. 夜間模式
--------------------------------------------------------- */
@media screen {
html.skin-theme-clientpref-night .mp-box,
html.skin-theme-clientpref-night .mp-card,
html.skin-theme-clientpref-night .mp-cat,
html.skin-theme-clientpref-night .cp-chip {
border-color: #3a3d42;
background-color: #1b1d20;
color: #eaecf0;
}
html.skin-theme-clientpref-night .mp-box-header {
border-bottom-color: #3a3d42;
background-color: #232528;
color: #eaecf0;
}
html.skin-theme-clientpref-night .mp-box-intro,
html.skin-theme-clientpref-night .cp-head {
border-top-color: #6b4a8b;
background-color: #232528;
color: #eaecf0;
}
html.skin-theme-clientpref-night .cp-spot-flag,
html.skin-theme-clientpref-night .cp-fact-label,
html.skin-theme-clientpref-night .mp-placeholder,
html.skin-theme-clientpref-night .mp-card-image,
html.skin-theme-clientpref-night .mp-daily-image,
html.skin-theme-clientpref-night .mp-map {
border-color: #3a3d42;
background-color: #232528;
color: #eaecf0;
}
html.skin-theme-clientpref-night .mp-intro-text,
html.skin-theme-clientpref-night .cp-head-text,
html.skin-theme-clientpref-night .cp-spot-text {
color: #eaecf0;
}
html.skin-theme-clientpref-night .cp-chip-empty {
border-color: #2a2d31;
background-color: #1e2023;
color: #5f646b;
}
html.skin-theme-clientpref-night .mp-card-text,
html.skin-theme-clientpref-night .cp-group-title {
color: #a2a9b1;
}
}
/* =========================================================
地理分類頁
========================================================= */
/* ---------- 格狀配置 ---------- */
.gp-grid {
display: grid;
grid-template-columns: 1fr 1fr 1fr;
grid-template-areas:
"head head head"
"map map spot"
"terrain terrain region"
"city water magic";
gap: 1.1em;
align-items: stretch;
margin-bottom: 1.5em;
}
.gp-grid > div {
min-width: 0;
}
.gp-area-head { grid-area: head; }
.gp-area-map { grid-area: map; }
.gp-area-spot { grid-area: spot; }
.gp-area-terrain { grid-area: terrain; }
.gp-area-region { grid-area: region; }
.gp-area-city { grid-area: city; }
.gp-area-water { grid-area: water; }
.gp-area-magic { grid-area: magic; }
/* ---------- 焦點地理 ---------- */
.gp-area-spot .mp-box-body {
display: flex;
flex-direction: column;
align-items: stretch;
}
.gp-spot-image {
aspect-ratio: 16 / 9;
margin-bottom: 0.7em;
overflow: hidden;
border: 1px solid #eaecf0;
background-color: #f8f9fa;
line-height: 0;
}
.gp-spot-image.mp-placeholder {
line-height: 1.4;
}
.gp-spot-image img {
width: 100%;
height: 100%;
object-fit: cover;
}
/* ---------- 類型標記 ---------- */
.gp-mark {
display: inline-flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
width: 22px;
height: 22px;
background-color: #eaecf0;
color: #ffffff;
font-size: 78%;
font-weight: bold;
line-height: 1;
}
.gp-mark-continent { background-color: #6b4a8b; }
.gp-mark-region { background-color: #72777d; }
.gp-mark-sea { background-color: #2b5d85; }
.gp-mark-island { background-color: #3a7d5c; }
.gp-mark-mountain { background-color: #7a5c3e; }
.gp-mark-river { background-color: #36669a; }
.gp-mark-lake { background-color: #2f7f7a; }
.gp-mark-plain { background-color: #8a7a3b; }
.gp-mark-capital { background-color: #8e2f35; }
.gp-mark-port { background-color: #4a6f8a; }
.gp-mark-admin { background-color: #5c6470; }
.gp-mark-magic { background-color: #5b3f8a; }
/* 預留方格中的標記 */
.cp-chip-empty .gp-mark {
border: 1px solid #eaecf0;
background-color: #f0f1f3;
}
/* ---------- 地圖圖例 ---------- */
.gp-legend {
display: flex;
flex-wrap: wrap;
gap: 0.4em 1em;
margin-top: 0.8em;
padding-top: 0.6em;
border-top: 1px solid #eaecf0;
color: #54595d;
font-size: 85%;
}
.gp-legend-item {
display: inline-flex;
align-items: center;
gap: 0.4em;
}
.gp-legend .gp-mark {
width: 18px;
height: 18px;
font-size: 72%;
}
/* ---------- 中等寬度:兩欄 ---------- */
@media screen and (max-width: 1100px) {
.gp-grid {
grid-template-columns: 1fr 1fr;
grid-template-areas:
"head head"
"map map"
"spot region"
"terrain terrain"
"city water"
"magic magic";
}
}
/* ---------- 手機:單欄 ---------- */
@media screen and (max-width: 640px) {
.gp-grid {
grid-template-columns: 1fr;
grid-template-areas:
"head"
"map"
"spot"
"region"
"terrain"
"city"
"water"
"magic";
}
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .gp-spot-image {
border-color: #3a3d42;
background-color: #232528;
color: #eaecf0;
}
html.skin-theme-clientpref-night .cp-chip-empty .gp-mark {
border-color: #2a2d31;
background-color: #232528;
}
html.skin-theme-clientpref-night .gp-legend {
border-top-color: #3a3d42;
color: #a2a9b1;
}
}
/* =========================================================
條目審核模板
========================================================= */
/* ---------- 訊息框 ---------- */
.qa-box {
display: flex;
align-items: flex-start;
gap: 0.8em;
margin: 0 0 1em;
padding: 0.6em 0.9em;
border: 1px solid #c8ccd1;
border-left: 4px solid #a2a9b1;
background-color: #f8f9fa;
font-size: 92%;
line-height: 1.6;
}
.qa-small {
padding: 0.4em 0.8em;
font-size: 88%;
}
.qa-mark {
display: flex;
flex: 0 0 auto;
align-items: center;
justify-content: center;
width: 2em;
height: 2em;
background-color: #a2a9b1;
color: #ffffff;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 110%;
font-weight: bold;
line-height: 1;
}
.qa-small .qa-mark {
width: 1.7em;
height: 1.7em;
font-size: 95%;
}
.qa-body {
flex: 1 1 auto;
min-width: 0;
}
.qa-title {
font-weight: bold;
}
.qa-text {
margin-top: 0.15em;
}
.qa-meta {
margin-top: 0.3em;
color: #72777d;
font-size: 88%;
}
.qa-meta:empty {
display: none;
}
/* 各類型配色 */
.qa-type-featured { border-left-color: #9a7b2f; background-color: #fdfaf1; }
.qa-type-certified { border-left-color: #36669a; background-color: #f5f8fc; }
.qa-type-incomplete { border-left-color: #b35c2e; background-color: #fdf6f1; }
.qa-type-review { border-left-color: #6b4a8b; background-color: #f8f5fb; }
.qa-type-conflict { border-left-color: #8e2f35; background-color: #fcf4f4; }
.qa-type-update { border-left-color: #a8662c; background-color: #fdf8f2; }
.qa-type-term { border-left-color: #8a7a3b; background-color: #fbfaf2; }
.qa-type-merge { border-left-color: #2f7f7a; background-color: #f2f9f8; }
.qa-type-delete { border-color: #d9a3a7; border-left-color: #8e2f35; background-color: #f9eaea; }
.qa-type-featured .qa-mark { background-color: #9a7b2f; }
.qa-type-certified .qa-mark { background-color: #36669a; }
.qa-type-incomplete .qa-mark { background-color: #b35c2e; }
.qa-type-review .qa-mark { background-color: #6b4a8b; }
.qa-type-conflict .qa-mark { background-color: #8e2f35; }
.qa-type-update .qa-mark { background-color: #a8662c; }
.qa-type-term .qa-mark { background-color: #8a7a3b; }
.qa-type-merge .qa-mark { background-color: #2f7f7a; }
.qa-type-delete .qa-mark { background-color: #8e2f35; }
/* ---------- 級別徽章 ---------- */
.qa-badge {
display: inline-block;
padding: 0.1em 0.55em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
color: #54595d;
font-size: 80%;
font-weight: bold;
letter-spacing: 0.1em;
line-height: 1.5;
white-space: nowrap;
}
.qa-badge-featured { border-color: #9a7b2f; background-color: #fdfaf1; color: #7a5f1f; }
.qa-badge-certified { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; }
.qa-badge-incomplete { border-color: #b35c2e; background-color: #fdf6f1; color: #8f4822; }
/* 標題右側的徽章 */
.mw-indicators .qa-badge {
font-size: 75%;
}
/* ---------- 行內待確認 ---------- */
.qa-inline {
color: #8e2f35;
font-size: 75%;
white-space: nowrap;
}
.qa-inline span {
cursor: help;
border-bottom: 1px dotted #8e2f35;
}
/* ---------- 評分星 ---------- */
.qa-stars {
color: #9a7b2f;
letter-spacing: 0.08em;
white-space: nowrap;
}
/* ---------- 討論頁:條目審核 ---------- */
.qa-review {
margin: 0 0 1.2em;
border: 1px solid #c8ccd1;
background-color: #ffffff;
}
.qa-review-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1em;
padding: 0.45em 0.8em 0.4em;
border-top: 3px solid #6b4a8b;
border-bottom: 1px solid #eaecf0;
background-color: #f8f9fa;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 115%;
font-weight: bold;
}
.qa-review-header .qa-badge {
font-family: sans-serif;
font-size: 70%;
}
.qa-review-grid {
display: grid;
grid-template-columns: 3fr 2fr;
}
.qa-review-admin,
.qa-review-user {
padding: 0.8em;
}
.qa-review-user {
border-left: 1px solid #eaecf0;
text-align: center;
}
.qa-review-subtitle {
margin-bottom: 0.5em;
padding-bottom: 0.25em;
border-bottom: 1px solid #eaecf0;
color: #54595d;
font-size: 85%;
font-weight: bold;
letter-spacing: 0.15em;
text-align: left;
}
table.qa-review-table {
width: 100%;
border-collapse: collapse;
font-size: 92%;
}
.qa-review-table th,
.qa-review-table td {
padding: 0.3em 0.5em;
border-bottom: 1px solid #eaecf0;
text-align: left;
vertical-align: middle;
}
.qa-review-table th {
width: 7em;
background-color: #f8f9fa;
white-space: nowrap;
}
.qa-review-table td.qa-num {
width: 3em;
color: #54595d;
text-align: right;
}
.qa-review-total th,
.qa-review-total td {
border-top: 1px solid #c8ccd1;
font-weight: bold;
}
.qa-score-big {
margin: 0.2em 0 0.1em;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 260%;
line-height: 1.1;
}
.qa-review-user .qa-stars {
font-size: 130%;
}
.qa-review-note,
.qa-review-meta {
margin-top: 0.4em;
color: #72777d;
font-size: 85%;
}
.qa-review-comment {
margin-top: 0.6em;
padding: 0.5em 0.7em;
border-left: 3px solid #d6cfe2;
background-color: #fbfbfc;
font-size: 92%;
line-height: 1.7;
}
.qa-review-empty {
padding: 1em 0;
color: #a2a9b1;
font-size: 88%;
text-align: center;
}
.qa-more {
margin-top: 0.8em;
padding-top: 0.5em;
border-top: 1px solid #eaecf0;
font-size: 88%;
text-align: right;
}
/* ---------- 討論頁:用戶評分 ---------- */
.qa-vote {
display: flex;
align-items: baseline;
gap: 0.8em;
padding: 0.4em 0;
border-bottom: 1px solid #eaecf0;
font-size: 92%;
}
.qa-vote-text {
flex: 1 1 auto;
min-width: 0;
}
.qa-vote-sign {
flex: 0 0 auto;
color: #72777d;
font-size: 88%;
}
/* ---------- 手機 ---------- */
@media screen and (max-width: 640px) {
.qa-review-grid {
grid-template-columns: 1fr;
}
.qa-review-user {
border-top: 1px solid #eaecf0;
border-left: 0;
}
.qa-vote {
flex-wrap: wrap;
}
.qa-vote-sign {
width: 100%;
}
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .qa-box,
html.skin-theme-clientpref-night .qa-review,
html.skin-theme-clientpref-night .qa-review-comment,
html.skin-theme-clientpref-night .qa-badge {
border-top-color: #3a3d42;
border-right-color: #3a3d42;
border-bottom-color: #3a3d42;
background-color: #1b1d20;
color: #eaecf0;
}
html.skin-theme-clientpref-night .qa-review-header,
html.skin-theme-clientpref-night .qa-review-table th {
border-bottom-color: #3a3d42;
background-color: #232528;
color: #eaecf0;
}
html.skin-theme-clientpref-night .qa-review-user,
html.skin-theme-clientpref-night .qa-review-subtitle,
html.skin-theme-clientpref-night .qa-review-table td,
html.skin-theme-clientpref-night .qa-vote,
html.skin-theme-clientpref-night .qa-more {
border-color: #3a3d42;
}
html.skin-theme-clientpref-night .qa-stars {
color: #d4b05a;
}
}