檢視MediaWiki:Common.css的原始碼
←
MediaWiki:Common.css
跳至導覽
跳至搜尋
您沒有權限執行編輯此頁面,由於以下幾個原因:
您請求的操作只有這個群組的使用者能使用:
管理員
本頁用來提供此 Wiki 軟體介面上的文字,並且已被設為保護以防止惡意修改。 如欲增加或修改 Wiki 的翻譯,請至
translatewiki.net
上的 MediaWiki 在地化專案。
您沒有權限來編輯此 CSS 頁面,因為這會影響到所有的網站訪客。
您可以檢視並複製此頁面的原始碼。
/* 災厄繁中 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; } .cz-span-3 { grid-column: span 3; } .cz-span-2 { grid-column: span 2; } @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-grid 裡、直接一個接一個的方框(附加 MOD 首頁的 Boss/敵人/物品)要有間距,跟 cz-grid 的 gap 一樣 */ .mw-parser-output > .cz-box + .cz-box { margin-top: 12px; } .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-head .cz-box-icon img { max-height: 34px; max-width: 44px; width: auto; height: auto; } .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; } /* 很長的項目清單(* 開頭的清單)分成多欄 */ .cz-list-cols { column-width: 15em; column-gap: 1.5em; } .cz-list-cols li { break-inside: avoid; } /* 平衡改動表:加強(綠)、削弱(紅)、不好不壞(黃) */ .cz-buff { color: #1a7f1a; } .cz-nerf { color: #c0392b; } .cz-neutral { color: #8a7a00; } /* 頁首的指路提示(同名的敵人頁在別處) */ .cz-hatnote { color: var(--cz-text-muted); font-size: .92em; font-style: italic; margin: 0 0 .6em 1.2em; } /* ---------- 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; } /* ---------- 道具頁資訊框(Template:物品資訊框) ---------- */ .cz-infobox { float: right; clear: right; width: 300px; max-width: 100%; margin: 0 0 1em 1.4em; background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; overflow: hidden; font-size: .92em; } .cz-infobox-title { background: var(--cz-blue); color: #fff; font-weight: 700; font-size: 1.15em; text-align: center; padding: 8px 10px; } .cz-infobox-en { text-align: center; color: var(--cz-text-muted); font-size: .9em; padding: 4px 8px 0; } .cz-infobox-image { text-align: center; padding: 12px 8px; } .cz-infobox-image img { image-rendering: pixelated; max-width: 260px; height: auto; } .cz-infobox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px; border-top: 1px solid var(--cz-line-soft); } .cz-infobox-table { width: 100%; border-collapse: collapse; } .cz-infobox-table th { width: 32%; text-align: right; vertical-align: top; color: var(--cz-blue-dark); padding: 4px 8px; font-weight: 700; } .cz-infobox-table td { padding: 4px 8px; vertical-align: top; } .cz-infobox-table tr + tr th, .cz-infobox-table tr + tr td { border-top: 1px solid var(--cz-line-soft); } .cz-infobox-tooltip { font-style: italic; line-height: 1.6; } .cz-infobox-foot { text-align: center; padding: 6px; border-top: 1px solid var(--cz-line-soft); font-size: .9em; } @media (max-width: 720px) { .cz-infobox { float: none; width: auto; margin: 0 0 1em; } } /* ---------- 頁尾導覽框(Template:角色導覽,由 build_enemy_pages.py 產生) ---------- */ .cz-navbox { clear: both; margin: 1.5em 0 1em; background: var(--cz-paper); border: 2px solid var(--cz-blue); border-radius: 10px; overflow: hidden; font-size: .92em; } .cz-navbox-title { background: var(--cz-blue); color: #fff; font-weight: 700; text-align: center; padding: 6px 10px; } .cz-navbox-title a, .cz-navbox-title a:visited { color: #fff; text-decoration: underline; } .cz-navbox-sec { border-top: 1px solid var(--cz-line-soft); } .cz-navbox-sec > .mw-collapsible-toggle { float: right; padding: 4px 10px; font-size: .9em; } .cz-navbox-head { background: var(--cz-blue-soft); color: var(--cz-blue-dark); font-weight: 700; text-align: center; padding: 4px 10px; } .cz-navbox-table { width: 100%; border-collapse: collapse; } .cz-navbox-table th { width: 9em; text-align: right; vertical-align: top; white-space: nowrap; padding: 4px 10px; background: #f6f8fd; color: var(--cz-blue-dark); font-weight: 700; border-top: 1px solid var(--cz-line-soft); } .cz-navbox-table th + th { width: 6em; } .cz-navbox-table td { padding: 4px 10px; line-height: 1.7; border-top: 1px solid var(--cz-line-soft); } /* 合成配方表 */ .cz-recipe td { vertical-align: middle; } .cz-recipe-item { display: inline-flex; align-items: center; gap: 4px; } .cz-recipe-item img { image-rendering: pixelated; max-height: 32px; max-width: 32px; width: auto; height: auto; } /* 「Boss 與小 Boss」方框:四欄並排(仿官方首頁) */ .cz-boss-cols { display: grid; gap: 4px 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); align-items: start; } .cz-boss-col .cz-sub { margin-top: 0; } /* 還沒有頁面的項目:灰字 */ .cz-todo, .cz-todo .cz-en { color: #9aa1b2; } /* 物品清單的稀有度色塊(build_wiki_pages.rarity_cell) */ .cz-rarity { display: inline-block; width: .8em; height: .8em; margin-right: .35em; vertical-align: -1px; border: 1px solid rgba(0, 0, 0, .45); border-radius: 2px; } /* 生態域頁的「內容」清單(wiki/biome_infocard.py,仿官方的 infocard) */ .cz-biome { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: var(--cz-paper); margin: .6em 0 1em; overflow: hidden; } .cz-biome-head { background: var(--cz-blue); color: #fff; font-weight: bold; text-align: left; padding: 4px 10px; } .cz-biome-group { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; justify-content: flex-start; align-items: stretch; } .cz-biome-box { border: 1px solid var(--cz-line-soft); border-radius: 4px; background: #fff; padding: 6px 10px; max-width: 100%; } .cz-biome-title { font-weight: bold; color: var(--cz-blue-dark); text-align: left; border-bottom: 1px solid var(--cz-line-soft); margin-bottom: 4px; padding-bottom: 2px; font-size: .92em; } .cz-biome-items { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: flex-start; align-items: center; } .cz-biome-note { color: var(--cz-text-muted); font-size: .85em; } .cz-npc img { max-height: 60px; max-width: 150px; height: auto; width: auto; } /* 敵人的圖比物品圖示大;蟲型是整條的長圖(官方清單裡寬 110~150px) */ /* 目次只列到第二層(音樂頁有一百多首曲目,各佔一個小標題) */ .toclimit-3 .toclevel-2 ul { display: none; } /* Boss 頁開頭的紀念牌引言(wiki/boss_text/*.wiki) */ .cz-quote { text-align: center; font-size: 1.15em; font-style: italic; color: var(--cz-blue-dark); margin: .4em 0 .8em; }
返回到「
MediaWiki:Common.css
」。
導覽選單
個人工具
登入
命名空間
系統訊息
討論
English
視圖
閱讀
檢視原始碼
檢視歷史
更多
搜尋
導覽
首頁
用語表
Boss 一覽
遊玩進度
職業配裝
Boss 打法
翻譯 MOD
近期變更
MOD
災厄本體
Calamity Fables
Wrath of the Gods
Hunt of the Old God
Catalyst
災厄的時裝
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