MediaWiki:Common.css:修订间差异

来自勿忘草与永远的少女
跳到导航跳到搜索
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 自定义侧边栏模块样式 */
/* ===== 终末地风格首页样式 - Bwiki标准三栏布局 ===== */
.custom-sidebar-wrapper {
/* 隐藏首页标题 */
     margin: 0 0 20px 0;
.page-首页 #firstHeading,
     padding: 0;
.page-首页 .firstHeading {
    display: none;
}
 
/* 全局背景 */
body {
    background: #0a0c12 url('https://wiki.biligame.com/zmd/images/背景图.jpg') repeat fixed top center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #e5e9f0;
}
 
/* Bwiki标准:内容总宽度1160px */
.zmd-wrapper {
    width: 1160px;
     margin: 0 auto;
    background: transparent;
    position: relative;
}
 
/* ===== 轮播图区域 Bwiki标准尺寸960*300 ===== */
.zmd-carousel {
    width: 960px;
    height: 300px;
    margin: 0 auto 30px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.zmd-carousel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
/* ===== 三栏布局核心:左270px 中565px 右270px ===== */
.zmd-three-columns {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.zmd-left {
    width: 270px;
    flex-shrink: 0;
}
.zmd-center {
    width: 565px;
     flex-shrink: 0;
}
.zmd-right {
    width: 270px;
    flex-shrink: 0;
}
 
/* 响应式:小屏幕时三栏变单列 */
@media (max-width: 1200px) {
    .zmd-wrapper {
        width: auto;
        margin: 0 20px;
    }
    .zmd-three-columns {
        flex-direction: column;
        gap: 20px;
    }
    .zmd-left, .zmd-center, .zmd-right {
        width: 100%;
    }
    .zmd-carousel {
        width: 100%;
        height: auto;
        aspect-ratio: 960 / 300;
    }
}
}


/* ===== 通用板块样式(仿Bwiki卡片风格) ===== */
.custom-sidebar-wrapper .zmd-section,
.zmd-section {
.custom-sidebar-wrapper .zmd-wiki-info {
     background: rgba(20, 24, 36, 0.75);
     background: rgba(20, 24, 36, 0.75);
     backdrop-filter: blur(8px);
     backdrop-filter: blur(8px);
第84行: 第13行:
     margin-bottom: 25px;
     margin-bottom: 25px;
     border: 1px solid rgba(66, 140, 200, 0.25);
     border: 1px solid rgba(66, 140, 200, 0.25);
    transition: all 0.2s;
}
.zmd-section:hover {
    border-color: rgba(66, 140, 200, 0.6);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
}


/* 板块标题 - 带装饰条 */
.custom-sidebar-wrapper .zmd-section-title {
.zmd-section-title {
     font-size: 16px;
     font-size: 18px;
     font-weight: bold;
     font-weight: bold;
     margin: -8px 0 16px 0;
     margin-bottom: 12px;
     padding-bottom: 8px;
     padding-bottom: 8px;
     border-bottom: 2px solid rgba(60, 126, 176, 0.5);
     border-bottom: 2px solid rgba(60, 126, 176, 0.5);
第103行: 第26行:
     gap: 8px;
     gap: 8px;
}
}
.zmd-section-title::before {
 
.custom-sidebar-wrapper .zmd-section-title::before {
     content: "";
     content: "";
     display: inline-block;
     display: inline-block;
     width: 4px;
     width: 4px;
     height: 18px;
     height: 16px;
     background: #3c7eb0;
     background: #3c7eb0;
     border-radius: 2px;
     border-radius: 2px;
}
}
.zmd-section-title span {
 
     background: linear-gradient(135deg, #fff, #8abce6);
.custom-sidebar-wrapper .zmd-stats {
     -webkit-background-clip: text;
     font-size: 20px;
     background-clip: text;
     font-weight: bold;
     color: transparent;
     color: #7ab3c8;
     margin: 6px 0;
}
}


/* ===== 图鉴卡片网格 ===== */
.custom-sidebar-wrapper .zmd-link-list {
.zmd-grid-4 {
     display: flex;
     display: grid;
     flex-wrap: wrap;
     grid-template-columns: repeat(4, 1fr);
     gap: 10px;
     gap: 12px;
}
}
.zmd-card {
 
    background: rgba(0, 0, 0, 0.5);
.custom-sidebar-wrapper .zmd-link-list a,
    border-radius: 12px;
.custom-sidebar-wrapper .zmd-update-text a {
    overflow: hidden;
     color: #9cb8e0;
    text-align: center;
     text-decoration: none;
    transition: all 0.2s;
    border: 1px solid #2a2e3e;
    cursor: pointer;
}
.zmd-card:hover {
    transform: translateY(-3px);
    border-color: #4c8cb0;
    box-shadow: 0 6px 14px rgba(0,0,0,0.3);
}
.zmd-card-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    background: #11141c;
}
.zmd-card-title {
     padding: 10px 6px;
     font-weight: 500;
     font-size: 13px;
     font-size: 13px;
    background: rgba(0,0,0,0.6);
    color: #e0e7ff;
}
}


/* ===== 活动倒计时 ===== */
.custom-sidebar-wrapper .zmd-link-list a:hover,
.zmd-event-item {
.custom-sidebar-wrapper .zmd-update-text a:hover {
    background: rgba(0, 0, 0, 0.5);
     color: white;
    border-radius: 12px;
     text-decoration: underline;
    padding: 14px;
    margin-bottom: 14px;
    border-left: 3px solid #f4a261;
}
.zmd-event-name {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 6px;
}
.zmd-event-time {
    color: #9aa9c1;
    font-size: 12px;
    margin-bottom: 10px;
}
.zmd-countdown {
    font-family: monospace;
    font-size: 18px;
    font-weight: bold;
     color: #f4a261;
    background: #00000066;
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
     letter-spacing: 1px;
}
}


/* ===== 更新日志列表 ===== */
.custom-sidebar-wrapper .zmd-update-list {
.zmd-update-list {
     list-style: none;
     list-style: none;
     padding: 0;
     padding: 0;
     margin: 0;
     margin: 0;
}
}
.zmd-update-list li {
 
     padding: 10px 0;
.custom-sidebar-wrapper .zmd-update-list li {
     padding: 8px 0;
     border-bottom: 1px solid #2a2f3a;
     border-bottom: 1px solid #2a2f3a;
     display: flex;
     display: flex;
     gap: 12px;
     gap: 10px;
     align-items: center;
     align-items: center;
}
}
.zmd-update-date {
 
.custom-sidebar-wrapper .zmd-update-date {
     background: #2a3a4a;
     background: #2a3a4a;
     padding: 2px 8px;
     padding: 2px 6px;
     border-radius: 4px;
     border-radius: 4px;
     font-size: 11px;
     font-size: 11px;
第203行: 第84行:
     white-space: nowrap;
     white-space: nowrap;
}
}
.zmd-update-text a {
 
    color: #c0d4ff;
.custom-sidebar-wrapper .zmd-update-text {
    text-decoration: none;
     font-size: 13px;
     font-size: 13px;
}
.zmd-update-text a:hover {
    color: white;
    text-decoration: underline;
}
}


/* ===== 关于WIKI模块 ===== */
.custom-sidebar-wrapper .zmd-btn {
.zmd-wiki-info {
    background: linear-gradient(145deg, rgba(17, 22, 31, 0.9), rgba(11, 15, 22, 0.9));
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 25px;
    text-align: center;
    border: 1px solid #2a3a4a;
}
.zmd-stats {
    font-size: 22px;
    font-weight: bold;
    color: #7ab3c8;
    margin: 6px 0;
}
.zmd-btn {
     display: inline-block;
     display: inline-block;
     background: #2f4f6f;
     background: #2f4f6f;
第240行: 第101行:
     transition: 0.2s;
     transition: 0.2s;
}
}
.zmd-btn:hover {
 
.custom-sidebar-wrapper .zmd-btn:hover {
     background: #3f6f8f;
     background: #3f6f8f;
     color: white;
     color: white;
}
}


/* ===== 常用链接 ===== */
/* 确保侧边栏宽度足够显示内容 */
.zmd-link-list {
@media (min-width: 1200px) {
     display: flex;
     .vector-feature-limited-width-clientpref-1 .mw-page-container,
    flex-wrap: wrap;
     .vector-feature-limited-width-clientpref-0 .mw-page-container {
    gap: 12px;
        padding-left: 2em;
}
     }
.zmd-link-list a {
     .mw-sidebar {
    color: #9cb8e0;
        width: 280px;
    text-decoration: none;
     }
    font-size: 13px;
}
.zmd-link-list a:hover {
     color: white;
}
 
/* ===== 页脚 ===== */
.zmd-footer {
    text-align: center;
    margin: 40px 0 30px;
    padding-top: 20px;
     border-top: 1px solid #2a2f3a;
     font-size: 12px;
    color: #6c7a8e;
     clear: both;
}
}

2026年3月26日 (四) 22:40的版本

/* 自定义侧边栏模块样式 */
.custom-sidebar-wrapper {
    margin: 0 0 20px 0;
    padding: 0;
}

.custom-sidebar-wrapper .zmd-section,
.custom-sidebar-wrapper .zmd-wiki-info {
    background: rgba(20, 24, 36, 0.75);
    backdrop-filter: blur(8px);
    border-radius: 8px;
    padding: 16px 18px;
    margin-bottom: 25px;
    border: 1px solid rgba(66, 140, 200, 0.25);
}

.custom-sidebar-wrapper .zmd-section-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid rgba(60, 126, 176, 0.5);
    color: #f0f3fa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-sidebar-wrapper .zmd-section-title::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: #3c7eb0;
    border-radius: 2px;
}

.custom-sidebar-wrapper .zmd-stats {
    font-size: 20px;
    font-weight: bold;
    color: #7ab3c8;
    margin: 6px 0;
}

.custom-sidebar-wrapper .zmd-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.custom-sidebar-wrapper .zmd-link-list a,
.custom-sidebar-wrapper .zmd-update-text a {
    color: #9cb8e0;
    text-decoration: none;
    font-size: 13px;
}

.custom-sidebar-wrapper .zmd-link-list a:hover,
.custom-sidebar-wrapper .zmd-update-text a:hover {
    color: white;
    text-decoration: underline;
}

.custom-sidebar-wrapper .zmd-update-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.custom-sidebar-wrapper .zmd-update-list li {
    padding: 8px 0;
    border-bottom: 1px solid #2a2f3a;
    display: flex;
    gap: 10px;
    align-items: center;
}

.custom-sidebar-wrapper .zmd-update-date {
    background: #2a3a4a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: #bcd0ff;
    white-space: nowrap;
}

.custom-sidebar-wrapper .zmd-update-text {
    font-size: 13px;
}

.custom-sidebar-wrapper .zmd-btn {
    display: inline-block;
    background: #2f4f6f;
    padding: 6px 20px;
    border-radius: 24px;
    color: white;
    font-weight: bold;
    text-decoration: none;
    margin-top: 10px;
    font-size: 13px;
    transition: 0.2s;
}

.custom-sidebar-wrapper .zmd-btn:hover {
    background: #3f6f8f;
    color: white;
}

/* 确保侧边栏宽度足够显示内容 */
@media (min-width: 1200px) {
    .vector-feature-limited-width-clientpref-1 .mw-page-container,
    .vector-feature-limited-width-clientpref-0 .mw-page-container {
        padding-left: 2em;
    }
    .mw-sidebar {
        width: 280px;
    }
}