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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的5个中间版本)
第1行: 第1行:
/* ===== 迷雾ARG Wiki 主页样式优化 ===== */
/* =================================================================
  MIST STYLE TABLE - 全局暗黑科技风格表格
  覆盖默认 class="wikitable"
  ================================================================= */


/* 主页所有wikitable表格居中 */
/* 1. 表格整体容器 */
.mw-parser-output > .wikitable {
table.wikitable {
     margin-left: auto !important;
    background-color: #1a1a1a;      /* 深灰背景 */
     margin-right: auto !important;
    color: #cccccc;                /* 浅灰文字 */
    border: 1px solid #333333;      /* 暗色边框 */
    border-collapse: collapse;      /* 边框合并,更硬朗 */
     margin: 1em 0;                  /* 上下间距 */
    border-radius: 4px;            /* 细微圆角 */
    overflow: hidden;               /* 配合圆角 */
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 悬浮阴影 */
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    width: 100%;                   /* 默认全宽,也可去掉 */
}
}


/* 主页导航卡片容器居中 */
/* 2. 表头 (Th) - 核心科技感 */
.mw-parser-output > table {
table.wikitable > tr > th,
     margin-left: auto !important;
table.wikitable > * > tr > th {
     margin-right: auto !important;
     background-color: #111111;      /* 比单元格更黑 */
    color: #ffffff;                /* 纯白文字高亮 */
    border: 1px solid #333333;      /* 边框 */
    text-align: left;              /* 默认左对齐,更像文档 */
    padding: 12px 15px;             /* 增加呼吸感 */
     font-family: Consolas, monospace; /* MIST核心:代码字体 */
    font-weight: bold;
    border-bottom: 2px solid #5c6bc0; /* 默认底部亮条 (迷雾蓝) */
}
}


/* 确保嵌套表格也居中 */
/* 3. 单元格 (Td) */
.wikitable table {
table.wikitable > tr > td,
     margin-left: auto !important;
table.wikitable > * > tr > td {
     margin-right: auto !important;
     background-color: #1a1a1a;     /* 默认背景 */
     border: 1px solid #2a2a2a;      /* 极淡的内部分隔线 */
    padding: 10px 15px;
    transition: background-color 0.2s; /* 交互动画 */
}
}


/* 导航卡片网格布局优化 */
/* 4. 斑马纹 (隔行变色) - 增加阅读舒适度 */
.mw-parser-output > table[style*="border-collapse:separate"] {
table.wikitable > tr:nth-child(even),
     display: table !important;
table.wikitable > tbody > tr:nth-child(even) {
    margin: 0 auto 20px auto !important;
     background-color: #1f1f1f;     /* 极细微的提亮 */
}
}


/* 快速导航区域的表格行居中 */
/* 5. 鼠标悬停效果 (Hover) - 科技感交互 */
.mw-parser-output > table > tbody > tr {
table.wikitable > tr:hover > td,
     text-align: center;
table.wikitable > * > tr:hover > td {
     background-color: #252525;     /* 悬停高亮 */
    color: #ffffff;                /* 文字变亮 */
}
}


/* 确保表格单元格内的内容居中 */
/* 6. 链接颜色适配 */
.wikitable td[style*="text-align:center"] {
table.wikitable a {
     text-align: center !important;
    color: #64b5f6;                /* 浅蓝色链接,在黑底上更清晰 */
    text-decoration: none;
     transition: color 0.2s;
}
}


/* 特色内容区域表格居中 */
table.wikitable a:hover {
.wikitable[style*="border-radius:6px"] {
    color: #90caf9;                /* 悬停变亮 */
    margin: 0 auto !important;
    text-decoration: underline;
}
}


/* 统计信息和相关链接表格居中 */
table.wikitable a.new {            /* 红色空链接适配 */
.wikitable[style*="background:#263238"],
    color: #ef5350;
.wikitable[style*="background:#1a237e"],
.wikitable[style*="background:#1b5e20"],
.wikitable[style*="background:#b71c1c"],
.wikitable[style*="background:#4a148c"] {
    margin: 0 auto !important;
}
}


