MediaWiki:Common.css:修訂間差異

出自災厄繁中 Wiki
跳至導覽 跳至搜尋
Dazhi233​(留言 | 貢獻)
從專案原稿更新
Dazhi233​(留言 | 貢獻)
從專案原稿更新
第1行: 第1行:
/* 災厄繁中 Wiki 全站樣式
/* 災厄繁中 Wiki 全站元件樣式(cz-*)
   首頁區塊(cz-*)自帶深色配色,不受白天/夜間模式影響,仿官方災厄 Wiki 的深色風格。 */
   配色取自翻譯 MOD 圖示:米色 #f5ebd2、藍 #285abe、白。外框版型在 MediaWiki:Vector.css。 */


:root {
:root {
--cz-bg: #15121f;
--cz-blue: #285abe;
--cz-panel: #1f1a2e;
--cz-blue-dark: #1b3f8a;
--cz-panel-2: #2a2340;
--cz-blue-soft: #dfe7f7;
--cz-line: #3d3358;
--cz-cream: #f5ebd2;
--cz-ink: #ece8f5;
--cz-paper: #fffdf8;
--cz-muted: #a99fc2;
--cz-line-soft: #c7d3ec;
--cz-accent: #e2543a;     /* 硫火紅 */
--cz-text: #1f2a40;
--cz-gold: #e8b64c;        /* 金源金 */
--cz-text-muted: #5c6782;
--cz-astral: #5fc3d8;     /* 星界青 */
}
}
/* 像素畫圖示放大時保持清晰 */
.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-首頁 #siteSub,
body.page-首頁 .firstHeading,
body.page-首頁 .vector-page-titlebar { display: none; }
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-main {
.cz-box {
background: transparent;
background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px;
color: var(--cz-ink);
overflow: hidden; min-width: 0;
border-radius: 10px;
}
padding: 24px clamp(14px, 3vw, 32px) 28px;
.cz-box-head {
display: grid;
position: relative; background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em;
gap: 22px;
text-align: center; padding: 8px 48px; letter-spacing: .04em;
}
}
.cz-main a { color: var(--cz-gold); }
.cz-box-head a, .cz-box-head a:visited { color: #fff; }
.cz-main a:visited { color: #d6a548; }
.cz-box-head .cz-box-icon { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); line-height: 0; }
.cz-main a.new { color: #e08a7a; }
.cz-box-body { padding: 12px 14px; }
.cz-box-body > p:first-child { margin-top: 0; }


.cz-hero {
/* 標題下的小分組(例如「困難模式之前」) */
border-radius: 8px;
.cz-sub { font-weight: 700; color: var(--cz-blue-dark); margin: 10px 0 6px; }
padding: 26px 22px;
.cz-sub:first-child { margin-top: 0; }
background:
.cz-cols { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
radial-gradient(120% 140% at 0% 0%, rgba(226, 84, 58, .35) 0%, transparent 55%),
.cz-cols-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
radial-gradient(90% 120% at 100% 100%, rgba(95, 195, 216, .22) 0%, transparent 60%),
 
var(--cz-panel);
/* 圖示+名稱 */
border: 1px solid var(--cz-line);
.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-hero-title { font-size: clamp(1.8em, 4vw, 2.4em); font-weight: 700; letter-spacing: .04em; line-height: 1.2; }
.cz-welcome-title { font-size: 1.7em; font-weight: 700; color: var(--cz-blue-dark); }
.cz-hero-sub { color: var(--cz-muted); margin-top: 6px; }
.cz-welcome-sub { color: var(--cz-text-muted); }
.cz-hero-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: .92em; color: var(--cz-muted); }
.cz-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; font-size: .95em; }
.cz-hero-stats b { color: var(--cz-gold); font-variant-numeric: tabular-nums; }
.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: none; display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; }
.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: var(--cz-panel); color: var(--cz-ink); border: 1px solid var(--cz-line); border-radius: 6px;
background: #fff; color: var(--cz-text); border: 2px solid var(--cz-blue); border-radius: 8px;
}
}
.cz-search .cdx-text-input__input::placeholder { color: var(--cz-muted); }
.cz-search input[name="go"] {
.cz-search input[name="go"] {
min-height: 40px; padding: 0 20px; border-radius: 6px; border: 0; cursor: pointer;
min-height: 40px; padding: 0 22px; border-radius: 8px; border: 0; cursor: pointer;
background: var(--cz-accent); color: #fff; font-weight: 700;
background: var(--cz-blue); color: #fff; font-weight: 700;
}
}


