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

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
无编辑摘要
标签已被回退
无编辑摘要
 
(未显示同一用户的6个中间版本)
第1行: 第1行:
/* ===== 迷雾ARG Wiki 主页样式优化 ===== */
/* ========== 迷雾Wiki 主题样式 ========== */


/* 主页所有wikitable表格居中 */
/* Hero 区域 */
.mw-parser-output > .wikitable {
.mist-hero {
     margin-left: auto !important;
    position: relative;
     margin-right: auto !important;
    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; }


/* 主页导航卡片容器居中 */
/* 三栏入口卡片 */
.mw-parser-output > table {
.mist-portal-row {
     margin-left: auto !important;
     display: grid;
     margin-right: auto !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
     margin-bottom: 32px;
}
}
 
.mist-portal-card {
/* 确保嵌套表格也居中 */
    background: #161b22;
.wikitable table {
    border: 1px solid #30363d;
     margin-left: auto !important;
    border-radius: 12px;
     margin-right: auto !important;
    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;
.mw-parser-output > table[style*="border-collapse:separate"] {
    font-weight: 700;
     display: table !important;
     color: #e6edf3;
     margin: 0 auto 20px auto !important;
     margin-bottom: 8px;
}
}
 
.mist-portal-desc { color: #8b949e; font-size: 0.875rem; line-height: 1.6; margin-bottom: 20px; }
/* 快速导航区域的表格行居中 */
.mist-portal-btn {
.mw-parser-output > table > tbody > tr {
    display: block;
    margin: 0 24px;
    padding: 8px;
     text-align: center;
     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 */
.wikitable td[style*="text-align:center"] {
.mist-section-title {
     text-align: center !important;
    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;
.wikitable[style*="border-radius:6px"] {
    grid-template-columns: repeat(3, 1fr);
     margin: 0 auto !important;
    gap: 20px;
     margin-bottom: 32px;
}
}
 
.mist-featured-card {
/* 统计信息和相关链接表格居中 */
    background: #161b22;
.wikitable[style*="background:#263238"],
    border: 1px solid #30363d;
.wikitable[style*="background:#1a237e"],
    border-radius: 12px;
.wikitable[style*="background:#1b5e20"],
    overflow: hidden;
.wikitable[style*="background:#b71c1c"],
     transition: border-color 0.2s;
.wikitable[style*="background:#4a148c"] {
     margin: 0 auto !important;
}
}
 
.mist-featured-card:hover { border-color: #58a6ff; }
/* 顶部横幅和公告栏居中 */
.mist-featured-cover {
.wikitable[style*="linear-gradient"],
     height: 120px;
.wikitable[style*="background:#2c2c1f"] {
     position: relative;
     margin: 0 auto !important;
     display: table !important;
}
}
 
.mist-cover-blue{ background: linear-gradient(135deg, #0d2137, #1a3a5c); }
/* 最新动态板块居中 */
.mist-cover-purple { background: linear-gradient(135deg, #1a0d37, #2d1a5c); }
.wikitable[style*="background:#1e1e1e"] {
.mist-cover-amber  { background: linear-gradient(135deg, #211a08, #3d3010); }
     margin: 0 auto !important;
.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; }


/* 社区支持板块居中 */
/* 最近更新 */
.wikitable[style*="background:#0d47a1"] {
.mist-recent {
     margin: 0 auto !important;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
     margin-bottom: 32px;
}
}
 
.mist-recent-item {
/* 修复表格宽度100%时的居中问题 */
    display: flex;
table[style*="width:100%"].wikitable {
    align-items: flex-start;
     max-width: 100%;
     gap: 12px;
     margin-left: auto !important;
     padding: 10px 0;
     margin-right: auto !important;
     border-bottom: 1px solid #21262d;
}
}
 
.mist-recent-item:last-child { border-bottom: none; }
/* 响应式优化 - 移动端 */
.mist-tag {
@media screen and (max-width: 768px) {
    display: inline-block;
    .mw-parser-output > table {
    padding: 1px 7px;
        margin: 0 auto !important;
    border-radius: 4px;
        width: 95% !important;
     font-size: 0.65rem;
     }
     font-weight: 700;
      
     text-transform: uppercase;
     .wikitable {
    white-space: nowrap;
        margin: 0 auto 15px auto !important;
     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; }


/* 确保页面内容容器居中 */
/* 页脚 */
.mw-parser-output {
.mist-footer {
     margin: 0 auto;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    color: #8b949e;
     font-size: 0.8rem;
}
}


/* 表格内嵌套表格的对齐 */
/* 响应式 */
.wikitable .wikitable {
@media (max-width: 768px) {
     margin: 0 auto !important;
    .mist-portal-row, .mist-featured-row { grid-template-columns: 1fr; }
     .mist-hero-title { font-size: 2.2rem; }
    .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; }
}