|
|
| 第4行: |
第4行: |
| width: 100% !important; | | width: 100% !important; |
| height: auto !important; | | height: auto !important; |
| }
| |
| /* ==================================================
| |
| Mindustry Wiki 深度美化版 (已优化)
| |
| ================================================== */
| |
|
| |
| /* --- 1. 全局基础排版 --- */
| |
| /* 优化字体:优先显示雅黑,没有则显示系统黑体 */
| |
| body, .mw-body, .mw-body-content {
| |
| font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
| |
| color: #444;
| |
| }
| |
|
| |
| /* 正文段落字号微调 */
| |
| .mw-body p {
| |
| font-size: 16px;
| |
| line-height: 1.6;
| |
| }
| |
|
| |
| /* --- 2. 侧边栏 (Sidebar) 蓝红风格 --- */
| |
| /* 调整侧边栏宽度 */
| |
| div#mw-panel { width: 13em; }
| |
| .mw-body, #left-navigation { margin-left: 14em; }
| |
| div#footer { margin-left: 13em; }
| |
|
| |
| /* 侧边栏容器去背景 */
| |
| div#mw-panel div.portal { background-image: none; }
| |
| div#mw-panel div.portal div.body { margin: 0; }
| |
|
| |
| /* 侧边栏列表样式 */
| |
| div#mw-panel div.portal div.body ul {
| |
| border-top: 10px solid #CAD2DE;
| |
| background: #2B497B; /* 深蓝背景 */
| |
| padding: 0;
| |
| }
| |
|
| |
| div#mw-panel div.portal div.body ul li {
| |
| border-bottom: 1px dotted rgba(255,255,255,0.3);
| |
| padding: 5px 10px;
| |
| margin: 0;
| |
| }
| |
|
| |
| /* 鼠标悬停变红 */
| |
| div#mw-panel div.portal div.body ul li:hover {
| |
| background: #A3181E;
| |
| }
| |
|
| |
| /* 侧边栏链接文字 */
| |
| div#mw-panel div.portal div.body ul li a {
| |
| font-size: 12px; /*稍微调大一点,10px太小看不清*/
| |
| display: block;
| |
| color: #FFF;
| |
| text-decoration: none;
| |
| }
| |
| div#mw-panel div.portal div.body ul li a:visited { color: #EEE; }
| |
|
| |
| /* 侧边栏小标题 */
| |
| div#mw-panel div.portal h3 {
| |
| font-size: 14px;
| |
| background: #A3181E; /* 深红背景 */
| |
| color: white;
| |
| padding: 8px 10px;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| /* --- 3. 正文标题美化 --- */
| |
| .mw-body h1 {
| |
| font-size: 2.2em;
| |
| font-weight: normal;
| |
| border-bottom: 1px solid #eee;
| |
| padding-bottom: 10px;
| |
| }
| |
|
| |
| .mw-body h2 {
| |
| font-size: 1.8em;
| |
| margin: 1em 0 0.5em;
| |
| padding: 5px 0;
| |
| border-bottom: 3px solid #F1F4F9; /* 底部粗线条 */
| |
| font-weight: bold;
| |
| }
| |
|
| |
| /* 三级标题前加三角形 */
| |
| .mw-body h3:before { content: "\25BA "; color: #2B497B; }
| |
|
| |
| /* --- 4. 代码块与引用 --- */
| |
| pre, .mw-code {
| |
| display: block;
| |
| overflow-x: auto;
| |
| padding: 15px !important;
| |
| background: #edf0f3 !important;
| |
| border-radius: 4px;
| |
| border: none !important;
| |
| font-family: 'Consolas', 'Courier New', monospace !important;
| |
| font-size: 14px !important;
| |
| }
| |
|
| |
| .mw-body code {
| |
| font-family: 'Consolas', monospace !important;
| |
| background-color: #f5f5f5 !important;
| |
| padding: 2px 5px !important;
| |
| border-radius: 3px;
| |
| border: 1px solid #ddd;
| |
| color: #d63384; /* 像GitHub那样的高亮色 */
| |
| }
| |
|
| |
| /* 引用块 (紫色风格) */
| |
| .mw-body blockquote {
| |
| background: #E1E8FB;
| |
| border-left: 5px solid #D2D8FB;
| |
| padding: 15px;
| |
| margin: 10px 0;
| |
| font-size: 15px;
| |
| }
| |
|
| |
| /* --- 5. 链接与分类 --- */
| |
| /* 外部链接变橙色 + 小飞机图标 */
| |
| .mw-body a.external { color: orange !important; text-decoration: none; border-bottom: 1px dashed orange; }
| |
| .mw-body a.external:before { content: "\27A5 "; }
| |
|
| |
| /* 底部分类栏按钮化 */
| |
| #catlinks { background-color: #f1f4f9; border: none; padding: 10px; }
| |
| #catlinks li a {
| |
| background: #fff;
| |
| padding: 5px 10px;
| |
| color: #666;
| |
| border-radius: 3px;
| |
| text-decoration: none;
| |
| transition: 0.3s;
| |
| }
| |
| #catlinks li a:hover { background: #237dac; color: white; }
| |
|
| |
| /* --- 6. 编辑按钮 (扁平化蓝色风格) --- */
| |
| .editButtons input, #wpSave, #wpPreview, #wpDiff {
| |
| color: #fff;
| |
| background-color: #1890ff;
| |
| border: 1px solid #1890ff;
| |
| padding: 6px 15px;
| |
| font-size: 14px;
| |
| border-radius: 4px;
| |
| cursor: pointer;
| |
| transition: all 0.3s;
| |
| font-weight: bold;
| |
| }
| |
|
| |
| .editButtons input:hover, #wpPreview:hover, #wpDiff:hover {
| |
| background-color: #40a9ff;
| |
| border-color: #40a9ff;
| |
| }
| |
|
| |
| /* 提交按钮设为绿色,防止手滑 */
| |
| #wpSave { background-color: #52c41a; border-color: #52c41a; }
| |
| #wpSave:hover { background-color: #73d13d; border-color: #73d13d; }
| |
|
| |
| /* --- 7. 表格样式 (斑马纹) --- */
| |
| table.wikitable {
| |
| border: none !important;
| |
| width: 100%;
| |
| box-shadow: 0 2px 5px rgba(0,0,0,0.05);
| |
| }
| |
|
| |
| table.wikitable th {
| |
| background-color: #2894FF !important; /* 亮蓝表头 */
| |
| color: white;
| |
| padding: 10px !important;
| |
| border: none !important;
| |
| text-align: center;
| |
| }
| |
|
| |
| table.wikitable td {
| |
| padding: 8px 15px !important;
| |
| border: none !important;
| |
| border-bottom: 1px solid #eee !important;
| |
| }
| |
|
| |
| /* 奇偶行变色 */
| |
| table.wikitable tr:nth-child(odd) { background: #f9f9f9; }
| |
| table.wikitable tr:nth-child(even) { background: #fff; }
| |
| table.wikitable tr:hover { background-color: #e6f7ff; } /* 鼠标悬停高亮 */
| |
|
| |
| /* --- 8. 自定义提示框 (Mango Alert) --- */
| |
| .mango-alert {
| |
| padding: 10px 15px;
| |
| margin: 15px 0;
| |
| border-radius: 4px;
| |
| border-left: 5px solid;
| |
| font-size: 14px;
| |
| }
| |
|
| |
| .mango-alert-info {
| |
| background-color: #e6f7ff;
| |
| border-color: #1890ff;
| |
| color: #0050b3;
| |
| }
| |
|
| |
| .mango-alert-warn {
| |
| background-color: #fffbe6;
| |
| border-color: #faad14;
| |
| color: #8c6305;
| |
| }
| |
|
| |
| .mango-alert-error {
| |
| background-color: #fff1f0;
| |
| border-color: #f5222d;
| |
| color: #a8071a;
| |
| } | | } |