首页
最近更改
MediaWiki帮助
中文社区
模组
人物
团体
群聊
历史
外网社区
模组
发帖交流
论坛
聊天
博客
快捷访问
分类
文件列表
用户列表
用户通知
礼物列表
随机页面
聊天中的在线用户
系统消息
讨论
查看源代码
查看历史
刷新
创建账号
登录
查看“︁MediaWiki:Common.css”︁的源代码
来自Age Of History 2 Chinese Wiki
←
Common.css
跳转至:
导航
、
搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* 这里放置的CSS将应用于所有皮肤 */ @import url("https://fonts.googleapis.com/css2?family=VT323&display=swap"); @import url("https://fastly.jsdelivr.net/gh/hoah2333/Fonts@main/Typeface-VonwaonBitmap-16px.css"); :root { --link-color: #0645ad; --link-color-active: #faa700; --custom-background-blue: #ccf; --custom-background-cyan: #cef; --custom-background-green: #cfc; --custom-background-gray: #d2d2d2; --custom-background-grey: var(--custom-background-gray); --custom-background-magenta: #fdf; --custom-background-orange: #fdb; --custom-background-purple: #ecf; --custom-background-red: #fcc; --custom-background-yellow: #ffc; --custom-border-blue: #36e; --custom-border-cyan: #9df; --custom-border-green: #5d5; --custom-border-gray: #bbb; --custom-border-grey: var(--custom-border-gray); --custom-border-magenta: #f9f; --custom-border-orange: #f90; --custom-border-purple: #96c; --custom-border-red: #e44; --custom-border-yellow: #fc3; --custom-closed-topic-neutral: #eef; --custom-closed-topic-no: #fee; --custom-closed-topic-yes: #efe; --custom-code-background: #f8f9fa; --custom-load-page-button-color: #fff8; --custom-main-page-background: #fcfcfc; --custom-main-page-border: var(--custom-border-gray); --custom-main-page-edition-subheader: #333; --custom-mcwiki-header-color: #bcd4f5; --custom-navbox-background: #fff; --custom-navbox-top: #ccc; --custom-navbox-middle: #ddd; --custom-navbox-thru: #eee; --custom-nbt-inherit-color: #e6e6fa; --custom-table-background: #f8f9fa; --custom-table-alternate-background: #f0f1f2; --custom-table-choice-always: #003600; --custom-table-choice-always-background: #80d080; --custom-table-choice-default: #fff; --custom-table-choice-in-off-background: #060; --custom-table-choice-in-on-background: #0c0; --custom-table-choice-na: #000; --custom-table-choice-na-background: #fff; --custom-table-choice-neutral: #634800; --custom-table-choice-neutral-background: #ffeb9c; --custom-table-choice-never: #3c0404; --custom-table-choice-never-background: #ff8080; --custom-table-choice-no: #840606; --custom-table-choice-no-background: #ffc7ce; --custom-table-choice-out-off-background: #900; --custom-table-choice-out-on-background: #f00; --custom-table-choice-partial: #665400; --custom-table-choice-partial-background: #ffd; --custom-table-choice-planned: #0131b7; --custom-table-choice-planned-background: #dfdfff; --custom-table-choice-rarely: #533400; --custom-table-choice-rarely-background: #fdce5e; --custom-table-choice-unknown: #222; --custom-table-choice-unknown-background: #ccc; --custom-table-choice-yes: #005600; --custom-table-choice-yes-background: #c6efce; --custom-table-header-background: #eaecf0; --custom-topic-30-days: #bbb; --custom-topic-7-days: #ddd; /* CRT效果相关变量 */ --crt-scanline-alpha: 0.05; --crt-flicker-alpha: 0.03; --crt-noise-alpha: 0.02; --crt-glow-radius: 0.07em; --crt-glow-color: rgba(0, 128, 0, 0.15); /* 字体设置 */ --pixel-font: 'VT323', 'VonwaonBitmap 16px', monospace; --body-font: var(--pixel-font), Verdana, "Microsoft YaHei", "微软雅黑", Geneva, sans-serif; --UI-font: var(--pixel-font), "方体", "PingFang SC", "黑体", "Heiti SC", sans-serif; --title-font: var(--pixel-font); /* 边框和内间距设置 */ --side-border-thickness: 0.125rem; --main-border-thickness: 0.0625rem; } /* 基础CRT效果:扫描线和荧光效果 */ @keyframes flicker { 0% { opacity: 0.98; } 5% { opacity: 0.97; } 10% { opacity: 0.99; } 15% { opacity: 0.98; } 20% { opacity: 0.97; } 25% { opacity: 0.99; } 30% { opacity: 0.98; } 35% { opacity: 0.97; } 40% { opacity: 0.99; } 50% { opacity: 0.98; } 70% { opacity: 0.97; } 80% { opacity: 0.99; } 90% { opacity: 0.98; } 100% { opacity: 0.97; } } @keyframes scanlines { 0% { transform: translateY(0); } 100% { transform: translateY(1px); } } /* 全局样式 */ html, body { font-family: var(--body-font); line-height: 1.4; position: relative; } /* 扫描线效果 - 轻微不干扰阅读 */ body::before { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient( to bottom, transparent 0%, rgba(0, 0, 0, var(--crt-scanline-alpha)) 50%, transparent 51%, rgba(0, 0, 0, var(--crt-scanline-alpha)) 100% ); background-size: 100% 4px; pointer-events: none; z-index: 9999; animation: scanlines 8s linear infinite; opacity: 0.3; } /* 噪点效果 - 非常轻微 */ body::after { content: ""; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAABmJLR0QA/wD/AP+gvaeTAAAA30lEQVRoge2awQ6EIAxFX/z/f3a+gImDLW2BZu4s7knYNbS9KSoRQojf5SQRzcyGNUlEs9a2zJukSJKkSDIXeWQ+kczkSsIid5GvJUYlL0WsRaxFDCVkLyMiIiJbYvn5S8xYJftGzKyltfaWsKbNeZ7dHTPXvRFJmUlZZEhERNZkSLJL8B1Zkax7Qkbk8J9vGZZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarBiWYZqsGJZhmqwYlmGarPwoJCIiciUfhRl8e00EGUAAAAAASUVORK5CYII="); background-size: 200px 200px; pointer-events: none; opacity: var(--crt-noise-alpha); z-index: 9998; } /* 标题样式 */ h1, h2, h3, h4, h5, h6 { font-family: var(--title-font); font-weight: normal; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color), 0 0 calc(var(--crt-glow-radius) * 2) var(--crt-glow-color); letter-spacing: 0.05em; } body h1 { font-family: var(--title-font) !important; } /* 链接样式 */ a { color: var(--link-color); text-decoration: none; position: relative; transition: color 0.2s ease, text-shadow 0.2s ease; } a:hover { color: var(--link-color-active); text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.3); } a.new { color: #ba0000; } /* Infobox样式 */ .notaninfobox { position: relative; clear: right; margin: 0 0 1em 1em; width: 350px; font-size: 90%; background-color: var(--custom-table-background); float: right; border: 1px solid var(--custom-border-gray); padding: 2px; overflow: auto; z-index: 1; overflow-wrap: anywhere; box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); animation: flicker 60s infinite; } @media all and (max-width: 511px) { .notaninfobox { float: none; margin-left: 0; width: auto; } } @media all and (max-width: 337px) { .notaninfobox { margin-left: -16px; margin-right: -16px; border-left: none; border-right: none; } } .notaninfobox > .infobox-title { font-family: var(--title-font); font-weight: normal; text-align: center; font-size: 120%; background-color: var(--custom-mcwiki-header-color); text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .infobox-imagearea { text-align: center; padding: 4px; } .infobox-imagearea > div:not(:first-child) { padding-top: 1em; } /* Horizontally centre animated images */ .infobox-imagearea .animated { display: inline-flex; align-items: center; } .notaninfobox .infobox-rows { display: grid; grid-template-columns: max-content 1fr; gap: 1px; } .notaninfobox .infobox-rows .infobox-row { display: contents; } .notaninfobox .infobox-row .infobox-row-label, .notaninfobox .infobox-row .infobox-row-field { padding: 4px; } .notaninfobox .infobox-row .infobox-row-label { font-family: var(--pixel-font); font-weight: normal; display: flex; align-items: center; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-label, .notaninfobox .infobox-rows .infobox-row:nth-child(2n) .infobox-row-field { background-color: var(--custom-table-alternate-background); } /* Infoboxes with tabber */ .tabber-container-infobox .tabber .tabbertab, .tabber-container-infobox ul.tabbernav li a, .tabber-container-infobox ul.tabbernav li.tabberactive a { background: none; border: none; } .tabber-container-infobox .tabber .tabbertab { padding: 0; } .tabber-container-infobox ul.tabbernav { font: inherit; font-size: 100%; } .tabber-container-infobox ul.tabbernav li a:hover { color: #000; } .tabber-container-infobox ul.tabbernav > li { margin-bottom: 5px; padding: 0; } .tabber-container-infobox ul.tabbernav > li > a { color: #595959; padding-bottom: 1px; display: block; font-family: var(--pixel-font); } .tabber-container-infobox ul.tabbernav > li > a::before { display: block; content: attr(alt); font-weight: bold; height: 0; color: transparent; overflow: hidden; visibility: hidden; } .tabber-container-infobox ul.tabbernav > li.tabberactive { border: none; } .modulebox { border: 1px solid #ccc; padding: 10px; margin: 10px 0; background-color: #f9f9f9; box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .tabber-container-infobox ul.tabbernav > li.tabberactive > a { font-weight: bold; color: var(--link-color); border-bottom: 2px solid var(--custom-mcwiki-header-color); } .infobox-rows p { margin: 0; } .infobox-rows dl + dl { margin-top: -0.4em; } .infobox-rows dl:last-child { margin-bottom: 0.2em; } .infobox-footer { text-align: center; font-family: var(--pixel-font); text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } /* 页面底部导航框(2011年8月16日引自中文维基)(所谓大家族模板) */ table.navbox{ border: 1px solid #aaa; clear: both; margin: auto; padding: 1px; text-align: center; width: 100%; box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } table.navbox + table.navbox{ margin-top: -1px; } .navbox-title, .navbox-abovebelow, table.navbox th{ padding-left: 1em; padding-right: 1em; text-align: center; font-family: var(--pixel-font); } .navbox-group{ font-weight: normal; white-space: nowrap; font-family: var(--pixel-font); } .navbox, .navbox-subgroup{ background: none repeat scroll 0 0 var(--theme-card-background-color, #fdfdfd); } .navbox-list{ border-color: #fdfdfd; } .navbox-title, table.navbox th{ background: none repeat scroll 0 0 #a5e4a5; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .navbox-abovebelow, .navbox-group, .navbox-subgroup .navbox-title{ background: none repeat scroll 0 0 #c0ecc0; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .navbox-subgroup .navbox-group, .navbox-subgroup .navbox-abovebelow{ background: none repeat scroll 0 0 #e6f6e6; } .navbox-even{ background: none repeat scroll 0 0 #f5fcf5; } .navbox-odd{ background: none repeat scroll 0 0 #fdfdfd; } .collapseButton { float: right; font-weight: 400; text-align: right; width: auto; } .navbox .collapseButton { width: 6em; } .navbar { position: relative; min-height: 23px !important; margin-bottom: 0px !important; border: 1px solid transparent; } .navbox-title .Wikiplus-Edit-EveryWhereBtn { display: none; } @media only screen and (max-width:759px){ .infotable { width: 90%; float: none; margin: 0 auto; } .navbox-title>div{ display: none; } .navbox-group, .navbox-group >div{ padding-left: 0 !important; padding-right: 0 !important; text-align: center; } } /* 黑幕效果 */ .heimu, .heimu rt{ --heimu-color: #252525; --heimu-text-color: #fff; --heimu-link-color: #add8e6; --heimu-visited-link-color: #c5cae9; --heimu-new-link-color: #fcc; --heimu-new-visited-link-color: #ef9a9a; --heimu-extiw-visited-link-color: #d1c4e9; background-color: var(--heimu-color); } .heimu, .heimu a, a .heimu, a.new .heimu, span.heimu a:visited, span.heimu a.new, span.heimu a.external, span.heimu a.external:visited, span.heimu a.extiw, span.heimu a.extiw:visited, span.heimu a.mw-disambig, span.heimu a.mw-redirect{ transition: color 0.13s linear; color: var(--heimu-color); text-shadow: none; } span.heimu:hover, span.heimu:active{ color: var(--heimu-text-color); } span.heimu:hover a, a:hover span.heimu{ color: var(--heimu-link-color); } span.heimu:hover a:visited, a:visited:hover span.heimu{ color: var(--heimu-visited-link-color); } span.heimu:hover a.new, a.new:hover span.heimu{ color: var(--heimu-new-link-color); } span.heimu a.new:hover:visited, a.new:hover:visited span.heimu{ color: var(--heimu-new-visited-link-color); } span.heimu:hover a.extiw:visited, a.extiw:visited:hover span.heimu{ color: var(--heimu-extiw-visited-link-color); } [color-mode="dark"] .heimu, [color-mode="dark"] .heimu rt{ --heimu-color: #5e6272; } /* 彩幕效果 */ .colormu-drk { color: #FFF; } .colormu-bri { color: #000; } .colormu-drk:not(.colormu_toggle_on) a { color: #add8e6; } .colormu-drk:not(.colormu_toggle_on) a.new { color: #FCC; } .colormu>span, .colormu a, .colormu a>span { transition: color 0.2s; } .colormu:not(:hover):not(:active):not(.colormu_toggle_on)>span, .colormu:not(:hover):not(:active):not(.colormu_toggle_on) a { color: transparent; } .colormu:not(:hover):not(:active):not(.colormu_toggle_on) a>span { color: transparent !important; } a .colormu-bri { color: inherit; } a:hover .colormu>span, a:active .colormu>span, .colormu-drk.colormu_toggle_on, .colormu_toggle_on>span, .colormu-drk.colormu_toggle_on a>span { color: inherit !important; } /* 表格样式 */ table { border-collapse: collapse; background-color: var(--custom-table-background); box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } table th { background-color: var(--custom-table-header-background); font-family: var(--pixel-font); font-weight: normal; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } table td, table th { border: 1px solid var(--custom-border-gray); padding: 0.25em 0.5em; } /* 代码样式 */ pre, code { font-family: var(--pixel-font); background-color: var(--custom-code-background); border: 1px solid var(--custom-border-gray); padding: 0.2em 0.4em; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } pre { padding: 1em; overflow-x: auto; } /* 边栏样式 - 使用style-bhl.css的风格但保持浅色主题 */ .side-block { --sideblock-heading-border-color: var(--custom-border-green); --sideblock-heading-text-color: #333; display: grid; grid-template-rows: repeat(auto-fit, minmax(1.3125rem, 1fr)); margin: 0.5rem 0.5rem 0 0; border: 0; font-family: var(--UI-font); direction: ltr; box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .side-block .heading { display: flex; align-items: flex-end; justify-content: flex-start; min-height: 1.5rem; margin: 0; box-shadow: 0 var(--side-border-thickness) 0 0 rgb(var(--sideblock-heading-border-color)); } .side-block .heading p { margin: 0; color: var(--sideblock-heading-text-color); font-family: var(--title-font); font-size: calc((var(--base-font-size) * (14 / 15)) * 0.9); font-weight: normal; letter-spacing: 0.05em; line-height: 1.15; text-indent: 0.25rem; text-transform: uppercase; cursor: pointer; text-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color); } .side-block div.menu-item { display: flex; flex-flow: row wrap; align-items: center; justify-content: flex-start; height: 1.5rem; min-height: 1.5rem; margin: 0; padding: 0; box-shadow: inset 0 calc(var(--side-border-thickness) * -1) 0 0 rgba(var(--sidebar-border-color), 0.3); font-size: 0; } .side-block div.menu-item a { position: relative; z-index: 2; overflow: hidden; display: flex; flex-grow: 2; justify-content: flex-start; height: 1.5em; margin: 0; padding: 0 0.6em; transition: all 0.2s ease; font-family: var(--pixel-font); letter-spacing: 0.05em; line-height: 1.5; text-decoration: none; } .side-block div.menu-item a:hover, .side-block div.menu-item a:active, .side-block div.menu-item a:focus-within { color: var(--link-color-active); text-shadow: 0 0 var(--crt-glow-radius) rgba(250, 167, 0, 0.3); } /* hover效果库 */ .hover-change, .hover-remote { position: relative; display: inline-block; transition: opacity 0.5s linear; } .hover-change-before, .hover-change-after, .hover-remote-target { transition: inherit; } .hover-change-after, .hover-remote-target { opacity: 0; position: absolute; top: 0; left: 0; } .hover-remote-target { left: 100%; } .hover-change-after[style^='right:'], .hover-change-after[style*=' right:'], .hover-remote-after[style^='right:'], .hover-remote-after[style*=' right:'] { left: initial; } .hover-change-after[style^='bottom:'], .hover-change-after[style*=' bottom:'], .hover-remote-after[style^='bottom:'], .hover-remote-after[style*=' bottom:'] { top: initial; } .hover-change-after:hover, .hover-remote-target { opacity: 0; margin-left: -9999px; } .hover-tab-mode { position: relative; transition: none; } .hover-tab-mode .hover-remote { transition: inherit; position: static; } .hover-change.flash:hover .hover-change-before { margin-left: -9999px; } .hover-change:hover > .hover-change-before, .hover-remote > .hover-remote-target, .hover-change:hover > a > .hover-change-before, .hover-remote > a > .hover-remote-target { opacity: 0; } .hover-change:hover > .hover-change-after, .hover-remote:hover > .hover-remote-target, .hover-change:hover > a > .hover-change-after, .hover-remote:hover > a > .hover-remote-target { opacity: 1; margin-left: initial; } /* 其他hover效果类 - 只保留样式不修改,保持与原TXT文件一致 */ [class*='hovers-'] { display: inline-block; box-shadow: 0 0 1px rgba(0, 0, 0, 0); transform: perspective(1px) translateZ(0); vertical-align: middle; transition-duration: 0.25s; transition-property: all; } .hovers-rotate-shrink { transition-duration: 0.5s; transform: rotate(0) scale(0.75); } .hovers-rotate-shrink:hover { transform: rotate(360deg) scale(1); } .hovers-rotate-shrink-reverse { transition-duration: 0.5s; transform: rotate(360deg) scale(0.75); } .hovers-rotate-shrink-reverse:hover { transform: rotate(0) scale(1); } .hovers-rotate, .hovers-rotate-reverse:hover { transition-duration: 0.5s; transform: rotate(0); } .hovers-rotate-reverse, .hovers-rotate:hover { transition-duration: 0.5s; transform: rotate(360deg); } .hovers-fade-deep, .hovers-fade, .hovers-fade-shallow { opacity: 1; } .hovers-fade-deep:hover, .hovers-fade-deep.active { opacity: 0.35; } .hovers-fade:hover, .hovers-fade.active { opacity: 0.5; } .hovers-fade-shallow:hover, .hovers-fade-shallow.active { opacity: 0.75; } .hovers-bloom-deep { opacity: 0.35; } .hovers-bloom { opacity: 0.5; } .hovers-bloom-shallow { opacity: 0.75; } .hovers-bloom-deep:hover, .hovers-bloom-deep.active, .hovers-bloom:hover, .hovers-bloom.active, .hovers-bloom-shallow:hover, .hovers-bloom-shallow.active { opacity: 1; } .hovers-grow-deep, .hovers-grow, .hovers-grow-shallow { transform: scale(1); } .hovers-grow-deep:hover, .hovers-grow-deep.active { transform: scale(1.5); } .hovers-grow:hover, .hovers-grow.active { transform: scale(1.25); } .hovers-grow-shallow:hover, .hovers-grow-shallow.active { transform: scale(1.1); } .hovers-shrink-deep:hover, .hovers-shrink-deep.active, .hovers-shrink:hover, .hovers-shrink.active, .hovers-shrink-shallow:hover, .hovers-shrink-shallow.active { transform: scale(1); } .hovers-shrink-deep { transform: scale(0.5); } .hovers-shrink { transform: scale(0.75); } .hovers-shrink-shallow { transform: scale(0.9); } /* CRT显示器荧光效果的列表样式 */ ul, ol { padding-left: 2em; } ul li, ol li { font-family: var(--pixel-font); margin-bottom: 0.25em; } /* 图片效果 */ img { max-width: 100%; height: auto; transition: box-shadow 0.2s ease; } img:hover { box-shadow: 0 0 var(--crt-glow-radius) var(--crt-glow-color), 0 0 calc(var(--crt-glow-radius) * 2) var(--crt-glow-color); } /* 确保文本内容在荧光字体下清晰可读 */ p, li, td, th, figcaption, blockquote, cite { font-family: var(--pixel-font); line-height: 1.5; letter-spacing: 0.02em; } /* 打印样式覆盖 */ @media print { body::before, body::after { display: none !important; } * { text-shadow: none !important; box-shadow: none !important; animation: none !important; } body, p, li, td, th { font-family: serif !important; } h1, h2, h3, h4, h5, h6 { font-family: sans-serif !important; font-weight: bold !important; } a { color: #000 !important; text-decoration: underline !important; } }
返回
Common.css
。
工具
链入页面
相关更改
特殊页面
页面信息
Cargo数据