打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

MediaWiki:Common.css:修订间差异

MediaWiki界面页面
Jzyfate留言 | 贡献
无编辑摘要
Jzyfate留言 | 贡献
无编辑摘要
第1行: 第1行:
/* ===== 江中缘 Wiki 全局样式 ===== */
/* 江中缘Wiki - 深色主题 */


/* --- 基础样式 --- */
/* 基础样式 */
body {
body {
     font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
     background-color: #1a1a1a !important;
    background: #f0f2f5;
     color: #e0e0e0 !important;
     color: #333;
}
}


/* --- 链接样式 --- */
/* 内容区域 */
a {
.mw-body, .mw-body-content {
     color: #1976d2;
     background-color: #2d2d2d !important;
     text-decoration: none;
     color: #e0e0e0 !important;
}
}


a:hover {
/* 标题 */
     color: #0d47a1;
h1, h2, h3, h4, h5, h6 {
     text-decoration: underline;
     color: #ffffff !important;
     border-bottom-color: #444 !important;
}
}


/* --- 标题样式 --- */
/* 链接 */
#mw-content-wrapper h1,
a {
#mw-content-wrapper h2,
     color: #64b5f6 !important;
#mw-content-wrapper h3,
#mw-content-wrapper h4 {
     color: #1a237e;
    border-bottom: 3px solid #1976d2;
    padding-bottom: 10px;
}
}


#mw-content-wrapper h2::after {
a:hover {
     content: "";
     color: #90caf9 !important;
    display: block;
    width: 60px;
    height: 3px;
    background: #ff9800;
    margin-top: 3px;
}
 
#mw-content-wrapper h3 {
    border-bottom: 2px dashed #e0e0e0;
    padding-bottom: 8px;
}
 
/* --- 内容区域 --- */
#mw-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
}


/* --- 表格样式 --- */
/* 表格 */
.wikitable {
.wikitable {
     border-collapse: collapse;
     background-color: #3d3d3d !important;
     width: 100%;
     color: #e0e0e0 !important;
    border-color: #555 !important;
}
}


.wikitable th {
.wikitable th {
     background: linear-gradient(135deg, #1565c0, #1976d2);
     background-color: #444 !important;
     color: white;
     color: #fff !important;
    padding: 14px 18px;
}
}


.wikitable td {
/* 侧边栏 */
     padding: 12px 18px;
.mw-portlet, .vector-menu-portal {
    border-bottom: 1px solid #eee;
     background-color: #2d2d2d !important;
}
}


.wikitable tr:hover td {
/* 导航栏 */
     background: #f5f7fa;
.vector-menu-tabs, .vector-menu-dropdown {
     background-color: #333 !important;
}
}


/* --- 目录箭头样式 --- */
/* 页脚 */
.toclevel-1 > .toclink::before {
.footer-box, #footer {
     content: "▶ ";
     background-color: #2d2d2d !important;
    color: #1976d2;
}
}


.toclevel-2 > .toclink::before {
/* 代码块 */
     content: "├─ ";
.mw-code {
     color: #666;
     background-color: #3d3d3d !important;
     color: #e0e0e0 !important;
}
}


.toclevel-3 > .toclink::before {
/* 搜索框 */
     content: "│  └─ ";
input[type="search"], input[type="text"] {
     color: #999;
    background-color: #3d3d3d !important;
     color: #e0e0e0 !important;
     border-color: #555 !important;
}
}


/* --- 隐藏页脚 --- */
/* 按钮 */
#footer { display: none; }
.oo-ui-inputWidget-input, .mw-htmlform-submit {
 
     background-color: #444 !important;
/* --- 深色模式 --- */
     color: #e0e0e0 !important;
@media (prefers-color-scheme: dark) {
     border-color: #555 !important;
    body {
        background: #1a1a2e;
        color: #e0e0e0;
    }
 
    #mw-content {
        background: #16213e;
    }
 
    a { color: #64b5f6; }
 
    #mw-content-wrapper h1,
    #mw-content-wrapper h2,
    #mw-content-wrapper h3 {
        color: #90caf9;
        border-bottom-color: #1976d2;
     }
 
    .toclevel-1 > .toclink::before { color: #64b5f6; }
    .toclevel-2 > .toclink::before { color: #888; }
     .toclevel-3 > .toclink::before { color: #666; }
 
     .wikitable td { border-bottom-color: #2a2a4a; }
    .wikitable tr:hover td { background: #1e2a4a; }
}
}

2026年7月15日 (三) 11:56的版本

/* 江中缘Wiki - 深色主题 */

/* 基础样式 */
body {
    background-color: #1a1a1a !important;
    color: #e0e0e0 !important;
}

/* 内容区域 */
.mw-body, .mw-body-content {
    background-color: #2d2d2d !important;
    color: #e0e0e0 !important;
}

/* 标题 */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff !important;
    border-bottom-color: #444 !important;
}

/* 链接 */
a {
    color: #64b5f6 !important;
}

a:hover {
    color: #90caf9 !important;
}

/* 表格 */
.wikitable {
    background-color: #3d3d3d !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

.wikitable th {
    background-color: #444 !important;
    color: #fff !important;
}

/* 侧边栏 */
.mw-portlet, .vector-menu-portal {
    background-color: #2d2d2d !important;
}

/* 导航栏 */
.vector-menu-tabs, .vector-menu-dropdown {
    background-color: #333 !important;
}

/* 页脚 */
.footer-box, #footer {
    background-color: #2d2d2d !important;
}

/* 代码块 */
.mw-code {
    background-color: #3d3d3d !important;
    color: #e0e0e0 !important;
}

/* 搜索框 */
input[type="search"], input[type="text"] {
    background-color: #3d3d3d !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}

/* 按钮 */
.oo-ui-inputWidget-input, .mw-htmlform-submit {
    background-color: #444 !important;
    color: #e0e0e0 !important;
    border-color: #555 !important;
}