MediaWiki:Common.css:修订间差异

来自心灵终结资料站
跳转到导航 跳转到搜索
无编辑摘要
Lyx讨论 | 贡献
无编辑摘要
第1行: 第1行:
/* ===== 暗色主题全局 ===== */
body {
    background-color: #0d0f14 !important;
    color: #e8edf3 !important;
}
/* ===== 侧边栏容器 ===== */
/* ===== 侧边栏容器 ===== */
#mw-panel {
#mw-panel {
     background-color: #1a1e24 !important;
     background-color: #f6f6f6 !important;
     border-right: 1px solid #2a2f36 !important;
     border-right: 1px solid #d0d0d0 !important;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.6) !important;
     padding-top: 0 !important;
     padding-top: 0 !important;
}
}


/* 侧边栏标题(少前百科)- 使用亮白色 */
/* 侧边栏标题(少前百科/GFWIKI更新等) */
#mw-panel .portal h3,
#mw-panel .portal h3,
#mw-panel .portal .portal-title {
#mw-panel .portal .portal-title {
     color: #ffffff !important;
     color: #222222 !important;
     font-weight: 500 !important;
     font-weight: 600 !important;
     font-size: 20px !important;
     font-size: 16px !important;
     padding: 18px 20px 12px 20px !important;
     padding: 14px 20px 8px 20px !important;
     border-bottom: 1px solid #2a2f36 !important;
     border-bottom: 1px solid #d8d8d8 !important;
     margin-bottom: 4px !important;
     margin-bottom: 4px !important;
     background: none !important;
     background: none !important;
    letter-spacing: 0.5px !important;
}
}


/* 侧边栏分组标题 - 使用亮青色,醒目 */
/* 侧边栏分组标题(如"游戏图鉴信息""游戏系统信息"等) */
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body .portal-title {
#mw-panel .portal .portal-body .portal-title {
     color: #7ec8e3 !important;
     color: #333333 !important;
     font-size: 13px !important;
     font-size: 12px !important;
     font-weight: 700 !important;
     font-weight: 700 !important;
     text-transform: uppercase !important;
     text-transform: uppercase !important;
     letter-spacing: 1px !important;
     letter-spacing: 0.5px !important;
     padding: 10px 20px 6px 20px !important;
     padding: 8px 20px 4px 20px !important;
     background: none !important;
     background: none !important;
}
}


/* ===== 侧边栏导航链接 - 使用高亮灰色 ===== */
/* ===== 侧边栏导航链接 ===== */
#mw-panel .portal .portal-body li a {
#mw-panel .portal .portal-body li a {
     display: block !important;
     display: block !important;
     padding: 6px 20px 6px 24px !important;
     padding: 4px 20px 4px 24px !important;
     color: #d0d8e0 !important;
     color: #0645ad !important;
     font-size: 15px !important;
     font-size: 14px !important;
    font-weight: 400 !important;
    border-left: 3px solid transparent !important;
    transition: background 0.15s, border-color 0.15s, color 0.15s !important;
     text-decoration: none !important;
     text-decoration: none !important;
}
}


/* 链接悬停 - 明显高亮 */
/* 链接悬停 */
#mw-panel .portal .portal-body li a:hover {
#mw-panel .portal .portal-body li a:hover {
     background-color: #2a313a !important;
     background-color: #e8e8e8 !important;
    border-left-color: #5b9aff !important;
     color: #0645ad !important;
     color: #ffffff !important;
     text-decoration: underline !important;
     text-decoration: none !important;
}
 
/* 当前激活/选中项 - 最亮高亮 */
#mw-panel .portal .portal-body li a:active,
#mw-panel .portal .portal-body li.selected a,
#mw-panel .portal .portal-body li a.selected {
    background-color: #232b35 !important;
    border-left-color: #5b9aff !important;
    color: #ffffff !important;
    font-weight: 500 !important;
}
}


/* ===== 侧边栏分割线 ===== */
/* ===== 侧边栏分割线 ===== */
#mw-panel .portal {
#mw-panel .portal {
     border-bottom: 1px solid #282e36 !important;
     border-bottom: 1px solid #d8d8d8 !important;
     padding-bottom: 4px !important;
     padding-bottom: 4px !important;
     margin-bottom: 2px !important;
     margin-bottom: 2px !important;
}
}


/* 去掉最后一个 portal 的分割线 */
#mw-panel .portal:last-child {
#mw-panel .portal:last-child {
     border-bottom: none !important;
     border-bottom: none !important;
}
/* ===== 侧边栏底部工具链接 ===== */
#mw-panel .portal:last-child .portal-body li a {
    font-size: 14px !important;
    color: #a0b0c0 !important;
}
#mw-panel .portal:last-child .portal-body li a:hover {
    color: #ffffff !important;
}
}


