用户:Lzw/Sandbox/首页/css
跳转到导航
跳转到搜索
注意:在发布之后,你可能需要清除浏览器缓存才能看到所作出的变更的影响。
- Firefox 或 Safari:按住 Shift 的同时单击刷新,或按 Ctrl-F5 或 Ctrl-R(Mac 为 ⌘-R)
- Google Chrome:按 Ctrl-Shift-R(Mac 为 ⌘-Shift-R)
- Internet Explorer 或 Edge:按住Ctrl的同时单击刷新,或按 Ctrl-F5
- Opera:按 Ctrl-F5。
/* 在这里放置的 CSS 将应用于所有皮肤 */
body {
font-family: "Noto Sans", "Noto Sans CJK SC", "Droid Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", "PingFang SC", "Heiti SC", "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
}
/* Heading font settings */
#firstHeading {
font-family: "Noto Sans", "Noto Sans CJK SC", "Droid Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", "PingFang SC", "Heiti SC", "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
font-weight: 500;
padding-left: 0.25em;
}
body.page-首页 h1.firstHeading {
display:none;
}
.mw-headline, .mw-body h1, .mw-body-content h1, .mw-body-content h2 {
font-family: "Noto Sans", "Noto Sans CJK SC", "Droid Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Lucida Grande", "PingFang SC", "Heiti SC", "Segoe UI Variable Text", "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "Source Han Sans CN", sans-serif;
}
/* Content font size settings */
.mw-body-content {
font-size: 1.08em;
}
/* Monospace font settings */
pre, code, tt, kbd, samp, .mw-code, .mw-editfont-monospace {
font-family: "Noto Sans Mono", "Noto Sans Mono CJK SC", "Source Code Pro", "Menlo", "Consolas", "Microsoft Yahei", monospace;
}
/* Wikiext editor font size */
#wpTextbox1 {
font-size: 14px;
}
/* Table padding settings */
.wikitable > * > tr > td {
padding: 0.4em 0.5em;
}
/* 来自 BetaWiki */
/* 来自维基百科的主页修复 */
.page-Main_Page #deleteconfirm,
.page-Main_Page #t-cite,
.page-Main_Page #footer-info-lastmod,
.action-view.page-Main_Page #siteSub,
.action-view.page-Main_Page #contentSub,
.action-view.page-Main_Page .firstHeading {
display: none;
}
.toclimit-2 .toclevel-1 ul,
.toclimit-3 .toclevel-2 ul,
.toclimit-4 .toclevel-3 ul,
.toclimit-5 .toclevel-4 ul,
.toclimit-6 .toclevel-5 ul,
.toclimit-7 .toclevel-6 ul {
display: none;
}
/*
* Eye candy
*/
.keypress kbd {
border: 1px solid #aaa;
-moz-border-radius: 0.2em;
-webkit-border-radius: 0.2em;
border-radius: 0.2em;
-moz-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
-webkit-box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
box-shadow: 0.1em 0.1em 0.2em rgba(0,0,0,0.1);
background-color: #f9f9f9;
background-image: -moz-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: -o-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: -webkit-linear-gradient(top, #eee, #f9f9f9, #eee);
background-image: linear-gradient(to bottom, #eee, #f9f9f9, #eee);
color: #000;
padding: 0.1em 0.3em;
font-family: inherit;
font-size: 0.85em;
}
.mp-row {
display: flex;
clear: both;
width: 100%;
}
@media screen and (max-width: 70em) {
.mp-row {
flex-direction: column;
}
}
.mp-box {
padding: 0.7em;
margin: 0.3em;
width: 100%;
box-sizing: border-box;
}
.mp-box h1, .mp-box h2, .mp-box h3, .mp-box h4, .mp-box h5, .mp-box h6 {
font-family: inherit;
margin-top: 0;
padding-top: 0;
border-bottom: none;
}
.mp-header {
background-color: #F0FFFF;
border: 1px solid #80FFFF;
font-size: 75%;
text-align: center;
}
.mp-header * {
margin: 0;
}
.mp-header h1 {
font-size: 200%;
}
.mp-header h2 {
font-size: 133%;
font-style: italic;
}
.mp-color {
background-color: #FFFFFF;
border: 1px solid #F6F6F6;
}
.mp-color h2 {
background-color: #F0FFFF;
border: 1px solid #F0F0F0;
padding: 0.3em 0.4em !important;
text-align: left;
font-size: 120%;
font-weight: bolder;
}
/* Sidebar settings */
div#mw-panel {
font-size: 18px;
top: 18px;
width: 10.5rem;
}
/* Top banner height settings */
div#mw-page-base {
background: none;
height: 100px;
}
div#mw-head {
padding-top: 1.25em;
}
/*
* Hatnotes
*/
.hatnote {
padding-left: 1.6em;
margin-bottom: 0.5em;
font-style: italic;
}
/* Wrapping */
.nowrap {
white-space: nowrap;
}
/* Style for horizontal lists (separator following item).
@source mediawiki.org/wiki/Snippets/Horizontal_lists
@revision 8 (2016-05-21)
@author Edokter
*/
.hlist dl,
.hlist ol,
.hlist ul {
margin: 0;
padding: 0;
}
/* Display list items inline */
.hlist dd,
.hlist dt,
.hlist li {
margin: 0;
display: inline;
}
/* Display nested lists inline */
.hlist.inline,
.hlist.inline dl,
.hlist.inline ol,
.hlist.inline ul,
.hlist dl dl, .hlist dl ol, .hlist dl ul,
.hlist ol dl, .hlist ol ol, .hlist ol ul,
.hlist ul dl, .hlist ul ol, .hlist ul ul {
display: inline;
}
/* Hide empty list items */
.hlist .mw-empty-li {
display: none;
}
/* Generate interpuncts */
.hlist dt:after {
content: ": ";
}
/**
* Note hlist style usage differd in
* the Minerva skin. Remember .hlist is a class defined in core as well! Please check Minerva desktop (and Minerva.css) when changing
* See https://phabricator.wikimedia.org/T213239
*/
.hlist dd:after,
.hlist li:after {
content: " · ";
font-weight: bold;
}
.hlist dd:last-child:after,
.hlist dt:last-child:after,
.hlist li:last-child:after {
content: none;
}
/* Add parentheses around nested lists */
.hlist dd dd:first-child:before, .hlist dd dt:first-child:before, .hlist dd li:first-child:before,
.hlist dt dd:first-child:before, .hlist dt dt:first-child:before, .hlist dt li:first-child:before,
.hlist li dd:first-child:before, .hlist li dt:first-child:before, .hlist li li:first-child:before {
content: " (";
font-weight: normal;
}
.hlist dd dd:last-child:after, .hlist dd dt:last-child:after, .hlist dd li:last-child:after,
.hlist dt dd:last-child:after, .hlist dt dt:last-child:after, .hlist dt li:last-child:after,
.hlist li dd:last-child:after, .hlist li dt:last-child:after, .hlist li li:last-child:after {
content: ")";
font-weight: normal;
}
/* Put ordinals in front of ordered list items */
.hlist ol {
counter-reset: listitem;
}
.hlist ol > li {
counter-increment: listitem;
}
.hlist ol > li:before {
content: " " counter(listitem) "\a0";
}
.hlist dd ol > li:first-child:before,
.hlist dt ol > li:first-child:before,
.hlist li ol > li:first-child:before {
content: " (" counter(listitem) "\a0";
}
/* Link settings */
a {
color: #3366CC;
}
.mw-body-content a:link {
color: #3366CC;
}
.mw-body-content a:visited {
color: #3366CC;
}
.mw-body-content a.new:link {
color: #DD3333;
}
.mw-body-content a.new:visited {
color: #DD3333;
}
.mw-body-content a.external:link {
color: #3366CC;
}
.mw-body-content a.external:visited {
color: #3366CC;
}
/* Disable last modification */
#footer-info-lastmod {
display: none;
}
/* DarkMode extension fix */
@media screen {
html.client-darkmode {
background-color: #f6f9fc;
}
}