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。
/* 这里放置的CSS将应用于所有皮肤 */
/* 首行缩进 */
div.textIndent p {
text-indent: 2em;
margin: 0.5em 0;
}
/* 首字下沉样式 */
.dropCap::first-letter {
float: left;
font-size: 3.2em !important;
line-height: 0.85em !important;
margin-right: 0.1em !important;
font-weight: bold;
color: #000;
}
/* 融合维基风格的Infobox角色信息框样式 - 适配维基百科Infobox元模板 */
.infobox {
border: 4vmin solid transparent;
border-radius: 4vmin;
border-image:url(https://huiji-public.huijistatic.com/simmc/uploads/8/8a/HomePageBoarderImage.png) 170 round;
background-color: #fbf2db;
color: #361d07;
margin: 0 0 0.5em 1em;
padding: 0.2em;
float: right;
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
font-family: Minecraft, sans-serif;
image-rendering: pixelated;
box-shadow: 0 0 20px rgba(0,0,0,0.1);
}
/* 信息框标题/顶栏 */
.infobox-header, .infobox-above {
text-align: center;
font-size: 125%;
font-weight: bold;
padding: 0.2em;
color: #441f74; /* 复用维基强调色 */
}
/* 子标题 */
.infobox-subheader {
text-align: center;
font-weight: bold;
padding: 0.2em;
}
/* 标签列 - 右对齐不换行,复用维基配色 */
.infobox-label {
text-align: right;
padding: 0.2em 0.5em;
white-space: nowrap;
vertical-align: top;
color: #361d07;
background-color: #221b0022; /* 浅半透明背景 */
}
/* 数据列 */
.infobox-data {
padding: 0.2em 0.5em;
vertical-align: top;
color: #361d07;
}
/* 图片+说明 */
.infobox-image {
text-align: center;
padding: 0.2em;
image-rendering: pixelated; /* 图片像素化 */
}
.infobox-caption {
font-size: 90%;
text-align: center;
color: #361d07;
}
/* 底部文本 */
.infobox-below {
text-align: center;
font-weight: bold;
padding: 0.2em;
color: #441f74;
}
/* 移动端适配 */
@media screen and (max-width: 768px) {
.infobox {
float: none;
clear: none;
margin: 0 auto;
width: 95%;
border-width: 2vmin;
}
}