MediaWiki:Common.css:修訂間差異
跳至導覽
跳至搜尋
從專案原稿更新 |
從專案原稿更新 |
||
| 第1行: | 第1行: | ||
/* 災厄繁中 Wiki | /* 災厄繁中 Wiki 全站元件樣式(cz-*) | ||
配色取自翻譯 MOD 圖示:米色 #f5ebd2、藍 #285abe、白。外框版型在 MediaWiki:Vector.css。 */ | |||
:root { | :root { | ||
--cz- | --cz-blue: #285abe; | ||
--cz- | --cz-blue-dark: #1b3f8a; | ||
--cz- | --cz-blue-soft: #dfe7f7; | ||
--cz- | --cz-cream: #f5ebd2; | ||
--cz- | --cz-paper: #fffdf8; | ||
--cz- | --cz-line-soft: #c7d3ec; | ||
--cz- | --cz-text: #1f2a40; | ||
--cz- | --cz-text-muted: #5c6782; | ||
} | } | ||
/* 像素畫圖示放大時保持清晰 */ | |||
.cz-icon img, .cz-box img, .cz-itemtable img, .cz-boss img, .cz-modinfo img { image-rendering: pixelated; } | |||
/* 首頁不顯示「首頁」大標題 */ | /* 首頁不顯示「首頁」大標題 */ | ||
body.page-首頁 .mw-first-heading, | body.page-首頁 .mw-first-heading, | ||
body.page-首頁 | body.page-首頁 .firstHeading, | ||
body.page-首頁 . | body.page-首頁 #siteSub { display: none; } | ||
/* ---------- 方框(仿 wiki.gg 首頁的區塊) ---------- */ | |||
.cz-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); } | |||
.cz-span-12 { grid-column: span 12; } | |||
.cz-span-8 { grid-column: span 8; } | |||
.cz-span-7 { grid-column: span 7; } | |||
.cz-span-6 { grid-column: span 6; } | |||
.cz-span-5 { grid-column: span 5; } | |||
.cz-span-4 { grid-column: span 4; } | |||
@media (max-width: 1100px) { .cz-grid > * { grid-column: span 12; } } | |||
.cz- | .cz-box { | ||
background: | background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; | ||
overflow: hidden; min-width: 0; | |||
} | |||
.cz-box-head { | |||
position: relative; background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em; | |||
text-align: center; padding: 8px 48px; letter-spacing: .04em; | |||
} | } | ||
.cz- | .cz-box-head a, .cz-box-head a:visited { color: #fff; } | ||
.cz- | .cz-box-head .cz-box-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); line-height: 0; } | ||
.cz- | .cz-box-body { padding: 12px 14px; } | ||
.cz-box-body > p:first-child { margin-top: 0; } | |||
.cz- | /* 標題下的小分組(例如「困難模式之前」) */ | ||
.cz-sub { font-weight: 700; color: var(--cz-blue-dark); margin: 10px 0 6px; } | |||
.cz-sub:first-child { margin-top: 0; } | |||
.cz-cols { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } | |||
.cz-cols-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); } | |||
/* 圖示+名稱 */ | |||
border: | .cz-link { display: flex; align-items: center; gap: 6px; min-height: 30px; line-height: 1.3; } | ||
.cz-link .cz-icon { flex: 0 0 32px; display: flex; justify-content: center; align-items: center; height: 32px; } | |||
.cz-link .cz-icon img { max-width: 32px; max-height: 32px; width: auto; height: auto; } | |||
.cz-link .cz-en { display: block; color: var(--cz-text-muted); font-size: .78em; } | |||
/* ---------- 首頁頂部歡迎區 ---------- */ | |||
.cz-welcome { | |||
background: var(--cz-paper); border: 3px solid var(--cz-blue); border-radius: 12px; | |||
text-align: center; padding: 18px 20px 16px; display: grid; gap: 6px; | |||
} | } | ||
.cz- | .cz-welcome-title { font-size: 1.7em; font-weight: 700; color: var(--cz-blue-dark); } | ||
.cz- | .cz-welcome-sub { color: var(--cz-text-muted); } | ||
.cz- | .cz-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: .95em; } | ||
.cz- | .cz-welcome-stats b { color: var(--cz-blue); font-variant-numeric: tabular-nums; } | ||
/* 首頁搜尋框(InputBox) */ | |||
.cz-search .mw-inputbox-centered { margin: 0; text-align: left; display: block; } | .cz-search .mw-inputbox-centered { margin: 0; text-align: left; display: block; } | ||
.cz-search form { width: 100%; max-width: | .cz-search form { width: 100%; max-width: 640px; margin: 6px auto 0; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; } | ||
.cz-search form br, | .cz-search form br, | ||
.cz-search input[name="fulltext"] { display: none; } | .cz-search input[name="fulltext"] { display: none; } | ||
| 第52行: | 第74行: | ||
.cz-search .cdx-text-input__input { | .cz-search .cdx-text-input__input { | ||
width: 100% !important; max-width: none; box-sizing: border-box; min-height: 40px; font-size: 1em; | width: 100% !important; max-width: none; box-sizing: border-box; min-height: 40px; font-size: 1em; | ||
background: | background: #fff; color: var(--cz-text); border: 2px solid var(--cz-blue); border-radius: 8px; | ||
} | } | ||
.cz-search input[name="go"] { | .cz-search input[name="go"] { | ||
min-height: 40px; padding: 0 | min-height: 40px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer; | ||
background: var(--cz- | background: var(--cz-blue); color: #fff; font-weight: 700; | ||
} | } | ||
.cz- | /* 首頁 MOD 卡片 */ | ||
.cz-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } | |||
.cz-mod { | |||
background: #fff; border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-mod, var(--cz-blue)); | |||
border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; | |||
} | } | ||
.cz-mod:hover { border-color: var(--cz-blue); border-left-color: var(--cz-mod, var(--cz-blue)); } | |||
.cz-mod-title { font-size: 1.15em; font-weight: 700; display: flex; align-items: center; gap: 6px; } | |||
.cz-mod-en { color: var(--cz-text-muted); font-size: .8em; } | |||
.cz-mod-desc { font-size: .9em; line-height: 1.55; } | |||
.cz-mod-calamity { --cz-mod: #c0392b; } | |||
.cz-mod-fables { --cz-mod: #d4a020; } | |||
.cz-mod-wotg { --cz-mod: #7b4fd0; } | |||
.cz-mod-hunt { --cz-mod: #d0458f; } | |||
.cz-mod-catalyst { --cz-mod: #1f9bb5; } | |||
.cz-mod-vanities { --cz-mod: #3c9a4e; } | |||
.cz- | .cz-note { color: var(--cz-text-muted); font-size: .88em; line-height: 1.6; text-align: center; } | ||
.cz- | |||
background: var(--cz- | /* ---------- MOD 分頁頂端的資訊框(Template:MOD資訊) ---------- */ | ||
padding: 14px | .cz-modinfo { | ||
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; | |||
padding: 14px 18px; margin: 0 0 1em; display: grid; gap: 6px; | |||
} | } | ||
.cz- | .cz-modinfo-en { color: var(--cz-text-muted); font-size: .9em; letter-spacing: .03em; } | ||
.cz- | .cz-modinfo-desc { line-height: 1.7; max-width: 75ch; } | ||
.cz- | .cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; } | ||
/* ---------- Boss 方格 ---------- */ | |||
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; } | |||
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax( | |||
.cz-boss { | .cz-boss { | ||
background: | background: #fff; border: 2px solid var(--cz-line-soft); border-radius: 8px; | ||
padding: 8px | padding: 6px 8px; line-height: 1.3; display: flex; align-items: center; gap: 8px; | ||
} | } | ||
.cz-boss:hover { border-color: var(--cz-blue); } | |||
.cz-boss .cz-icon { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; } | |||
.cz-boss .cz-icon img { max-width: 40px; max-height: 40px; width: auto; height: auto; } | |||
.cz-boss-zh { font-weight: 700; display: block; } | .cz-boss-zh { font-weight: 700; display: block; } | ||
.cz-boss-en { color: var(--cz-muted); font-size: .78em; display: block; } | .cz-boss-en { color: var(--cz-text-muted); font-size: .78em; display: block; } | ||
.cz-boss.cz-super { border-color: | .cz-boss.cz-super { border-color: #7b4fd0; } | ||
/* 沒有圖示的 Boss 格(附加 MOD):中英文上下排 */ | |||
.cz-boss { flex-wrap: wrap; } | |||
.cz-boss > .cz-boss-zh, .cz-boss > .cz-boss-en { flex-basis: 100%; } | |||
/* | |||
.cz- | |||
.cz- | |||
.cz- | |||
.cz- | |||
.cz- | |||
/* | /* ---------- 物品清單表格(由 build_wiki_pages.py 產生) ---------- */ | ||
.cz-itemtable td:first-child { text-align: center; width: 56px; } | |||
.cz-itemtable img { max-width: 48px; max-height: 48px; width: auto; height: auto; } | |||
. | |||
.cz- | |||
.cz- | |||
/* | /* ---------- 來源標註框(Template:來源) ---------- */ | ||
.cz-source { | .cz-source { | ||
border: | border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-blue); border-radius: 6px; | ||
padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: | padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: #f6f8fd; | ||
} | } | ||
.cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; } | .cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; } | ||
2026年10月12日 (一) 03:35的版本
/* 災厄繁中 Wiki 全站元件樣式(cz-*)
配色取自翻譯 MOD 圖示:米色 #f5ebd2、藍 #285abe、白。外框版型在 MediaWiki:Vector.css。 */
:root {
--cz-blue: #285abe;
--cz-blue-dark: #1b3f8a;
--cz-blue-soft: #dfe7f7;
--cz-cream: #f5ebd2;
--cz-paper: #fffdf8;
--cz-line-soft: #c7d3ec;
--cz-text: #1f2a40;
--cz-text-muted: #5c6782;
}
/* 像素畫圖示放大時保持清晰 */
.cz-icon img, .cz-box img, .cz-itemtable img, .cz-boss img, .cz-modinfo img { image-rendering: pixelated; }
/* 首頁不顯示「首頁」大標題 */
body.page-首頁 .mw-first-heading,
body.page-首頁 .firstHeading,
body.page-首頁 #siteSub { display: none; }
/* ---------- 方框(仿 wiki.gg 首頁的區塊) ---------- */
.cz-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, 1fr); }
.cz-span-12 { grid-column: span 12; }
.cz-span-8 { grid-column: span 8; }
.cz-span-7 { grid-column: span 7; }
.cz-span-6 { grid-column: span 6; }
.cz-span-5 { grid-column: span 5; }
.cz-span-4 { grid-column: span 4; }
@media (max-width: 1100px) { .cz-grid > * { grid-column: span 12; } }
.cz-box {
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
overflow: hidden; min-width: 0;
}
.cz-box-head {
position: relative; background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em;
text-align: center; padding: 8px 48px; letter-spacing: .04em;
}
.cz-box-head a, .cz-box-head a:visited { color: #fff; }
.cz-box-head .cz-box-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); line-height: 0; }
.cz-box-body { padding: 12px 14px; }
.cz-box-body > p:first-child { margin-top: 0; }
/* 標題下的小分組(例如「困難模式之前」) */
.cz-sub { font-weight: 700; color: var(--cz-blue-dark); margin: 10px 0 6px; }
.cz-sub:first-child { margin-top: 0; }
.cz-cols { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.cz-cols-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
/* 圖示+名稱 */
.cz-link { display: flex; align-items: center; gap: 6px; min-height: 30px; line-height: 1.3; }
.cz-link .cz-icon { flex: 0 0 32px; display: flex; justify-content: center; align-items: center; height: 32px; }
.cz-link .cz-icon img { max-width: 32px; max-height: 32px; width: auto; height: auto; }
.cz-link .cz-en { display: block; color: var(--cz-text-muted); font-size: .78em; }
/* ---------- 首頁頂部歡迎區 ---------- */
.cz-welcome {
background: var(--cz-paper); border: 3px solid var(--cz-blue); border-radius: 12px;
text-align: center; padding: 18px 20px 16px; display: grid; gap: 6px;
}
.cz-welcome-title { font-size: 1.7em; font-weight: 700; color: var(--cz-blue-dark); }
.cz-welcome-sub { color: var(--cz-text-muted); }
.cz-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: .95em; }
.cz-welcome-stats b { color: var(--cz-blue); font-variant-numeric: tabular-nums; }
/* 首頁搜尋框(InputBox) */
.cz-search .mw-inputbox-centered { margin: 0; text-align: left; display: block; }
.cz-search form { width: 100%; max-width: 640px; margin: 6px auto 0; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.cz-search form br,
.cz-search input[name="fulltext"] { display: none; }
.cz-search .cdx-text-input { flex: 1 1 260px; min-width: 0; display: block; }
.cz-search .cdx-text-input__input {
width: 100% !important; max-width: none; box-sizing: border-box; min-height: 40px; font-size: 1em;
background: #fff; color: var(--cz-text); border: 2px solid var(--cz-blue); border-radius: 8px;
}
.cz-search input[name="go"] {
min-height: 40px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
background: var(--cz-blue); color: #fff; font-weight: 700;
}
/* 首頁 MOD 卡片 */
.cz-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.cz-mod {
background: #fff; border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-mod, var(--cz-blue));
border-radius: 8px; padding: 10px 12px; display: grid; gap: 2px; align-content: start;
}
.cz-mod:hover { border-color: var(--cz-blue); border-left-color: var(--cz-mod, var(--cz-blue)); }
.cz-mod-title { font-size: 1.15em; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.cz-mod-en { color: var(--cz-text-muted); font-size: .8em; }
.cz-mod-desc { font-size: .9em; line-height: 1.55; }
.cz-mod-calamity { --cz-mod: #c0392b; }
.cz-mod-fables { --cz-mod: #d4a020; }
.cz-mod-wotg { --cz-mod: #7b4fd0; }
.cz-mod-hunt { --cz-mod: #d0458f; }
.cz-mod-catalyst { --cz-mod: #1f9bb5; }
.cz-mod-vanities { --cz-mod: #3c9a4e; }
.cz-note { color: var(--cz-text-muted); font-size: .88em; line-height: 1.6; text-align: center; }
/* ---------- MOD 分頁頂端的資訊框(Template:MOD資訊) ---------- */
.cz-modinfo {
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
padding: 14px 18px; margin: 0 0 1em; display: grid; gap: 6px;
}
.cz-modinfo-en { color: var(--cz-text-muted); font-size: .9em; letter-spacing: .03em; }
.cz-modinfo-desc { line-height: 1.7; max-width: 75ch; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }
/* ---------- Boss 方格 ---------- */
.cz-bossgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.cz-boss {
background: #fff; border: 2px solid var(--cz-line-soft); border-radius: 8px;
padding: 6px 8px; line-height: 1.3; display: flex; align-items: center; gap: 8px;
}
.cz-boss:hover { border-color: var(--cz-blue); }
.cz-boss .cz-icon { flex: 0 0 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.cz-boss .cz-icon img { max-width: 40px; max-height: 40px; width: auto; height: auto; }
.cz-boss-zh { font-weight: 700; display: block; }
.cz-boss-en { color: var(--cz-text-muted); font-size: .78em; display: block; }
.cz-boss.cz-super { border-color: #7b4fd0; }
/* 沒有圖示的 Boss 格(附加 MOD):中英文上下排 */
.cz-boss { flex-wrap: wrap; }
.cz-boss > .cz-boss-zh, .cz-boss > .cz-boss-en { flex-basis: 100%; }
/* ---------- 物品清單表格(由 build_wiki_pages.py 產生) ---------- */
.cz-itemtable td:first-child { text-align: center; width: 56px; }
.cz-itemtable img { max-width: 48px; max-height: 48px; width: auto; height: auto; }
/* ---------- 來源標註框(Template:來源) ---------- */
.cz-source {
border: 2px solid var(--cz-line-soft); border-left: 6px solid var(--cz-blue); border-radius: 6px;
padding: 8px 12px; margin: 0 0 1em; font-size: .92em; background: #f6f8fd;
}
.cz-en { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }