跳转到内容
打开/关闭搜索
搜索
打开/关闭菜单
13
条目
4
用户
239
编辑
导航
首页
最近更改
随机页面
MediaWiki帮助
特殊页面
首页
子服一览
总规章
常见问题
历史资料
全部条目
分类
最近更改
打开/关闭外观设置菜单
无法加载偏好设置。请检查您的网络连接并重试。
重试
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。
user-interface-preferences
个人工具
讨论
贡献
创建账号
登录
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面
查看
阅读
查看源代码
查看历史
associated-pages
系统消息
讨论
更多操作
更多
工具
链入页面
相关更改
页面信息
←
MediaWiki:Citizen.css
因为以下原因,您没有权限编辑该页面:
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ========================================================================== Kuke Wiki 主题 — 参考 kuke.ink 官网视觉语言 天蓝品牌色 / slate 冷灰中性 / 16px 圆角 / 柔和扩散阴影 / 毛玻璃 ========================================================================== */ /* --- 1. 字体 -------------------------------------------------------------- */ :root { --font-family-base: Inter, system-ui, -apple-system, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", sans-serif; --font-family-heading: var( --font-family-base ); --font-family-monospace: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; } body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } /* --- 2. 配色令牌 ---------------------------------------------------------- */ :root, .skin-theme-clientpref-day { /* Citizen 的主色管线(oklch + hsl 双写) -> sky-600 #0284c7 */ --color-progressive-oklch__l: 58%; --color-progressive-oklch__c: 0.135; --color-progressive-oklch__h: 236; --color-progressive-hsl__h: 201; --color-progressive-hsl__s: 96%; --color-progressive-hsl__l: 39%; /* slate 冷灰中性色 */ --color-base: #0f172b; --color-emphasized: #020618; --color-subtle: #45556c; --color-subtle--hover: #0f172b; --color-surface-0: #f8fafc; --color-surface-1: #ffffff; --color-surface-2: #f1f5f9; --color-surface-3: #e2e8f0; --color-surface-4: #cbd5e1; --border-color-base: rgb( 226 232 240 / 0.6 ); --border-color-subtle: rgb( 226 232 240 / 0.9 ); --border-color-interactive: #cbd5e1; /* 私有令牌 */ --kuke-brand: #0ea5e9; --kuke-brand-hover: #38bdf8; --kuke-brand-strong: #0284c7; --kuke-brand-light: #7dd3fc; --kuke-brand-pale: #e0f2fe; --kuke-card-bg: #ffffff; --kuke-card-border: rgb( 226 232 240 / 0.6 ); --kuke-card-border-hover: rgb( 14 165 233 / 0.3 ); --kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.1 ), 0 4px 6px -4px rgb( 0 0 0 / 0.1 ); --kuke-shadow-glow: 0 25px 50px -12px rgb( 14 165 233 / 0.2 ); --kuke-glass: rgb( 255 255 255 / 0.94 ); --kuke-glass-border: rgb( 226 232 240 / 0.5 ); /* 毛玻璃加厚:皮肤默认 0.9 + blur( 8px ),正文透出来太明显 */ --opacity-glass: 0.96; --backdrop-filter-frosted-glass: blur( 32px ) saturate( 180% ); --kuke-ease: cubic-bezier( 0.4, 0, 0.2, 1 ); --kuke-overlay: linear-gradient( to top, rgb( 15 23 43 / 0.9 ), rgb( 15 23 43 / 0.2 ), transparent ); --kuke-glow-a: rgb( 56 189 248 / 0.2 ); --kuke-glow-b: rgb( 192 132 252 / 0.2 ); } .skin-theme-clientpref-night, .skin-theme-clientpref-black { --color-progressive-oklch__l: 74%; --color-progressive-oklch__c: 0.13; --color-progressive-hsl__l: 60%; --color-base: #e2e8f0; --color-emphasized: #ffffff; --color-subtle: #90a1b9; --color-subtle--hover: #cbd5e1; --color-surface-0: #020618; --color-surface-1: #0f172b; --color-surface-2: #1d293d; --color-surface-3: #314158; --color-surface-4: #45556c; --border-color-base: rgb( 49 65 88 / 0.5 ); --border-color-subtle: rgb( 49 65 88 / 0.8 ); --border-color-interactive: #45556c; --kuke-brand: #38bdf8; --kuke-brand-hover: #7dd3fc; --kuke-brand-strong: #0ea5e9; --kuke-brand-light: #7dd3fc; --kuke-brand-pale: #075985; --kuke-card-bg: rgb( 29 41 61 / 0.5 ); --kuke-card-border: rgb( 49 65 88 / 0.5 ); --kuke-card-border-hover: rgb( 56 189 248 / 0.35 ); --kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ), 0 4px 6px -4px rgb( 0 0 0 / 0.3 ); --kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 ); --kuke-glass: rgb( 15 23 43 / 0.95 ); --kuke-glass-border: rgb( 49 65 88 / 0.5 ); --kuke-glow-a: rgb( 2 132 199 / 0.12 ); --kuke-glow-b: rgb( 147 51 234 / 0.12 ); --opacity-glass: 0.97; --backdrop-filter-frosted-glass: blur( 32px ) saturate( 180% ); } @media ( prefers-color-scheme: dark ) { .skin-theme-clientpref-os { --color-progressive-oklch__l: 74%; --color-progressive-oklch__c: 0.13; --color-progressive-hsl__l: 60%; --color-base: #e2e8f0; --color-emphasized: #ffffff; --color-subtle: #90a1b9; --color-subtle--hover: #cbd5e1; --color-surface-0: #020618; --color-surface-1: #0f172b; --color-surface-2: #1d293d; --color-surface-3: #314158; --color-surface-4: #45556c; --border-color-base: rgb( 49 65 88 / 0.5 ); --border-color-subtle: rgb( 49 65 88 / 0.8 ); --border-color-interactive: #45556c; --kuke-brand: #38bdf8; --kuke-brand-hover: #7dd3fc; --kuke-brand-strong: #0ea5e9; --kuke-brand-light: #7dd3fc; --kuke-brand-pale: #075985; --kuke-card-bg: rgb( 29 41 61 / 0.5 ); --kuke-card-border: rgb( 49 65 88 / 0.5 ); --kuke-card-border-hover: rgb( 56 189 248 / 0.35 ); --kuke-shadow: 0 10px 15px -3px rgb( 0 0 0 / 0.3 ), 0 4px 6px -4px rgb( 0 0 0 / 0.3 ); --kuke-shadow-glow: 0 25px 50px -12px rgb( 56 189 248 / 0.25 ); --kuke-glass: rgb( 15 23 43 / 0.95 ); --kuke-glass-border: rgb( 49 65 88 / 0.5 ); --kuke-glow-a: rgb( 2 132 199 / 0.12 ); --kuke-glow-b: rgb( 147 51 234 / 0.12 ); --opacity-glass: 0.97; --backdrop-filter-frosted-glass: blur( 32px ) saturate( 180% ); } } /* --- 3. 圆角与缓动 -------------------------------------------------------- */ :root { --border-radius-base: 12px; --border-radius-medium: 16px; --border-radius-large: 24px; --border-radius-pill: 9999px; --border-radius-sharp: 8px; --transition-timing-function-ease: cubic-bezier( 0.4, 0, 0.2, 1 ); --transition-timing-function-ease-out: cubic-bezier( 0.4, 0, 0.2, 1 ); --transition-duration-base: 0.3s; } /* --- 4. 背景氛围光斑 ------------------------------------------------------ */ body::before, body::after { content: ""; position: fixed; z-index: 0; width: 40%; height: 40%; border-radius: 9999px; filter: blur( 100px ); pointer-events: none; } body::before { top: -10%; left: -10%; background-color: var( --kuke-glow-a ); } body::after { right: -10%; bottom: -10%; background-color: var( --kuke-glow-b ); } /* 只抬升正文容器,让它盖住上面的光斑。 顶栏不要在这里覆盖:皮肤原生是 position:fixed + z-index:200, 一旦降成 z-index:1 就会形成低层叠上下文,把下拉菜单困在里面被正文盖住。 */ .citizen-body-container { position: relative; z-index: 1; } /* --- 5. 顶栏:毛玻璃 ------------------------------------------------------ */ .citizen-header { background-color: var( --kuke-glass ); -webkit-backdrop-filter: blur( 32px ) saturate( 180% ); backdrop-filter: blur( 32px ) saturate( 180% ); } .citizen-header-position-top .citizen-header, .citizen-header-position-mobile-top .citizen-header { border-block-end: 1px solid var( --kuke-glass-border ); border-inline-end: 0; } .citizen-header-position-left .citizen-header { border-inline-end: 1px solid var( --kuke-glass-border ); } .citizen-sticky-header, .citizen-sticky-header-background { background-color: var( --kuke-glass ); border-block-end: 1px solid var( --kuke-glass-border ); -webkit-backdrop-filter: blur( 32px ) saturate( 180% ); backdrop-filter: blur( 32px ) saturate( 180% ); } .citizen-drawer__card, .citizen-menu__card, .citizen-search__card, .citizen-dropdown__content { border: 1px solid var( --kuke-card-border ); border-radius: 16px; box-shadow: var( --kuke-shadow ); } .citizen-header__item a:hover, .citizen-menu__content-list a:hover { border-radius: 12px; } /* --- 6. 排版 -------------------------------------------------------------- */ #firstHeading { font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; } .mw-body h2 { padding-bottom: 0.35em; border-bottom: 1px solid var( --border-color-subtle ); font-weight: 700; letter-spacing: -0.015em; } .mw-body h3, .mw-body h4 { font-weight: 700; letter-spacing: -0.01em; } .mw-parser-output { line-height: 1.7; } /* --- 7. 链接 -------------------------------------------------------------- */ .mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ) { text-decoration: none; transition: color 0.2s var( --kuke-ease ); } .mw-parser-output a:not( .mp-portals a ):not( .mp-icons a ):not( .mp-actions a ):hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; } ::selection { background-color: rgb( 14 165 233 / 0.3 ); } /* --- 8. 按钮 -------------------------------------------------------------- */ .cdx-button, .mw-ui-button, .oo-ui-buttonElement-button { border-radius: 12px; font-weight: 600; transition: background-color 0.3s var( --kuke-ease ), box-shadow 0.3s var( --kuke-ease ), transform 0.3s var( --kuke-ease ); } .cdx-button--action-progressive.cdx-button--weight-primary, .mw-ui-button.mw-ui-progressive { background-color: var( --kuke-brand-strong ); border-color: var( --kuke-brand-strong ); box-shadow: 0 10px 30px -10px rgb( 14 165 233 / 0.5 ); } .cdx-button--action-progressive.cdx-button--weight-primary:hover, .mw-ui-button.mw-ui-progressive:hover { background-color: var( --kuke-brand ); border-color: var( --kuke-brand ); } /* --- 9. 搜索框 ------------------------------------------------------------ */ .citizen-search-box, .citizen-search__form, .citizen-typeahead { border-radius: 12px; } .citizen-search__form:focus-within { border-color: var( --kuke-brand ); box-shadow: 0 0 0 4px rgb( 14 165 233 / 0.2 ); } /* --- 10. 表格 ------------------------------------------------------------- */ .wikitable { border: 1px solid var( --kuke-card-border ); border-radius: 16px; border-collapse: separate; border-spacing: 0; overflow: hidden; box-shadow: var( --kuke-shadow ); } .wikitable > * > tr > th, .wikitable > * > tr > td { border: 0; border-bottom: 1px solid var( --border-color-base ); padding: 0.6em 0.9em; } .wikitable > * > tr:last-child > th, .wikitable > * > tr:last-child > td { border-bottom: 0; } .wikitable > * > tr > th { background-color: var( --color-surface-2 ); color: var( --color-emphasized ); font-weight: 700; } .wikitable > tbody > tr:hover > td { background-color: var( --color-surface-2 ); } /* --- 11. 代码 ------------------------------------------------------------- */ code, kbd, samp, tt { border: 1px solid var( --kuke-card-border ); border-radius: 8px; background-color: var( --color-surface-2 ); font-family: var( --font-family-monospace ); font-size: 0.875em; } pre, .mw-code { border: 1px solid var( --kuke-card-border ); border-radius: 16px; background-color: var( --color-surface-2 ); padding: 1em 1.2em; box-shadow: var( --kuke-shadow ); } /* --- 12. 图片 ------------------------------------------------------------- */ .thumbinner, .mw-halign-left, .mw-halign-right { border-radius: 16px; } .thumbinner { border: 1px solid var( --kuke-card-border ); background-color: var( --kuke-card-bg ); padding: 8px; box-shadow: var( --kuke-shadow ); transition: box-shadow 0.3s var( --kuke-ease ), border-color 0.3s var( --kuke-ease ); } .thumbinner:hover { border-color: var( --kuke-card-border-hover ); box-shadow: var( --kuke-shadow-glow ); } .thumbimage, .mw-file-element { border: 0; border-radius: 12px; } /* --- 13. 消息框 ----------------------------------------------------------- */ .cdx-message, .mw-message-box, .mw-warning, .catlinks { border-radius: 16px; border: 1px solid var( --kuke-card-border ); } .catlinks { background-color: var( --kuke-card-bg ); box-shadow: var( --kuke-shadow ); } .mw-normal-catlinks a { display: inline-block; padding: 2px 12px; border-radius: 9999px; background-color: var( --color-surface-2 ); font-size: 0.875em; transition: background-color 0.2s var( --kuke-ease ), color 0.2s var( --kuke-ease ); } .mw-normal-catlinks a:hover { background-color: var( --kuke-brand-strong ); color: #fff; text-decoration: none; } /* --- 14. 滚动条 ----------------------------------------------------------- */ * { scrollbar-width: thin; scrollbar-color: var( --color-surface-4 ) transparent; } ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background-color: var( --color-surface-2 ); } ::-webkit-scrollbar-thumb { border-radius: 9999px; background-color: var( --color-surface-4 ); } ::-webkit-scrollbar-thumb:hover { background-color: var( --color-subtle ); } /* --- 15. 焦点环 ----------------------------------------------------------- */ a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 2px solid var( --kuke-brand ); outline-offset: 2px; border-radius: 8px; } /* --- 16. 减少动效 --------------------------------------------------------- */ @media ( prefers-reduced-motion: reduce ) { *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; } } /* ========================================================================== Kuke Wiki — 首页布局层 排版结构参考 toiletmc.net wiki(同为 MediaWiki + Citizen) 配色沿用 KukeMC 天蓝体系(--kuke-* 令牌定义于主题层) ========================================================================== */ /* 首页取消正文最大宽度限制 */ .page-首页 .mw-parser-output, .page-Main_Page .mw-parser-output { max-width: none; } .page-首页 .mw-parser-output *, .page-Main_Page .mw-parser-output * { box-sizing: border-box; } /* MediaWiki 会把裸链接行包进 <p>,这会破坏 flex / grid 布局。 display:contents 让 <p> 在布局树中消失,子元素直接成为容器项。 */ .mp-hero__links > p, .mp-hero__cards > p, .mp-actions > p, .mp-support__links > p, .mp-grid > p, .mp-features > p { display: contents; margin: 0; } /* -------------------------------------------------------------------------- 页面骨架:单列竖排大区块 -------------------------------------------------------------------------- */ .mp-home { display: flex; flex-direction: column; gap: 2rem; margin-block-start: 0.5rem; } /* -------------------------------------------------------------------------- Hero 横幅 -------------------------------------------------------------------------- */ .mp-hero { position: relative; min-height: 420px; overflow: hidden; border-radius: 24px; background-color: #0b2545; background-image: linear-gradient( to right, rgb( 0 0 0 / 0.74 ), rgb( 0 0 0 / 0.42 ) 55%, rgb( 0 0 0 / 0.28 ) ), linear-gradient( to top, rgb( 0 0 0 / 0.48 ), rgb( 0 0 0 / 0.1 ) ), url( "/resources/assets/hero-bg.svg" ); background-repeat: no-repeat; background-position: center; background-size: cover; box-shadow: 0 20px 48px rgb( 2 132 199 / 0.25 ); display: flex; align-items: center; } .mp-hero::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient( to top, rgb( 0 0 0 / 0.28 ), rgb( 0 0 0 / 0.04 ) ); pointer-events: none; } .mp-hero__content { position: relative; z-index: 1; max-width: 760px; padding: 2.5rem 2rem; color: #fff; } .mp-hero__badge { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 999px; background-color: rgb( 255 255 255 / 0.18 ); font-size: 0.875rem; font-weight: 700; letter-spacing: 0.01em; color: #fff; } .mp-hero__title { margin: 0.75rem 0 0; font-size: 3rem; font-weight: 800; line-height: 1.08; letter-spacing: -0.04em; color: #fff; } .mp-hero__desc { margin: 0.9rem 0 0; max-width: 620px; font-size: 1.05rem; line-height: 1.7; color: rgb( 255 255 255 / 0.9 ); } /* Hero 内的信息卡(两列) */ .mp-hero__cards { display: grid; grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); gap: 1rem; margin-block-start: 1.5rem; } .mp-infocard { padding: 1rem; border: 1px solid rgb( 255 255 255 / 0.16 ); border-radius: 18px; background-color: rgb( 255 255 255 / 0.12 ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.14 ); color: #fff; transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; } .mp-infocard:hover { transform: translateY( -2px ); border-color: rgb( 255 255 255 / 0.34 ); background-color: rgb( 255 255 255 / 0.18 ); box-shadow: 0 16px 38px rgb( 0 0 0 / 0.18 ); } .mp-infocard strong { display: block; margin-block-end: 0.45rem; font-size: 0.95rem; font-weight: 700; color: #fff; } .mp-infocard code, .mp-infocard .mp-infocard__value { display: block; padding: 0.65rem 0.8rem; border-radius: 12px; background-color: rgb( 0 0 0 / 0.28 ); font-family: inherit; font-size: 1.05rem; font-weight: 700; color: #fff; user-select: all; transition: background-color 0.22s ease, box-shadow 0.22s ease; } .mp-infocard:hover code, .mp-infocard:hover .mp-infocard__value { background-color: rgb( 0 0 0 / 0.38 ); box-shadow: inset 0 0 0 1px rgb( 255 255 255 / 0.08 ); } /* Hero 下方的胶囊链接行 */ .mp-hero__links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-block-start: 1.2rem; } .mp-pill { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.72rem 1rem; border: 1px solid rgb( 255 255 255 / 0.14 ); border-radius: 999px; background-color: rgb( 255 255 255 / 0.12 ); font-size: 0.9375rem; font-weight: 700; color: #fff; transition: transform 0.22s ease, background-color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; } .mp-hero__links a, .mp-hero__links a:visited { color: #fff; text-decoration: none; } .mp-hero__links a:hover .mp-pill { transform: translateY( -1px ); border-color: rgb( 255 255 255 / 0.34 ); background-color: rgb( 255 255 255 / 0.2 ); box-shadow: 0 8px 20px rgb( 0 0 0 / 0.16 ); } /* -------------------------------------------------------------------------- 内容区块 -------------------------------------------------------------------------- */ .mp-section { margin: 0; } .mp-section__title { margin: 0 0 1rem; padding: 0; border: 0; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.02em; color: var( --color-emphasized, #0f172a ); } .mp-section__title::after { content: none; } /* -------------------------------------------------------------------------- 卡片网格 -------------------------------------------------------------------------- */ .mp-grid { display: grid; gap: 1rem; } .mp-grid--4 { grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); } .mp-grid--3 { grid-template-columns: repeat( 3, minmax( 0, 1fr ) ); } .mp-grid--2 { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); } .mp-card { display: block; padding: 1.1rem; border: 1px solid var( --kuke-card-border, #e2e8f0 ); border-radius: 18px; background-color: var( --kuke-card-bg, #fff ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 ); transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease; } .mp-grid a, .mp-grid a:visited, .mp-features a, .mp-features a:visited { color: inherit; text-decoration: none; } .mp-grid a:hover .mp-card, .mp-card:hover { transform: translateY( -3px ); border-color: var( --kuke-brand, #0ea5e9 ); box-shadow: 0 18px 42px rgb( 14 165 233 / 0.16 ); } /* .mp-card__icon 的具体样式见 kuke-icons.css(SVG mask 图标) */ .mp-card__icon { margin-block-end: 0.15rem; } .mp-card__title { margin: 0.55rem 0 0.45rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; color: var( --color-emphasized, #0f172a ); } .mp-card__desc { margin: 0; font-size: 0.9375rem; line-height: 1.65; color: var( --color-subtle, #54595d ); } .mp-card__more { display: inline-block; margin-block-start: 0.7rem; font-size: 0.875rem; font-weight: 700; color: var( --kuke-brand-strong, #0284c7 ); } .mp-grid a:hover .mp-card__more { color: var( --kuke-brand, #0ea5e9 ); } /* -------------------------------------------------------------------------- 特性列表(四列,无链接) -------------------------------------------------------------------------- */ .mp-features { display: grid; grid-template-columns: repeat( 4, minmax( 0, 1fr ) ); gap: 1rem; } .mp-features > div { padding: 1.1rem; border: 1px solid var( --kuke-card-border, #e2e8f0 ); border-radius: 18px; background-color: var( --kuke-card-bg, #fff ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 ); } .mp-features strong { display: block; margin-block-end: 0.45rem; font-size: 1.0625rem; font-weight: 700; color: var( --kuke-brand-strong, #0284c7 ); } .mp-features p { margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var( --color-subtle, #54595d ); } /* -------------------------------------------------------------------------- 帮助区块 -------------------------------------------------------------------------- */ .mp-support { display: grid; grid-template-columns: minmax( 0, 1fr ) auto; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid var( --kuke-card-border, #e2e8f0 ); border-radius: 18px; background-color: var( --kuke-card-bg, #fff ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.06 ); } .mp-support h3, .mp-support__title { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 700; color: var( --color-emphasized, #0f172a ); } .mp-support p { margin: 0; line-height: 1.7; color: var( --color-subtle, #54595d ); } .mp-support__links { display: flex; flex-wrap: wrap; gap: 0.75rem; padding: 1rem; border-radius: 14px; background-color: var( --kuke-brand-pale, #e0f2fe ); transition: background-color 0.22s ease, color 0.22s ease; } .mp-support__links a, .mp-support__links a:visited { font-weight: 700; color: var( --kuke-brand-strong, #0284c7 ); text-decoration: none; } .mp-support__links a:hover { color: var( --kuke-brand, #0ea5e9 ); text-decoration: underline; } /* -------------------------------------------------------------------------- 暗色模式 -------------------------------------------------------------------------- */ html.skin-theme-clientpref-night .mp-card, html.skin-theme-clientpref-night .mp-features > div, html.skin-theme-clientpref-night .mp-support { border-color: rgb( 49 65 88 / 0.6 ); background-color: rgb( 29 41 61 / 0.5 ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 ); } html.skin-theme-clientpref-night .mp-grid a:hover .mp-card, html.skin-theme-clientpref-night .mp-card:hover { border-color: var( --kuke-brand, #38bdf8 ); box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 ); } html.skin-theme-clientpref-night .mp-support__links { background-color: rgb( 7 89 133 / 0.35 ); } @media screen and ( prefers-color-scheme: dark ) { html.skin-theme-clientpref-os .mp-card, html.skin-theme-clientpref-os .mp-features > div, html.skin-theme-clientpref-os .mp-support { border-color: rgb( 49 65 88 / 0.6 ); background-color: rgb( 29 41 61 / 0.5 ); box-shadow: 0 12px 32px rgb( 0 0 0 / 0.24 ); } html.skin-theme-clientpref-os .mp-grid a:hover .mp-card, html.skin-theme-clientpref-os .mp-card:hover { border-color: var( --kuke-brand, #38bdf8 ); box-shadow: 0 18px 42px rgb( 0 0 0 / 0.36 ); } html.skin-theme-clientpref-os .mp-support__links { background-color: rgb( 7 89 133 / 0.35 ); } } /* -------------------------------------------------------------------------- 响应式 -------------------------------------------------------------------------- */ @media screen and ( max-width: 960px ) { .mp-hero__cards, .mp-grid--4, .mp-grid--3, .mp-features { grid-template-columns: repeat( 2, minmax( 0, 1fr ) ); } .mp-support { grid-template-columns: 1fr; } } @media screen and ( max-width: 720px ) { .mp-home { gap: 1.5rem; } .mp-hero { min-height: 380px; } .mp-hero__content { padding: 1.5rem 1.2rem; } .mp-hero__title { font-size: 2.2rem; } .mp-hero__cards, .mp-grid--4, .mp-grid--3, .mp-grid--2, .mp-features { grid-template-columns: 1fr; } .mp-section__title { font-size: 1.35rem; } } /* ========================================================================== Kuke Wiki 图标系统 — 内联 SVG(data-URI),无外部依赖 用 mask-image 渲染,颜色由 background-color 控制,暗色模式只需改一处 ========================================================================== */ .mp-card__icon, .mp-pill__icon { display: block; flex: none; width: 28px; height: 28px; background-color: var( --kuke-brand-strong, #0284c7 ); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; } .mp-pill__icon { width: 18px; height: 18px; background-color: currentColor; } /* --- 图标定义 ------------------------------------------------------------- */ .mp-icon--book { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5A3.5 3.5 0 0 0 8.5 3H3v14h6a3 3 0 0 1 3 3'/%3E%3Cpath d='M12 6.5A3.5 3.5 0 0 1 15.5 3H21v14h-6a3 3 0 0 0-3 3'/%3E%3Cpath d='M12 6.5v13.5'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6.5A3.5 3.5 0 0 0 8.5 3H3v14h6a3 3 0 0 1 3 3'/%3E%3Cpath d='M12 6.5A3.5 3.5 0 0 1 15.5 3H21v14h-6a3 3 0 0 0-3 3'/%3E%3Cpath d='M12 6.5v13.5'/%3E%3C/svg%3E" ); } .mp-icon--folder { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 3h8a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E" ); } .mp-icon--clock { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.2 1.9'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5.2l3.2 1.9'/%3E%3C/svg%3E" ); } .mp-icon--shuffle { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 3h5v5'/%3E%3Cpath d='M4 20 21 3'/%3E%3Cpath d='M21 16v5h-5'/%3E%3Cpath d='M15 15l6 6'/%3E%3Cpath d='M4 4l5 5'/%3E%3C/svg%3E" ); } .mp-icon--pencil { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E" ); } .mp-icon--link { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.07 0l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E" ); } .mp-icon--file { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpath d='M14 2v6h6'/%3E%3Cpath d='M9 13h6'/%3E%3Cpath d='M9 17h4'/%3E%3C/svg%3E" ); } .mp-icon--image { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E" ); } .mp-icon--compass { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m16 8-2.2 6.2L8 16l2.2-6.2z'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m16 8-2.2 6.2L8 16l2.2-6.2z'/%3E%3C/svg%3E" ); } .mp-icon--award { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='5.5'/%3E%3Cpath d='M8.2 13.2 7 22l5-2.8 5 2.8-1.2-8.8'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='5.5'/%3E%3Cpath d='M8.2 13.2 7 22l5-2.8 5 2.8-1.2-8.8'/%3E%3C/svg%3E" ); } .mp-icon--tool { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94z'/%3E%3C/svg%3E" ); } .mp-icon--alert { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3z'/%3E%3Cpath d='M12 9v4.5'/%3E%3Cpath d='M12 17.2h.01'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3z'/%3E%3Cpath d='M12 9v4.5'/%3E%3Cpath d='M12 17.2h.01'/%3E%3C/svg%3E" ); } .mp-icon--list { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3.5 6h.01'/%3E%3Cpath d='M3.5 12h.01'/%3E%3Cpath d='M3.5 18h.01'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 6h13'/%3E%3Cpath d='M8 12h13'/%3E%3Cpath d='M8 18h13'/%3E%3Cpath d='M3.5 6h.01'/%3E%3Cpath d='M3.5 12h.01'/%3E%3Cpath d='M3.5 18h.01'/%3E%3C/svg%3E" ); } .mp-icon--search { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m21 21-4.7-4.7'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7.5'/%3E%3Cpath d='m21 21-4.7-4.7'/%3E%3C/svg%3E" ); } .mp-icon--upload { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v13'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v13'/%3E%3C/svg%3E" ); } .mp-icon--plus { -webkit-mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E" ); mask-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8v8'/%3E%3Cpath d='M8 12h8'/%3E%3C/svg%3E" ); } /* --- 暗色模式:只改一处颜色 ----------------------------------------------- */ html.skin-theme-clientpref-night .mp-card__icon { background-color: var( --kuke-brand-hover, #38bdf8 ); } @media screen and ( prefers-color-scheme: dark ) { html.skin-theme-clientpref-os .mp-card__icon { background-color: var( --kuke-brand-hover, #38bdf8 ); } } /* ========================================================================== 顶栏主导航(由 MediaWiki:Common.js 注入到 .citizen-header__start) ========================================================================== */ /* __start 是皮肤预留的空槽,本身已是 flex;这里只补溢出处理, 不要覆盖 display / flex-direction,否则左侧竖排模式会坏。 */ .citizen-header__start { min-width: 0; overflow: hidden; } .kuke-nav { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; } .kuke-nav::-webkit-scrollbar { display: none; } .kuke-nav__link { position: relative; display: inline-flex; flex-shrink: 0; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; color: var( --color-subtle ); font-size: 0.875rem; font-weight: 500; line-height: 1; white-space: nowrap; text-decoration: none; transition: background-color 0.2s var( --kuke-ease ), color 0.2s var( --kuke-ease ); } .kuke-nav__link:visited { color: var( --color-subtle ); } .kuke-nav__link:hover, .kuke-nav__link:focus { background-color: var( --color-surface-2 ); color: var( --color-emphasized ); text-decoration: none; } .kuke-nav__link--active, .kuke-nav__link--active:visited { color: var( --kuke-brand-strong ); font-weight: 600; } .kuke-nav__link--active::after { position: absolute; right: 12px; bottom: -6px; left: 12px; height: 2px; content: ''; background-color: var( --kuke-brand-strong ); border-radius: 2px; } .kuke-nav__link--active:hover, .kuke-nav__link--active:focus { background-color: var( --kuke-brand-pale ); color: var( --kuke-brand-strong ); } /* 左 / 右侧竖排顶栏:改为纵向堆叠,下划线换成左侧竖条 */ .citizen-header-position-left .kuke-nav, .citizen-header-position-right .kuke-nav { flex-direction: column; align-items: stretch; width: 100%; overflow-x: visible; } .citizen-header-position-left .kuke-nav__link--active::after, .citizen-header-position-right .kuke-nav__link--active::after { top: 6px; right: auto; bottom: 6px; left: 0; width: 2px; height: auto; } /* 窄屏隐藏,导航交回汉堡抽屉 */ @media screen and ( max-width: 850px ) { .kuke-nav { display: none; } }
返回
MediaWiki:Citizen.css
。
查看“︁MediaWiki:Citizen.css”︁的源代码
MediaWiki界面页面