檢視MediaWiki:Common.css的原始碼
←
MediaWiki:Common.css
跳至導覽
跳至搜尋
您沒有權限執行編輯此頁面,由於以下幾個原因:
您請求的操作只有這個群組的使用者能使用:
使用者
本頁用來提供此 Wiki 軟體介面上的文字,並且已被設為保護以防止惡意修改。 如欲增加或修改 Wiki 的翻譯,請至
translatewiki.net
上的 MediaWiki 在地化專案。
您沒有權限來編輯此 CSS 頁面,因為這會影響到所有的網站訪客。
您可以檢視並複製此頁面的原始碼。
/* ========================================================= Encyclato 資訊面板 維基風格・靠右・分隔版 適用:國家、艦級、裝甲車輛等所有 encyclato-infobox ========================================================= */ /* ---------- 1. 面板本體 ---------- */ table.encyclato-infobox { float: right !important; clear: right !important; width: 22em; max-width: calc(100% - 1em); margin: 0 0 1em 1.25em !important; border: 1px solid #a2a9b1; border-collapse: collapse; border-spacing: 0; background: #f8f9fa; color: #202122; font-size: 90%; line-height: 1.24; box-sizing: border-box; } table.encyclato-infobox + table.encyclato-infobox { clear: right; } /* ---------- 2. 主標題 ---------- */ table.encyclato-infobox > caption { padding: 0.55em 0.6em; border: 1px solid #a2a9b1; border-bottom: 0; background: #f8f9fa; font-size: 125%; font-weight: 700; line-height: 1.35; text-align: center; } table.encyclato-infobox .infobox-native-name { font-size: 80%; font-weight: 400; } /* ---------- 3. 一般儲存格 ---------- */ table.encyclato-infobox > tbody > tr > th, table.encyclato-infobox > tbody > tr > td { box-sizing: border-box; padding: 0.10em 0.48em; border-bottom: 1px solid #eaecf0; vertical-align: middle; } table.encyclato-infobox > tbody > tr:last-child > th, table.encyclato-infobox > tbody > tr:last-child > td { border-bottom: 0; } /* 資料列 */ table.encyclato-infobox > tbody > tr.infobox-row > th, table.encyclato-infobox > tbody > tr.infobox-row > td { padding-top: 0.10em; padding-bottom: 0.14em; line-height: 1.24; } /* ---------- 4. 欄名與內容 ---------- */ table.encyclato-infobox > tbody > tr > th.infobox-label { width: 38%; border-right: 1px solid #eaecf0; background: #f8f9fa; font-weight: 600; text-align: center; } table.encyclato-infobox > tbody > tr > th.infobox-label + td { width: 62%; background: #ffffff; 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; white-space: nowrap; } /* 動態欄名(職稱、建立事件)允許換行 */ table.encyclato-infobox > tbody > tr > th.infobox-label-dynamic { white-space: normal; line-height: 1.35; } /* ---------- 5. 區塊標題 ---------- */ /* 上框線同時充當上一區塊最後一列的底線 */ table.encyclato-infobox > tbody > tr > th.infobox-section { padding: 0.34em 0.55em; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #a2a9b1; background: #eaecf0; font-weight: 700; text-align: center; letter-spacing: 0.05em; } table.encyclato-infobox > tbody > tr > th.infobox-subsection { padding: 0.24em 0.55em; border-top: 1px solid #a2a9b1; border-bottom: 1px solid #c8ccd1; background: #f1f3f5; font-weight: 700; text-align: center; } /* ---------- 6. 國旗與國徽 ---------- */ table.encyclato-infobox > tbody > tr.infobox-symbol-row > td { width: 50%; padding: 0.4em 0.4em 0.35em; background: #ffffff; text-align: center; vertical-align: middle; } table.encyclato-infobox > tbody > tr.infobox-symbol-row > td + td { border-left: 1px solid #eaecf0; } table.encyclato-infobox .infobox-symbol-name { display: block; margin-bottom: 0.3em; font-weight: 600; } table.encyclato-infobox .infobox-symbol-media { line-height: 0; text-align: center; } table.encyclato-infobox .infobox-symbol-media img { display: inline-block; vertical-align: middle; } /* 移除 MediaWiki 自動插入的多餘段落與換行 */ table.encyclato-infobox > tbody > tr.infobox-symbol-row p { margin: 0; padding: 0; } table.encyclato-infobox > tbody > tr.infobox-symbol-row br:first-child, table.encyclato-infobox > tbody > tr.infobox-symbol-row br:last-child { display: none; } /* ---------- 7. 圖像 ---------- */ table.encyclato-infobox .infobox-wide-image, table.encyclato-infobox .infobox-image-cell { background: #ffffff; text-align: center; vertical-align: middle; } table.encyclato-infobox .infobox-signature-cell { background: #ffffff; text-align: center; vertical-align: middle; } table.encyclato-infobox .infobox-signature-cell img { max-width: 150px; max-height: 80px; width: auto; } table.encyclato-infobox img { max-width: 100%; height: auto; } /* ---------- 8. 跨欄內容與備註 ---------- */ /* 跨兩欄的清單內容,例如艦艇或車輛的變體 */ table.encyclato-infobox .infobox-wide-cell { padding: 0.3em 0.55em; background: #ffffff; text-align: left; } table.encyclato-infobox .infobox-note { padding: 0.55em 0.65em; background: #ffffff; font-size: 85%; } /* ---------- 9. 儲存格內的段落與清單 ---------- */ table.encyclato-infobox th p, table.encyclato-infobox td p { margin: 0; } table.encyclato-infobox th ul, table.encyclato-infobox th ol, table.encyclato-infobox td ul, table.encyclato-infobox td ol { margin-top: 0.15em; margin-bottom: 0.15em; } /* ---------- 10. 空白列 ---------- */ table.encyclato-infobox > tbody > tr.infobox-hidden { display: none !important; } /* ---------- 11. 窄螢幕(保持靠右浮動)---------- */ @media screen and (max-width: 520px) { table.encyclato-infobox { width: 21em; max-width: calc(100% - 0.5em); margin: 0 0 1em 0.75em !important; } table.encyclato-infobox > caption { font-size: 120%; } table.encyclato-infobox > tbody > tr > th.infobox-label { width: 39%; } table.encyclato-infobox > tbody > tr > th.infobox-label + td { width: 61%; } } /* ========================================================= Encyclato 資訊面板與表格 維基經典樣式 ========================================================= */ /* ========================================================= 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-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; } /* ========================================================= 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. 數值警告 ========================================================= */ table.encyclato-infobox .infobox-warning { margin-left: 0.3em; color: #d33; font-size: 85%; font-weight: bold; white-space: nowrap; } table.encyclato-infobox .infobox-value-invalid { color: #d33; } /* ========================================================= 12. 數值分級 數值本身維持原色,等級以彩色文字附於其後 ========================================================= */ table.encyclato-infobox .infobox-grade::after { margin-left: 0.35em; font-weight: bold; } /* 人類發展指數 */ table.encyclato-infobox .infobox-hdi-1::after { content: "極高"; color: #006400; } table.encyclato-infobox .infobox-hdi-2::after { content: "高"; color: #2e8b57; } table.encyclato-infobox .infobox-hdi-3::after { content: "中"; color: #b8860b; } table.encyclato-infobox .infobox-hdi-4::after { content: "低"; color: #b22222; } /* 基尼係數 */ table.encyclato-infobox .infobox-gini-1::after { content: "極低"; color: #006400; } table.encyclato-infobox .infobox-gini-2::after { content: "低"; color: #2e8b57; } table.encyclato-infobox .infobox-gini-3::after { content: "中等"; color: #b8860b; } table.encyclato-infobox .infobox-gini-4::after { content: "高"; color: #cc5500; } table.encyclato-infobox .infobox-gini-5::after { content: "極高"; color: #b22222; } /* ========================================================= 13. 窄螢幕(維持靠右浮動) ========================================================= */ @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; } } /* ========================================================= 14. 維基標準表格 ========================================================= */ 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; } @media screen and (max-width: 720px) { table.wikitable { display: block; overflow-x: auto; } }
返回到「
MediaWiki:Common.css
」。
導覽選單
個人工具
建立帳號
登入
associated-pages
系統訊息
討論
English
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
近期變更
隨機頁面
MediaWiki說明
特殊頁面
工具
連結至此的頁面
相關變更
頁面資訊