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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
无编辑摘要
 
第1行: 第1行:
/* =================================================================
/* ========== 迷雾Wiki 主题样式 ========== */
  MIST STYLE TABLE - 全局暗黑科技风格表格
  覆盖默认 class="wikitable"
  ================================================================= */


/* 1. 表格整体容器 */
/* Hero 区域 */
table.wikitable {
.mist-hero {
     background-color: #1a1a1a;     /* 深灰背景 */
     position: relative;
     color: #cccccc;                 /* 浅灰文字 */
     background: #0d1117;
     border: 1px solid #333333;     /* 暗色边框 */
     border: 1px solid #30363d;
     border-collapse: collapse;     /* 边框合并,更硬朗 */
     border-radius: 16px;
     margin: 1em 0;                 /* 上下间距 */
     padding: 64px 48px;
     border-radius: 4px;             /* 细微圆角 */
     margin-bottom: 32px;
     overflow: hidden;               /* 配合圆角 */
     overflow: hidden;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* 悬浮阴影 */
     text-align: center;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    width: 100%;                    /* 默认全宽,也可去掉 */
}
}
.mist-hero::before {
    content: '';
    position: absolute;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88,166,255,0.08), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(210,168,255,0.06), transparent);
    animation: fogFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes fogFloat {
    0%{ opacity: 0.6; transform: translateX(-5%) scaleY(1); }
    100% { opacity: 1;transform: translateX(5%) scaleY(1.05); }
}
.mist-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e6edf3 30%, #58a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 12px 0;
    letter-spacing: -2px;
}
.mist-hero-subtitle {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 36px;
}
.mist-stats {
    display: inline-flex;
    gap: 40px;
    justify-content: center;
}
.mist-stat { text-align: center; }
.mist-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e6edf3;
}
.mist-stat-label { color: #8b949e; font-size: 0.85rem; }


/* 2. 表头 (Th) - 核心科技感 */
/* 三栏入口卡片 */
table.wikitable > tr > th,
.mist-portal-row {
table.wikitable > * > tr > th {
    display: grid;
     background-color: #111111;     /* 比单元格更黑 */
    grid-template-columns: repeat(3, 1fr);
     color: #ffffff;                 /* 纯白文字高亮 */
    gap: 20px;
     border: 1px solid #333333;     /* 边框 */
    margin-bottom: 32px;
     text-align: left;               /* 默认左对齐,更像文档 */
}
     padding: 12px 15px;             /* 增加呼吸感 */
.mist-portal-card {
     font-family: Consolas, monospace; /* MIST核心:代码字体 */
     background: #161b22;
     font-weight: bold;
     border: 1px solid #30363d;
     border-bottom: 2px solid #5c6bc0; /* 默认底部亮条 (迷雾蓝) */
     border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding-bottom: 20px;
}
.mist-portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.mist-portal-bar { height: 4px; }
.mist-portal-bar-blue{ background: linear-gradient(90deg, #58a6ff, #79c0ff); }
.mist-portal-bar-purple{ background: linear-gradient(90deg, #d2a8ff, #bc8cff); }
.mist-portal-bar-green { background: linear-gradient(90deg, #56d364, #3fb950); }
.mist-portal-body { padding: 24px 24px 0; }
.mist-portal-icon {
     font-size: 2rem;
     margin-bottom: 12px;
    display: block;
}
.mist-portal-title {
     font-size: 1.2rem;
     font-weight: 700;
    color: #e6edf3;
     margin-bottom: 8px;
}
}
.mist-portal-desc { color: #8b949e; font-size: 0.875rem; line-height: 1.6; margin-bottom: 20px; }
.mist-portal-btn {
    display: block;
    margin: 0 24px;
    padding: 8px;
    text-align: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3 ;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none ;
    transition: background 0.2s;
}
.mist-portal-btn:hover { background: #58a6ff; border-color: #58a6ff; color: #fff ; }


/* 3. 单元格 (Td) */
/* 精选 ARG */
table.wikitable > tr > td,
.mist-section-title {
table.wikitable > * > tr > td {
    font-size: 1.4rem;
     background-color: #1a1a1a;     /* 默认背景 */
     font-weight: 700;
     border: 1px solid #2a2a2a;     /* 极淡的内部分隔线 */
    color: #e6edf3;
     padding: 10px 15px;
     margin-bottom: 20px;
     transition: background-color 0.2s; /* 交互动画 */
     padding-bottom: 12px;
     border-bottom: 1px solid #30363d;
}
}
 
.mist-featured-row {
/* 4. 斑马纹 (隔行变色) - 增加阅读舒适度 */
    display: grid;
table.wikitable > tr:nth-child(even),
    grid-template-columns: repeat(3, 1fr);
table.wikitable > tbody > tr:nth-child(even) {
    gap: 20px;
     background-color: #1f1f1f;     /* 极细微的提亮 */
    margin-bottom: 32px;
}
.mist-featured-card {
     background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
}
 
.mist-featured-card:hover { border-color: #58a6ff; }
/* 5. 鼠标悬停效果 (Hover) - 科技感交互 */
.mist-featured-cover {
table.wikitable > tr:hover > td,
     height: 120px;
table.wikitable > * > tr:hover > td {
     position: relative;
     background-color: #252525;     /* 悬停高亮 */
     color: #ffffff;                 /* 文字变亮 */
}
}
 
.mist-cover-blue{ background: linear-gradient(135deg, #0d2137, #1a3a5c); }
/* 6. 链接颜色适配 */
.mist-cover-purple { background: linear-gradient(135deg, #1a0d37, #2d1a5c); }
table.wikitable a {
.mist-cover-amber  { background: linear-gradient(135deg, #211a08, #3d3010); }
     color: #64b5f6;                 /* 浅蓝色链接,在黑底上更清晰 */
.mist-badge {
     text-decoration: none;
     position: absolute;
     transition: color 0.2s;
    top: 10px; right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
     text-transform: uppercase;
     letter-spacing: 0.5px;
}
}
.mist-badge-on{ background:#0d2a12; color:#56d364; border:1px solid #238636; }
.mist-badge-end { background:#1f0d37; color:#d2a8ff; border:1px solid #6e40c9; }
.mist-badge-sus { background:#2a1a00; color:#f0883e; border:1px solid #9e6a03; }
.mist-featured-body { padding: 16px; }
.mist-featured-title { font-size: 1rem; font-weight: 700; color: #e6edf3; margin-bottom: 6px; }
.mist-featured-desc{ color: #8b949e; font-size: 0.8rem; line-height: 1.5; }


table.wikitable a:hover {
/* 最近更新 */
     color: #90caf9;                 /* 悬停变亮 */
.mist-recent {
     text-decoration: underline;
    background: #161b22;
     border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
     margin-bottom: 32px;
}
}
 
.mist-recent-item {
table.wikitable a.new {             /* 红色空链接适配 */
     display: flex;
     color: #ef5350;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #21262d;
}
}
 
.mist-recent-item:last-child { border-bottom: none; }
/* =================================================================
.mist-tag {
  MIST 变体类 - 如果你想给表格换个颜色
    display: inline-block;
  用法: {| class="wikitable mist-green"
    padding: 1px 7px;
  ================================================================= */
    border-radius: 4px;
 
    font-size: 0.65rem;
/* 绿色变体 (用于工具/进行中) */
    font-weight: 700;
table.wikitable.mist-green > tr > th,
    text-transform: uppercase;
table.wikitable.mist-green > * > tr > th {
     white-space: nowrap;
     border-bottom-color: #66bb6a;
     margin-top: 2px;
     color: #66bb6a;
}
}
.mist-tag-arg{ background:#0d1d37;color:#58a6ff;border:1px solid #1c3458; }
.mist-tag-tl{ background:#1f0d37;color:#d2a8ff;border:1px solid #3b1f6e; }
.mist-tag-term { background:#0d2a12;color:#56d364;border:1px solid #1c4a26; }
.mist-recent-link { color: #58a6ff ; font-size: 0.875rem; font-weight: 500; }
.mist-recent-meta { color: #8b949e; font-size: 0.75rem; margin-top: 2px; }


/* 橙色变体 (用于警告/中断) */
/* 页脚 */
table.wikitable.mist-orange > tr > th,
.mist-footer {
table.wikitable.mist-orange > * > tr > th {
    background: #161b22;
     border-bottom-color: #ffa726;
    border: 1px solid #30363d;
     color: #ffa726;
     border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #8b949e;
     font-size: 0.8rem;
}
}


/* 紫色变体 (用于科普/Puzzle) */
/* 响应式 */
table.wikitable.mist-purple > tr > th,
@media (max-width: 768px) {
table.wikitable.mist-purple > * > tr > th {
    .mist-portal-row, .mist-featured-row { grid-template-columns: 1fr; }
     border-bottom-color: #ab47bc;
     .mist-hero-title { font-size: 2.2rem; }
     color: #ab47bc;
     .mist-stats { flex-direction: column; gap: 16px; }
}
}

2026年2月26日 (四) 12:18的最新版本

/* ========== 迷雾Wiki 主题样式 ========== */

/* Hero 区域 */
.mist-hero {
    position: relative;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 16px;
    padding: 64px 48px;
    margin-bottom: 32px;
    overflow: hidden;
    text-align: center;
}
.mist-hero::before {
    content: '';
    position: absolute;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(88,166,255,0.08), transparent),
                radial-gradient(ellipse 60% 40% at 80% 100%, rgba(210,168,255,0.06), transparent);
    animation: fogFloat 15s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes fogFloat {
    0%{ opacity: 0.6; transform: translateX(-5%) scaleY(1); }
    100% { opacity: 1;transform: translateX(5%) scaleY(1.05); }
}
.mist-hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #e6edf3 30%, #58a6ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 12px 0;
    letter-spacing: -2px;
}
.mist-hero-subtitle {
    color: #8b949e;
    font-size: 1.1rem;
    margin-bottom: 36px;
}
.mist-stats {
    display: inline-flex;
    gap: 40px;
    justify-content: center;
}
.mist-stat { text-align: center; }
.mist-stat-num {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: #e6edf3;
}
.mist-stat-label { color: #8b949e; font-size: 0.85rem; }

/* 三栏入口卡片 */
.mist-portal-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.mist-portal-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    padding-bottom: 20px;
}
.mist-portal-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.5);
}
.mist-portal-bar { height: 4px; }
.mist-portal-bar-blue{ background: linear-gradient(90deg, #58a6ff, #79c0ff); }
.mist-portal-bar-purple{ background: linear-gradient(90deg, #d2a8ff, #bc8cff); }
.mist-portal-bar-green { background: linear-gradient(90deg, #56d364, #3fb950); }
.mist-portal-body { padding: 24px 24px 0; }
.mist-portal-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    display: block;
}
.mist-portal-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 8px;
}
.mist-portal-desc { color: #8b949e; font-size: 0.875rem; line-height: 1.6; margin-bottom: 20px; }
.mist-portal-btn {
    display: block;
    margin: 0 24px;
    padding: 8px;
    text-align: center;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    color: #e6edf3 ;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none ;
    transition: background 0.2s;
}
.mist-portal-btn:hover { background: #58a6ff; border-color: #58a6ff; color: #fff ; }

/* 精选 ARG */
.mist-section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e6edf3;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #30363d;
}
.mist-featured-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}
.mist-featured-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.mist-featured-card:hover { border-color: #58a6ff; }
.mist-featured-cover {
    height: 120px;
    position: relative;
}
.mist-cover-blue{ background: linear-gradient(135deg, #0d2137, #1a3a5c); }
.mist-cover-purple { background: linear-gradient(135deg, #1a0d37, #2d1a5c); }
.mist-cover-amber  { background: linear-gradient(135deg, #211a08, #3d3010); }
.mist-badge {
    position: absolute;
    top: 10px; right: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.mist-badge-on{ background:#0d2a12; color:#56d364; border:1px solid #238636; }
.mist-badge-end { background:#1f0d37; color:#d2a8ff; border:1px solid #6e40c9; }
.mist-badge-sus { background:#2a1a00; color:#f0883e; border:1px solid #9e6a03; }
.mist-featured-body { padding: 16px; }
.mist-featured-title { font-size: 1rem; font-weight: 700; color: #e6edf3; margin-bottom: 6px; }
.mist-featured-desc{ color: #8b949e; font-size: 0.8rem; line-height: 1.5; }

/* 最近更新 */
.mist-recent {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}
.mist-recent-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #21262d;
}
.mist-recent-item:last-child { border-bottom: none; }
.mist-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    margin-top: 2px;
}
.mist-tag-arg{ background:#0d1d37;color:#58a6ff;border:1px solid #1c3458; }
.mist-tag-tl{ background:#1f0d37;color:#d2a8ff;border:1px solid #3b1f6e; }
.mist-tag-term { background:#0d2a12;color:#56d364;border:1px solid #1c4a26; }
.mist-recent-link { color: #58a6ff ; font-size: 0.875rem; font-weight: 500; }
.mist-recent-meta { color: #8b949e; font-size: 0.75rem; margin-top: 2px; }

/* 页脚 */
.mist-footer {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #8b949e;
    font-size: 0.8rem;
}

/* 响应式 */
@media (max-width: 768px) {
    .mist-portal-row, .mist-featured-row { grid-template-columns: 1fr; }
    .mist-hero-title { font-size: 2.2rem; }
    .mist-stats { flex-direction: column; gap: 16px; }
}