MediaWiki:Common.css
MediaWiki界面页面
更多操作
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 首页整体 */
.home {
max-width: 1200px;
margin: 0 auto;
padding: 1.5em 1em;
}
.home-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 1.5em;
}
@media (max-width: 900px) {
.home-grid {
grid-template-columns: 1fr;
}
}
/* 区块 */
.home-section {
background: var(--background-color-neutral-subtle, #f8f9fa);
border-radius: 8px;
padding: 1em 1.2em;
}
.section-title {
font-size: 1.25em;
margin-bottom: 0.8em;
}
/* 最新页面 */
.latest-item {
padding: 0.4em 0;
border-bottom: 1px solid #e0e0e0;
}
.latest-item:last-child {
border-bottom: none;
}
/* 典范条目 */
.featured-item {
padding: 0.5em 0;
}
.featured-title {
font-weight: 600;
}
/* 底部链接 */
.section-footer {
margin-top: 0.8em;
font-size: 0.9em;
text-align: right;
}
/* 最新页面列表 */
.latest-list {
display: flex;
flex-direction: column;
gap: 0.3em;
}
.latest-item {
padding: 0.4em 0.2em;
}
.latest-link {
text-decoration: none;
color: inherit;
}
.latest-link:hover {
text-decoration: underline;
}