第95行: 第62行:
}
}
#mw-panel::-webkit-scrollbar-track {
#mw-panel::-webkit-scrollbar-track {
     background: #1a1e24 !important;
     background: #f6f6f6 !important;
}
}
#mw-panel::-webkit-scrollbar-thumb {
#mw-panel::-webkit-scrollbar-thumb {
     background: #3a414b !important;
     background: #cccccc !important;
     border-radius: 6px !important;
     border-radius: 6px !important;
}
}
第104行: 第71行:
#mw-panel {
#mw-panel {
     scrollbar-width: thin !important;
     scrollbar-width: thin !important;
     scrollbar-color: #3a414b #1a1e24 !important;
     scrollbar-color: #cccccc #f6f6f6 !important;
}
}


/* ===== 右侧主内容区适配 ===== */
/* ===== 右侧主内容区适配 ===== */
#mw-content-wrapper {
#mw-content-wrapper {
     background-color: #0d0f14 !important;
     background-color: #ffffff !important;
}
}


#mw-content {
#mw-content {
     background-color: #0d0f14 !important;
     background-color: #ffffff !important;
     color: #e0e6ee !important;
     color: #222222 !important;
}
}


第121行: 第88行:
#mw-content h3,
#mw-content h3,
#mw-content h4 {
#mw-content h4 {
     color: #f0f4fa !important;
     color: #222222 !important;
}
}


#mw-content p,
#mw-content p,
#mw-content li {
#mw-content li {
     color: #d0d8e0 !important;
     color: #222222 !important;
     line-height: 1.7 !important;
     line-height: 1.7 !important;
}
}
第132行: 第99行:
/* ===== 顶部个人工具栏 ===== */
/* ===== 顶部个人工具栏 ===== */
#p-personal li a {
#p-personal li a {
     color: #a0b0c0 !important;
     color: #0645ad !important;
    font-size: 14px !important;
}
}
#p-personal li a:hover {
#p-personal li a:hover {
     color: #ffffff !important;
     color: #0645ad !important;
    text-decoration: underline !important;
}
}


/* ===== 搜索框暗色适配 ===== */
/* ===== 搜索框适配 ===== */
#searchInput {
#searchInput {
     background-color: #1e242b !important;
     background-color: #ffffff !important;
     color: #e8edf3 !important;
     color: #222222 !important;
     border: 1px solid #2a2f36 !important;
     border: 1px solid #cccccc !important;
    font-size: 14px !important;
}
}
#searchInput:focus {
#searchInput:focus {
     border-color: #5b9aff !important;
     border-color: #0645ad !important;
     outline: none !important;
     outline: none !important;
    background-color: #252c36 !important;
}
}


/* ===== 页面底部 ===== */
/* ===== 页面底部 ===== */
#footer {
#footer {
     background-color: #0d0f14 !important;
     background-color: #f6f6f6 !important;
     color: #6a7a8a !important;
     color: #666666 !important;
     border-top: 1px solid #282e36 !important;
     border-top: 1px solid #d0d0d0 !important;
}
}
#footer a {
#footer a {
     color: #a0b0c0 !important;
     color: #0645ad !important;
}
}
#footer a:hover {
#footer a:hover {
     color: #ffffff !important;
     color: #0645ad !important;
    text-decoration: underline !important;
}
}



2026年8月27日 (四) 12:38的版本

/* ===== 侧边栏容器 ===== */
#mw-panel {
    background-color: #f6f6f6 !important;
    border-right: 1px solid #d0d0d0 !important;
    padding-top: 0 !important;
}

/* 侧边栏标题(少前百科/GFWIKI更新等) */
#mw-panel .portal h3,
#mw-panel .portal .portal-title {
    color: #222222 !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    padding: 14px 20px 8px 20px !important;
    border-bottom: 1px solid #d8d8d8 !important;
    margin-bottom: 4px !important;
    background: none !important;
}

/* 侧边栏分组标题(如"游戏图鉴信息""游戏系统信息"等) */
#mw-panel .portal .portal-body label,
#mw-panel .portal .portal-body .portal-title {
    color: #333333 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    padding: 8px 20px 4px 20px !important;
    background: none !important;
}

/* ===== 侧边栏导航链接 ===== */
#mw-panel .portal .portal-body li a {
    display: block !important;
    padding: 4px 20px 4px 24px !important;
    color: #0645ad !important;
    font-size: 14px !important;
    text-decoration: none !important;
}

/* 链接悬停 */
#mw-panel .portal .portal-body li a:hover {
    background-color: #e8e8e8 !important;
    color: #0645ad !important;
    text-decoration: underline !important;
}

/* ===== 侧边栏分割线 ===== */
#mw-panel .portal {
    border-bottom: 1px solid #d8d8d8 !important;
    padding-bottom: 4px !important;
    margin-bottom: 2px !important;
}

#mw-panel .portal:last-child {
    border-bottom: none !important;
}

