MediaWiki:Common.css - 逸剑风云决Wiki
外观
导入站点样式 |
更新站点样式 |
||
| (未显示同一用户的3个中间版本) | |||
| 第1行: | 第1行: | ||
/* 逸剑风云决 Wiki | /* 逸剑风云决 Wiki 站点样式 v4 */ | ||
:root { | |||
--yj-ink: #2d2a26; | |||
--yj-muted: #6f6258; | |||
--yj-panel: #fffdf8; | |||
--yj-paper: #faf6f0; | |||
--yj-line: #dec493; | |||
--yj-line-soft: #eadcc8; | |||
--yj-brand: #5c4033; | |||
--yj-brand-dark: #2f241d; | |||
--yj-accent: #8b6914; | |||
--yj-gold: #f5d99a; | |||
--yj-link: #7a4d12; | |||
} | |||
/* ---- 全局 ---- */ | |||
#content, | |||
.mw-body { | |||
color: var(--yj-ink); | |||
} | |||
.mw-parser-output a { | |||
color: var(--yj-link); | |||
text-decoration-thickness: 1px; | |||
text-underline-offset: 2px; | |||
} | |||
.mw-parser-output a:hover { | |||
color: #4e330d; | |||
} | |||
.mw-parser-output h1, | |||
.mw-parser-output h2 { | |||
border-bottom-color: var(--yj-line-soft); | |||
} | |||
.mw-parser-output h2 { | |||
margin-top: 1.25em; | |||
} | |||
.wiki-hero { | |||
background: linear-gradient(135deg, #fffaf2 0%, #f5ead5 100%); | |||
border: 1px solid #c8a165; | |||
border-radius: 8px; | |||
padding: 1em 1.2em; | |||
margin-bottom: 1.2em; | |||
line-height: 1.7; | |||
} | |||
.wiki-footer { | |||
font-size: 85%; | |||
color: #777; | |||
text-align: center; | |||
margin-top: 2em; | |||
padding-top: 0.8em; | |||
} | |||
.wiki-nav { | |||
border-radius: 8px; | |||
overflow: hidden; | |||
box-shadow: 0 1px 5px rgba(47, 36, 29, 0.08); | |||
} | |||
.wiki-nav a { | |||
font-weight: 700; | |||
} | |||
/* ---- 首页 ---- */ | |||
.wiki-home-hero { | |||
position: relative; | |||
overflow: hidden; | |||
background: | |||
radial-gradient(circle at 88% 14%, rgba(245, 217, 154, 0.26), transparent 28%), | |||
linear-gradient(135deg, #2f241d 0%, #5c4033 58%, #8b6914 100%); | |||
border-radius: 8px; | |||
color: #fff; | |||
padding: 30px 34px; | |||
margin: 0 0 18px; | |||
box-shadow: 0 6px 20px rgba(47, 36, 29, 0.18); | |||
} | |||
.wiki-home-eyebrow { | |||
color: var(--yj-gold); | |||
font-size: 92%; | |||
font-weight: 800; | |||
margin-bottom: 8px; | |||
} | |||
.wiki-home-title { | |||
max-width: 860px; | |||
font-size: 220%; | |||
line-height: 1.22; | |||
font-weight: 850; | |||
margin-bottom: 10px; | |||
} | |||
.wiki-home-summary { | |||
max-width: 880px; | |||
line-height: 1.85; | |||
color: #fff8e8; | |||
} | |||
.wiki-home-actions { | |||
margin-top: 18px; | |||
} | |||
.wiki-home-actions a { | |||
display: inline-block; | |||
background: #fff8e8; | |||
color: #4a3328 !important; | |||
border: 1px solid var(--yj-gold); | |||
border-radius: 6px; | |||
padding: 8px 13px; | |||
margin: 0 8px 8px 0; | |||
font-weight: 800; | |||
text-decoration: none; | |||
} | |||
.wiki-home-actions a:hover { | |||
background: #fff0c9; | |||
text-decoration: none; | |||
} | |||
.wiki-home-stats { | |||
display: grid; | |||
grid-template-columns: repeat(6, minmax(0, 1fr)); | |||
gap: 10px; | |||
margin: 0 0 22px; | |||
} | |||
.wiki-home-stats div { | |||
background: linear-gradient(180deg, #fffdf8 0%, #f8efe2 100%); | |||
border: 1px solid #e2c891; | |||
border-radius: 8px; | |||
padding: 13px 10px; | |||
text-align: center; | |||
} | |||
.wiki-home-stats strong { | |||
display: block; | |||
color: var(--yj-brand); | |||
font-size: 150%; | |||
line-height: 1.2; | |||
} | |||
.wiki-home-stats span { | |||
display: block; | |||
color: var(--yj-muted); | |||
font-size: 88%; | |||
margin-top: 3px; | |||
} | |||
.wiki-home-grid, | |||
.wiki-home-tasks, | |||
.wiki-home-index { | |||
display: grid; | |||
gap: 14px; | |||
} | |||
.wiki-home-grid, | |||
.wiki-home-index { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
margin: 10px 0 20px; | |||
} | |||
.wiki-home-tasks { | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
margin: 10px 0 20px; | |||
} | |||
.wiki-home-tasks div, | |||
.wiki-home-card, | |||
.wiki-home-index > div, | |||
.wiki-home-note { | |||
border: 1px solid var(--yj-line); | |||
border-radius: 8px; | |||
background: var(--yj-panel); | |||
box-shadow: 0 1px 8px rgba(47, 36, 29, 0.06); | |||
} | |||
.wiki-home-tasks div { | |||
padding: 15px 16px; | |||
} | |||
.wiki-home-tasks strong { | |||
display: block; | |||
color: var(--yj-brand); | |||
font-size: 112%; | |||
margin-bottom: 6px; | |||
} | |||
.wiki-home-tasks span { | |||
display: block; | |||
color: #4f463f; | |||
line-height: 1.65; | |||
min-height: 3.2em; | |||
} | |||
.wiki-home-tasks em { | |||
display: block; | |||
font-style: normal; | |||
font-weight: 800; | |||
margin-top: 9px; | |||
} | |||
.wiki-home-card { | |||
padding: 17px 18px; | |||
} | |||
.wiki-home-card-title { | |||
color: var(--yj-brand); | |||
font-size: 120%; | |||
font-weight: 850; | |||
margin-bottom: 8px; | |||
} | |||
.wiki-home-card p { | |||
color: #4f463f; | |||
line-height: 1.75; | |||
margin: 0 0 10px; | |||
} | |||
.wiki-home-links { | |||
color: var(--yj-accent); | |||
font-weight: 800; | |||
line-height: 1.9; | |||
} | |||
.wiki-home-index > div, | |||
.wiki-home-note { | |||
background: var(--yj-paper); | |||
border-color: #e2d3bd; | |||
padding: 15px 18px; | |||
} | |||
.wiki-home-index h3 { | |||
color: var(--yj-brand); | |||
margin-top: 0; | |||
} | |||
.wiki-home-index li { | |||
margin: 6px 0; | |||
line-height: 1.65; | |||
} | |||
.wiki-home-note p { | |||
line-height: 1.75; | |||
margin: 0 0 10px; | |||
} | |||
/* ---- 关于页 ---- */ | |||
.wiki-about-hero { | |||
background: linear-gradient(135deg, #2f241d 0%, #5c4033 58%, #8b6914 100%); | |||
border-radius: 8px; | |||
color: #fff; | |||
padding: 24px 28px; | |||
margin: 0 0 18px; | |||
} | |||
.wiki-about-grid { | |||
display: grid; | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
gap: 14px; | |||
margin: 10px 0 18px; | |||
} | |||
.wiki-about-card, | |||
.wiki-about-section, | |||
.wiki-about-contact { | |||
border: 1px solid var(--yj-line); | |||
border-radius: 8px; | |||
background: var(--yj-panel); | |||
padding: 15px 18px; | |||
} | |||
.wiki-about-card p, | |||
.wiki-about-section p, | |||
.wiki-about-section li { | |||
color: #4f463f; | |||
line-height: 1.75; | |||
} | |||
.wiki-about-section ul { | |||
margin: 0.2em 0 0.2em 1.4em; | |||
} | |||
.wiki-about-contact { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: 12px; | |||
} | |||
.wiki-about-contact strong { | |||
display: block; | |||
color: var(--yj-brand); | |||
margin-bottom: 6px; | |||
} | |||
.wiki-about-contact span { | |||
display: block; | |||
line-height: 1.65; | |||
} | |||
/* ---- 信息框 ---- */ | |||
.infobox { | .infobox { | ||
border: 2px solid | border: 2px solid var(--yj-accent) !important; | ||
background: # | background: #fffaf2; | ||
box-shadow: 0 2px | box-shadow: 0 2px 10px rgba(47, 36, 29, 0.1); | ||
border-radius: 6px; | |||
} | } | ||
.infobox th { | .infobox th { | ||
background: #f0ebe3 !important; | background: #f0ebe3 !important; | ||
} | } | ||
.infobox img { | |||
border-radius: 4px; | |||
} | |||
/* ---- 表格 ---- */ | |||
.wikitable { | |||
border-collapse: collapse; | |||
margin: 0.6em 0 1em; | |||
background: #fff; | |||
} | |||
.wikitable th, | |||
.wikitable td { | |||
border-color: #d9c8ae; | |||
} | |||
.wikitable.sortable th { | .wikitable.sortable th { | ||
background: | background: var(--yj-brand); | ||
color: #fff; | color: #fff; | ||
cursor: pointer; | |||
padding: 7px 10px; | |||
} | |||
.wikitable.sortable th:hover { | |||
background: #7a5538; | |||
} | |||
.wikitable td { | |||
padding: 6px 8px; | |||
vertical-align: middle; | |||
} | |||
.wikitable.sortable tr:nth-child(even) { | |||
background: #faf6f0; | |||
} | |||
.wikitable.sortable tr:hover { | |||
background: #f0ead8; | |||
} | |||
/* ---- 品质色标 ---- */ | |||
.quality-white { color: #777; font-weight: bold; } | |||
.quality-green { color: #2e8b2e; font-weight: bold; } | |||
.quality-blue { color: #2266cc; font-weight: bold; } | |||
.quality-purple { color: #8833aa; font-weight: bold; } | |||
.quality-orange { color: #c05f00; font-weight: bold; } | |||
.quality-darkgold { color: #8a6500; font-weight: bold; } | |||
.quality-red { color: #c42121; font-weight: bold; } | |||
.quality-gold { color: #a67500; font-weight: bold; } | |||
.quality-default { font-weight: bold; } | |||
/* ---- 移动端 ---- */ | |||
@media (max-width: 768px) { | |||
.infobox { | |||
float: none !important; | |||
width: 100% !important; | |||
margin: 0 0 1em 0 !important; | |||
} | |||
.wikitable { | |||
display: block; | |||
width: 100%; | |||
overflow-x: auto; | |||
font-size: 90%; | |||
} | |||
.wiki-nav td { | |||
font-size: 85% !important; | |||
padding: 4px 2px !important; | |||
} | |||
.wiki-home-hero { | |||
padding: 22px 18px; | |||
} | |||
.wiki-home-title { | |||
font-size: 175%; | |||
} | |||
.wiki-home-actions a { | |||
display: block; | |||
text-align: center; | |||
margin-right: 0; | |||
} | |||
.wiki-home-stats { | |||
grid-template-columns: repeat(2, minmax(0, 1fr)); | |||
} | |||
.wiki-home-grid, | |||
.wiki-home-index, | |||
.wiki-home-tasks, | |||
.wiki-about-grid, | |||
.wiki-about-contact { | |||
grid-template-columns: 1fr; | |||
} | |||
.wiki-home-tasks span { | |||
min-height: 0; | |||
} | |||
} | } | ||
2026年6月4日 (四) 15:12的最新版本
/* 逸剑风云决 Wiki 站点样式 v4 */
:root {
--yj-ink: #2d2a26;
--yj-muted: #6f6258;
--yj-panel: #fffdf8;
--yj-paper: #faf6f0;
--yj-line: #dec493;
--yj-line-soft: #eadcc8;
--yj-brand: #5c4033;
--yj-brand-dark: #2f241d;
--yj-accent: #8b6914;
--yj-gold: #f5d99a;
--yj-link: #7a4d12;
}
/* ---- 全局 ---- */
#content,
.mw-body {
color: var(--yj-ink);
}
.mw-parser-output a {
color: var(--yj-link);
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.mw-parser-output a:hover {
color: #4e330d;
}
.mw-parser-output h1,
.mw-parser-output h2 {
border-bottom-color: var(--yj-line-soft);
}
.mw-parser-output h2 {
margin-top: 1.25em;
}
.wiki-hero {
background: linear-gradient(135deg, #fffaf2 0%, #f5ead5 100%);
border: 1px solid #c8a165;
border-radius: 8px;
padding: 1em 1.2em;
margin-bottom: 1.2em;
line-height: 1.7;
}
.wiki-footer {
font-size: 85%;
color: #777;
text-align: center;
margin-top: 2em;
padding-top: 0.8em;
}
.wiki-nav {
border-radius: 8px;
overflow: hidden;
box-shadow: 0 1px 5px rgba(47, 36, 29, 0.08);
}
.wiki-nav a {
font-weight: 700;
}
/* ---- 首页 ---- */
.wiki-home-hero {
position: relative;
overflow: hidden;
background:
radial-gradient(circle at 88% 14%, rgba(245, 217, 154, 0.26), transparent 28%),
linear-gradient(135deg, #2f241d 0%, #5c4033 58%, #8b6914 100%);
border-radius: 8px;
color: #fff;
padding: 30px 34px;
margin: 0 0 18px;
box-shadow: 0 6px 20px rgba(47, 36, 29, 0.18);
}
.wiki-home-eyebrow {
color: var(--yj-gold);
font-size: 92%;
font-weight: 800;
margin-bottom: 8px;
}
.wiki-home-title {
max-width: 860px;
font-size: 220%;
line-height: 1.22;
font-weight: 850;
margin-bottom: 10px;
}
.wiki-home-summary {
max-width: 880px;
line-height: 1.85;
color: #fff8e8;
}
.wiki-home-actions {
margin-top: 18px;
}
.wiki-home-actions a {
display: inline-block;
background: #fff8e8;
color: #4a3328 !important;
border: 1px solid var(--yj-gold);
border-radius: 6px;
padding: 8px 13px;
margin: 0 8px 8px 0;
font-weight: 800;
text-decoration: none;
}
.wiki-home-actions a:hover {
background: #fff0c9;
text-decoration: none;
}
.wiki-home-stats {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 10px;
margin: 0 0 22px;
}
.wiki-home-stats div {
background: linear-gradient(180deg, #fffdf8 0%, #f8efe2 100%);
border: 1px solid #e2c891;
border-radius: 8px;
padding: 13px 10px;
text-align: center;
}
.wiki-home-stats strong {
display: block;
color: var(--yj-brand);
font-size: 150%;
line-height: 1.2;
}
.wiki-home-stats span {
display: block;
color: var(--yj-muted);
font-size: 88%;
margin-top: 3px;
}
.wiki-home-grid,
.wiki-home-tasks,
.wiki-home-index {
display: grid;
gap: 14px;
}
.wiki-home-grid,
.wiki-home-index {
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 10px 0 20px;
}
.wiki-home-tasks {
grid-template-columns: repeat(3, minmax(0, 1fr));
margin: 10px 0 20px;
}
.wiki-home-tasks div,
.wiki-home-card,
.wiki-home-index > div,
.wiki-home-note {
border: 1px solid var(--yj-line);
border-radius: 8px;
background: var(--yj-panel);
box-shadow: 0 1px 8px rgba(47, 36, 29, 0.06);
}
.wiki-home-tasks div {
padding: 15px 16px;
}
.wiki-home-tasks strong {
display: block;
color: var(--yj-brand);
font-size: 112%;
margin-bottom: 6px;
}
.wiki-home-tasks span {
display: block;
color: #4f463f;
line-height: 1.65;
min-height: 3.2em;
}
.wiki-home-tasks em {
display: block;
font-style: normal;
font-weight: 800;
margin-top: 9px;
}
.wiki-home-card {
padding: 17px 18px;
}
.wiki-home-card-title {
color: var(--yj-brand);
font-size: 120%;
font-weight: 850;
margin-bottom: 8px;
}
.wiki-home-card p {
color: #4f463f;
line-height: 1.75;
margin: 0 0 10px;
}
.wiki-home-links {
color: var(--yj-accent);
font-weight: 800;
line-height: 1.9;
}
.wiki-home-index > div,
.wiki-home-note {
background: var(--yj-paper);
border-color: #e2d3bd;
padding: 15px 18px;
}
.wiki-home-index h3 {
color: var(--yj-brand);
margin-top: 0;
}
.wiki-home-index li {
margin: 6px 0;
line-height: 1.65;
}
.wiki-home-note p {
line-height: 1.75;
margin: 0 0 10px;
}
/* ---- 关于页 ---- */
.wiki-about-hero {
background: linear-gradient(135deg, #2f241d 0%, #5c4033 58%, #8b6914 100%);
border-radius: 8px;
color: #fff;
padding: 24px 28px;
margin: 0 0 18px;
}
.wiki-about-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin: 10px 0 18px;
}
.wiki-about-card,
.wiki-about-section,
.wiki-about-contact {
border: 1px solid var(--yj-line);
border-radius: 8px;
background: var(--yj-panel);
padding: 15px 18px;
}
.wiki-about-card p,
.wiki-about-section p,
.wiki-about-section li {
color: #4f463f;
line-height: 1.75;
}
.wiki-about-section ul {
margin: 0.2em 0 0.2em 1.4em;
}
.wiki-about-contact {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
}
.wiki-about-contact strong {
display: block;
color: var(--yj-brand);
margin-bottom: 6px;
}
.wiki-about-contact span {
display: block;
line-height: 1.65;
}
/* ---- 信息框 ---- */
.infobox {
border: 2px solid var(--yj-accent) !important;
background: #fffaf2;
box-shadow: 0 2px 10px rgba(47, 36, 29, 0.1);
border-radius: 6px;
}
.infobox th {
background: #f0ebe3 !important;
}
.infobox img {
border-radius: 4px;
}
/* ---- 表格 ---- */
.wikitable {
border-collapse: collapse;
margin: 0.6em 0 1em;
background: #fff;
}
.wikitable th,
.wikitable td {
border-color: #d9c8ae;
}
.wikitable.sortable th {
background: var(--yj-brand);
color: #fff;
cursor: pointer;
padding: 7px 10px;
}
.wikitable.sortable th:hover {
background: #7a5538;
}
.wikitable td {
padding: 6px 8px;
vertical-align: middle;
}
.wikitable.sortable tr:nth-child(even) {
background: #faf6f0;
}
.wikitable.sortable tr:hover {
background: #f0ead8;
}
/* ---- 品质色标 ---- */
.quality-white { color: #777; font-weight: bold; }
.quality-green { color: #2e8b2e; font-weight: bold; }
.quality-blue { color: #2266cc; font-weight: bold; }
.quality-purple { color: #8833aa; font-weight: bold; }
.quality-orange { color: #c05f00; font-weight: bold; }
.quality-darkgold { color: #8a6500; font-weight: bold; }
.quality-red { color: #c42121; font-weight: bold; }
.quality-gold { color: #a67500; font-weight: bold; }
.quality-default { font-weight: bold; }
/* ---- 移动端 ---- */
@media (max-width: 768px) {
.infobox {
float: none !important;
width: 100% !important;
margin: 0 0 1em 0 !important;
}
.wikitable {
display: block;
width: 100%;
overflow-x: auto;
font-size: 90%;
}
.wiki-nav td {
font-size: 85% !important;
padding: 4px 2px !important;
}
.wiki-home-hero {
padding: 22px 18px;
}
.wiki-home-title {
font-size: 175%;
}
.wiki-home-actions a {
display: block;
text-align: center;
margin-right: 0;
}
.wiki-home-stats {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wiki-home-grid,
.wiki-home-index,
.wiki-home-tasks,
.wiki-about-grid,
.wiki-about-contact {
grid-template-columns: 1fr;
}
.wiki-home-tasks span {
min-height: 0;
}
}