MediaWiki:Common.css:修订间差异
来自勿忘草与永远的少女
跳到导航跳到搜索
无编辑摘要 |
无编辑摘要 |
||
| 第1行: | 第1行: | ||
/* | /* 自定义侧边栏模块样式 */ | ||
.custom-sidebar-wrapper { | |||
margin: 0 0 20px 0; | |||
padding: 0; | |||
margin: 0 | |||
} | } | ||
.custom-sidebar-wrapper .zmd-section, | |||
.zmd- | .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); | ||
} | } | ||
.custom-sidebar-wrapper .zmd-section-title { | |||
.zmd-section-title { | font-size: 16px; | ||
font-size: | |||
font-weight: bold; | font-weight: bold; | ||
margin: | 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: | height: 16px; | ||
background: #3c7eb0; | background: #3c7eb0; | ||
border-radius: 2px; | border-radius: 2px; | ||
} | } | ||
.zmd- | |||
.custom-sidebar-wrapper .zmd-stats { | |||
- | font-size: 20px; | ||
font-weight: bold; | |||
color: #7ab3c8; | |||
margin: 6px 0; | |||
} | } | ||
.custom-sidebar-wrapper .zmd-link-list { | |||
.zmd- | display: flex; | ||
display: | flex-wrap: wrap; | ||
gap: 10px; | |||
gap: | |||
} | } | ||
.custom-sidebar-wrapper .zmd-link-list a, | |||
.custom-sidebar-wrapper .zmd-update-text a { | |||
color: #9cb8e0; | |||
text-decoration: none; | |||
.zmd- | |||
. | |||
.zmd- | |||
font-size: 13px; | font-size: 13px; | ||
} | } | ||
.custom-sidebar-wrapper .zmd-link-list a:hover, | |||
. | .custom-sidebar-wrapper .zmd-update-text a:hover { | ||
color: white; | |||
text-decoration: underline; | |||
. | |||
.zmd- | |||
color: | |||
} | } | ||
.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: | .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: | gap: 10px; | ||
align-items: center; | align-items: center; | ||
} | } | ||
.zmd-update-date { | |||
.custom-sidebar-wrapper .zmd-update-date { | |||
background: #2a3a4a; | background: #2a3a4a; | ||
padding: 2px | 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 | |||
.custom-sidebar-wrapper .zmd-update-text { | |||
font-size: 13px; | font-size: 13px; | ||
} | } | ||
.custom-sidebar-wrapper .zmd-btn { | |||
. | |||
.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; | ||
} | } | ||
/* | /* 确保侧边栏宽度足够显示内容 */ | ||
@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; | |||
} | |||
. | |||
. | |||
} | } | ||
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;
}
}