MediaWiki:Common.css
外观
注意:在发布之后,您可能需要清除浏览器缓存才能看到所作出的更改的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Edge:按住Ctrl的同时单击刷新,或按Ctrl-F5。
/* 这里放置的CSS将应用于所有皮肤 */
/* 隐藏wikiplus的设置项 */
#wphl-settings,#Wikiplus-Settings-Intro {
display: none;
}
/* 图片自适应
.img-kk {
max-width:100%;
} */
/* 限制目录宽度 */
#toc {
max-width: 20em;
}
/* 显示网站标语(副标题)*/
#siteSub {
display: block; font-weight: normal; font-size: normal;
}
/* 首页页不显示标语 */
body.page-中医百科_首页.action-view #siteSub,
body.page-中医百科_首页.action-submit #siteSub { display: none;}
/* 隐藏首页分类 */
body.page-中医百科_首页 #catlinks,
body.page-中医百科_首页 #catlinks-sidebar,
body.page-中医百科_首页 #cosmos-content-categories {
display: none;
}
/*隐藏首页标题*/
body.page-中医百科_首页 #cosmos-page-header { display:none; }
/*隐藏所有讨论页*/
//#ca-talk { display:none!important; }
/* 隐藏首页标题,空行,讨论、查看源代码tab */
.page-中医百科_首页 h1.firstHeading,
.page-中医百科_首页 #siteSub,
.page-中医百科_首页 #contentSub,
.page-中医百科_首页 li#ca-viewsource,
.page-中医百科_首页 li#ca-talk {
display: none;
}
/* Hatnotes 和消歧义通知 */
.hatnote {
font-size: small;
}
.hatnote i {
font-style: normal;
}
div.hatnote {
padding-left: 2em;
margin-bottom: 0.8em;
margin-top: 0.8em;
}
div.hatnote + div.hatnote {
margin-top: -0.5em;
}
/* Banner背景图 (MW 1.45 TemplateStyles不支持url) */
#header-module {
background-image: url(/w/images/3/37/BannerBackgroundImage.jpg) !important;
background-repeat: repeat-y;
background-size: 100%;
background-position: center;
}
/* 模板文档 */
.template-documentation {
clear: both;
margin: 1em 0 0 0;
border: 1px solid #a2a9b1;
background-color: #ecfcf4;
padding: 5px;
}