/* 顶部横幅和公告栏居中 */
/* =================================================================
.wikitable[style*="linear-gradient"],
  MIST 变体类 - 如果你想给表格换个颜色
.wikitable[style*="background:#2c2c1f"] {
  用法: {| class="wikitable mist-green"
    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) {
table.wikitable.mist-green > tr > th,
    .mw-parser-output > table {
table.wikitable.mist-green > * > tr > th {
        margin: 0 auto !important;
    border-bottom-color: #66bb6a;
        width: 95% !important;
     color: #66bb6a;
     }
   
    .wikitable {
        margin: 0 auto 15px auto !important;
    }
}
}


/* 确保页面内容容器居中 */
/* 橙色变体 (用于警告/中断) */
.mw-parser-output {
table.wikitable.mist-orange > tr > th,
     margin: 0 auto;
table.wikitable.mist-orange > * > tr > th {
     border-bottom-color: #ffa726;
    color: #ffa726;
}
}


/* 表格内嵌套表格的对齐 */
/* 紫色变体 (用于科普/Puzzle) */
.wikitable .wikitable {
table.wikitable.mist-purple > tr > th,
     margin: 0 auto !important;
table.wikitable.mist-purple > * > tr > th {
     border-bottom-color: #ab47bc;
    color: #ab47bc;
}
}

2025年11月30日 (日) 09:59的最新版本

/* =================================================================
   MIST STYLE TABLE - 全局暗黑科技风格表格
   覆盖默认 class="wikitable"
   ================================================================= */

/* 1. 表格整体容器 */
table.wikitable {
    background-color: #1a1a1a;      /* 深灰背景 */
    color: #cccccc;                 /* 浅灰文字 */
    border: 1px solid #333333;      /* 暗色边框 */
    border-collapse: collapse;      /* 边框合并,更硬朗 */
    margin: 1em 0;                  /* 上下间距 */
    border-radius: 4px;             /* 细微圆角 */
    overflow: hidden;               /* 配合圆角 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 悬浮阴影 */
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    width: 100%;                    /* 默认全宽,也可去掉 */
}

/* 2. 表头 (Th) - 核心科技感 */
table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color: #111111;      /* 比单元格更黑 */
    color: #ffffff;                 /* 纯白文字高亮 */
    border: 1px solid #333333;      /* 边框 */
    text-align: left;               /* 默认左对齐,更像文档 */
    padding: 12px 15px;             /* 增加呼吸感 */
    font-family: Consolas, monospace; /* MIST核心:代码字体 */
    font-weight: bold;
    border-bottom: 2px solid #5c6bc0; /* 默认底部亮条 (迷雾蓝) */
}

/* 3. 单元格 (Td) */
table.wikitable > tr > td,
table.wikitable > * > tr > td {
    background-color: #1a1a1a;      /* 默认背景 */
    border: 1px solid #2a2a2a;      /* 极淡的内部分隔线 */
    padding: 10px 15px;
    transition: background-color 0.2s; /* 交互动画 */
}

/* 4. 斑马纹 (隔行变色) - 增加阅读舒适度 */
table.wikitable > tr:nth-child(even),
table.wikitable > tbody > tr:nth-child(even) {
    background-color: #1f1f1f;      /* 极细微的提亮 */
}

/* 5. 鼠标悬停效果 (Hover) - 科技感交互 */
table.wikitable > tr:hover > td,
table.wikitable > * > tr:hover > td {
    background-color: #252525;      /* 悬停高亮 */
    color: #ffffff;                 /* 文字变亮 */
}

/* 6. 链接颜色适配 */
table.wikitable a {
    color: #64b5f6;                 /* 浅蓝色链接,在黑底上更清晰 */
    text-decoration: none;
    transition: color 0.2s;
}

table.wikitable a:hover {
    color: #90caf9;                 /* 悬停变亮 */
    text-decoration: underline;
}

table.wikitable a.new {             /* 红色空链接适配 */
    color: #ef5350;
}

/* =================================================================
   MIST 变体类 - 如果你想给表格换个颜色
   用法: {| class="wikitable mist-green"
   ================================================================= */

/* 绿色变体 (用于工具/进行中) */
table.wikitable.mist-green > tr > th,
table.wikitable.mist-green > * > tr > th {
    border-bottom-color: #66bb6a;
    color: #66bb6a;
}

/* 橙色变体 (用于警告/中断) */
table.wikitable.mist-orange > tr > th,
table.wikitable.mist-orange > * > tr > th {
    border-bottom-color: #ffa726;
    color: #ffa726;
}

/* 紫色变体 (用于科普/Puzzle) */
table.wikitable.mist-purple > tr > th,
table.wikitable.mist-purple > * > tr > th {
    border-bottom-color: #ab47bc;
    color: #ab47bc;
}