MediaWiki:Common.css
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* ===== 尘月维基 · Vector 经典皮肤(对齐参考站) =====
参考站本身几乎没有自定义 CSS,外观全部由首页内联样式表格实现。
这里只做三件事:中文字体、站标尺寸、去点击虚线框。
*/
body {
font-family: -apple-system, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}
/* 站标:左侧栏顶部,10em 宽、等比不拉伸 */
#p-logo a.mw-wiki-logo {
display: block;
width: 10em;
height: 8em;
background-image: url(/logo.jpg);
background-repeat: no-repeat;
background-position: center center;
background-size: contain;
}
/* 内容区最小高度,避免空页面太短 */
#content {
min-height: 60vh;
}
/* 首页板块表格里的图片不被撑破 */
.mw-parser-output table img {
max-width: 100%;
height: auto;
}
/* 去掉链接点击后的虚线框 */
a:focus {
outline: none;
}