.cz-section-title {
/* 首頁 MOD 卡片 */
font-size: 1.15em; font-weight: 700; margin: 0 0 10px;
.cz-mods { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
padding-left: 10px; border-left: 3px solid var(--cz-accent);
.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-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.cz-note { color: var(--cz-text-muted); font-size: .88em; line-height: 1.6; text-align: center; }
.cz-card {
 
background: var(--cz-panel); border: 1px solid var(--cz-line); border-radius: 8px;
/* ---------- MOD 分頁頂端的資訊框(Template:MOD資訊) ---------- */
padding: 14px 16px; display: grid; gap: 4px; align-content: start;
.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-card:hover { border-color: var(--cz-accent); }
.cz-modinfo-en { color: var(--cz-text-muted); font-size: .9em; letter-spacing: .03em; }
.cz-card-title { font-size: 1.1em; font-weight: 700; }
.cz-modinfo-desc { line-height: 1.7; max-width: 75ch; }
.cz-card-desc { color: var(--cz-muted); font-size: .92em; line-height: 1.55; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }


.cz-stage { margin-top: 4px; }
/* ---------- Boss 方格 ---------- */
.cz-stage-name { color: var(--cz-muted); font-size: .85em; letter-spacing: .06em; margin: 10px 0 6px; }
.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(150px, 1fr)); gap: 8px; }
.cz-boss {
.cz-boss {
background: var(--cz-panel-2); border: 1px solid var(--cz-line); border-radius: 6px;
background: #fff; border: 2px solid var(--cz-line-soft); border-radius: 8px;
padding: 8px 10px; line-height: 1.35;
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: var(--cz-astral); }
.cz-boss.cz-super { border-color: #7b4fd0; }
 
/* 沒有圖示的 Boss 格(附加 MOD):中英文上下排 */
.cz-note { color: var(--cz-muted); font-size: .88em; line-height: 1.6; border-top: 1px solid var(--cz-line); padding-top: 14px; }
.cz-boss { flex-wrap: wrap; }
 
.cz-boss > .cz-boss-zh, .cz-boss > .cz-boss-en { flex-basis: 100%; }
/* 首頁「選擇 MOD」卡片:每個 MOD 一條代表色 */
.cz-card-en { color: var(--cz-muted); font-size: .8em; letter-spacing: .02em; }
.cz-mod { border-top: 3px solid var(--cz-mod, var(--cz-accent)); padding-top: 12px; }
.cz-mod-calamity { --cz-mod: #e2543a; }
.cz-mod-fables  { --cz-mod: #e8b64c; }
.cz-mod-wotg    { --cz-mod: #b58cf0; }
.cz-mod-hunt    { --cz-mod: #e05fb0; }
.cz-mod-catalyst { --cz-mod: #5fc3d8; }
.cz-mod-vanities { --cz-mod: #7fcf8a; }
.cz-mods .cz-card-title { font-size: 1.2em; }


/* MOD 分頁頂端的資訊框(Template:MOD資訊) */
/* ---------- 物品清單表格(由 build_wiki_pages.py 產生) ---------- */
.cz-modinfo {
.cz-itemtable td:first-child { text-align: center; width: 56px; }
background: var(--cz-bg); color: var(--cz-ink); border-radius: 10px;
.cz-itemtable img { max-width: 48px; max-height: 48px; width: auto; height: auto; }
padding: 16px 20px; margin: 0 0 1em; border: 1px solid var(--cz-line);
display: grid; gap: 6px;
}
.cz-modinfo a { color: var(--cz-gold); }
.cz-modinfo-en { color: var(--cz-muted); font-size: .9em; letter-spacing: .03em; }
.cz-modinfo-desc { line-height: 1.7; max-width: 70ch; }
.cz-modinfo-links { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .92em; }
.cz-main-hub { margin-bottom: 1em; }


/* 一般頁面:來源標註框(Template:來源) */
/* ---------- 來源標註框(Template:來源) ---------- */
.cz-source {
.cz-source {
border: 1px solid #c9c2d8; border-left: 4px solid #8a6fc0; border-radius: 4px;
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: rgba(138, 111, 192, .08);
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; }