MediaWiki:Citizen.css:修订间差异
MediaWiki界面页面
更多操作
创建页面,内容为“→这里所有CSS都会加载给Citizen皮肤的用户: →---------------------------------------------------------- 1. Infobox 基础样式 ----------------------------------------------------------: .infobox { width: 300px; float: right; clear: right; margin: 0 0 1em 1.5em; border-collapse: collapse; border: 1px solid var(--border-color-base, #c8ccd1); border-radius: 8px; overflow: hidden; background: var(--color-surface-1, #fff)…” |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* ── 1. 主色调(OKLCH色彩模型) ── */ | ||
:root { | |||
--color-progressive-oklch__h: 301; | |||
--color-progressive-oklch__c: 0.19; | |||
--color-progressive-oklch__l: 45%; | |||
} | } | ||
/* | /* ── 2. 浅色模式 Surface 层级 ── */ | ||
. | .skin-theme-clientpref-day { | ||
--color-surface-0: #F8F6FC; | |||
--color-surface-1: #FFFFFF; | |||
--color-surface-2: #F3F0FF; | |||
--color-surface-3: #EDE9FE; | |||
--color-base: #2D2640; | |||
--color-emphasized: #1A1033; | |||
--color-subtle: #7C7394; | |||
} | } | ||
/* | /* 自动模式下的浅色兼容 */ | ||
. | @media (prefers-color-scheme: light) { | ||
.skin-theme-clientpref-os { | |||
--color-surface-0: #F8F6FC; | |||
--color-surface-1: #FFFFFF; | |||
--color-surface-2: #F3F0FF; | |||
--color-surface-3: #EDE9FE; | |||
} | |||
} | } | ||
/* | /* ── 3. 页面背景纹理 ── */ | ||
. | .citizen-body { | ||
background-image: radial-gradient(ellipse at 30% 0%, rgba(124,58,237,0.05) 0%, transparent 50%), radial-gradient(ellipse at 70% 100%, rgba(245,158,11,0.04) 0%, transparent 50%); | |||
background-attachment: fixed; | |||
} | } | ||
. | |||
/* ── 4. 章节标题左侧色条 ── */ | |||
.citizen-body .mw-heading h2 { | |||
border-left: 4px solid #7C3AED; | |||
padding-left: 12px; | |||
font-weight: 800; | |||
} | } | ||
/* | /* ── 5. Infobox 左侧悬浮 ── */ | ||
.infobox | @media (min-width: 1200px) { | ||
.infobox, | |||
.portable-infobox, | |||
table.infobox { | |||
float: left; | |||
width: 280px; | |||
margin: 0 20px 16px 0; | |||
position: sticky; | |||
top: 80px; | |||
z-index: 10; | |||
border-radius: 12px; | |||
overflow: hidden; | |||
border: 1px solid rgba(124,58,237,0.10); | |||
box-shadow: 0 2px 12px rgba(0,0,0,0.04); | |||
} | |||
.infobox th:first-child, | |||
.portable-infobox .pi-header { | |||
background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%); | |||
color: #ffffff; | |||
font-size: 1.15rem; | |||
font-weight: 800; | |||
letter-spacing: 2px; | |||
padding: 14px; | |||
} | |||
} | } | ||
/* | /* ── 6. 目录右侧悬浮 ── */ | ||
. | @media (min-width: 1200px) { | ||
.citizen-toc { | |||
position: sticky !important; | |||
top: 80px; | |||
} | |||
.citizen-toc .citizen-toc__top { | |||
font-weight: 700; | |||
border-bottom: 1px solid rgba(124,58,237,0.10); | |||
} | |||
.citizen-toc__link--active { | |||
color: #7C3AED !important; | |||
border-left: 2px solid #7C3AED; | |||
font-weight: 700; | |||
} | |||
} | } | ||
/* | /* ── 7. 内容卡片化 ── */ | ||
. | .citizen-body .mw-heading + *, | ||
.citizen-body section > p, | |||
.citizen-body section > table, | |||
.citizen-body section > ul, | |||
.citizen-body section > ol { | |||
background: #FFFFFF; | |||
border-radius: 10px; | |||
padding: 16px 20px; | |||
margin-bottom: 12px; | |||
border: 1px solid rgba(124,58,237,0.10); | |||
box-shadow: 0 1px 4px rgba(0,0,0,0.02); | |||
} | } | ||
/* | /* ── 8. 表格样式 ── */ | ||
.wikitable { | |||
border-collapse: collapse; | |||
width: 100%; | width: 100%; | ||
border: 1px solid rgba(124,58,237,0.10); | |||
border-radius: 8px; | |||
overflow: hidden; | |||
} | } | ||
.wikitable th { | |||
background: #F3F0FF; | |||
color: #1A1033; | |||
font-weight: 600; | |||
padding: 8px 12px; | |||
border-bottom: 2px solid rgba(124,58,237,0.10); | |||
} | } | ||
.wikitable td { | |||
. | padding: 8px 12px; | ||
border-bottom: 1px solid rgba(124,58,237,0.10); | |||
} | } | ||
. | /* ── 9. 分类标签样式 ── */ | ||
.mw-normal-catlinks a { | |||
background: #F3F0FF; | |||
color: #6D28D9; | |||
padding: 2px 8px; | |||
border-radius: 4px; | |||
font-size: 0.85rem; | |||
transition: background 0.15s; | |||
} | } | ||
.mw-normal-catlinks a:hover { | |||
. | background: #7C3AED; | ||
color: #fff; | |||
} | } | ||
/* | /* ── 10. Navbox 底部导航 ── */ | ||
.navbox { | |||
border: 1px solid rgba(124,58,237,0.10); | |||
. | border-radius: 10px; | ||
overflow: hidden; | |||
margin-top: 24px; | |||
} | } | ||
.navbox-title { | |||
background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%); | |||
color: #fff; | |||
font-weight: 700; | |||
padding: 8px 14px; | |||
} | } | ||
.navbox-group { | |||
background: #F3F0FF; | |||
font-weight: 600; | |||
padding: 6px 12px; | |||
. | |||
} | } | ||
/* | /* ── 11. 链接悬停效果 ── */ | ||
.citizen-body a:not(.new):hover { | |||
color: #7C3AED; | |||
. | text-decoration-color: #C4B5FD; | ||
text-underline-offset: 3px; | |||
} | } | ||
/* | /* ── 12. CJK字体优化 ── */ | ||
:root { | |||
--font-family-citizen-base: 'Noto Sans SC'; | |||
} | } | ||
2026年6月3日 (三) 13:22的版本
/* ── 1. 主色调(OKLCH色彩模型) ── */
:root {
--color-progressive-oklch__h: 301;
--color-progressive-oklch__c: 0.19;
--color-progressive-oklch__l: 45%;
}
/* ── 2. 浅色模式 Surface 层级 ── */
.skin-theme-clientpref-day {
--color-surface-0: #F8F6FC;
--color-surface-1: #FFFFFF;
--color-surface-2: #F3F0FF;
--color-surface-3: #EDE9FE;
--color-base: #2D2640;
--color-emphasized: #1A1033;
--color-subtle: #7C7394;
}
/* 自动模式下的浅色兼容 */
@media (prefers-color-scheme: light) {
.skin-theme-clientpref-os {
--color-surface-0: #F8F6FC;
--color-surface-1: #FFFFFF;
--color-surface-2: #F3F0FF;
--color-surface-3: #EDE9FE;
}
}
/* ── 3. 页面背景纹理 ── */
.citizen-body {
background-image: radial-gradient(ellipse at 30% 0%, rgba(124,58,237,0.05) 0%, transparent 50%), radial-gradient(ellipse at 70% 100%, rgba(245,158,11,0.04) 0%, transparent 50%);
background-attachment: fixed;
}
/* ── 4. 章节标题左侧色条 ── */
.citizen-body .mw-heading h2 {
border-left: 4px solid #7C3AED;
padding-left: 12px;
font-weight: 800;
}
/* ── 5. Infobox 左侧悬浮 ── */
@media (min-width: 1200px) {
.infobox,
.portable-infobox,
table.infobox {
float: left;
width: 280px;
margin: 0 20px 16px 0;
position: sticky;
top: 80px;
z-index: 10;
border-radius: 12px;
overflow: hidden;
border: 1px solid rgba(124,58,237,0.10);
box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.infobox th:first-child,
.portable-infobox .pi-header {
background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
color: #ffffff;
font-size: 1.15rem;
font-weight: 800;
letter-spacing: 2px;
padding: 14px;
}
}
/* ── 6. 目录右侧悬浮 ── */
@media (min-width: 1200px) {
.citizen-toc {
position: sticky !important;
top: 80px;
}
.citizen-toc .citizen-toc__top {
font-weight: 700;
border-bottom: 1px solid rgba(124,58,237,0.10);
}
.citizen-toc__link--active {
color: #7C3AED !important;
border-left: 2px solid #7C3AED;
font-weight: 700;
}
}
/* ── 7. 内容卡片化 ── */
.citizen-body .mw-heading + *,
.citizen-body section > p,
.citizen-body section > table,
.citizen-body section > ul,
.citizen-body section > ol {
background: #FFFFFF;
border-radius: 10px;
padding: 16px 20px;
margin-bottom: 12px;
border: 1px solid rgba(124,58,237,0.10);
box-shadow: 0 1px 4px rgba(0,0,0,0.02);
}
/* ── 8. 表格样式 ── */
.wikitable {
border-collapse: collapse;
width: 100%;
border: 1px solid rgba(124,58,237,0.10);
border-radius: 8px;
overflow: hidden;
}
.wikitable th {
background: #F3F0FF;
color: #1A1033;
font-weight: 600;
padding: 8px 12px;
border-bottom: 2px solid rgba(124,58,237,0.10);
}
.wikitable td {
padding: 8px 12px;
border-bottom: 1px solid rgba(124,58,237,0.10);
}
/* ── 9. 分类标签样式 ── */
.mw-normal-catlinks a {
background: #F3F0FF;
color: #6D28D9;
padding: 2px 8px;
border-radius: 4px;
font-size: 0.85rem;
transition: background 0.15s;
}
.mw-normal-catlinks a:hover {
background: #7C3AED;
color: #fff;
}
/* ── 10. Navbox 底部导航 ── */
.navbox {
border: 1px solid rgba(124,58,237,0.10);
border-radius: 10px;
overflow: hidden;
margin-top: 24px;
}
.navbox-title {
background: linear-gradient(135deg, #7C3AED 0%, #F59E0B 100%);
color: #fff;
font-weight: 700;
padding: 8px 14px;
}
.navbox-group {
background: #F3F0FF;
font-weight: 600;
padding: 6px 12px;
}
/* ── 11. 链接悬停效果 ── */
.citizen-body a:not(.new):hover {
color: #7C3AED;
text-decoration-color: #C4B5FD;
text-underline-offset: 3px;
}
/* ── 12. CJK字体优化 ── */
:root {
--font-family-citizen-base: 'Noto Sans SC';
}