MediaWiki:Common.css - 逸剑风云决Wiki
外观
更新站点样式 |
更新首页与关于页样式 |
||
| 第98行: | 第98行: | ||
gap: 14px; | gap: 14px; | ||
margin: 10px 0 20px; | margin: 10px 0 20px; | ||
} | |||
.wiki-home-tasks { | |||
display: grid; | |||
grid-template-columns: repeat(3, minmax(0, 1fr)); | |||
gap: 12px; | |||
margin: 10px 0 20px; | |||
} | |||
.wiki-home-tasks div { | |||
border: 1px solid #dec493; | |||
border-radius: 8px; | |||
background: #fffdf8; | |||
padding: 14px 16px; | |||
} | |||
.wiki-home-tasks strong { | |||
display: block; | |||
color: #5c4033; | |||
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: 700; | |||
margin-top: 8px; | |||
} | } | ||
.wiki-home-card { | .wiki-home-card { | ||
| 第145行: | 第175行: | ||
line-height: 1.75; | line-height: 1.75; | ||
margin: 0 0 10px; | 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 #dec493; | |||
border-radius: 8px; | |||
background: #fffdf8; | |||
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: #5c4033; | |||
margin-bottom: 6px; | |||
} | |||
.wiki-about-contact span { | |||
display: block; | |||
line-height: 1.65; | |||
} | } | ||
| 第207行: | 第283行: | ||
.wiki-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } | .wiki-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } | ||
.wiki-home-grid, | .wiki-home-grid, | ||
.wiki-home-index { grid-template-columns: 1fr; } | .wiki-home-index, | ||
.wiki-home-tasks, | |||
.wiki-about-grid, | |||
.wiki-about-contact { grid-template-columns: 1fr; } | |||
} | } | ||
2026年6月4日 (四) 00:39的版本
/* 逸剑风云决 Wiki 站点样式 v3 */
/* ---- 全局 ---- */
.wiki-hero {
background: linear-gradient(135deg, #fdf8ef 0%, #f5ead5 100%);
border: 1px solid #c8a165;
border-radius: 6px;
padding: 1em 1.2em;
margin-bottom: 1.2em;
line-height: 1.6;
}
.wiki-footer {
font-size: 85%;
color: #777;
text-align: center;
margin-top: 2em;
padding-top: 0.8em;
}
.wiki-nav {
border-radius: 4px;
overflow: hidden;
}
/* ---- 首页 ---- */
.wiki-home-hero {
background: linear-gradient(135deg, #2f241d 0%, #5c4033 55%, #8b6914 100%);
border-radius: 8px;
color: #fff;
padding: 26px 30px;
margin: 0 0 18px;
box-shadow: 0 4px 16px rgba(47,36,29,0.18);
}
.wiki-home-eyebrow {
color: #f5d99a;
font-size: 92%;
font-weight: 700;
margin-bottom: 8px;
}
.wiki-home-title {
font-size: 220%;
line-height: 1.2;
font-weight: 800;
margin-bottom: 10px;
}
.wiki-home-summary {
max-width: 840px;
line-height: 1.8;
color: #fff8e8;
}
.wiki-home-actions {
margin-top: 16px;
}
.wiki-home-actions a {
display: inline-block;
background: #fdf8ef;
color: #4a3328 !important;
border: 1px solid #f5d99a;
border-radius: 6px;
padding: 7px 12px;
margin: 0 8px 8px 0;
font-weight: 700;
text-decoration: none;
}
.wiki-home-actions a:hover {
background: #fff4d7;
text-decoration: none;
}
.wiki-home-stats {
display: grid;
grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 10px;
margin: 0 0 20px;
}
.wiki-home-stats div {
background: #fdf8ef;
border: 1px solid #e2c891;
border-radius: 7px;
padding: 12px 10px;
text-align: center;
}
.wiki-home-stats strong {
display: block;
color: #5c4033;
font-size: 150%;
line-height: 1.2;
}
.wiki-home-stats span {
display: block;
color: #6f6258;
font-size: 88%;
margin-top: 3px;
}
.wiki-home-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
margin: 10px 0 20px;
}
.wiki-home-tasks {
display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 12px;
margin: 10px 0 20px;
}
.wiki-home-tasks div {
border: 1px solid #dec493;
border-radius: 8px;
background: #fffdf8;
padding: 14px 16px;
}
.wiki-home-tasks strong {
display: block;
color: #5c4033;
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: 700;
margin-top: 8px;
}
.wiki-home-card {
border: 1px solid #dec493;
border-radius: 8px;
background: #fffdf8;
padding: 16px 18px;
}
.wiki-home-card-title {
color: #5c4033;
font-size: 120%;
font-weight: 800;
margin-bottom: 8px;
}
.wiki-home-card p {
color: #4f463f;
line-height: 1.7;
margin: 0 0 10px;
}
.wiki-home-links {
color: #8b6914;
font-weight: 700;
line-height: 1.8;
}
.wiki-home-index {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 18px;
margin: 8px 0 18px;
}
.wiki-home-index > div,
.wiki-home-note {
background: #faf6f0;
border: 1px solid #e2d3bd;
border-radius: 8px;
padding: 14px 18px;
}
.wiki-home-index h3 {
color: #5c4033;
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 #dec493;
border-radius: 8px;
background: #fffdf8;
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: #5c4033;
margin-bottom: 6px;
}
.wiki-about-contact span {
display: block;
line-height: 1.65;
}
/* ---- 信息框 ---- */
.infobox {
border: 2px solid #8b6914 !important;
background: #fdf8ef;
box-shadow: 0 2px 8px rgba(0,0,0,0.08);
border-radius: 4px;
}
.infobox th {
background: #f0ebe3 !important;
}
/* ---- 表格 ---- */
.wikitable {
border-collapse: collapse;
margin: 0.5em 0 1em;
}
.wikitable.sortable th {
background: #5c4033;
color: #fff;
cursor: pointer;
padding: 6px 10px;
}
.wikitable.sortable th:hover {
background: #7a5538;
}
.wikitable td {
padding: 5px 8px;
vertical-align: middle;
}
.wikitable.sortable tr:nth-child(even) {
background: #faf6f0;
}
.wikitable.sortable tr:hover {
background: #f0ead8;
}
/* ---- 品质色标 ---- */
.quality-white { color: #888; 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: #cc6600; font-weight: bold; }
.quality-darkgold { color: #996600; font-weight: bold; }
.quality-red { color: #cc2222; font-weight: bold; }
.quality-gold { color: #b8860b; 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 { font-size: 90%; }
.wiki-nav td { font-size: 85% !important; padding: 4px 2px !important; }
.wiki-home-hero { padding: 20px 18px; }
.wiki-home-title { font-size: 180%; }
.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; }
}