MediaWiki:Common.css:修订间差异
来自Mindustry中文wiki
无编辑摘要 |
无编辑摘要 |
||
| 第29行: | 第29行: | ||
color: #000; /* 鼠标悬停文字色 */ | color: #000; /* 鼠标悬停文字色 */ | ||
} | } | ||
/* 只在“首页”隐藏页面标题 */ | |||
body.page-首页 #firstHeading, | |||
body.page-首页 .mw-page-title-main { display: none; } | |||
2026年1月9日 (五) 00:42的版本
/* 这里放置的CSS将应用于所有皮肤 */
/* 让横幅图片自动适应手机屏幕 */
.banner img {
width: 100% !important;
height: auto !important;
}
/* ========== 自定义顶部菜单样式 ========== */
#custom-top-nav {
display: flex;
align-items: center;
height: 100%;
margin-left: 20px; /* 距离 Logo 的距离 */
flex-grow: 1; /* 让它占据中间的空间 */
}
#custom-top-nav a {
color: #333; /* 文字颜色 (如果是深色背景改为 #fff) */
font-size: 15px;
font-weight: bold;
text-decoration: none;
padding: 0 15px; /* 按钮左右间距 */
line-height: 50px; /* 垂直居中 */
transition: 0.3s;
border-radius: 4px;
}
#custom-top-nav a:hover {
background-color: #eee; /* 鼠标悬停背景色 (深色模式改为 #444) */
color: #000; /* 鼠标悬停文字色 */
}
/* 只在“首页”隐藏页面标题 */
body.page-首页 #firstHeading,
body.page-首页 .mw-page-title-main { display: none; }
