查看“MediaWiki:Common.css”的源代码
←
MediaWiki:Common.css
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
管理员
、编辑者
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/* ======================================== MediaWiki 通用样式表 (Common.css) 版本: 2.0 设计风格: 现代、清晰、响应式 兼容性: MediaWiki 1.35+ ======================================== */ /* ---------- 全局设置 ---------- */ body { font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; background-color: #f8f9fa; color: #212529; line-height: 1.6; } /* 主容器增加最大宽度,提升大屏阅读体验 */ #mw-content-container { max-width: 1440px; margin: 0 auto; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.08); } /* ---------- 页面标题 ---------- */ #firstHeading { font-weight: 600; font-size: 2rem; border-bottom: 3px solid #2a4b7c; padding-bottom: 0.4rem; margin-bottom: 1.2rem; color: #1a365d; } /* ---------- 内容区排版 ---------- */ .mw-body { padding: 1.5rem 2rem; background: #ffffff; } /* 内容中的标题 */ .mw-body h1, .mw-body h2, .mw-body h3, .mw-body h4, .mw-body h5, .mw-body h6 { color: #1a365d; margin-top: 1.8rem; margin-bottom: 0.8rem; font-weight: 500; } .mw-body h2 { border-bottom: 2px solid #e9ecef; padding-bottom: 0.3rem; } /* ---------- 链接样式 ---------- */ a { color: #0645ad; transition: color 0.15s ease; } a:hover { color: #0b3d91; text-decoration: underline; } /* 外部链接 - 加个小图标 */ .mw-body a.external { background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMiIgaGVpZ2h0PSIxMiIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiM2NDVhZGQiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48cGF0aCBkPSJNMTggMTN2NmEyIDIgMCAwIDEtMiAySDVhMiAyIDAgMCAxLTItMlY4YTIgMiAwIDAgMSAyLTJoNiIgLz48cG9seWxpbmUgcG9pbnRzPSIxNSAzIDIxIDMgMjEgOSIgLz48bGluZSB4MT0iMTAiIHkxPSIxNCIgeDI9IjIxIiB5Mj0iMyIgLz48L3N2Zz4=) right center no-repeat; background-size: 0.85em; padding-right: 1.2em; } /* ---------- 导航栏 (左侧边栏) ---------- */ #mw-panel { font-size: 0.9rem; } #mw-panel .portal { background: transparent; border: none; margin-bottom: 0.8rem; } #mw-panel .portal h5 { font-weight: 600; font-size: 0.95rem; color: #2d3748; background: #e9ecef; padding: 0.4rem 0.8rem; border-radius: 4px; } #mw-panel .portal .body ul { list-style: none; padding-left: 0.5rem; } #mw-panel .portal .body li a { color: #1a202c; display: block; padding: 0.25rem 0.5rem; border-radius: 3px; transition: background 0.15s; } #mw-panel .portal .body li a:hover { background: #e2e8f0; text-decoration: none; } /* ---------- 搜索框 ---------- */ #p-search #searchInput { border: 1px solid #ced4da; border-radius: 20px; padding: 0.4rem 1rem; width: 100%; font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s; } #p-search #searchInput:focus { border-color: #2a4b7c; box-shadow: 0 0 0 3px rgba(42, 75, 124, 0.2); outline: none; } #p-search #searchButton { background: #2a4b7c; color: #fff; border: none; border-radius: 20px; padding: 0.4rem 1.2rem; margin-left: 0.3rem; font-weight: 500; transition: background 0.2s; } #p-search #searchButton:hover { background: #1a365d; cursor: pointer; } /* ---------- 内容表格 (wikitable) ---------- */ .wikitable { background: #ffffff; border: 1px solid #dee2e6; border-collapse: collapse; font-size: 0.95rem; width: 100%; margin: 1.2rem 0; } .wikitable th { background: #f1f3f5; font-weight: 600; text-align: left; padding: 0.5rem 0.8rem; border: 1px solid #dee2e6; } .wikitable td { padding: 0.5rem 0.8rem; border: 1px solid #dee2e6; } .wikitable tr:nth-child(even) { background: #f8f9fa; } /* ---------- 信息框 (infobox) ---------- */ .infobox { float: right; clear: right; background: #f8f9fa; border: 1px solid #dee2e6; padding: 0.8rem 1rem; margin: 0 0 1rem 1.5rem; width: 280px; font-size: 0.9rem; border-radius: 6px; box-shadow: 0 1px 3px rgba(0,0,0,0.05); } .infobox caption { font-weight: 700; font-size: 1.1rem; text-align: center; margin-bottom: 0.3rem; } .infobox th, .infobox td { vertical-align: top; padding: 0.2rem 0.4rem; } .infobox th { font-weight: 600; white-space: nowrap; } /* 小屏幕时信息框不浮动 */ @media (max-width: 768px) { .infobox { float: none; width: 100%; margin: 0 0 1rem 0; } } /* ---------- 引用/脚注 ---------- */ .mw-cite-backlink { font-size: 0.85rem; } ol.references { font-size: 0.9rem; } ol.references li { margin-bottom: 0.3rem; } /* ---------- 分类链接 ---------- */ #mw-normal-catlinks { background: #f1f3f5; padding: 0.5rem 1rem; border-radius: 4px; margin-top: 2rem; border: 1px solid #e9ecef; } #mw-normal-catlinks a { color: #0645ad; } /* ---------- 用户工具栏 (右上角) ---------- */ #p-personal { font-size: 0.9rem; } #p-personal li a { color: #1a202c; padding: 0.2rem 0.6rem; border-radius: 3px; } #p-personal li a:hover { background: #e2e8f0; text-decoration: none; } #p-personal #pt-userpage a { font-weight: 600; } /* ---------- 编辑区 (可视化/源代码) ---------- */ .mw-editform textarea { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.9rem; border: 1px solid #ced4da; border-radius: 4px; padding: 0.6rem; } .mw-editform textarea:focus { border-color: #2a4b7c; box-shadow: 0 0 0 3px rgba(42, 75, 124, 0.15); } /* ---------- 消息框 (模板消息) ---------- */ .messagebox, .ambox { border-left: 5px solid #2a4b7c; background: #f8f9fa; padding: 0.6rem 1rem; margin: 0.8rem 0; border-radius: 3px; } .ambox-warning { border-left-color: #dc3545; background: #fef2f2; } .ambox-notice { border-left-color: #0d6efd; background: #f0f7ff; } .ambox-move { border-left-color: #6c757d; } /* ---------- 特殊页面表格 ---------- */ .mw-specialpage-table { background: #ffffff; border: 1px solid #dee2e6; border-collapse: collapse; } .mw-specialpage-table th { background: #e9ecef; font-weight: 600; padding: 0.4rem 0.8rem; } .mw-specialpage-table td { padding: 0.4rem 0.8rem; border-top: 1px solid #dee2e6; } /* ---------- 移动端自适应 ---------- */ @media (max-width: 768px) { .mw-body { padding: 1rem; } #firstHeading { font-size: 1.5rem; } #mw-panel { display: none; /* 在小屏幕隐藏侧边栏,使用汉堡菜单或顶部导航 (取决于皮肤) */ } .wikitable { font-size: 0.85rem; } .wikitable th, .wikitable td { padding: 0.3rem 0.5rem; } } @media (max-width: 480px) { .mw-body { padding: 0.8rem; } #firstHeading { font-size: 1.25rem; } #p-search #searchInput { width: 70%; } } /* ---------- 打印样式 ---------- */ @media print { body { background: #ffffff; color: #000000; } #mw-panel, #p-personal, #mw-navigation, .infobox { display: none; } .mw-body { padding: 0.5in; } a { color: #000000; text-decoration: underline; } .wikitable { border: 1px solid #aaa; } .wikitable th { background: #eee; } }
返回
MediaWiki:Common.css
。
蜀ICP备2026037366号-1
导航菜单
个人工具
创建账号
登录
命名空间
系统消息
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
战役剧情
任务列表
时间线与剧情
第一幕:红色黎明
第二幕:厄普西隆纪元
第三幕:新世记
额外章节:特殊行动
额外章节:合作任务
额外章节:挑战
主要角色
盟军指挥官
苏联将军
厄普西隆异教
沃克网AI
阵营
同盟国联军
苏维埃联盟
厄普西隆军
焚风反抗军
中立科技
军备
单位总览
同盟国联军军备
苏维埃联盟军备
厄普西隆军军备
焚风反抗军军备
游戏数据
注册名对照表
修正比
其它
查看所有文件
工具
链入页面
相关更改
特殊页面
页面信息