MediaWiki:Common.css:修訂間差異
跳至導覽
跳至搜尋
無編輯摘要 |
無編輯摘要 |
||
| (未顯示同一使用者於中間所作的 17次修訂) | |||
| 第1行: | 第1行: | ||
/* ========================================================= | /* ========================================================= | ||
Encyclato | 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 { | table.encyclato-infobox { | ||
float: right !important; | float: right !important; | ||
| 第11行: | 第38行: | ||
width: 22em; | width: 22em; | ||
max-width: calc(100% - 1em); | max-width: calc(100% - 1em); | ||
margin: 0 0 1em | margin: 0.5em 0 0.5em 1em !important; | ||
padding: 0.2em; | |||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
border-collapse: | border-collapse: separate !important; | ||
border-spacing: | border-spacing: 3px !important; | ||
background: #f8f9fa; | background-color: #f8f9fa; | ||
color: #202122; | color: #202122; | ||
font-size: | font-size: 88%; | ||
line-height: 1. | line-height: 1.5em; | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
| 第26行: | 第54行: | ||
} | } | ||
table.encyclato-infobox > tbody > tr > th, | |||
table.encyclato-infobox > caption { | table.encyclato-infobox > tbody > tr > td { | ||
padding: 0. | 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-size: 125%; | ||
font-weight: | font-weight: bold; | ||
line-height: 1. | line-height: 1.3em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
table.encyclato-infobox .infobox-native-name { | 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-size: 80%; | ||
font-weight: | font-weight: normal; | ||
} | } | ||
table.encyclato-infobox .infobox-banner-role { | |||
table.encyclato-infobox | margin-top: 0.15em; | ||
table.encyclato-infobox | 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; | |||
} | } | ||
table.encyclato-infobox > tbody > tr | |||
/* ========================================================= | |||
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 | table.encyclato-infobox > tbody > tr > th.infobox-subsection { | ||
padding: 0.2em 0.4em; | |||
padding | border: 0 !important; | ||
background-color: #e6e6fa; | |||
font-weight: bold; | |||
text-align: center; | |||
} | } | ||
/* | |||
/* ========================================================= | |||
4. 欄名與內容 | |||
========================================================= */ | |||
table.encyclato-infobox > tbody > tr > th.infobox-label { | table.encyclato-infobox > tbody > tr > th.infobox-label { | ||
width: | width: auto; | ||
padding-right: 0.65em; | |||
background: | background: transparent; | ||
font-weight: | font-weight: bold; | ||
text-align: | text-align: left; | ||
white-space: nowrap; | |||
} | } | ||
table.encyclato-infobox > tbody > tr > th.infobox-label + td { | table.encyclato-infobox > tbody > tr > th.infobox-label + td { | ||
background: transparent; | |||
background: | |||
text-align: left; | text-align: left; | ||
overflow-wrap: anywhere; | overflow-wrap: anywhere; | ||
} | } | ||
/* | /* 四字以內的欄名兩端對齊 */ | ||
table.encyclato-infobox .infobox-label-text { | table.encyclato-infobox .infobox-label-text { | ||
display: inline-block; | display: inline-block; | ||
| 第88行: | 第198行: | ||
text-align-last: justify; | text-align-last: justify; | ||
text-justify: inter-character; | text-justify: inter-character; | ||
} | } | ||
/* | /* 職稱、建立事件等自訂欄名允許換行 */ | ||
table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic { | table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic { | ||
white-space: normal; | white-space: normal; | ||
} | } | ||
/* ---------- | /* 第二行的補充資訊,例如出生地 */ | ||
/* | table.encyclato-infobox .infobox-subline { | ||
table.encyclato-infobox | 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; | 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 | table.encyclato-infobox .infobox-signature-cell { | ||
padding: 0. | padding: 0.4em 0.2em; | ||
text-align: center; | text-align: center; | ||
} | } | ||
table.encyclato-infobox .infobox-signature-label { | |||
table.encyclato-infobox | 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%; | width: 50%; | ||
padding: 0.4em 0. | padding: 0.4em 0.2em; | ||
text-align: center; | text-align: center; | ||
vertical-align: | vertical-align: bottom; | ||
} | |||
table.encyclato-infobox .infobox-emblem-media, | |||
table.encyclato-infobox .infobox-symbol-media { | |||
line-height: 0; | |||
} | } | ||
table.encyclato-infobox | table.encyclato-infobox .infobox-flag-media img { | ||
border | border: 1px solid #c8ccd1; | ||
} | } | ||
table.encyclato-infobox .infobox-emblem-name, | |||
table.encyclato-infobox .infobox-symbol-name { | table.encyclato-infobox .infobox-symbol-name { | ||
display: block; | display: block; | ||
margin- | margin-top: 0.2em; | ||
font-weight: | 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- | table.encyclato-infobox .infobox-footer-cell { | ||
padding: 0.3em 0.4em; | |||
text-align: center; | text-align: center; | ||
} | } | ||
table.encyclato-infobox .infobox- | 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; | 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; | vertical-align: middle; | ||
} | } | ||
table.dynasty-info-table > tbody > tr.dynasty-info-head > th { | |||
table. | 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; | margin: 0; | ||
padding: 0; | padding: 0; | ||
list-style: none; | |||
} | |||
table.navbox .navbox-list li { | |||
display: inline; | |||
margin: 0; | |||
} | } | ||
table. | table.navbox .navbox-list li + li::before { | ||
table. | 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; | text-align: center; | ||
} | } | ||
.encyclato-document .doc-route { | |||
margin-bottom: 0.8em; | |||
color: #54595d; | |||
font-size: 90%; | |||
text-align: center; | 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; | 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) { | @media screen and (max-width: 520px) { | ||
table.encyclato-infobox { | table.encyclato-infobox { | ||
width: | width: 20em; | ||
max-width: calc(100% - 0.5em); | max-width: calc(100% - 0.5em); | ||
margin: 0 0 | 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; | |||
} | } | ||
table. | html.skin-theme-clientpref-night table.navbox .navbox-title { | ||
background-color: #3a3a66; | |||
} | } | ||
table. | html.skin-theme-clientpref-night table.navbox .navbox-group { | ||
background-color: #2e2e52; | |||
} | } | ||
table. | 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; } | |||
padding: 0. | .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; | text-align: center; | ||
line-height: 0; | |||
} | |||
.mp-area-logo img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
color: # | /* --------------------------------------------------------- | ||
3. 區塊外框 | |||
白底細框,標題上緣以細色線區分 | |||
--------------------------------------------------------- */ | |||
.mp-box { | |||
display: flex; | |||
flex-direction: column; | |||
border: 1px solid #c8ccd1; | |||
background-color: #ffffff; | |||
} | } | ||
.mp-box-header { | |||
color: # | padding: 0.45em 0.8em 0.4em; | ||
font-size: | border-top: 3px solid #a2a9b1; | ||
font-weight: | border-bottom: 1px solid #eaecf0; | ||
letter-spacing: 0. | 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; | line-height: 1.3; | ||
} | } | ||
.cp-head-title { | |||
margin- | letter-spacing: 0.35em; | ||
color: # | } | ||
font-size: | |||
/* 標題下的短飾線 */ | |||
.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- | 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; | |||
color: # | border: 1px solid #eaecf0; | ||
background-color: #ffffff; | |||
} | } | ||
.mp-card:hover { | |||
border-color: #a2a9b1; | |||
border- | |||
} | } | ||
/* 圖片固定 16:9 */ | |||
.mp-card-image, | |||
.mp-daily-image { | |||
aspect-ratio: 16 / 9; | |||
overflow: hidden; | |||
background-color: #f8f9fa; | |||
line-height: 0; | 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; | |||
color: # | font-size: 110%; | ||
font-weight: bold; | |||
line-height: 1.4; | |||
} | |||
.mp-card-text { | |||
padding: 0 0.6em 0.6em; | |||
color: #54595d; | |||
font-size: 88%; | 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; | display: block; | ||
color: # | margin-bottom: 0.1em; | ||
font-size: | 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; | line-height: 1.4; | ||
} | } | ||
/* ---------- | |||
/* --------------------------------------------------------- | |||
10. 首位國家 | |||
border | --------------------------------------------------------- */ | ||
background: # | |||
.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; | 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%; | font-size: 92%; | ||
} | } | ||
.cp-fact-label, | |||
margin: 0.15em 0; | .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; | display: inline-block; | ||
padding: 0.1em 0.55em; | |||
color: # | border: 1px solid #a2a9b1; | ||
background-color: #f8f9fa; | |||
color: #54595d; | |||
font-size: 80%; | font-size: 80%; | ||
font-weight: | 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; | letter-spacing: 0.15em; | ||
text-align: left; | |||
} | } | ||
table.qa-review-table { | |||
width: 100%; | |||
padding: 0. | border-collapse: collapse; | ||
border-bottom: 1px solid # | font-size: 92%; | ||
background: # | } | ||
.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 { | |||
color: # | 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-size: | 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; | 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; | 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%; | font-size: 92%; | ||
} | } | ||
/* ---------- | .qa-vote-text { | ||
table. | flex: 1 1 auto; | ||
table. | min-width: 0; | ||
} | |||
padding-bottom: 0. | |||
border-bottom: 1px solid # | .qa-vote-sign { | ||
line-height: 1. | 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; | |||
} | |||
} | |||
/* ========================================================= | |||
政黨光譜 | |||
========================================================= */ | |||
.ps-spectrum { | |||
margin: 0.3em 0 1.4em; | |||
} | |||
.ps-spectrum:last-child { | |||
margin-bottom: 0.2em; | |||
} | |||
.ps-title { | |||
margin-bottom: 0.3em; | |||
padding-bottom: 0.2em; | |||
border-bottom: 1px solid #eaecf0; | |||
color: #54595d; | |||
font-size: 85%; | |||
font-weight: bold; | |||
letter-spacing: 0.15em; | |||
} | |||
/* ---------- 軸 ---------- */ | |||
.ps-track { | |||
position: relative; | |||
margin: 0 3.5em; | |||
} | |||
/* 依標籤層數保留上方空間 */ | |||
.ps-tiers-1 .ps-track { padding-top: 3.8em; } | |||
.ps-tiers-2 .ps-track { padding-top: 5.6em; } | |||
.ps-tiers-3 .ps-track { padding-top: 7.4em; } | |||
.ps-bar { | |||
position: relative; | |||
height: 10px; | |||
border: 1px solid rgba(0, 0, 0, 0.12); | |||
} | |||
/* 中線 */ | |||
.ps-bar::after { | |||
position: absolute; | |||
top: -4px; | |||
bottom: -4px; | |||
left: 50%; | |||
width: 1px; | |||
background-color: rgba(0, 0, 0, 0.3); | |||
content: ""; | |||
} | |||
/* 漸層配色 */ | |||
.ps-theme-rb .ps-bar { | |||
background: linear-gradient(to right, #9e2f35 0%, #c98a8d 28%, #e6e1ea 50%, #8aa4c9 72%, #2f5f9e 100%); | |||
} | |||
.ps-theme-br .ps-bar { | |||
background: linear-gradient(to right, #2f5f9e 0%, #8aa4c9 28%, #e6e1ea 50%, #c98a8d 72%, #9e2f35 100%); | |||
} | |||
.ps-theme-gp .ps-bar { | |||
background: linear-gradient(to right, #2f7a4f 0%, #93bba2 28%, #e8e6ea 50%, #a898bd 72%, #6b4a8b 100%); | |||
} | |||
.ps-theme-ot .ps-bar { | |||
background: linear-gradient(to right, #b35c2e 0%, #d9a787 28%, #ece8e3 50%, #8fbfbb 72%, #2f7f7a 100%); | |||
} | |||
.ps-theme-gray .ps-bar { | |||
background: linear-gradient(to right, #eaecf0 0%, #a2a9b1 50%, #54595d 100%); | |||
} | |||
/* ---------- 政黨標記 ---------- */ | |||
.ps-party { | |||
position: absolute; | |||
bottom: -2px; | |||
z-index: 1; | |||
display: flex; | |||
flex-direction: column; | |||
align-items: center; | |||
transform: translateX(-50%); | |||
} | |||
.ps-label { | |||
padding: 0.15em 0.6em; | |||
border: 1px solid #c8ccd1; | |||
border-top: 3px solid #72777d; | |||
background-color: #ffffff; | |||
font-size: 88%; | |||
font-weight: bold; | |||
line-height: 1.5; | |||
white-space: nowrap; | |||
} | |||
.ps-party:hover { | |||
z-index: 2; | |||
} | |||
.ps-party:hover .ps-label { | |||
border-color: #72777d; | |||
} | } | ||
.ps-stem { | |||
width | width: 1px; | ||
background-color: #a2a9b1; | |||
background | |||
} | } | ||
.ps-tier-1 .ps-stem { height: 0.9em; } | |||
width: | .ps-tier-2 .ps-stem { height: 2.7em; } | ||
.ps-tier-3 .ps-stem { height: 4.5em; } | |||
background: # | |||
.ps-dot { | |||
width: 14px; | |||
height: 14px; | |||
border: 2px solid #ffffff; | |||
border-radius: 50%; | |||
background-color: #72777d; | |||
box-shadow: 0 0 0 1px #72777d; | |||
box-sizing: border-box; | |||
} | } | ||
/* | /* ---------- 刻度 ---------- */ | ||
.ps-scale { | |||
margin | position: relative; | ||
color: # | height: 1.6em; | ||
margin: 0.45em 3.5em 0; | |||
color: #72777d; | |||
font-size: 80%; | font-size: 80%; | ||
} | } | ||
.ps-scale span { | |||
content: " | position: absolute; | ||
top: 0.2em; | |||
transform: translateX(-50%); | |||
white-space: nowrap; | |||
} | |||
.ps-scale span::before { | |||
position: absolute; | |||
top: -0.5em; | |||
left: 50%; | |||
width: 1px; | |||
height: 0.4em; | |||
background-color: #a2a9b1; | |||
content: ""; | |||
} | |||
/* ========================================================= | |||
政黨資訊面板 | |||
========================================================= */ | |||
/* ---------- 標題 ---------- */ | |||
.encyclato-infobox .pp-infobox-title { | |||
padding: 0.5em 0.6em; | |||
border-top-width: 6px; | |||
border-top-style: solid; | |||
border-top-color: #72777d; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 125%; | |||
text-align: center; | |||
} | |||
.pp-infobox-subtitle { | |||
margin-top: 0.15em; | |||
color: #54595d; | |||
font-family: sans-serif; | |||
font-size: 62%; | |||
font-weight: normal; | |||
} | |||
.pp-infobox-latin { | |||
font-style: italic; | |||
} | |||
/* ---------- 圖片 ---------- */ | |||
.encyclato-infobox .pp-infobox-image { | |||
padding: 0.6em; | |||
text-align: center; | |||
} | } | ||
.pp-infobox-caption { | |||
margin-top: 0.3em; | |||
color: #54595d; | |||
font-size: 85%; | |||
} | } | ||
/* ---------- 黨色色塊 ---------- */ | |||
.pp-swatch-inline { | |||
display: inline-block; | display: inline-block; | ||
width: 0.9em; | |||
height: 0.9em; | |||
border: 1px solid | margin-right: 0.4em; | ||
border: 1px solid rgba(0, 0, 0, 0.2); | |||
vertical-align: -0.1em; | |||
} | |||
font-size: | |||
/* ---------- 席次圖 ---------- */ | |||
.encyclato-infobox .pp-seats-cell, | |||
.encyclato-infobox .pp-spectrum-cell { | |||
padding: 0.45em 0.7em; | |||
} | |||
.pp-seats-head { | |||
display: flex; | |||
align-items: baseline; | |||
justify-content: space-between; | |||
gap: 0.6em; | |||
font-size: 92%; | |||
} | |||
.pp-seats-name { | |||
font-weight: bold; | |||
} | |||
.pp-seats-count { | |||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.pp-seats-bar { | |||
position: relative; | |||
height: 12px; | |||
border | margin: 0.35em 0 0.3em; | ||
background: # | border: 1px solid #c8ccd1; | ||
background-color: #eaecf0; | |||
} | } | ||
.pp-seats-fill { | |||
height: 100%; | |||
background-color: #72777d; | |||
} | } | ||
.pp-seats-majority { | |||
position: absolute; | |||
top: -4px; | |||
bottom: -4px; | |||
width: 0; | |||
border-left: 2px dashed #202122; | |||
transform: translateX(-1px); | |||
} | } | ||
.pp-seats-note { | |||
color: #72777d; | |||
color: # | |||
font-size: 80%; | font-size: 80%; | ||
} | } | ||
.pp-seats-majority-text { | |||
padding: 0. | color: #202122; | ||
font-weight: bold; | |||
border | } | ||
border-radius: | |||
background: # | /* ---------- 光譜圖 ---------- */ | ||
.pp-mini-spectrum { | |||
padding: 0.1em 0; | |||
} | |||
.pp-mini-track { | |||
position: relative; | |||
margin: 0.6em 0.4em 0.35em; | |||
} | |||
.pp-mini-track .ps-bar { | |||
height: 8px; | |||
} | |||
.pp-mini-dot { | |||
display: block; | |||
position: absolute; | |||
top: 50%; | |||
z-index: 1; | |||
width: 14px; | |||
height: 14px; | |||
border: 2px solid #ffffff; | |||
border-radius: 50%; | |||
background-color: #72777d; | |||
box-shadow: 0 0 0 1px #202122; | |||
box-sizing: border-box; | |||
transform: translate(-50%, -50%); | |||
} | |||
.pp-mini-ends { | |||
display: flex; | |||
justify-content: space-between; | |||
color: #72777d; | |||
font-size: 75%; | |||
} | } | ||
.pp-mini-ends span { | |||
flex: 0 0 auto; | |||
} | } | ||
/* ---------- | /* ---------- 夜間模式 ---------- */ | ||
@media screen | @media screen { | ||
html.skin-theme-clientpref-night .pp-infobox-subtitle, | |||
html.skin-theme-clientpref-night .pp-infobox-caption, | |||
html.skin-theme-clientpref-night .pp-seats-note, | |||
html.skin-theme-clientpref-night .pp-mini-ends { | |||
color: #a2a9b1; | |||
} | |||
html.skin-theme-clientpref-night .pp-seats-bar { | |||
border-color: #3a3d42; | |||
background-color: #2a2d31; | |||
} | |||
html.skin-theme-clientpref-night .pp-seats-majority { | |||
border-left-color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-night .pp-seats-majority-text { | |||
color: #eaecf0; | |||
} | } | ||
html.skin-theme-clientpref-night .pp-mini-dot { | |||
border-color: #1b1d20; | |||
box-shadow: 0 0 0 1px #eaecf0; | |||
} | } | ||
} | } | ||
/* ========================================================= | /* ========================================================= | ||
通用資訊面板(飛行器等) | |||
========================================================= */ | ========================================================= */ | ||
/* ---------- 標題 ---------- */ | |||
.encyclato-infobox .ib-title { | |||
padding: 0.5em 0.6em; | |||
border-top-width: 6px; | |||
border-top-style: solid; | |||
border-top-color: #72777d; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 125%; | |||
text-align: center; | |||
} | |||
/* 依用途的標題色線 */ | |||
.encyclato-infobox .ib-title-mil { border-top-color: #4f5d3a; } | |||
.encyclato-infobox .ib-title-civ { border-top-color: #36669a; } | |||
.encyclato-infobox .ib-title-dual { border-top-color: #2f7f7a; } | |||
.encyclato-infobox .ib-title-none { border-top-color: #72777d; } | |||
.ib-subtitle { | |||
margin-top: 0.15em; | |||
color: #54595d; | |||
font-family: sans-serif; | |||
font-size: 62%; | |||
font-weight: normal; | |||
} | |||
.ib-latin { | |||
font-style: italic; | |||
} | |||
/* ---------- 用途標籤 ---------- */ | |||
.ib-tag { | |||
display: inline-block; | display: inline-block; | ||
margin-left: 0. | margin-left: 0.5em; | ||
padding: 0 0. | padding: 0.05em 0.45em; | ||
border: 1px solid # | border: 1px solid #a2a9b1; | ||
font-family: sans-serif; | |||
font-size: 55%; | |||
font-weight: bold; | |||
letter-spacing: 0.1em; | |||
line-height: 1.5; | |||
vertical-align: 0.25em; | |||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
.ib-tag-mil { border-color: #4f5d3a; background-color: #f3f5ef; color: #3e4a2d; } | |||
.ib-tag-civ { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; } | |||
.ib-tag-dual { border-color: #2f7f7a; background-color: #f2f9f8; color: #25635f; } | |||
text- | |||
/* ---------- 圖片 ---------- */ | |||
.encyclato-infobox .ib-image { | |||
padding: 0.6em; | |||
text-align: center; | |||
} | } | ||
.ib-image img { | |||
max-width: 100%; | |||
height: auto; | |||
} | } | ||
.ib-caption { | |||
margin- | margin-top: 0.3em; | ||
color: #54595d; | |||
font- | font-size: 85%; | ||
line-height: 1.5; | |||
} | } | ||
/* | /* ---------- 夜間模式 ---------- */ | ||
@media screen { | |||
html.skin-theme-clientpref-night .ib-subtitle, | |||
html.skin-theme-clientpref-night .ib-caption { | |||
color: #a2a9b1; | |||
} | |||
html.skin-theme-clientpref-night .ib-tag { | |||
background-color: #1b1d20; | |||
} | |||
html.skin-theme-clientpref-night .ib-tag-mil { color: #b7c49a; } | |||
html.skin-theme-clientpref-night .ib-tag-civ { color: #8fb3db; } | |||
html.skin-theme-clientpref-night .ib-tag-dual { color: #7fc4bf; } | |||
} | |||
/* ========================================================= | /* ========================================================= | ||
國家資訊面板:視覺化圖表 | |||
========================================================= */ | ========================================================= */ | ||
.encyclato-infobox .ci-cell { | |||
padding: 0.45em 0.7em; | |||
} | |||
.ci-head { | |||
display: flex; | |||
align-items: baseline; | |||
justify-content: space-between; | |||
gap: 0.6em; | |||
margin-bottom: 0.3em; | |||
} | } | ||
.ci-title { | |||
font-size: 88%; | |||
font-weight: bold; | |||
} | } | ||
.ci-meta { | |||
color: #72777d; | |||
font-size: 80%; | |||
white-space: nowrap; | |||
} | } | ||
/* ---------- 堆疊長條 ---------- */ | |||
.ci-bar { | |||
position: relative; | |||
color: # | display: flex; | ||
height: 14px; | |||
border: 1px solid #c8ccd1; | |||
background-color: #eaecf0; | |||
} | } | ||
.ci-seg { | |||
display: block; | |||
flex: 0 0 auto; | |||
height: 100%; | |||
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6); | |||
} | } | ||
.ci-majority { | |||
position: absolute; | |||
top: -4px; | |||
bottom: -4px; | |||
width: 0; | |||
border-left: 2px dashed #202122; | |||
transform: translateX(-1px); | |||
} | |||
.ci-legend { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.2em 0.9em; | |||
margin-top: 0.35em; | |||
font-size: 80%; | |||
line-height: 1.5; | |||
} | |||
.ci-li { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 0.35em; | |||
} | |||
.ci-sw { | |||
display: inline-block; | |||
width: 0.8em; | |||
height: 0.8em; | |||
border: 1px solid rgba(0, 0, 0, 0.2); | |||
background-color: #72777d; | |||
} | |||
.ci-val { | |||
color: #72777d; | |||
} | |||
/* ---------- 單值量表 ---------- */ | |||
.ci-gbar { | |||
height: 8px; | |||
border: 1px solid #c8ccd1; | |||
background-color: #eaecf0; | |||
} | |||
.ci-gfill { | |||
display: block; | |||
height: 100%; | |||
background-color: #36669a; | |||
} | |||
/* ---------- 夜間模式 ---------- */ | |||
@media screen { | |||
html.skin-theme-clientpref-night .ci-bar, | |||
html.skin-theme-clientpref-night .ci-gbar { | |||
border-color: #3a3d42; | |||
background-color: #2a2d31; | |||
} | |||
html.skin-theme-clientpref-night .ci-meta, | |||
html.skin-theme-clientpref-night .ci-val { | |||
color: #a2a9b1; | |||
} | |||
html.skin-theme-clientpref-night .ci-majority { | |||
border-left-color: #eaecf0; | |||
} | |||
html.skin-theme-clientpref-night .ci-seg { | |||
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.4); | |||
} | |||
} | |||
/* 國家資訊面板:圖表列的內距 */ | |||
table.encyclato-infobox.encyclato-country tr.ci-row > td.ci-cell { | |||
padding: 0.45em 0.7em !important; | |||
} | |||
/* 精簡量表:緊貼在上一列之下 */ | |||
table.encyclato-infobox.encyclato-country tr.ci-row > td.ci-cell-compact { | |||
padding: 0 0.7em 0.45em !important; | |||
} | |||
.ci-cell-compact .ci-gbar { | |||
height: 6px; | |||
} | |||
/* ========================================================= | /* ========================================================= | ||
國範:表決圖與議程 | |||
========================================================= */ | ========================================================= */ | ||
/* | /* ---------- 表決圖外框 ---------- */ | ||
.gf-box { | |||
margin- | max-width: 46em; | ||
color: # | margin: 0 0 1.2em; | ||
font-size: | border: 1px solid #c8ccd1; | ||
font-weight: | background-color: #ffffff; | ||
letter-spacing: 0. | } | ||
.gf-head { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.6em; | |||
padding: 0.5em 0.8em; | |||
border-top: 3px solid #36669a; | |||
border-bottom: 1px solid #eaecf0; | |||
background-color: #f8f9fa; | |||
} | |||
.gf-title { | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 112%; | |||
font-weight: bold; | |||
} | |||
.gf-term { | |||
color: #72777d; | |||
font-size: 85%; | |||
} | |||
.gf-result { | |||
margin-left: auto; | |||
padding: 0.1em 0.8em; | |||
border: 1px solid; | |||
font-size: 88%; | |||
font-weight: bold; | |||
letter-spacing: 0.15em; | |||
} | |||
.gf-r-open { border-color: #36669a; background-color: #f5f8fc; color: #36669a; } | |||
.gf-r-pass { border-color: #3a7d5c; background-color: #3a7d5c; color: #ffffff; } | |||
.gf-r-fail { border-color: #72777d; background-color: #72777d; color: #ffffff; } | |||
.gf-r-veto { border-color: #6e1f2a; background-color: #6e1f2a; color: #ffffff; } | |||
/* ---------- 席位 ---------- */ | |||
.gf-seats { | |||
padding: 0.7em 0.8em 0.2em; | |||
} | |||
.gf-row { | |||
display: flex; | |||
flex-wrap: wrap; | |||
align-items: flex-start; | |||
gap: 0.5em 0.4em; | |||
margin-bottom: 0.7em; | |||
} | |||
.gf-row-label { | |||
flex: 0 0 100%; | |||
padding-bottom: 0.15em; | |||
border-bottom: 1px solid #eaecf0; | |||
color: #54595d; | |||
font-size: 80%; | |||
font-weight: bold; | |||
letter-spacing: 0.15em; | |||
} | } | ||
.gf-seat { | |||
display: inline-flex; | |||
flex-direction: column; | |||
align-items: center; | |||
width: 4.8em; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.gf-row-wide .gf-seat { | |||
border: | width: 4.2em; | ||
border-radius: | } | ||
box-shadow: 0 | |||
.gf-dot { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
width: 2.2em; | |||
height: 2.2em; | |||
border: 2px solid #c8ccd1; | |||
border-radius: 50%; | |||
background-color: #ffffff; | |||
color: #ffffff; | |||
font-size: 85%; | |||
box-sizing: border-box; | |||
} | |||
.gf-perm .gf-dot { | |||
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #9a7b2f; | |||
} | } | ||
.gf-name { | |||
margin-top: 0. | margin-top: 0.3em; | ||
font-size: 78%; | font-size: 78%; | ||
line-height: 1. | line-height: 1.3; | ||
word-break: break-all; | |||
} | |||
.gf-ballot { | |||
color: #72777d; | |||
font-size: 72%; | |||
} | |||
/* ---------- 票別配色:席位、長條、圖例共用 ---------- */ | |||
.gf-v-yes .gf-dot, .gf-seg.gf-v-yes, .gf-sw.gf-v-yes { | |||
border-color: #3a7d5c; | |||
background-color: #3a7d5c; | |||
} | |||
.gf-v-no .gf-dot, .gf-seg.gf-v-no, .gf-sw.gf-v-no { | |||
border-color: #b3452f; | |||
background-color: #b3452f; | |||
} | |||
.gf-v-veto .gf-dot, .gf-seg.gf-v-veto, .gf-sw.gf-v-veto { | |||
border-color: #6e1f2a; | |||
background-color: #6e1f2a; | |||
} | |||
.gf-v-veto .gf-dot { | |||
border-width: 3px; | |||
border-color: #2b0c11; | |||
} | |||
.gf-v-abs .gf-dot, .gf-seg.gf-v-abs, .gf-sw.gf-v-abs { | |||
border-color: #c9a227; | |||
background-color: #c9a227; | |||
} | |||
.gf-v-pre .gf-dot, .gf-seg.gf-v-pre, .gf-sw.gf-v-pre { | |||
border-color: #8fa6c1; | |||
background-color: #8fa6c1; | |||
} | |||
.gf-v-absent .gf-dot, .gf-seg.gf-v-absent, .gf-sw.gf-v-absent { | |||
border-color: #a2a9b1; | |||
background: repeating-linear-gradient(45deg, #c8ccd1 0, #c8ccd1 3px, #eaecf0 3px, #eaecf0 6px); | |||
} | |||
.gf-v-pending .gf-dot, .gf-sw.gf-v-pending { | |||
border-style: dashed; | |||
border-color: #a2a9b1; | |||
background-color: #ffffff; | |||
} | |||
.gf-v-invalid .gf-dot, .gf-sw.gf-v-invalid { | |||
border-style: dashed; | |||
border-color: #b3452f; | |||
background-color: #fdecea; | |||
} | |||
/* ---------- 計票長條與圖例 ---------- */ | |||
.gf-bar { | |||
display: flex; | |||
height: 12px; | |||
margin: 0 0.8em; | |||
border: 1px solid #c8ccd1; | |||
background-color: #f8f9fa; | |||
} | } | ||
.gf-seg { | |||
display: block; | display: block; | ||
color: # | flex: 0 0 auto; | ||
height: 100%; | |||
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6); | |||
} | |||
.gf-legend { | |||
display: flex; | |||
flex-wrap: wrap; | |||
gap: 0.2em 1em; | |||
padding: 0.5em 0.8em; | |||
font-size: 82%; | |||
} | |||
.gf-li { | |||
display: inline-flex; | |||
align-items: center; | |||
gap: 0.35em; | |||
} | |||
.gf-li-warn { | |||
color: #b3452f; | |||
} | |||
.gf-sw { | |||
display: inline-block; | |||
width: 0.8em; | |||
height: 0.8em; | |||
border: 1px solid rgba(0, 0, 0, 0.2); | |||
box-sizing: border-box; | |||
} | |||
.gf-foot { | |||
padding: 0.4em 0.8em 0.6em; | |||
border-top: 1px solid #eaecf0; | |||
color: #72777d; | |||
font-size: 80%; | |||
} | |||
/* ---------- 議程資訊框 ---------- */ | |||
.gf-agenda { | |||
max-width: 46em; | |||
margin: 0 0 1.2em; | |||
border: 1px solid #c8ccd1; | |||
background-color: #ffffff; | |||
} | |||
.gf-agenda-head { | |||
display: flex; | |||
align-items: center; | |||
gap: 0.7em; | |||
padding: 0.55em 0.8em; | |||
border-top: 3px solid #6b4a8b; | |||
border-bottom: 1px solid #eaecf0; | |||
background-color: #f8f9fa; | |||
} | |||
.gf-agenda-no { | |||
color: #72777d; | |||
font-size: 82%; | |||
letter-spacing: 0.05em; | |||
white-space: nowrap; | |||
} | |||
.gf-agenda-title { | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 115%; | |||
font-weight: bold; | |||
} | |||
.gf-agenda-state { | |||
margin-left: auto; | |||
padding: 0.05em 0.7em; | |||
border: 1px solid #a2a9b1; | |||
font-size: 82%; | |||
font-weight: bold; | |||
white-space: nowrap; | |||
} | |||
.gf-s-discuss { border-color: #36669a; color: #36669a; } | |||
.gf-s-voting { border-color: #a8662c; background-color: #fdf8f2; color: #a8662c; } | |||
.gf-s-pass { border-color: #3a7d5c; background-color: #3a7d5c; color: #ffffff; } | |||
.gf-s-veto { border-color: #6e1f2a; background-color: #6e1f2a; color: #ffffff; } | |||
.gf-s-fail { border-color: #72777d; background-color: #72777d; color: #ffffff; } | |||
.gf-s-withdrawn { border-color: #c8ccd1; color: #a2a9b1; text-decoration: line-through; } | |||
table.gf-agenda-meta { | |||
width: 100%; | |||
border-collapse: collapse; | |||
font-size: 90%; | |||
} | |||
.gf-agenda-meta th, | |||
.gf-agenda-meta td { | |||
padding: 0.3em 0.8em; | |||
border-bottom: 1px solid #eaecf0; | |||
text-align: left; | |||
} | |||
.gf-agenda-meta th { | |||
width: 6em; | |||
background-color: #f8f9fa; | |||
white-space: nowrap; | |||
} | |||
.gf-agenda-summary { | |||
padding: 0.6em 0.8em; | |||
border-bottom: 1px solid #eaecf0; | |||
line-height: 1.7; | |||
} | |||
.gf-agenda-talk { | |||
padding: 0.4em 0.8em; | |||
font-size: 88%; | font-size: 88%; | ||
text-align: right; | |||
} | } | ||
/* | /* ---------- 夜間模式 ---------- */ | ||
@media screen { | |||
html.skin-theme-clientpref-night .gf-box, | |||
html.skin-theme-clientpref-night .gf-agenda { | |||
border-bottom: | border-color: #3a3d42; | ||
background-color: #1b1d20; | |||
color: # | } | ||
html.skin-theme-clientpref-night .gf-head, | |||
html.skin-theme-clientpref-night .gf-agenda-head, | |||
html.skin-theme-clientpref-night .gf-agenda-meta th { | |||
border-bottom-color: #3a3d42; | |||
background-color: #232528; | |||
} | |||
html.skin-theme-clientpref-night .gf-bar { | |||
border-color: #3a3d42; | |||
background-color: #2a2d31; | |||
} | |||
html.skin-theme-clientpref-night .gf-dot { | |||
background-color: #1b1d20; | |||
} | |||
html.skin-theme-clientpref-night .gf-perm .gf-dot { | |||
box-shadow: 0 0 0 2px #1b1d20, 0 0 0 4px #9a7b2f; | |||
} | |||
} | } | ||
/* | /* ========================================================= | ||
組織資訊面板 | |||
padding: 0. | ========================================================= */ | ||
border- | |||
.encyclato-infobox .ob-title { | |||
padding: 0.5em 0.6em; | |||
font-size: | border-top-width: 6px; | ||
border-top-style: solid; | |||
border-top-color: #72777d; | |||
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif; | |||
font-size: 125%; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.encyclato-infobox .ob-title-corp { border-top-color: #36669a; } | |||
.encyclato-infobox .ob-title-group { border-top-color: #3f4a8a; } | |||
.encyclato-infobox .ob-title-gov { border-top-color: #5c6470; } | |||
.encyclato-infobox .ob-title-igo { border-top-color: #2f7f7a; } | |||
.encyclato-infobox .ob-title-ngo { border-top-color: #3a7d5c; } | |||
.encyclato-infobox .ob-title-edu { border-top-color: #6b4a8b; } | |||
font- | .encyclato-infobox .ob-title-mil { border-top-color: #4f5d3a; } | ||
.encyclato-infobox .ob-title-rel { border-top-color: #9a7b2f; } | |||
.encyclato-infobox .ob-title-none { border-top-color: #72777d; } | |||
.ob-subtitle { | |||
margin-top: 0.15em; | |||
color: #54595d; | |||
font-family: sans-serif; | |||
font-size: 62%; | |||
font-weight: normal; | |||
} | } | ||
.ob-latin { | |||
font-style: italic; | |||
} | } | ||
/* ---------- 類型標籤 ---------- */ | |||
display: block; | .ob-tag { | ||
color: # | display: inline-block; | ||
font-size: | margin-left: 0.5em; | ||
letter-spacing: 0. | padding: 0.05em 0.45em; | ||
border: 1px solid #a2a9b1; | |||
background-color: #f8f9fa; | |||
color: #54595d; | |||
font-family: sans-serif; | |||
font-size: 55%; | |||
font-weight: bold; | |||
letter-spacing: 0.1em; | |||
line-height: 1.5; | |||
vertical-align: 0.25em; | |||
white-space: nowrap; | |||
} | } | ||
.ob-tag-corp { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; } | |||
.ob-tag-group { border-color: #3f4a8a; background-color: #f5f6fc; color: #333c70; } | |||
.ob-tag-gov { border-color: #5c6470; background-color: #f7f8fa; color: #4a505a; } | |||
.ob-tag-igo { border-color: #2f7f7a; background-color: #f2f9f8; color: #25635f; } | |||
.ob-tag-ngo { border-color: #3a7d5c; background-color: #f2f9f5; color: #2d6148; } | |||
.ob-tag-edu { border-color: #6b4a8b; background-color: #f8f5fb; color: #553a6f; } | |||
.ob-tag-mil { border-color: #4f5d3a; background-color: #f3f5ef; color: #3e4a2d; } | |||
.ob-tag-rel { border-color: #9a7b2f; background-color: #fdfaf1; color: #7a5f1f; } | |||
/* ---------- 圖片 ---------- */ | |||
.encyclato-infobox .ob-image { | |||
padding: 0.6em; | |||
text-align: center; | text-align: center; | ||
} | } | ||
.ob-image img { | |||
max-width: 100%; | |||
margin- | height: auto; | ||
color: # | } | ||
font-size: | |||
.ob-caption { | |||
margin-top: 0.3em; | |||
color: #54595d; | |||
font-size: 85%; | |||
line-height: 1.5; | |||
} | } | ||
/* | /* ---------- 夜間模式 ---------- */ | ||
@media screen { | |||
html.skin-theme-clientpref-night .ob-subtitle, | |||
html.skin-theme-clientpref-night .ob-caption { | |||
color: #a2a9b1; | |||
} | |||
html.skin-theme-clientpref-night .ob-tag { | |||
background-color: #1b1d20; | |||
} | |||
html.skin-theme-clientpref-night .ob-tag-corp { color: #8fb3db; } | |||
html.skin-theme-clientpref-night .ob-tag-group { color: #97a0d9; } | |||
html.skin-theme-clientpref-night .ob-tag-gov { color: #b0b6c0; } | |||
html.skin-theme-clientpref-night .ob-tag-igo { color: #7fc4bf; } | |||
html.skin-theme-clientpref-night .ob-tag-ngo { color: #8ac5a5; } | |||
html.skin-theme-clientpref-night .ob-tag-edu { color: #b39ccc; } | |||
html.skin-theme-clientpref-night .ob-tag-mil { color: #b7c49a; } | |||
html.skin-theme-clientpref-night .ob-tag-rel { color: #d4b05a; } | |||
} | } | ||
2026年9月25日 (五) 07:44的最新修訂
/* =========================================================
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;
}
}
/* =========================================================
政黨光譜
========================================================= */
.ps-spectrum {
margin: 0.3em 0 1.4em;
}
.ps-spectrum:last-child {
margin-bottom: 0.2em;
}
.ps-title {
margin-bottom: 0.3em;
padding-bottom: 0.2em;
border-bottom: 1px solid #eaecf0;
color: #54595d;
font-size: 85%;
font-weight: bold;
letter-spacing: 0.15em;
}
/* ---------- 軸 ---------- */
.ps-track {
position: relative;
margin: 0 3.5em;
}
/* 依標籤層數保留上方空間 */
.ps-tiers-1 .ps-track { padding-top: 3.8em; }
.ps-tiers-2 .ps-track { padding-top: 5.6em; }
.ps-tiers-3 .ps-track { padding-top: 7.4em; }
.ps-bar {
position: relative;
height: 10px;
border: 1px solid rgba(0, 0, 0, 0.12);
}
/* 中線 */
.ps-bar::after {
position: absolute;
top: -4px;
bottom: -4px;
left: 50%;
width: 1px;
background-color: rgba(0, 0, 0, 0.3);
content: "";
}
/* 漸層配色 */
.ps-theme-rb .ps-bar {
background: linear-gradient(to right, #9e2f35 0%, #c98a8d 28%, #e6e1ea 50%, #8aa4c9 72%, #2f5f9e 100%);
}
.ps-theme-br .ps-bar {
background: linear-gradient(to right, #2f5f9e 0%, #8aa4c9 28%, #e6e1ea 50%, #c98a8d 72%, #9e2f35 100%);
}
.ps-theme-gp .ps-bar {
background: linear-gradient(to right, #2f7a4f 0%, #93bba2 28%, #e8e6ea 50%, #a898bd 72%, #6b4a8b 100%);
}
.ps-theme-ot .ps-bar {
background: linear-gradient(to right, #b35c2e 0%, #d9a787 28%, #ece8e3 50%, #8fbfbb 72%, #2f7f7a 100%);
}
.ps-theme-gray .ps-bar {
background: linear-gradient(to right, #eaecf0 0%, #a2a9b1 50%, #54595d 100%);
}
/* ---------- 政黨標記 ---------- */
.ps-party {
position: absolute;
bottom: -2px;
z-index: 1;
display: flex;
flex-direction: column;
align-items: center;
transform: translateX(-50%);
}
.ps-label {
padding: 0.15em 0.6em;
border: 1px solid #c8ccd1;
border-top: 3px solid #72777d;
background-color: #ffffff;
font-size: 88%;
font-weight: bold;
line-height: 1.5;
white-space: nowrap;
}
.ps-party:hover {
z-index: 2;
}
.ps-party:hover .ps-label {
border-color: #72777d;
}
.ps-stem {
width: 1px;
background-color: #a2a9b1;
}
.ps-tier-1 .ps-stem { height: 0.9em; }
.ps-tier-2 .ps-stem { height: 2.7em; }
.ps-tier-3 .ps-stem { height: 4.5em; }
.ps-dot {
width: 14px;
height: 14px;
border: 2px solid #ffffff;
border-radius: 50%;
background-color: #72777d;
box-shadow: 0 0 0 1px #72777d;
box-sizing: border-box;
}
/* ---------- 刻度 ---------- */
.ps-scale {
position: relative;
height: 1.6em;
margin: 0.45em 3.5em 0;
color: #72777d;
font-size: 80%;
}
.ps-scale span {
position: absolute;
top: 0.2em;
transform: translateX(-50%);
white-space: nowrap;
}
.ps-scale span::before {
position: absolute;
top: -0.5em;
left: 50%;
width: 1px;
height: 0.4em;
background-color: #a2a9b1;
content: "";
}
/* =========================================================
政黨資訊面板
========================================================= */
/* ---------- 標題 ---------- */
.encyclato-infobox .pp-infobox-title {
padding: 0.5em 0.6em;
border-top-width: 6px;
border-top-style: solid;
border-top-color: #72777d;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 125%;
text-align: center;
}
.pp-infobox-subtitle {
margin-top: 0.15em;
color: #54595d;
font-family: sans-serif;
font-size: 62%;
font-weight: normal;
}
.pp-infobox-latin {
font-style: italic;
}
/* ---------- 圖片 ---------- */
.encyclato-infobox .pp-infobox-image {
padding: 0.6em;
text-align: center;
}
.pp-infobox-caption {
margin-top: 0.3em;
color: #54595d;
font-size: 85%;
}
/* ---------- 黨色色塊 ---------- */
.pp-swatch-inline {
display: inline-block;
width: 0.9em;
height: 0.9em;
margin-right: 0.4em;
border: 1px solid rgba(0, 0, 0, 0.2);
vertical-align: -0.1em;
}
/* ---------- 席次圖 ---------- */
.encyclato-infobox .pp-seats-cell,
.encyclato-infobox .pp-spectrum-cell {
padding: 0.45em 0.7em;
}
.pp-seats-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.6em;
font-size: 92%;
}
.pp-seats-name {
font-weight: bold;
}
.pp-seats-count {
white-space: nowrap;
}
.pp-seats-bar {
position: relative;
height: 12px;
margin: 0.35em 0 0.3em;
border: 1px solid #c8ccd1;
background-color: #eaecf0;
}
.pp-seats-fill {
height: 100%;
background-color: #72777d;
}
.pp-seats-majority {
position: absolute;
top: -4px;
bottom: -4px;
width: 0;
border-left: 2px dashed #202122;
transform: translateX(-1px);
}
.pp-seats-note {
color: #72777d;
font-size: 80%;
}
.pp-seats-majority-text {
color: #202122;
font-weight: bold;
}
/* ---------- 光譜圖 ---------- */
.pp-mini-spectrum {
padding: 0.1em 0;
}
.pp-mini-track {
position: relative;
margin: 0.6em 0.4em 0.35em;
}
.pp-mini-track .ps-bar {
height: 8px;
}
.pp-mini-dot {
display: block;
position: absolute;
top: 50%;
z-index: 1;
width: 14px;
height: 14px;
border: 2px solid #ffffff;
border-radius: 50%;
background-color: #72777d;
box-shadow: 0 0 0 1px #202122;
box-sizing: border-box;
transform: translate(-50%, -50%);
}
.pp-mini-ends {
display: flex;
justify-content: space-between;
color: #72777d;
font-size: 75%;
}
.pp-mini-ends span {
flex: 0 0 auto;
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .pp-infobox-subtitle,
html.skin-theme-clientpref-night .pp-infobox-caption,
html.skin-theme-clientpref-night .pp-seats-note,
html.skin-theme-clientpref-night .pp-mini-ends {
color: #a2a9b1;
}
html.skin-theme-clientpref-night .pp-seats-bar {
border-color: #3a3d42;
background-color: #2a2d31;
}
html.skin-theme-clientpref-night .pp-seats-majority {
border-left-color: #eaecf0;
}
html.skin-theme-clientpref-night .pp-seats-majority-text {
color: #eaecf0;
}
html.skin-theme-clientpref-night .pp-mini-dot {
border-color: #1b1d20;
box-shadow: 0 0 0 1px #eaecf0;
}
}
/* =========================================================
通用資訊面板(飛行器等)
========================================================= */
/* ---------- 標題 ---------- */
.encyclato-infobox .ib-title {
padding: 0.5em 0.6em;
border-top-width: 6px;
border-top-style: solid;
border-top-color: #72777d;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 125%;
text-align: center;
}
/* 依用途的標題色線 */
.encyclato-infobox .ib-title-mil { border-top-color: #4f5d3a; }
.encyclato-infobox .ib-title-civ { border-top-color: #36669a; }
.encyclato-infobox .ib-title-dual { border-top-color: #2f7f7a; }
.encyclato-infobox .ib-title-none { border-top-color: #72777d; }
.ib-subtitle {
margin-top: 0.15em;
color: #54595d;
font-family: sans-serif;
font-size: 62%;
font-weight: normal;
}
.ib-latin {
font-style: italic;
}
/* ---------- 用途標籤 ---------- */
.ib-tag {
display: inline-block;
margin-left: 0.5em;
padding: 0.05em 0.45em;
border: 1px solid #a2a9b1;
font-family: sans-serif;
font-size: 55%;
font-weight: bold;
letter-spacing: 0.1em;
line-height: 1.5;
vertical-align: 0.25em;
white-space: nowrap;
}
.ib-tag-mil { border-color: #4f5d3a; background-color: #f3f5ef; color: #3e4a2d; }
.ib-tag-civ { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; }
.ib-tag-dual { border-color: #2f7f7a; background-color: #f2f9f8; color: #25635f; }
/* ---------- 圖片 ---------- */
.encyclato-infobox .ib-image {
padding: 0.6em;
text-align: center;
}
.ib-image img {
max-width: 100%;
height: auto;
}
.ib-caption {
margin-top: 0.3em;
color: #54595d;
font-size: 85%;
line-height: 1.5;
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .ib-subtitle,
html.skin-theme-clientpref-night .ib-caption {
color: #a2a9b1;
}
html.skin-theme-clientpref-night .ib-tag {
background-color: #1b1d20;
}
html.skin-theme-clientpref-night .ib-tag-mil { color: #b7c49a; }
html.skin-theme-clientpref-night .ib-tag-civ { color: #8fb3db; }
html.skin-theme-clientpref-night .ib-tag-dual { color: #7fc4bf; }
}
/* =========================================================
國家資訊面板:視覺化圖表
========================================================= */
.encyclato-infobox .ci-cell {
padding: 0.45em 0.7em;
}
.ci-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 0.6em;
margin-bottom: 0.3em;
}
.ci-title {
font-size: 88%;
font-weight: bold;
}
.ci-meta {
color: #72777d;
font-size: 80%;
white-space: nowrap;
}
/* ---------- 堆疊長條 ---------- */
.ci-bar {
position: relative;
display: flex;
height: 14px;
border: 1px solid #c8ccd1;
background-color: #eaecf0;
}
.ci-seg {
display: block;
flex: 0 0 auto;
height: 100%;
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}
.ci-majority {
position: absolute;
top: -4px;
bottom: -4px;
width: 0;
border-left: 2px dashed #202122;
transform: translateX(-1px);
}
.ci-legend {
display: flex;
flex-wrap: wrap;
gap: 0.2em 0.9em;
margin-top: 0.35em;
font-size: 80%;
line-height: 1.5;
}
.ci-li {
display: inline-flex;
align-items: center;
gap: 0.35em;
}
.ci-sw {
display: inline-block;
width: 0.8em;
height: 0.8em;
border: 1px solid rgba(0, 0, 0, 0.2);
background-color: #72777d;
}
.ci-val {
color: #72777d;
}
/* ---------- 單值量表 ---------- */
.ci-gbar {
height: 8px;
border: 1px solid #c8ccd1;
background-color: #eaecf0;
}
.ci-gfill {
display: block;
height: 100%;
background-color: #36669a;
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .ci-bar,
html.skin-theme-clientpref-night .ci-gbar {
border-color: #3a3d42;
background-color: #2a2d31;
}
html.skin-theme-clientpref-night .ci-meta,
html.skin-theme-clientpref-night .ci-val {
color: #a2a9b1;
}
html.skin-theme-clientpref-night .ci-majority {
border-left-color: #eaecf0;
}
html.skin-theme-clientpref-night .ci-seg {
box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.4);
}
}
/* 國家資訊面板:圖表列的內距 */
table.encyclato-infobox.encyclato-country tr.ci-row > td.ci-cell {
padding: 0.45em 0.7em !important;
}
/* 精簡量表:緊貼在上一列之下 */
table.encyclato-infobox.encyclato-country tr.ci-row > td.ci-cell-compact {
padding: 0 0.7em 0.45em !important;
}
.ci-cell-compact .ci-gbar {
height: 6px;
}
/* =========================================================
國範:表決圖與議程
========================================================= */
/* ---------- 表決圖外框 ---------- */
.gf-box {
max-width: 46em;
margin: 0 0 1.2em;
border: 1px solid #c8ccd1;
background-color: #ffffff;
}
.gf-head {
display: flex;
align-items: center;
gap: 0.6em;
padding: 0.5em 0.8em;
border-top: 3px solid #36669a;
border-bottom: 1px solid #eaecf0;
background-color: #f8f9fa;
}
.gf-title {
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 112%;
font-weight: bold;
}
.gf-term {
color: #72777d;
font-size: 85%;
}
.gf-result {
margin-left: auto;
padding: 0.1em 0.8em;
border: 1px solid;
font-size: 88%;
font-weight: bold;
letter-spacing: 0.15em;
}
.gf-r-open { border-color: #36669a; background-color: #f5f8fc; color: #36669a; }
.gf-r-pass { border-color: #3a7d5c; background-color: #3a7d5c; color: #ffffff; }
.gf-r-fail { border-color: #72777d; background-color: #72777d; color: #ffffff; }
.gf-r-veto { border-color: #6e1f2a; background-color: #6e1f2a; color: #ffffff; }
/* ---------- 席位 ---------- */
.gf-seats {
padding: 0.7em 0.8em 0.2em;
}
.gf-row {
display: flex;
flex-wrap: wrap;
align-items: flex-start;
gap: 0.5em 0.4em;
margin-bottom: 0.7em;
}
.gf-row-label {
flex: 0 0 100%;
padding-bottom: 0.15em;
border-bottom: 1px solid #eaecf0;
color: #54595d;
font-size: 80%;
font-weight: bold;
letter-spacing: 0.15em;
}
.gf-seat {
display: inline-flex;
flex-direction: column;
align-items: center;
width: 4.8em;
text-align: center;
}
.gf-row-wide .gf-seat {
width: 4.2em;
}
.gf-dot {
display: flex;
align-items: center;
justify-content: center;
width: 2.2em;
height: 2.2em;
border: 2px solid #c8ccd1;
border-radius: 50%;
background-color: #ffffff;
color: #ffffff;
font-size: 85%;
box-sizing: border-box;
}
.gf-perm .gf-dot {
box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #9a7b2f;
}
.gf-name {
margin-top: 0.3em;
font-size: 78%;
line-height: 1.3;
word-break: break-all;
}
.gf-ballot {
color: #72777d;
font-size: 72%;
}
/* ---------- 票別配色:席位、長條、圖例共用 ---------- */
.gf-v-yes .gf-dot, .gf-seg.gf-v-yes, .gf-sw.gf-v-yes {
border-color: #3a7d5c;
background-color: #3a7d5c;
}
.gf-v-no .gf-dot, .gf-seg.gf-v-no, .gf-sw.gf-v-no {
border-color: #b3452f;
background-color: #b3452f;
}
.gf-v-veto .gf-dot, .gf-seg.gf-v-veto, .gf-sw.gf-v-veto {
border-color: #6e1f2a;
background-color: #6e1f2a;
}
.gf-v-veto .gf-dot {
border-width: 3px;
border-color: #2b0c11;
}
.gf-v-abs .gf-dot, .gf-seg.gf-v-abs, .gf-sw.gf-v-abs {
border-color: #c9a227;
background-color: #c9a227;
}
.gf-v-pre .gf-dot, .gf-seg.gf-v-pre, .gf-sw.gf-v-pre {
border-color: #8fa6c1;
background-color: #8fa6c1;
}
.gf-v-absent .gf-dot, .gf-seg.gf-v-absent, .gf-sw.gf-v-absent {
border-color: #a2a9b1;
background: repeating-linear-gradient(45deg, #c8ccd1 0, #c8ccd1 3px, #eaecf0 3px, #eaecf0 6px);
}
.gf-v-pending .gf-dot, .gf-sw.gf-v-pending {
border-style: dashed;
border-color: #a2a9b1;
background-color: #ffffff;
}
.gf-v-invalid .gf-dot, .gf-sw.gf-v-invalid {
border-style: dashed;
border-color: #b3452f;
background-color: #fdecea;
}
/* ---------- 計票長條與圖例 ---------- */
.gf-bar {
display: flex;
height: 12px;
margin: 0 0.8em;
border: 1px solid #c8ccd1;
background-color: #f8f9fa;
}
.gf-seg {
display: block;
flex: 0 0 auto;
height: 100%;
box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.6);
}
.gf-legend {
display: flex;
flex-wrap: wrap;
gap: 0.2em 1em;
padding: 0.5em 0.8em;
font-size: 82%;
}
.gf-li {
display: inline-flex;
align-items: center;
gap: 0.35em;
}
.gf-li-warn {
color: #b3452f;
}
.gf-sw {
display: inline-block;
width: 0.8em;
height: 0.8em;
border: 1px solid rgba(0, 0, 0, 0.2);
box-sizing: border-box;
}
.gf-foot {
padding: 0.4em 0.8em 0.6em;
border-top: 1px solid #eaecf0;
color: #72777d;
font-size: 80%;
}
/* ---------- 議程資訊框 ---------- */
.gf-agenda {
max-width: 46em;
margin: 0 0 1.2em;
border: 1px solid #c8ccd1;
background-color: #ffffff;
}
.gf-agenda-head {
display: flex;
align-items: center;
gap: 0.7em;
padding: 0.55em 0.8em;
border-top: 3px solid #6b4a8b;
border-bottom: 1px solid #eaecf0;
background-color: #f8f9fa;
}
.gf-agenda-no {
color: #72777d;
font-size: 82%;
letter-spacing: 0.05em;
white-space: nowrap;
}
.gf-agenda-title {
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 115%;
font-weight: bold;
}
.gf-agenda-state {
margin-left: auto;
padding: 0.05em 0.7em;
border: 1px solid #a2a9b1;
font-size: 82%;
font-weight: bold;
white-space: nowrap;
}
.gf-s-discuss { border-color: #36669a; color: #36669a; }
.gf-s-voting { border-color: #a8662c; background-color: #fdf8f2; color: #a8662c; }
.gf-s-pass { border-color: #3a7d5c; background-color: #3a7d5c; color: #ffffff; }
.gf-s-veto { border-color: #6e1f2a; background-color: #6e1f2a; color: #ffffff; }
.gf-s-fail { border-color: #72777d; background-color: #72777d; color: #ffffff; }
.gf-s-withdrawn { border-color: #c8ccd1; color: #a2a9b1; text-decoration: line-through; }
table.gf-agenda-meta {
width: 100%;
border-collapse: collapse;
font-size: 90%;
}
.gf-agenda-meta th,
.gf-agenda-meta td {
padding: 0.3em 0.8em;
border-bottom: 1px solid #eaecf0;
text-align: left;
}
.gf-agenda-meta th {
width: 6em;
background-color: #f8f9fa;
white-space: nowrap;
}
.gf-agenda-summary {
padding: 0.6em 0.8em;
border-bottom: 1px solid #eaecf0;
line-height: 1.7;
}
.gf-agenda-talk {
padding: 0.4em 0.8em;
font-size: 88%;
text-align: right;
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .gf-box,
html.skin-theme-clientpref-night .gf-agenda {
border-color: #3a3d42;
background-color: #1b1d20;
}
html.skin-theme-clientpref-night .gf-head,
html.skin-theme-clientpref-night .gf-agenda-head,
html.skin-theme-clientpref-night .gf-agenda-meta th {
border-bottom-color: #3a3d42;
background-color: #232528;
}
html.skin-theme-clientpref-night .gf-bar {
border-color: #3a3d42;
background-color: #2a2d31;
}
html.skin-theme-clientpref-night .gf-dot {
background-color: #1b1d20;
}
html.skin-theme-clientpref-night .gf-perm .gf-dot {
box-shadow: 0 0 0 2px #1b1d20, 0 0 0 4px #9a7b2f;
}
}
/* =========================================================
組織資訊面板
========================================================= */
.encyclato-infobox .ob-title {
padding: 0.5em 0.6em;
border-top-width: 6px;
border-top-style: solid;
border-top-color: #72777d;
font-family: 'Linux Libertine', 'Georgia', 'Times', 'Noto Serif TC', 'Source Han Serif TC', 'Songti TC', 'PMingLiU', serif;
font-size: 125%;
text-align: center;
}
.encyclato-infobox .ob-title-corp { border-top-color: #36669a; }
.encyclato-infobox .ob-title-group { border-top-color: #3f4a8a; }
.encyclato-infobox .ob-title-gov { border-top-color: #5c6470; }
.encyclato-infobox .ob-title-igo { border-top-color: #2f7f7a; }
.encyclato-infobox .ob-title-ngo { border-top-color: #3a7d5c; }
.encyclato-infobox .ob-title-edu { border-top-color: #6b4a8b; }
.encyclato-infobox .ob-title-mil { border-top-color: #4f5d3a; }
.encyclato-infobox .ob-title-rel { border-top-color: #9a7b2f; }
.encyclato-infobox .ob-title-none { border-top-color: #72777d; }
.ob-subtitle {
margin-top: 0.15em;
color: #54595d;
font-family: sans-serif;
font-size: 62%;
font-weight: normal;
}
.ob-latin {
font-style: italic;
}
/* ---------- 類型標籤 ---------- */
.ob-tag {
display: inline-block;
margin-left: 0.5em;
padding: 0.05em 0.45em;
border: 1px solid #a2a9b1;
background-color: #f8f9fa;
color: #54595d;
font-family: sans-serif;
font-size: 55%;
font-weight: bold;
letter-spacing: 0.1em;
line-height: 1.5;
vertical-align: 0.25em;
white-space: nowrap;
}
.ob-tag-corp { border-color: #36669a; background-color: #f5f8fc; color: #2b527c; }
.ob-tag-group { border-color: #3f4a8a; background-color: #f5f6fc; color: #333c70; }
.ob-tag-gov { border-color: #5c6470; background-color: #f7f8fa; color: #4a505a; }
.ob-tag-igo { border-color: #2f7f7a; background-color: #f2f9f8; color: #25635f; }
.ob-tag-ngo { border-color: #3a7d5c; background-color: #f2f9f5; color: #2d6148; }
.ob-tag-edu { border-color: #6b4a8b; background-color: #f8f5fb; color: #553a6f; }
.ob-tag-mil { border-color: #4f5d3a; background-color: #f3f5ef; color: #3e4a2d; }
.ob-tag-rel { border-color: #9a7b2f; background-color: #fdfaf1; color: #7a5f1f; }
/* ---------- 圖片 ---------- */
.encyclato-infobox .ob-image {
padding: 0.6em;
text-align: center;
}
.ob-image img {
max-width: 100%;
height: auto;
}
.ob-caption {
margin-top: 0.3em;
color: #54595d;
font-size: 85%;
line-height: 1.5;
}
/* ---------- 夜間模式 ---------- */
@media screen {
html.skin-theme-clientpref-night .ob-subtitle,
html.skin-theme-clientpref-night .ob-caption {
color: #a2a9b1;
}
html.skin-theme-clientpref-night .ob-tag {
background-color: #1b1d20;
}
html.skin-theme-clientpref-night .ob-tag-corp { color: #8fb3db; }
html.skin-theme-clientpref-night .ob-tag-group { color: #97a0d9; }
html.skin-theme-clientpref-night .ob-tag-gov { color: #b0b6c0; }
html.skin-theme-clientpref-night .ob-tag-igo { color: #7fc4bf; }
html.skin-theme-clientpref-night .ob-tag-ngo { color: #8ac5a5; }
html.skin-theme-clientpref-night .ob-tag-edu { color: #b39ccc; }
html.skin-theme-clientpref-night .ob-tag-mil { color: #b7c49a; }
html.skin-theme-clientpref-night .ob-tag-rel { color: #d4b05a; }
}