打开/关闭菜单
切换首选项菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的4个中间版本)
第1行: 第1行:
/* ===== 迷雾ARG Wiki 主页样式优化 ===== */
/* 这里放置的CSS将应用于所有皮肤 */
 
/* 美化所有wikitable类的表格 */
/* 主页所有wikitable表格居中 */
.wikitable {
.mw-parser-output > .wikitable {
display: flex;
     margin-left: auto !important;
     flex-direction: column;
     margin-right: auto !important;
     background-color: #1e1e1e;
}
    color: #e0e0e0;
 
    overflow: hidden;
/* 主页导航卡片容器居中 */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
.mw-parser-output > table {
     border-collapse: collapse;
     margin-left: auto !important;
     margin:auto; /* 这里的auto会使表格水平居中 */
     margin-right: auto !important;
    width: 100%;
}
    text-align: center;
 
     font-size:1em;
/* 确保嵌套表格也居中 */
    border:2px solid #388e3c;
.wikitable table {
     border-radius:6px;
     margin-left: auto !important;
     margin-right: auto !important;
}
}
 
/* 表格头放在左侧的样式 */
/* 导航卡片网格布局优化 */
.wikitable th {
.mw-parser-output > table[style*="border-collapse:separate"] {
     background: #37474f;
     display: table !important;
     color: #fff;
     margin: 0 auto 20px auto !important;
    padding: 12px 15px;
}
 
/* 快速导航区域的表格行居中 */
.mw-parser-output > table > tbody > tr {
     text-align: center;
     text-align: center;
}
     font-weight: normal;
 
    letter-spacing: 1px;
/* 确保表格单元格内的内容居中 */
     border-bottom: 2px solid #3a2b4d;
.wikitable td[style*="text-align:center"] {
     vertical-align: top; /* 顶部对齐 */
     text-align: center !important;
     border-right: 2px solid #503a6b; /* 添加右侧边框,区分表头和内容 */
}
     position: relative; /* 为可能的装饰元素做准备 */
 
/* 特色内容区域表格居中 */
.wikitable[style*="border-radius:6px"] {
    margin: 0 auto !important;
}
 
/* 统计信息和相关链接表格居中 */
.wikitable[style*="background:#263238"],
.wikitable[style*="background:#1a237e"],
.wikitable[style*="background:#1b5e20"],
.wikitable[style*="background:#b71c1c"],
.wikitable[style*="background:#4a148c"] {
     margin: 0 auto !important;
}
 
/* 顶部横幅和公告栏居中 */
.wikitable[style*="linear-gradient"],
.wikitable[style*="background:#2c2c1f"] {
    margin: 0 auto !important;
     display: table !important;
}
 
/* 最新动态板块居中 */
.wikitable[style*="background:#1e1e1e"] {
     margin: 0 auto !important;
}
 
/* 社区支持板块居中 */
.wikitable[style*="background:#0d47a1"] {
    margin: 0 auto !important;
}
 
/* 修复表格宽度100%时的居中问题 */
table[style*="width:100%"].wikitable {
    max-width: 100%;
    margin-left: auto !important;
    margin-right: auto !important;
}
 
/* 响应式优化 - 移动端 */
@media screen and (max-width: 768px) {
     .mw-parser-output > table {
        margin: 0 auto !important;
        width: 95% !important;
    }
   
    .wikitable {
        margin: 0 auto 15px auto !important;
    }
}
 
/* 确保页面内容容器居中 */
.mw-parser-output {
    margin: 0 auto;
}
 
/* 表格内嵌套表格的对齐 */
.wikitable .wikitable {
    margin: 0 auto !important;
}
}

2025年10月26日 (日) 11:27的最新版本

/* 这里放置的CSS将应用于所有皮肤 */
/* 美化所有wikitable类的表格 */
.wikitable {
	display: flex;
    flex-direction: column;
    background-color: #1e1e1e;
    color: #e0e0e0;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border-collapse: collapse;
    margin:auto; /* 这里的auto会使表格水平居中 */
    width: 100%;
    text-align: center;
    font-size:1em;
    border:2px solid #388e3c;
    border-radius:6px;
}
/* 表格头放在左侧的样式 */
.wikitable th {
    background: #37474f;
    color: #fff;
    padding: 12px 15px;
    text-align: center;
    font-weight: normal;
    letter-spacing: 1px;
    border-bottom: 2px solid #3a2b4d;
    vertical-align: top; /* 顶部对齐 */
    border-right: 2px solid #503a6b; /* 添加右侧边框,区分表头和内容 */
    position: relative; /* 为可能的装饰元素做准备 */
}