查看“MediaWiki:Common.css”的源代码
←
MediaWiki:Common.css
跳转到导航
跳转到搜索
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于该用户组的用户执行:
用户
此页面为本wiki上的软件提供界面文本,并受到保护以防止滥用。 如欲修改所有wiki的翻译,请访问
translatewiki.net
上的MediaWiki本地化项目。
您无权编辑此CSS页面,因为编辑此页面可能会影响所有访问者。
您可以查看和复制此页面的源代码。
/************************* * 全局主题:暗黑背景 *************************/ html, body { background-color: #000 !important; color: #f0f0f0 !important; } /************************* * 内容区块:暗灰卡片样式 *************************/ .mw-parser-output > * { background-color: #1a1a1a !important; color: #f0f0f0 !important; padding: 16px 24px; margin-bottom: 16px; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.4); } /************************* * 表格美化(wikitable) *************************/ .wikitable { background-color: #111 !important; border: 1px solid #444 !important; color: #ccc !important; } .wikitable th { background-color: #222 !important; color: #fff !important; } .wikitable td { background-color: #111 !important; color: #ccc !important; } /************************* * 顶部区域 + 左侧边栏 *************************/ .vector-header, .vector-sticky-header, .vector-header-container { background-color: #000 !important; color: #eee !important; border: none !important; } #mw-panel { background-color: #111 !important; border-right: 1px solid #333 !important; color: #eee !important; } /************************* * 鼠标悬停高亮(整体卡片 hover 效果) *************************/ .mw-parser-output > *:hover { background-color: #222 !important; box-shadow: 0 0 12px rgba(255,255,255,0.05); transition: background-color 0.2s ease; } /************************* * 首页头像区域排版(.sprite-grid) *************************/ .sprite-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px 24px; justify-items: center; padding: 20px; margin: 0 auto; max-width: 1400px; } /************************* * 精灵卡片样式 *************************/ .sprite-grid > div, .mw-parser-output > div > div { background-color: #1a1a1a !important; border: 1px solid #444; border-radius: 12px; padding: 10px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4); width: 100px; text-align: center; transition: transform 0.2s ease; } .sprite-grid > div:hover, .mw-parser-output > div > div:hover { transform: translateY(-4px); box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15); } /************************* * 图片外框(白色背景改为灰色) *************************/ .mw-parser-output a.image { background-color: #2a2a2a !important; display: inline-block; padding: 4px; border-radius: 8px; box-shadow: none !important; border: none !important; } /************************* * 图片自身(去白底和阴影) *************************/ .mw-parser-output a.image img, .sprite-grid img { background: transparent !important; border: none !important; box-shadow: none !important; border-radius: 6px; width: 100%; height: auto; } /************************* * 精灵名称样式 *************************/ .mw-parser-output > div > div br + span, .mw-parser-output > div > div br + div, .sprite-name { color: #f0f0f0 !important; font-size: 14px; font-weight: 500; margin-top: 4px; background: transparent !important; text-shadow: 0 1px 2px #000; } /* 页面整体居中,控制最大宽度 */ .mw-parser-output { max-width: 980px; margin: 0 auto; padding: 20px; font-size: 14px; line-height: 1.7; } /* 精灵信息区块统一样式 */ .mw-parser-output > * { background-color: #1a1a1a !important; color: #f0f0f0; padding: 16px 24px; margin-bottom: 24px; border-radius: 12px; box-shadow: 0 0 10px rgba(0,0,0,0.3); } /* 表格优化 */ .wikitable { background-color: #111 !important; border: 1px solid #333; color: #ccc; width: 100%; border-collapse: collapse; } .wikitable th { background-color: #222 !important; color: #fff; padding: 6px 10px; } .wikitable td { background-color: #111 !important; padding: 6px 10px; text-align: center; } /* 标题更显眼 */ .mw-headline { font-size: 18px; font-weight: bold; border-left: 5px solid #555; padding-left: 10px; margin-bottom: 12px; } /* 输入框样式统一 */ input[type="text"], input[type="number"], select { background-color: #2a2a2a; color: #f0f0f0; border: 1px solid #444; border-radius: 6px; padding: 5px 8px; margin: 4px 0; } /* 按钮统一 */ button, input[type="button"], input[type="submit"] { background-color: #444; color: #fff; border: none; padding: 6px 12px; border-radius: 6px; cursor: pointer; } button:hover { background-color: #666; } /* 种族值计算器布局优化 */ .calc-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; } /* 限制页面宽度居中显示 */ .mw-parser-output { max-width: 960px; margin: 0 auto; padding: 20px; font-size: 14px; line-height: 1.7; } /* 统一每个段落背景盒子美化 */ .mw-parser-output > * { background-color: #1a1a1a !important; padding: 20px; margin-bottom: 24px; border-radius: 12px; box-shadow: 0 0 8px rgba(255,255,255,0.05); } /* 优化所有输入框样式 */ input[type="text"], input[type="number"], select { background-color: #2a2a2a !important; color: #f0f0f0 !important; border: 1px solid #555 !important; border-radius: 6px !important; padding: 5px 8px; width: 100px; box-sizing: border-box; } /* 按钮样式 */ input[type="button"], input[type="submit"], button { background-color: #444 !important; color: #fff !important; border: none; padding: 6px 12px; margin: 4px; border-radius: 6px; cursor: pointer; } input[type="button"]:hover, input[type="submit"]:hover, button:hover { background-color: #666 !important; } /* 自动让多列表格或DIV并排 */ .mw-parser-output > div:has(input[type="text"]), .mw-parser-output > div:has(input[type="number"]) { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; } /* 表格结构美化 */ .wikitable { background-color: #111 !important; border-collapse: collapse; border: 1px solid #333; width: 100%; } .wikitable th { background-color: #222 !important; color: #fff !important; padding: 6px 10px; } .wikitable td { background-color: #111 !important; padding: 6px 10px; text-align: center; color: #ccc; }
返回
MediaWiki:Common.css
。
导航菜单
个人工具
创建账号
登录
命名空间
系统消息
讨论
English
查看
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息