MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/*
* This is the CSS common to all desktop skins on en.Wikipedia.
* Styling inside .mw-parser-output should generally use TemplateStyles.
*/
/* Reset italic styling set by user agent */
cite,
dfn {
font-style: inherit;
}
/* Straight quote marks for <q> */
q {
quotes: '"' '"' "'" "'";
}
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
overflow: hidden;
margin: 1em 0;
padding: 0 40px;
}
/* Consistent size for <small>, <sub> and <sup> */
small {
font-size: 85%;
}
.mw-body-content sub,
.mw-body-content sup {
font-size: 80%;
}
/* Same spacing for indented and unindented paragraphs on talk pages */
.ns-talk .mw-body-content dd {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
/* Avoid FOUC/reflows on collapsed elements. */
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,
/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
display: none;
}
/* Make the list of references smaller
* Keep in sync with Template:Refbegin/styles.css
* And Template:Reflist/styles.css
*/
ol.references {
font-size: 90%;
margin-bottom: 0.5em;
}
/* Cite customizations for Parsoid
* Once everything uses the one true parser these are just customizations
*/
span[ rel="mw:referencedBy" ] {
counter-reset: mw-ref-linkback 0;
}
span[ rel='mw:referencedBy' ] > a::before {
content: counter( mw-ref-linkback, lower-alpha );
font-size: 80%;
font-weight: bold;
font-style: italic;
}
a[ rel="mw:referencedBy" ]::before {
font-weight: bold;
content: "^";
}
span[ rel="mw:referencedBy" ]::before {
content: "^ ";
}
.mw-ref > a[data-mw-group=lower-alpha]::after {
content: '[' counter( mw-Ref, lower-alpha ) ']';
}
.mw-ref > a[data-mw-group=upper-alpha]::after {
content: '[' counter( mw-Ref, upper-alpha ) ']';
}
.mw-ref > a[data-mw-group=decimal]::after {
content: '[' counter( mw-Ref, decimal ) ']';
}
.mw-ref > a[data-mw-group=lower-roman]::after {
content: '[' counter( mw-Ref, lower-roman ) ']';
}
.mw-ref > a[data-mw-group=upper-roman]::after {
content: '[' counter( mw-Ref, upper-roman ) ']';
}
.mw-ref > a[data-mw-group=lower-greek]::after {
content: '[' counter( mw-Ref, lower-greek ) ']';
}
/* Styling for jQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
font-weight: normal;
padding-right: 0.2em;
padding-left: 0.2em;
}
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
/* @noflip */
float: left;
}
/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
/* @noflip */
text-align: left;
}
/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
/* @noflip */
padding: 8px 18px 8px 0;
}
/* System messages styled similarly to fmbox */
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
* the edit-protected notice and the special:Contribs for blocked users
* The latter has specificity of 3 classes so we have to triple up here.
*/
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: var(--background-color-error-subtle, #ffdbdb);
padding: 0.25em 0.9em;
box-sizing: border-box;
}
/* default colors for partial block message */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
border-color: #fc3;
background-color: var(--background-color-warning-subtle, #fef6e7);
}
/* Minimum thumb width */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
min-width: 100px;
}
/* Prevent floating boxes from overlapping any category listings,
file histories, edit previews, and edit [Show changes] views. */
#mw-subcategories,
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
/* Styling for tags in changes pages */
.mw-tag-markers {
font-style: italic;
font-size: 90%;
}
/* Hide stuff meant for accounts with special permissions. Made visible again in
[[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
[[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]],
[[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
[[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
.checkuser-show,
.sysop-show,
.abusefilter-show,
.abusefilter-helper-show,
.patroller-show,
.templateeditor-show,
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
display: none;
}
/* Hide the redlink generated by {{Editnotice}},
this overrides the ".sysop-show { display: none; }" above that applies
to the same link as well. See [[phab:T45013]]
Hide the images in editnotices to keep them readable in VE view.
Long term, editnotices should become a core feature so that they can be designed responsive. */
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
display: none !important;
}
/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors {
margin: 0;
}
ul.permissions-errors > li {
list-style: none;
}
/* larger inline math */
span.mwe-math-mathml-inline {
font-size: 118%;
}
/* Make <math display="block"> be left aligned with one space indent for
* compatibility with style conventions
*/
.mwe-math-fallback-image-display,
.mwe-math-mathml-display {
margin-left: 1.6em !important;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
.mwe-math-mathml-display math {
display: inline;
}
@media screen {
/* Put a chequered background behind images, only visible if they have transparency,
* except on main, user, and portal namespaces
*/
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
}
/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
do not apply to print mode */
#siteSub {
display: none;
}
}
/* Hide FlaggedRevs notice UI when there are no pending changes */
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
/* "Temporary" to remove links in sidebar T255381 */
#t-upload,
/* Hide broken download box on Special:Book pending T285400 */
.mw-special-Book #coll-downloadbox {
display: none;
}
/*
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
* SEE [[MediaWiki talk:Common.css/to do]]
*/
/* Infobox template style */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: black;
/* @noflip */
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
}
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox th,
.infobox td {
vertical-align: top;
}
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates */
.infobox caption {
padding: 0.2em;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
font-weight: normal;
/* @noflip */
text-align: left;
}
/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link,
.IPA a:visited {
text-decoration: none !important;
}
/* Prevent line breaks in silly places where desired (nowrap)
and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
white-space: normal;
}
/* texhtml class for inline math (based on generic times-serif class) */
span.texhtml {
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
font-size: 118%;
line-height: 1;
white-space: nowrap;
/* Force tabular and lining display for texhtml */
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
span.texhtml span.texhtml {
font-size: 100%;
}
@media screen {
.nochecker .gallerybox .thumb img {
background-image: none;
}
}
/* Put anything you mean to be a sitewide addition above the TemplateStyles
* comment above.
*/
/**
* 游戏统计页面 💰 Emoji 切换功能样式
*/
/* 控制按钮容器 */
.money-emoji-controls {
margin: 15px 0 20px 0;
padding: 12px 16px;
background: #f8f9fa;
border: 1px solid #a2a9b1;
border-radius: 4px;
text-align: center;
}
.emoji-control-wrapper {
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
gap: 12px;
}
/* 切换按钮 */
.money-emoji-toggle-btn {
display: inline-flex;
align-items: center;
padding: 8px 16px;
background: #ffffff;
border: 1px solid #a2a9b1;
border-radius: 4px;
color: #222;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
font-size: 14px;
font-weight: 500;
text-decoration: none;
cursor: pointer;
transition: all 0.2s ease;
min-width: 140px;
justify-content: center;
}
.money-emoji-toggle-btn:hover {
background: #f0f0f0;
border-color: #72777d;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.money-emoji-toggle-btn:active {
transform: translateY(0);
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}
.money-emoji-toggle-btn.active {
background: #0645ad;
color: white;
border-color: #0645ad;
}
.money-emoji-toggle-btn.active:hover {
background: #054393;
border-color: #054393;
}
/* 按钮内元素 */
.money-emoji-toggle-btn .emoji-icon {
margin-right: 6px;
font-size: 16px;
line-height: 1;
}
.money-emoji-toggle-btn .button-text {
font-size: 14px;
white-space: nowrap;
}
/* 提示文字 */
.control-hint {
font-size: 12px;
color: #54595d;
font-style: italic;
}
/* Emoji 包装器和隐藏状态 */
.money-emoji-wrapper {
transition: opacity 0.2s ease;
}
.money-emoji-wrapper.money-emoji-hidden {
opacity: 0;
font-size: 0;
width: 0;
overflow: hidden;
display: inline-block;
}
/* 响应式设计 */
@media (max-width: 768px) {
.money-emoji-controls {
margin: 10px 0 15px 0;
padding: 10px 12px;
}
.emoji-control-wrapper {
flex-direction: column;
gap: 8px;
}
.money-emoji-toggle-btn {
min-width: 120px;
padding: 6px 12px;
font-size: 13px;
}
.money-emoji-toggle-btn .emoji-icon {
margin-right: 4px;
font-size: 14px;
}
.money-emoji-toggle-btn .button-text {
font-size: 13px;
}
.control-hint {
font-size: 11px;
text-align: center;
}
}
/* 高对比度模式 */
@media (prefers-contrast: high) {
.money-emoji-toggle-btn {
border-width: 2px;
font-weight: 600;
}
}
/* 暗色主题支持 */
@media (prefers-color-scheme: dark) {
.money-emoji-controls {
background: #2a2a2a;
border-color: #54595d;
}
.money-emoji-toggle-btn {
background: #3c4043;
color: #eaecf0;
border-color: #54595d;
}
.money-emoji-toggle-btn:hover {
background: #484b4f;
border-color: #72777d;
}
.money-emoji-toggle-btn.active {
background: #1976d2;
border-color: #1976d2;
}
.control-hint {
color: #a2a9b1;
}
}
/* 焦点可访问性 */
.money-emoji-toggle-btn:focus {
outline: 2px solid #0645ad;
outline-offset: 2px;
}
/* 减少动画偏好 */
@media (prefers-reduced-motion: reduce) {
.money-emoji-toggle-btn,
.money-emoji-wrapper {
transition: none;
}
}
/* 打印时显示所有emoji */
@media print {
.money-emoji-controls {
display: none !important;
}
.money-emoji-wrapper.money-emoji-hidden {
opacity: 1 !important;
font-size: inherit !important;
width: auto !important;
}
}
/* 尝试实现鼠标悬停缩放画廊 */
.zoom-gallery .gallerybox {
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
box-shadow 0.4s ease,
z-index 0s step-end 0.4s;
position: relative;
z-index: 1;
will-change: transform;
}
.zoom-gallery .gallerybox:hover {
transform: scale(1.35);
box-shadow: 0 15px 35px rgba(0,0,0,0.4);
z-index: 100;
transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
box-shadow 0.4s ease,
z-index 0s step-start;
background-color: #fff;
cursor: pointer;
}
.zoom-gallery .gallerybox .thumb {
overflow: visible;
}
/* ================================
永雏塔菲百科首页美化
建议仅配合 .taffy-home 使用,避免影响全站
================================ */
.taffy-home {
--taffy-pink: #ff8fc7;
--taffy-pink-light: #ffe6f2;
--taffy-yellow: #fff4bf;
--taffy-border: #ffd1e6;
--taffy-text: #5c3b4d;
--taffy-muted: #9b6d83;
--taffy-card-bg: rgba(255, 255, 255, 0.88);
max-width: 1180px;
margin: 0 auto;
padding: 18px;
color: var(--taffy-text);
background:
radial-gradient(circle at 10% 0%, #fff2b8 0, transparent 28%),
radial-gradient(circle at 95% 15%, #ffd6ed 0, transparent 32%),
linear-gradient(180deg, #fffafd 0%, #fff8fc 45%, #fffdf3 100%);
border-radius: 24px;
box-shadow: 0 10px 35px rgba(255, 143, 199, 0.18);
}
/* 顶部区域 */
.taffy-hero {
display: flex;
align-items: center;
gap: 24px;
padding: 24px;
margin-bottom: 18px;
border: 2px solid var(--taffy-border);
border-radius: 24px;
background:
linear-gradient(135deg, rgba(255, 230, 242, 0.95), rgba(255, 250, 222, 0.95));
box-shadow: 0 8px 24px rgba(255, 143, 199, 0.18);
overflow: hidden;
}
.taffy-hero img {
border-radius: 20px;
box-shadow: 0 8px 20px rgba(255, 143, 199, 0.22);
}
.taffy-hero-text {
flex: 1;
min-width: 220px;
}
.taffy-title {
font-size: 2.1em;
font-weight: 800;
line-height: 1.25;
color: #ff5fae;
text-shadow: 0 2px 0 #fff;
margin-bottom: 8px;
}
.taffy-subtitle {
font-size: 1.05em;
color: var(--taffy-muted);
margin-bottom: 14px;
}
/* 提示条 */
.taffy-notice {
margin: 16px 0 24px;
padding: 14px 18px;
border-left: 6px solid var(--taffy-pink);
border-radius: 16px;
background: #fff7fc;
box-shadow: 0 4px 16px rgba(255, 143, 199, 0.12);
font-weight: 600;
}
/* 大入口卡片 */
.taffy-card-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 16px;
margin: 24px 0;
}
.taffy-card {
position: relative;
min-height: 92px;
padding: 20px;
border: 2px solid var(--taffy-border);
border-radius: 22px;
background:
linear-gradient(145deg, rgba(255,255,255,0.96), rgba(255,238,247,0.92));
box-shadow: 0 8px 20px rgba(255, 143, 199, 0.16);
transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
font-size: 1.18em;
font-weight: 800;
}
.taffy-card::after {
content: "›";
position: absolute;
right: 18px;
bottom: 12px;
font-size: 1.6em;
color: #ff8fc7;
opacity: 0.75;
}
.taffy-card:hover {
transform: translateY(-4px);
border-color: #ff9fce;
box-shadow: 0 14px 28px rgba(255, 143, 199, 0.26);
}
/* 普通分区 */
.taffy-section {
margin: 28px 0;
padding: 18px;
border: 1px solid var(--taffy-border);
border-radius: 22px;
background: rgba(255, 255, 255, 0.72);
box-shadow: 0 6px 20px rgba(255, 143, 199, 0.10);
}
.taffy-section h2 {
margin: 0 0 16px !important;
padding: 0 0 10px !important;
border-bottom: 2px dashed var(--taffy-border) !important;
color: #ff5fae;
font-size: 1.45em;
font-weight: 800;
}
/* 小链接卡片 */
.taffy-link-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
gap: 12px;
}
.taffy-link-card {
padding: 14px 16px;
border: 1px solid #ffd5e9;
border-radius: 16px;
background: var(--taffy-card-bg);
box-shadow: 0 4px 14px rgba(255, 143, 199, 0.10);
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
font-weight: 650;
line-height: 1.45;
}
.taffy-link-card:hover {
transform: translateY(-3px);
background: #fff8fc;
box-shadow: 0 10px 20px rgba(255, 143, 199, 0.18);
}
.taffy-link-card span {
color: var(--taffy-muted);
font-size: 0.9em;
font-weight: 500;
}
/* 链接统一美化 */
.taffy-home a {
color: #e84f9a !important;
text-decoration: none !important;
}
.taffy-home a:hover {
color: #ff2f91 !important;
text-decoration: none !important;
}
/* 去掉 MediaWiki 外链小图标,卡片里更干净 */
.taffy-home a.external {
background-image: none !important;
padding-right: 0 !important;
}
/* 移动端适配 */
@media screen and (max-width: 700px) {
.taffy-home {
padding: 12px;
border-radius: 18px;
}
.taffy-hero {
flex-direction: column;
text-align: center;
padding: 18px;
}
.taffy-title {
font-size: 1.65em;
}
.taffy-card-grid,
.taffy-link-grid {
grid-template-columns: 1fr;
}
.taffy-card {
min-height: 72px;
font-size: 1.05em;
}
}
@keyframes rainbowGlowBorder {
0% {
filter: hue-rotate(0deg);
}
100% {
filter: hue-rotate(360deg);
}
}
/* 只用于定位,不改动单元格内容 */
.wikitable .rainbow-glow {
position: relative;
}
/* 一个完整渐变绘制整圈边框,因此没有四边接缝 */
.wikitable .rainbow-glow::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: 4px;
/* 边框粗细 */
padding: 4px;
background: conic-gradient(
from 0deg,
#ff005d 0deg,
#ffae00 52deg,
#fff700 103deg,
#00ff85 154deg,
#00c8ff 206deg,
#7a5cff 257deg,
#ff00c8 309deg,
#ff005d 360deg
);
animation: rainbowGlowBorder 3s linear infinite;
/* 挖空中间,只留下边框 */
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
box-shadow:
0 0 6px rgba(255, 0, 128, 0.6),
0 0 12px rgba(0, 200, 255, 0.5);
}
@media (prefers-reduced-motion: reduce) {
.wikitable .rainbow-glow::after {
animation: none;
}
}
@keyframes blackGlowBorder {
0% {
filter: hue-rotate(0deg) brightness(1);
}
50% {
filter: hue-rotate(180deg) brightness(1.18);
}
100% {
filter: hue-rotate(360deg) brightness(1);
}
}
@keyframes blackGlowBorder {
0% {
filter:
hue-rotate(0deg)
brightness(1.25)
contrast(1.1);
}
50% {
filter:
hue-rotate(180deg)
brightness(1.6)
contrast(1.15);
}
100% {
filter:
hue-rotate(360deg)
brightness(1.25)
contrast(1.1);
}
}
/* 五彩斑斓的黑 */
.wikitable .black-glow {
position: relative;
}
/* 整体渐变边框,中间透明,不遮挡内容 */
.wikitable .black-glow::after {
content: "";
position: absolute;
inset: 0;
pointer-events: none;
border-radius: 4px;
/* 边框粗细 */
padding: 4px;
background: conic-gradient(
from 0deg,
#050507 0deg,
#3a1023 45deg,
#3b2908 90deg,
#0d3218 135deg,
#0b3140 180deg,
#17134a 225deg,
#3d123f 270deg,
#2e0d20 315deg,
#050507 360deg
);
animation: blackGlowBorder 4s linear infinite;
/* 挖空中间,只保留边框 */
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
/* 发光效果 */
box-shadow:
0 0 4px rgba(255, 60, 150, 0.75),
0 0 8px rgba(40, 190, 255, 0.65),
0 0 14px rgba(150, 70, 255, 0.45),
0 0 20px rgba(255, 180, 40, 0.25);
}
/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
.wikitable .black-glow::after {
animation: none;
}
}
@keyframes goldGlowBorder {
0% {
filter:
brightness(1.4)
contrast(1.15)
saturate(1.2);
}
50% {
filter:
brightness(2.4)
contrast(1.25)
saturate(1.45);
}
100% {
filter:
brightness(1.4)
contrast(1.15)
saturate(1.2);
}
}
/**
* 白金鎏金流光边框
* 使用方式:为目标元素添加 gold-glow 类
*/
@keyframes platinumGoldGlowFlow {
0%,
100% {
opacity: 0.9;
filter:
brightness(1.05)
contrast(1.1)
saturate(1.15)
drop-shadow(0 0 3px rgba(255, 245, 190, 0.85))
drop-shadow(0 0 8px rgba(225, 177, 38, 0.55))
drop-shadow(0 0 14px rgba(180, 125, 0, 0.3));
}
25% {
opacity: 1;
filter:
brightness(1.35)
contrast(1.16)
saturate(1.25)
drop-shadow(0 0 4px rgba(255, 255, 235, 0.95))
drop-shadow(0 0 10px rgba(255, 215, 85, 0.7))
drop-shadow(0 0 18px rgba(210, 150, 0, 0.42));
}
50% {
opacity: 0.94;
filter:
brightness(1.12)
contrast(1.12)
saturate(1.2)
drop-shadow(0 0 3px rgba(255, 241, 175, 0.9))
drop-shadow(0 0 9px rgba(235, 188, 45, 0.62))
drop-shadow(0 0 15px rgba(190, 130, 0, 0.34));
}
75% {
opacity: 1;
filter:
brightness(1.42)
contrast(1.18)
saturate(1.3)
drop-shadow(0 0 5px rgba(255, 255, 240, 1))
drop-shadow(0 0 12px rgba(255, 220, 95, 0.75))
drop-shadow(0 0 20px rgba(215, 155, 0, 0.45));
}
}
/* 边框目标元素 */
.wikitable .gold-glow {
position: relative;
z-index: 0;
isolation: isolate;
border-radius: 6px;
}
/* 外层鎏金渐变边框 */
.wikitable .gold-glow::after {
content: "";
position: absolute;
z-index: 2;
inset: -2px;
padding: 3px;
pointer-events: none;
box-sizing: border-box;
border-radius: inherit;
/*
* 黄金为主,香槟金过渡。
* 纯白色只用于制造少量金属反光。
*/
background: conic-gradient(
from 35deg,
/* 第一段暗金 */
#6f5000 0deg,
#8e6800 14deg,
#b48708 30deg,
/* 第一段亮金 */
#d2a817 48deg,
#f2cd4f 65deg,
/* 第一处白金反光 */
#fff4bd 78deg,
#ffffff 86deg,
#f7d866 96deg,
/* 香槟金过渡 */
#d7aa27 112deg,
#c29412 125deg,
/* 第二段暗金 */
#8b6500 150deg,
#a97d06 162deg,
#d8ad25 178deg,
/* 第二段亮金 */
#f3cc4c 194deg,
#ffe582 206deg,
/* 第二处白金反光 */
#fff8d4 216deg,
#ffffff 224deg,
#e7bb32 237deg,
/* 第三段暗金 */
#b08309 250deg,
#926900 265deg,
/* 第三段主金 */
#aa7d04 278deg,
#c99a0a 292deg,
#e1b52d 304deg,
#f4cf50 315deg,
/* 最后一处香槟高光 */
#fff0a3 330deg,
#e5bc38 339deg,
#b78908 347deg,
/* 回到起点 */
#856100 354deg,
#6f5000 360deg
);
/*
* 挖空伪元素中间区域,
* 只留下指定宽度的渐变边框。
*/
-webkit-mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
-webkit-mask-composite: xor;
mask:
linear-gradient(#000 0 0) content-box,
linear-gradient(#000 0 0);
mask-composite: exclude;
animation: platinumGoldGlowFlow 2.8s ease-in-out infinite;
}
/* 内侧金属细边,增强边框层次 */
.wikitable .gold-glow::before {
content: "";
position: absolute;
z-index: 1;
inset: 2px;
pointer-events: none;
box-sizing: border-box;
border: 1px solid rgba(255, 232, 145, 0.58);
border-radius: 3px;
box-shadow:
inset 0 0 3px rgba(255, 250, 225, 0.42),
inset 0 0 7px rgba(218, 166, 35, 0.16),
0 0 4px rgba(225, 180, 55, 0.48);
}
/* 系统设置为减少动态效果时停止动画 */
@media (prefers-reduced-motion: reduce) {
.wikitable .gold-glow::after {
animation: none;
opacity: 1;
filter:
brightness(1.15)
contrast(1.12)
saturate(1.2)
drop-shadow(0 0 3px rgba(255, 245, 190, 0.85))
drop-shadow(0 0 9px rgba(225, 177, 38, 0.55));
}
}
/* BEGIN olive-completed frame */
/* Matte olive ornaments follow a clockwise path without repeating image slices. */
.wikitable td.olive-completed {
--olive-inset: 22px;
--olive-corner-size: 84px;
--olive-horizontal-length: 200px;
--olive-vertical-length: 116px;
position: relative;
isolation: isolate;
padding: 40px 42px 38px;
background-color: transparent;
}
.wikitable td.olive-completed::after {
content: "";
position: absolute;
inset: var(--olive-inset);
border: 1px solid rgba(107, 122, 73, 0.16);
border-image: none;
border-radius: 9px;
pointer-events: none;
z-index: 1;
}
.olive-completed .olive-frame-art {
position: absolute;
inset: 0;
display: block;
pointer-events: none;
z-index: 2;
}
.olive-completed .olive-corner,
.olive-completed .olive-sprig {
position: absolute;
display: block;
background-position: center;
background-repeat: no-repeat;
pointer-events: none;
}
.olive-completed .olive-corner {
width: var(--olive-corner-size);
height: var(--olive-corner-size);
background-image: url("https://acetaffy.org/images/3/38/%E6%B8%B8%E6%88%8F%E5%AE%8C%E7%BB%93-%E5%93%91%E5%85%89%E9%A1%BA%E6%97%B6%E9%92%88%E8%A7%92%E6%9E%9D-v3.png");
background-size: contain;
}
.olive-completed .olive-corner-ne { top: 8px; right: 8px; }
.olive-completed .olive-corner-se { bottom: 8px; right: 8px; transform: rotate(90deg); }
.olive-completed .olive-corner-sw { bottom: 8px; left: 8px; transform: rotate(180deg); }
.olive-completed .olive-corner-nw { top: 8px; left: 8px; transform: rotate(270deg); }
.olive-completed .olive-sprig {
width: var(--olive-horizontal-length);
height: 42px;
background-image: url("https://acetaffy.org/images/6/63/%E6%B8%B8%E6%88%8F%E5%AE%8C%E7%BB%93-%E5%93%91%E5%85%89%E9%A1%BA%E6%97%B6%E9%92%88%E7%9B%B4%E6%9E%9D-v3.png");
background-size: var(--olive-horizontal-length) auto;
}
.olive-completed .olive-sprig-n {
top: var(--olive-inset);
left: 50%;
transform: translate(-50%, -50%);
}
.olive-completed .olive-sprig-s {
top: calc(100% - var(--olive-inset));
left: 50%;
transform: translate(-50%, -50%) rotate(180deg);
}
.olive-completed .olive-sprig-e,
.olive-completed .olive-sprig-w {
top: 50%;
width: var(--olive-vertical-length);
height: 28px;
background-size: var(--olive-vertical-length) auto;
}
.olive-completed .olive-sprig-e {
left: calc(100% - var(--olive-inset));
transform: translate(-50%, -50%) rotate(90deg);
}
.olive-completed .olive-sprig-w {
left: var(--olive-inset);
transform: translate(-50%, -50%) rotate(270deg);
}
.wikitable td.olive-completed figure {
width: 100%;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
.wikitable td.olive-completed figure > a.mw-file-description {
display: block;
width: 100%;
max-width: 300px;
margin-inline: auto;
text-align: center;
}
.wikitable td.olive-completed figure img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin-inline: auto;
}
@media (max-width: 600px) {
.wikitable td.olive-completed {
--olive-inset: 16px;
--olive-corner-size: 64px;
--olive-horizontal-length: 128px;
--olive-vertical-length: 94px;
padding: 32px 30px 30px;
}
}
/* END olive-completed frame */
/* BEGIN bouquet-completed frame */
/* Equal-size corner bouquets mark completed games without stretching the artwork. */
.wikitable td.bouquet-completed {
--bouquet-size: 132px;
position: relative;
isolation: isolate;
padding: 52px 42px 58px;
background-color: transparent;
}
.wikitable td.bouquet-completed::after {
content: "";
position: absolute;
inset: 20px;
border: 1px solid rgba(148, 129, 98, 0.5);
border-radius: 7px;
pointer-events: none;
transition: border-color 0.35s ease, box-shadow 0.35s ease;
z-index: 1;
}
.bouquet-completed .bouquet-frame-art {
position: absolute;
inset: 0;
display: block;
pointer-events: none;
z-index: 2;
}
.bouquet-completed .bouquet-corner {
position: absolute;
display: block;
width: var(--bouquet-size);
height: var(--bouquet-size);
background: url("https://acetaffy.org/images/8/8e/%E6%B8%B8%E6%88%8F%E5%AE%8C%E7%BB%93-%E6%B7%A1%E5%BD%A9%E8%8A%B1%E6%9D%9F-v1.png") center / contain no-repeat;
pointer-events: none;
}
.bouquet-completed .bouquet-corner-nw { top: 0; left: 0; }
.bouquet-completed .bouquet-corner-se { right: 0; bottom: 0; transform: rotate(180deg); }
.wikitable td.bouquet-completed > a {
display: block;
margin-inline: 38px;
text-align: center;
}
.bouquet-completed .bouquet-completion-label {
position: absolute;
bottom: 10px;
left: 50%;
transform: translateX(-50%);
box-sizing: border-box;
min-width: 82px;
padding: 3px 13px;
border: 1px solid rgba(148, 129, 98, 0.45);
border-radius: 3px 12px;
color: #655541;
background: #f7f2e9;
font-size: 12px;
font-weight: 600;
line-height: 20px;
letter-spacing: 2px;
text-align: center;
white-space: nowrap;
pointer-events: none;
z-index: 3;
}
.wikitable td.bouquet-completed figure {
width: 100%;
max-width: 100%;
margin-left: 0;
margin-right: 0;
}
.wikitable td.bouquet-completed figure > a.mw-file-description {
display: block;
width: 100%;
max-width: 300px;
margin-inline: auto;
text-align: center;
}
.wikitable td.bouquet-completed figure img {
display: block;
width: 100%;
max-width: 100%;
height: auto;
margin-inline: auto;
}
@keyframes bouquetCompletionGlint {
0%, 100% { box-shadow: 0 0 0 rgba(202, 178, 121, 0); }
45% { box-shadow: 0 0 12px rgba(202, 178, 121, 0.4); }
}
@media (hover: hover) {
.wikitable td.bouquet-completed:hover::after {
border-color: rgba(169, 137, 78, 0.8);
animation: bouquetCompletionGlint 1.6s ease-out 1;
}
}
.wikitable td.bouquet-completed:focus-within::after {
border-color: rgba(169, 137, 78, 0.8);
animation: bouquetCompletionGlint 1.6s ease-out 1;
}
@media (max-width: 600px) {
.wikitable td.bouquet-completed {
padding: 86px 30px 86px;
}
.wikitable td.bouquet-completed > a { margin-inline: 0; }
}
@media (prefers-reduced-motion: reduce) {
.wikitable td.bouquet-completed::after {
animation: none !important;
transition: none;
}
}
/* END bouquet-completed frame */
/* BEGIN taffy-footer */
/* 页脚名单:内容在 MediaWiki:Citizen-footer-tagline,每行 * 为一位成员。 */
/* 贡献者连续排列;窄屏自然换行,每位成员的姓名和角标保持在一起。 */
.taffy-footer-contributors {
line-height: 2;
}
.taffy-footer-contributors > p {
display: inline;
margin: 0;
}
.taffy-footer-contributors > ul {
display: inline;
margin: 0;
padding: 0;
list-style: none;
}
.taffy-footer-contributors > ul > li,
.taffy-sponsor-row > ul > li {
display: inline-block;
white-space: nowrap;
}
/* 贡献者角标,以及由样式自动添加的赞助奖章。 */
.taffy-footer-contributors sup,
.taffy-sponsor-row > ul > li > a::after {
display: inline-block;
margin-left: 0.12em;
font-size: 0.72em;
line-height: 0;
vertical-align: super;
}
/* 赞助名单位于页脚末尾,金、银、铜各占一行。 */
.taffy-footer-sponsors {
margin-top: 0.9em;
}
.taffy-footer-sponsors > p {
margin: 0 0 0.25em;
}
.taffy-sponsor-row {
line-height: 2;
}
.taffy-sponsor-row > ul {
display: flex;
flex-wrap: wrap;
align-items: baseline;
column-gap: 1.1em;
margin: 0;
padding: 0;
list-style: none;
}
/* 档位统一控制姓名颜色及奖章滤镜,无须逐人填写样式。 */
.taffy-sponsor-gold {
--taffy-sponsor-color: #b8860b;
--taffy-sponsor-medal-filter: none;
}
.taffy-sponsor-silver {
--taffy-sponsor-color: #7d8998;
--taffy-sponsor-medal-filter: grayscale(1);
}
.taffy-sponsor-bronze {
--taffy-sponsor-color: #ad7048;
--taffy-sponsor-medal-filter: sepia(1) saturate(1.3) hue-rotate(345deg) brightness(0.85);
}
.taffy-footer-sponsors .taffy-sponsor-row a:any-link {
color: var(--taffy-sponsor-color);
font-weight: 600;
}
.taffy-sponsor-row > ul > li > a::after {
content: "🏅";
filter: var(--taffy-sponsor-medal-filter);
}
/* BEGIN taffy-footer-support */
/* 赞助二维码位于 #footer-icons 两枚标识下面;不改变 tagline 和页脚主体布局。 */
.citizen-footer__bottom > #footer-icons.taffy-footer-icons {
flex-direction: column;
align-items: center;
align-self: flex-end;
margin-inline-start: auto;
gap: 12px;
}
#footer-icons .taffy-footer-support {
width: 184px;
max-width: 100%;
text-align: center;
}
/* 原图为透明底,保留白底与留白。 */
#footer-icons .taffy-footer-support-qr {
display: inline-block;
padding: 16px;
border-radius: 4px;
background: #fff;
line-height: 0;
}
.taffy-footer-support-qr img {
display: block;
width: 128px;
height: 128px;
image-rendering: pixelated;
}
.taffy-footer-support-caption {
display: block;
margin-top: 8px;
font-size: 12px;
line-height: 1.5;
}
/* END taffy-footer-support */
/* END taffy-footer */