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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
标签已被回退
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* ===== 迷雾ARG Wiki 主页样式优化 ===== */
/* 美化所有wikitable类的表格 */
 
.wikitable {
/* 主页所有wikitable表格居中 */
display: flex;
.mw-parser-output > .wikitable {
    flex-direction: column;
     margin-left: auto !important;
    background-color: #1d1626;
     margin-right: auto !important;
    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; /* 整体居中对齐 */
}
}
/* 表格头放在左侧的样式 */
 
.wikitable th {
/* 主页导航卡片容器居中 */
     background: #2d2039;
.mw-parser-output > table {
     color: #fff;
    margin-left: auto !important;
     padding: 12px 15px;
    margin-right: auto !important;
}
 
/* 确保嵌套表格也居中 */
.wikitable table {
     margin-left: auto !important;
     margin-right: auto !important;
}
 
/* 导航卡片网格布局优化 */
.mw-parser-output > table[style*="border-collapse:separate"] {
    display: table !important;
     margin: 0 auto 20px auto !important;
}
 
/* 快速导航区域的表格行居中 */
.mw-parser-output > table > tbody > tr {
     text-align: center;
     text-align: center;
     font-weight: normal;
}
     letter-spacing: 1px;
 
     border-bottom: 2px solid #3a2b4d;
/* 确保表格单元格内的内容居中 */
     vertical-align: top; /* 顶部对齐 */
.wikitable td[style*="text-align:center"] {
     border-right: 2px solid #503a6b; /* 添加右侧边框,区分表头和内容 */
     text-align: center !important;
     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日 (日) 04:25的版本

/* ===== 迷雾ARG Wiki 主页样式优化 ===== */

/* 主页所有wikitable表格居中 */
.mw-parser-output > .wikitable {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 主页导航卡片容器居中 */
.mw-parser-output > table {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 确保嵌套表格也居中 */
.wikitable table {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 导航卡片网格布局优化 */
.mw-parser-output > table[style*="border-collapse:separate"] {
    display: table !important;
    margin: 0 auto 20px auto !important;
}

/* 快速导航区域的表格行居中 */
.mw-parser-output > table > tbody > tr {
    text-align: center;
}

/* 确保表格单元格内的内容居中 */
.wikitable td[style*="text-align:center"] {
    text-align: center !important;
}

/* 特色内容区域表格居中 */
.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;
}