MediaWiki:Common.css:修订间差异
MediaWiki界面页面
更多操作
删除的内容 添加的内容
Maintenance script(留言 | 贡献) 拆分首页样式到子页面 |
Maintenance script(留言 | 贡献) 整理全站样式并移出导航框样式 |
||
| 第23行: | 第23行: | ||
} |
} |
||
/* 导航框样式 |
/* 导航框样式迁移至 Template:Navbox/styles.css */ |
||
.navbox { |
|||
width: 100%; |
|||
border-collapse: collapse; |
|||
} |
|||
.navbox td { |
|||
padding: 8px 12px; |
|||
border: none; |
|||
} |
|||
.navbox a { |
|||
text-decoration: none; |
|||
color: #0066cc; |
|||
} |
|||
.navbox a:hover { |
|||
text-decoration: underline; |
|||
} |
|||
/* 语言链接样式 */ |
/* 语言链接样式 */ |
||
| 第53行: | 第35行: | ||
display: inline-block; |
display: inline-block; |
||
margin-right: 10px; |
margin-right: 10px; |
||
} |
|||
/* 响应式表格 */ |
|||
@media (max-width: 480px) { |
|||
.navbox { |
|||
font-size: 14px; |
|||
} |
|||
.navbox td { |
|||
padding: 6px 8px; |
|||
display: block; |
|||
width: 100%; |
|||
box-sizing: border-box; |
|||
} |
|||
} |
} |
||
2025年12月27日 (六) 11:52的版本
/* 全局字体设置,覆盖东亚语言 */
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
"Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK TC", "Noto Sans JP",
"Noto Sans KR", sans-serif, "PingFang SC", "Hiragino Sans GB",
"Microsoft YaHei", "WenQuanYi Micro Hei", "SimSun", "SimHei",
"Songti SC", "KaiTi", "MingLiU", "PMingLiU", "Microsoft JhengHei", "Malgun Gothic";
}
/* 首页样式拆分到子页面,避免污染全站 */
@import url("/index.php?title=%E9%A6%96%E9%A1%B5/style.css&action=raw&ctype=text/css");
/* 全站重定向链接样式 */
.mw-redirect {
color: #008000 !important; /* 使用 hex 颜色值,提高优先级 */
font-weight: 500;
}
/* 重定向链接悬停效果 */
.mw-redirect:hover {
color: #006400 !important;
text-decoration: underline;
}
/* 导航框样式迁移至 Template:Navbox/styles.css */
/* 语言链接样式 */
#p-lang ul {
list-style: none;
padding: 0;
margin: 10px 0;
}
#p-lang li {
display: inline-block;
margin-right: 10px;
}