/* ===== 侧边栏滚动条 ===== */
#mw-panel::-webkit-scrollbar {
    width: 4px !important;
}
#mw-panel::-webkit-scrollbar-track {
    background: #f6f6f6 !important;
}
#mw-panel::-webkit-scrollbar-thumb {
    background: #cccccc !important;
    border-radius: 6px !important;
}

#mw-panel {
    scrollbar-width: thin !important;
    scrollbar-color: #cccccc #f6f6f6 !important;
}

/* ===== 右侧主内容区适配 ===== */
#mw-content-wrapper {
    background-color: #ffffff !important;
}

#mw-content {
    background-color: #ffffff !important;
    color: #222222 !important;
}

#mw-content h1,
#mw-content h2,
#mw-content h3,
#mw-content h4 {
    color: #222222 !important;
}

#mw-content p,
#mw-content li {
    color: #222222 !important;
    line-height: 1.7 !important;
}

/* ===== 顶部个人工具栏 ===== */
#p-personal li a {
    color: #0645ad !important;
}
#p-personal li a:hover {
    color: #0645ad !important;
    text-decoration: underline !important;
}

/* ===== 搜索框适配 ===== */
#searchInput {
    background-color: #ffffff !important;
    color: #222222 !important;
    border: 1px solid #cccccc !important;
}
#searchInput:focus {
    border-color: #0645ad !important;
    outline: none !important;
}

/* ===== 页面底部 ===== */
#footer {
    background-color: #f6f6f6 !important;
    color: #666666 !important;
    border-top: 1px solid #d0d0d0 !important;
}
#footer a {
    color: #0645ad !important;
}
#footer a:hover {
    color: #0645ad !important;
    text-decoration: underline !important;
}




/* ======================================================================== */
/*                                                                          */
/*  ██████╗ ███████╗██╗      ██████╗ ██████╗ ███████╗██████╗  █████╗ ████████╗ */
/*  ██╔══██╗██╔════╝██║     ██╔═══██╗██╔══██╗██╔════╝██╔══██╗██╔══██╗╚══██╔══╝ */
/*  ██████╔╝█████╗  ██║     ██║   ██║██████╔╝█████╗  ██████╔╝███████║   ██║    */
/*  ██╔══██╗██╔══╝  ██║     ██║   ██║██╔══██╗██╔══╝  ██╔══██╗██╔══██║   ██║    */
/*  ██████╔╝███████╗███████╗╚██████╔╝██║  ██║███████╗██║  ██║██║  ██║   ██║    */
/*  ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═╝  ╚═╝╚══════╝╚═╝  ╚═╝╚═╝  ╚═╝   ╚═╝    */
/*                                                                          */
/*  ======================  分 隔 线  ·  以 下 为 新 代 码  ====================== */
/*                                                                          */
/* ======================================================================== */













/* --- 通用信息卡片样式 (基于 CSS 变量) --- */

/* 1. 卡片外层容器 */
.mw-card-box {
    width: 100%;
    background-color: #f8f9fa;
    border: 1px solid #a2a9b1;
    padding: 0;
    border-spacing: 0;
}

/* 2. 标题区 (颜色跟随变量) */
.mw-card-header {
    background-color: #f4f8fc;
    color: #000;
    font-weight: bold;
    padding: 12px 18px;
    text-align: left;
    border-bottom: 3px solid var(--theme-color, #0077FF);
    font-size: 1.2em;
}

/* 3. 基础数据区 */
.mw-card-body {
    padding: 15px 18px;
    background-color: #ffffff;
}

/* 4. 数据区内部弹性布局 */
.mw-card-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px 30px;
}

.mw-card-col {
    flex: 1;
    line-height: 1.7;
    min-width: 120px;
}

/* 5. 右上角图标区 */
.mw-card-icon-box {
    flex: 0 0 auto;
    background-color: var(--theme-color, #0077FF);
    padding: 4px 8px;
    border-radius: 3px;
    display: flex;
    align-items: center;
}

/* 6. 内容区分割线 */
.mw-card-divider {
    padding: 0;
    border-bottom: 1px solid #eaecf0;
}

/* 7. 图片/截图展示区 */
.mw-card-image-frame {
    text-align: center;
    padding: 15px;
    background-color: var(--theme-bg, #f2f7fb);
    border: 1px solid var(--theme-color, #0077FF);
    margin: 0;
}

.mw-card-image-frame img {
    max-width: 100%;
    height: auto;
}

.mw-card-caption {
    color: #666;
    margin-top: 6px;
    display: block;
}

/* 8. 底部附加信息区 */
.mw-card-footer {
    padding: 15px 18px;
    background-color: #ffffff;
    line-height: 1.8;
}

/* 9. 游戏代码 INI 展示区 */
.mw-card-code {
    padding: 15px 18px;
    background-color: #ffffff;
}

.mw-card-code-divider {
    padding: 0;
    border-bottom: 1px solid #eaecf0;
    margin-bottom: 15px;
}