MediaWiki:Common.css
跳到导航
跳到搜索
注意:在保存之后,您可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox或Safari:按住Shift的同时单击刷新,或按Ctrl-F5或Ctrl-R(Mac为⌘-R)
- Google Chrome:按Ctrl-Shift-R(Mac为⌘-Shift-R)
- Internet Explorer:按住Ctrl的同时单击刷新,或按Ctrl-F5
- Opera:前往菜单 → 设置(Mac为Opera → Preferences),然后隐私和安全 → 清除浏览数据 → 缓存的图片和文件。
/* 这里放置的CSS将应用于所有皮肤 */ /* CSS placed here will be applied to all skins */ /* Bring the text to 125% */ #mw-content-text { font-size: 1.25em; } /* Remove View Source, History, Discussion tabs */ #ca-viewsource { display:none!important; } #ca-history { display:none!important; } #ca-talk { display:none!important; } /* Make table of contents always visible to the right, if width is big enough*/ /* @media screen and (min-width: 50px) { #toc { float: right; position: fixed; top: 150px; margin: 0 0 1em 1em; right: 1em; width: 16em; } #mw-content-text { padding-right: 16em; } } */ #toc { position: fixed; right: 0; top: 5em; /* 5em is height of header, 6em brings just under */ /* bottom: 5em; /* 5em puts us above the footer; not bad but too low when TOC is collapsed */ z-index: 1000000; /* Ensure we float above the header, etc. */ /* min-width: 100px; max-width: 350px; max-height: 500px; overflow-y: scroll; */ /* Add opacity (translucency) */ background-color: rgb(249, 249, 249); background-color: rgba(249, 249, 249, 0.9); /* Higher opacity (last arg) means less transparency */ } /* Ensure the TOC height doesn't take over the screen; percentages may be higher than view port, so we use pixels */ #toc > ul { max-width: 250px; max-height: 300px; overflow: scroll; /* overflow-x: scroll; overflow-y: scroll; */ } .toctoggle { float: right; } /* .toc, #toc { display: none; } */ /* #toc{ display: block; position: fixed; top: 100px; right: 0px; min-width: 100px; max-width: 350px; max-height: 20px; overflow-y: scroll; border: 1px solid #aaa; border-radius: 0 0 1px 1px; -moz-border-radius: 0 0 1px 1px; background: rgba(249,249,249,0.75); padding: 12px; box-shadow: 0 1px 8px #000; -webkit-box-shadow: 0 1px 8px #000; -moz-box-shadow: 0 1px 8px #000; } #toc:hover{ display: block; position: fixed; top: 100px; right: 0px; min-width: 100px; max-width: 350px; max-height: 500px; overflow-y: scroll; border: 1px solid #aaa; border-radius: 0 0 1px 1px; -moz-border-radius: 0 0 1px 1px; background: rgba(249,249,249,0.75); padding: 12px; box-shadow: 0 1px 8px #000; -webkit-box-shadow: 0 1px 8px #000; -moz-box-shadow: 0 1px 8px #000; } body { overflow-x: hidden;} */ /* body.page-Main_Page.action-view h1.firstHeading, body.page-Main_Page.action-submit h1.firstHeading { display: none; } */ /* body.page-中医灵仙网 h1.firstHeading { display: none; } */ /*.page-Main_Page .firstHeading { border: none; } body.page-Main_Page h1 { display: none; } */ /* Import Google fonts */ @import url("https://fonts.googleapis.com/css?family=Noto+Sans|Noto+Serif") body {font-family: "Noto Sans", sans-serif} /* changes the default font used for MediaWiki to Noto Sans (does not include headings or monospaced text) */ div#content h1, div#content h2 {font-family: "Noto Serif", serif} /* changes the default font used for MediaWiki headings to Noto Serif */