MediaWiki:Common.css
外观
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* Bleap Wiki 全局样式 */
/* 首页布局:左新闻 60% + 右导航 40% */
.home-layout {
display: flex;
gap: 24px;
align-items: flex-start;
}
.home-news {
flex: 0 0 60%;
max-width: 60%;
}
.home-nav {
flex: 1;
max-width: 40%;
}
@media (max-width: 900px) {
.home-layout { flex-direction: column; }
.home-news, .home-nav { max-width: 100%; flex: none; }
}
/* 顶部条:logo + 吸顶搜索 */
.home-topbar {
position: sticky;
top: 0;
z-index: 100;
display: flex;
align-items: center;
gap: 16px;
padding: 12px 0;
background: rgba(255, 255, 255, 0.92);
backdrop-filter: blur(6px);
}
.home-logo {
font-weight: bold;
font-size: 20px;
}
.home-search {
flex: 1;
display: flex;
gap: 8px;
}
.home-search-input {
flex: 1;
padding: 8px 12px;
border: 1px solid #ccc;
border-radius: 8px;
font-size: 14px;
}
.home-search-btn {
padding: 8px 16px;
border: none;
border-radius: 8px;
background: #444;
color: #fff;
cursor: pointer;
}
.home-search-btn:hover { background: #222; }
/* 区块标题 */
.home-section-title {
border-bottom: 2px solid #ccc;
padding-bottom: 6px;
margin-bottom: 12px;
}
/* 主焦点卡 */
.news-featured {
border: 1px solid #ccc;
border-radius: 16px;
padding: 20px;
margin-bottom: 16px;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.news-featured-tag {
display: inline-block;
font-size: 12px;
padding: 2px 10px;
border-radius: 999px;
background: #444;
color: #fff;
margin-bottom: 8px;
}
.news-featured-title {
font-size: 20px;
font-weight: bold;
margin-bottom: 8px;
}
.news-featured-summary {
color: #666;
margin-bottom: 8px;
}
.news-featured-link a { font-weight: bold; }
/* 新闻条目 */
.news-item {
display: flex;
align-items: baseline;
gap: 10px;
padding: 10px 12px;
border-radius: 10px;
margin-bottom: 4px;
}
.news-item:hover { background: #f3f3f3; }
.news-date {
color: #888;
font-size: 12px;
white-space: nowrap;
}
.news-type {
font-size: 12px;
padding: 1px 8px;
border-radius: 999px;
white-space: nowrap;
color: #fff;
background: #777;
}
.news-title { flex: 1; }
.news-summary { color: #888; font-size: 13px; }
.news-more { text-align: right; margin: 8px 0; }
/* 快捷导航卡片 */
.home-nav-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
margin-bottom: 24px;
}
.nav-card {
border: 1px solid #ccc;
border-radius: 14px;
padding: 20px 12px;
text-align: center;
font-weight: bold;
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}
.nav-card:hover {
box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
transform: translateY(-2px);
transition: all 0.2s;
}
.nav-card a { text-decoration: none; }
/* 定数表 */
.home-table { width: 100%; font-size: 13px; }
.home-more-link { text-align: right; margin: 8px 0; }
/* 页脚 */
.home-footer {
margin-top: 32px;
padding-top: 16px;
border-top: 1px solid #ddd;
text-align: center;
color: #888;
font-size: 13px;
}
.home-footer-links { margin-bottom: 8px; }
/* 信息框模板通用 */
table.Infobox {
float: right;
clear: right;
width: 300px;
margin: 0 0 16px 16px;
border-collapse: collapse;
font-size: 13px;
}
table.Infobox th {
background: #eee;
padding: 6px 10px;
text-align: left;
font-weight: normal;
}
table.Infobox td { padding: 6px 10px; border-top: 1px solid #eee; }
/* 新闻/更新/赛季/关卡条目共用卡片 */
.news-item, .changelog-entry, .season-entry, .story-level {
border: 1px solid #eee;
border-radius: 10px;
}
.changelog-entry, .season-entry, .story-level { padding: 12px 14px; margin-bottom: 10px; }
.changelog-version { font-weight: bold; font-size: 15px; }
.changelog-date, .season-time { color: #888; font-size: 12px; margin-bottom: 6px; }
.story-chapter {
font-size: 12px;
color: #888;
letter-spacing: 1px;
}
.story-level-name { font-weight: bold; font-size: 16px; margin: 4px 0; }
.story-text { margin: 6px 0; }
.story-song { font-size: 13px; color: #555; }
/* 曲目难度表:放在右侧信息框的左侧 */
.difficulty-table-wrap {
clear: none;
margin: 12px 340px 12px 0;
}
@media (max-width: 900px) {
.difficulty-table-wrap { margin-right: 0; }
}
table.difficulty-table { width: 100%; border-collapse: collapse; }
table.difficulty-table th {
background: #eee;
padding: 8px 10px;
text-align: center;
font-weight: bold;
}
table.difficulty-table td {
padding: 8px 10px;
text-align: center;
border-top: 1px solid #eee;
}
table.difficulty-table .diff-cell { font-weight: bold; }
table.difficulty-table .bpm-cell {
vertical-align: middle;
background: #fafafa;
font-weight: bold;
}