MediaWiki:Common.css:修订间差异

来自勿忘草与永远的少女
跳到导航跳到搜索
Admin留言 | 贡献
无编辑摘要
Admin留言 | 贡献
无编辑摘要
第1行: 第1行:
/* 自定义侧边栏模块样式 */
/* 首页样式 - 适配MediaWiki 1.42.7 */
.custom-sidebar-wrapper {
.wiki-homepage {
     margin: 0 0 20px 0;
    font-family: sans-serif;
     padding: 0;
    max-width: 1200px;
     margin: 0 auto;
     padding: 1rem;
}
}
 
.home-section {
.custom-sidebar-wrapper .zmd-section,
     background: #f9f9f9;
.custom-sidebar-wrapper .zmd-wiki-info {
     border: 1px solid #ddd;
     background: rgba(20, 24, 36, 0.75);
     backdrop-filter: blur(8px);
     border-radius: 8px;
     border-radius: 8px;
     padding: 16px 18px;
     margin-bottom: 2rem;
     margin-bottom: 25px;
     padding: 1rem;
     border: 1px solid rgba(66, 140, 200, 0.25);
     box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
}
 
.home-section h2 {
.custom-sidebar-wrapper .zmd-section-title {
     font-size: 1.5rem;
     font-size: 16px;
     border-bottom: 2px solid #c00;
     font-weight: bold;
     margin-top: 0;
     margin-bottom: 12px;
     padding-bottom: 0.25rem;
     padding-bottom: 8px;
     display: inline-block;
    border-bottom: 2px solid rgba(60, 126, 176, 0.5);
    color: #f0f3fa;
     display: flex;
    align-items: center;
    gap: 8px;
}
}
 
.countdown {
.custom-sidebar-wrapper .zmd-section-title::before {
    font-family: monospace;
     content: "";
    font-size: 1.2rem;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.2rem 0.5rem;
     border-radius: 4px;
     display: inline-block;
     display: inline-block;
    width: 4px;
    height: 16px;
    background: #3c7eb0;
    border-radius: 2px;
}
}
 
.wiki-stats {
.custom-sidebar-wrapper .zmd-stats {
     font-size: 0.9rem;
     font-size: 20px;
     color: #555;
    font-weight: bold;
     margin-top: 0.5rem;
     color: #7ab3c8;
     margin: 6px 0;
}
}
 
.group-link {
.custom-sidebar-wrapper .zmd-link-list {
     background: #c00;
     display: flex;
     color: white;
     flex-wrap: wrap;
     padding: 0.2rem 0.8rem;
     gap: 10px;
    border-radius: 20px;
}
 
.custom-sidebar-wrapper .zmd-link-list a,
.custom-sidebar-wrapper .zmd-update-text a {
    color: #9cb8e0;
     text-decoration: none;
     text-decoration: none;
     font-size: 13px;
     display: inline-block;
}
}
 
.group-link:hover {
.custom-sidebar-wrapper .zmd-link-list a:hover,
    background: #a00;
.custom-sidebar-wrapper .zmd-update-text a:hover {
     color: white;
     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 {
.activity-grid {
    padding: 8px 0;
    border-bottom: 1px solid #2a2f3a;
     display: flex;
     display: flex;
     gap: 10px;
    flex-wrap: wrap;
     align-items: center;
     gap: 1rem;
     margin-top: 1rem;
}
}
 
.activity-card {
.custom-sidebar-wrapper .zmd-update-date {
     flex: 1;
     background: #2a3a4a;
     min-width: 200px;
    padding: 2px 6px;
     background: white;
    border-radius: 4px;
     border: 1px solid #eee;
     font-size: 11px;
     border-radius: 6px;
     color: #bcd0ff;
     padding: 0.8rem;
    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 (max-width: 768px) {
/* 确保侧边栏宽度足够显示内容 */
     .activity-grid {
@media (min-width: 1200px) {
         flex-direction: column;
     .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;
     }
     }
}
}

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

/* 首页样式 - 适配MediaWiki 1.42.7 */
.wiki-homepage {
    font-family: sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}
.home-section {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 2rem;
    padding: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.home-section h2 {
    font-size: 1.5rem;
    border-bottom: 2px solid #c00;
    margin-top: 0;
    padding-bottom: 0.25rem;
    display: inline-block;
}
.countdown {
    font-family: monospace;
    font-size: 1.2rem;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}
.wiki-stats {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0.5rem;
}
.group-link {
    background: #c00;
    color: white;
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
}
.group-link:hover {
    background: #a00;
    color: white;
}
/* 响应式布局 */
.activity-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}
.activity-card {
    flex: 1;
    min-width: 200px;
    background: white;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 0.8rem;
}
@media (max-width: 768px) {
    .activity-grid {
        flex-direction: column;
    }
}