欢迎来到奇葩栖息地!欢迎加入Discord服务器:XfrfHCzfbW。请先至特殊:参数设置验证邮箱后再进行编辑。在特殊:参数设置挑选自己想要使用的小工具!不会编辑?请至这里学习Wikitext语法。
MediaWiki:Gadget-site-styles.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。
/*
* 这里放置的样式将同时应用到桌面版和移动版视图
* 仅用于桌面版的样式请放置于[[MediaWiki:Common.css]]和其他皮肤对应样式表内
* 仅用于移动版的样式请放置于[[MediaWiki:Mobile.css]]
*/
/* content mostly taken from [[adodoz:MediaWiki:Gadget-site-styles.css]], also from [[mcw:zh:MediaWiki:Gadget-site-styles.css]] & [[moe:zh:MediaWiki:Gadget-site-styles.css]] */
/* 复制粘贴到别的地方的时候记得写原出处,而不要写这里。 */
:root {
--custom-background-blue: #ccf;
--custom-background-cyan: #cef;
--custom-background-green: #cfc;
--custom-background-gray: #d2d2d2;
--custom-background-grey: var(--custom-background-gray);
--custom-background-magenta: #fdf;
--custom-background-orange: #fdb;
--custom-background-purple: #ecf;
--custom-background-red: #fcc;
--custom-background-yellow: #ffc;
--custom-border-blue: #36e;
--custom-border-cyan: #9df;
--custom-border-green: #5d5;
--custom-border-gray: #bbb;
--custom-border-grey: var(--custom-border-gray);
--custom-border-magenta: #f9f;
--custom-border-orange: #f90;
--custom-border-purple: #96c;
--custom-border-red: #e44;
--custom-border-yellow: #fc3;
--custom-closed-topic-neutral: #eef;
--custom-closed-topic-no: #fee;
--custom-closed-topic-yes: #efe;
--custom-documentation: #eaf4f9;
--custom-documentation-baddoc: #f9f2ea;
--custom-documentation-nodoc: #f9eaea;
--custom-load-page-button-color: #fff8;
--custom-main-page-background: #fcfcfc;
--custom-main-page-border: var(--custom-border-gray);
--custom-main-page-edition-subheader: #333;
--custom-mcwiki-header-color: #bcd4f5;
--custom-navbox-background: #fff;
--custom-navbox-top: #ccc;
--custom-navbox-middle: #ddd;
--custom-navbox-thru: #eee;
--custom-nbt-inherit-color: #e6e6fa;
--custom-table-background: #f8f9fa;
--custom-table-alternate-background: #f0f1f2;
--custom-table-choice-always: #004100;
--custom-table-choice-always-background: #5dcc5d;
--custom-table-choice-default: #fff;
--custom-table-choice-in-off-background: #060;
--custom-table-choice-in-on-background: #0c0;
--custom-table-choice-na: #000;
--custom-table-choice-neutral: #9c6500;
--custom-table-choice-neutral-background: #ffeb9c;
--custom-table-choice-never: #700005;
--custom-table-choice-never-background: #ff5757;
--custom-table-choice-no: #9c0006;
--custom-table-choice-no-background: #ffc7ce;
--custom-table-choice-out-off-background: #900;
--custom-table-choice-out-on-background: #f00;
--custom-table-choice-partial: #8a7600;
--custom-table-choice-partial-background: #ffd;
--custom-table-choice-planned: #0131b7;
--custom-table-choice-planned-background: #dfdfff;
--custom-table-choice-rarely: #835400;
--custom-table-choice-rarely-background: #fdce5e;
--custom-table-choice-unknown: #222;
--custom-table-choice-unknown-background: #ccc;
--custom-table-choice-yes: #006100;
--custom-table-choice-yes-background: #c6efce;
--custom-table-header-background: #eaecf0;
--custom-topic-30-days: #bbb;
--custom-topic-7-days: #ddd;
}
/* Element animator */
#siteNotice .animated > *:not(.animated-active),
#localNotice .animated > *:not(.animated-active),
#bodyContent .animated > *:not(.animated-active),
#bodyContent .animated > .animated-subframe > *:not(.animated-active) {
display: none;
}
#bodyContent span.animated,
#bodyContent span.animated.animated-visible > *,
#bodyContent span.animated.animated-visible > .animated-subframe > * {
display: inline-block;
}
#bodyContent div.animated.animated-visible > *,
#bodyContent div.animated.animated-visible > .animated-subframe > * {
display: block;
}
/* MD Icons */
@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(https://fonts.gstatic.com/s/materialicons/v70/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2'),
url(//cdn.bootcss.com/material-design-icons/3.0.2/iconfont/MaterialIcons-Regular.woff2) format('woff2'),
url(//cdn.bootcss.com/material-design-icons/3.0.2/iconfont/MaterialIcons-Regular.woff) format('woff'),
url(//cdn.bootcss.com/material-design-icons/3.0.2/iconfont/MaterialIcons-Regular.ttf) format('truetype');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
/* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
vertical-align: bottom;
}
/* table fix on mobile */
.content table.ambox {
margin-left: 0;
margin-right: 0;
}
/** Template stylings **/
/* [[Template:Message box]] */
.msgbox {
display: grid;
grid-template-columns: 1fr;
gap: 0.6em;
align-items: center;
max-width: 80%;
margin: 0.5em auto;
padding: 0.3em 0.6em;
border-left: 8px solid var(--custom-border-blue);
background-color: var(--custom-table-background);
}
.msgbox.has-image {
grid-template-columns: max-content 1fr;
}
.msgbox.msgbox-mini {
gap: 0.3em;
margin-left: 0;
margin-right: 0;
padding: 0 0.3em;
max-width: max-content;
}
@media screen and (max-width: 720px) {
.msgbox {
max-width: 100%;
}
}
.msgbox + .msgbox {
margin-top: -0.5em;
border-top: 1px solid var(--theme-border-color);
}
.msgbox.msgbox-default,
.msgbox.msgbox-notice {
background-color: var(--custom-table-background);
border-left-color: var(--custom-border-blue);
}
.msgbox.msgbox-red,
.msgbox.msgbox-warning {
background-color: var(--custom-background-red);
border-left-color: var(--custom-border-red);
}
.msgbox.msgbox-orange,
.msgbox.msgbox-content {
background-color: var(--custom-background-orange);
border-left-color: var(--custom-border-orange);
}
.msgbox.msgbox-yellow,
.msgbox.msgbox-style {
background-color: var(--custom-background-yellow);
border-left-color: var(--custom-border-yellow);
}
.msgbox.msgbox-green,
.msgbox.msgbox-status {
background-color: var(--custom-background-green);
border-left-color: var(--custom-border-green);
}
.msgbox.msgbox-cyan,
.msgbox.msgbox-version {
background-color: var(--custom-background-cyan);
border-left-color: var(--custom-border-cyan);
}
.msgbox.msgbox-magenta {
background-color: var(--custom-background-magenta);
border-left-color: var(--custom-border-magenta);
}
.msgbox.msgbox-purple,
.msgbox.msgbox-move {
background-color: var(--custom-background-purple);
border-left-color: var(--custom-border-purple);
}
.msgbox.msgbox-grey,
.msgbox.msgbox-protection {
background-color: var(--custom-background-grey);
border-left-color: var(--theme-border-color);
}
.msgbox-body.align-left {
text-align: left;
}
.msgbox-body.align-center {
text-align: center;
}
.msgbox-body.align-right {
text-align: right;
}
#mw-content-text .msgbox-text p {
margin: 0;
}
/* [[Template:Documentation]] */
.documentation,
.documentation-docpage.documentation-header {
border: 1px solid var(--theme-border-color);
}
.documentation-docpage.documentation-header {
margin-bottom: 0.8em;
}
.documentation .documentation-header {
margin: -0.8em -1em 0.8em;
border-bottom: inherit;
}
.documentation-header .links,
.documentation-footer .links {
float: right;
}
.documentation-header .title {
margin-right: 1em;
font-size: 130%;
font-weight: bold;
line-height: 1;
}
.documentation .documentation-footer {
margin: 0.7em -1em -0.7em;
border-top: inherit;
clear: both;
}
.documentation {
margin-top: 1em;
}
.documentation,
.documentation-header,
.documentation-footer {
background-color: var(--custom-documentation);
padding: 0.8em 1em 0.7em;
}
.documentation.documentation-nodoc {
background-color: var(--custom-documentation-nodoc);
}
.documentation.documentation-baddoc {
background-color: var(--custom-documentation-baddoc);
}
/* [[Template:Infobox]], [[模块:Infobox]] */
.notaninfobox {
position: relative;
float: right;
clear: right;
width: 300px;
margin: 0 0 0.6em 0.6em;
font-size: 90%;
border: 1px solid #CCC;
background-color: #FFF;
padding: 2px;
overflow-x: auto;
}
.notaninfobox > div:not(:first-child) {
padding-top: 2px;
}
.infobox-title {
background-color: #d8ecff;
font-weight: bold;
font-size: 1.25em;
text-align: center;
padding: 0.25em 0;
}
.infobox-imagearea {
text-align: center;
padding: 0 4px;
}
.infobox-imagearea > div:not(:first-child) {
margin-top: 0.8em;
}
.infobox-subheader {
text-align: center;
}
.infobox-rows {
display: grid;
grid-template-columns: max-content 1fr;
gap: 2px;
}
.infobox-row {
display: contents;
}
.infobox-cell-header,
.infobox-cell-data {
padding: 2px;
}
.infobox-cell-data .subinfobox {
margin: -2px;
}
.infobox-footer {
font-size: 90%;
margin-top: 0.2rem;
}
@media screen and (max-width: 720px) {
.notaninfobox {
position: static;
float: none;
clear: none;
margin: 0.6em 0;
width: calc(100% - 6px);
}
}
.infobox-row:nth-child(2n) > .infobox-cell-data {
background-color: #EEE;
}
.infobox-row:nth-child(2n+1) > .infobox-cell-data {
background-color: #FFF;
}
.infobox-row > .infobox-cell-header {
background-color: #DDF;
}
.subinfobox {
background-color: #FFF;
}
/* [[Template:Shortcut]] */
.shortcut-box {
background-color: var(--custom-table-background);
border: 1px solid var(--theme-border-color);
max-width: 400px;
min-width: 70px;
padding: 0.3em 0.5em;
}
/* Horizontal list */
#bodyContent .hlist ul {
display: inline;
margin: 0;
padding: 0;
}
#bodyContent .hlist li {
display: inline;
}
#bodyContent .hlist li:not(:last-child) {
padding-right: 0.286em;
}
#bodyContent .hlist li:not(:last-child)::after {
content: "";
display: inline-block;
position: relative;
left: 0.286em;
bottom: 0.214em;
background-color: #000;
height: 3px;
width: 3px;
}
#bodyContent .hlist li > ul li:first-child::before {
content: "(";
}
#bodyContent .hlist li > ul li:last-child::after {
content: ")";
}
#bodyContent .hlist li li li {
font-size: x-small;
}
/* [[Template:Sprite]] */
.sprite {
display: inline-block;
vertical-align: text-top;
height: 16px;
width: 16px;
background-repeat: no-repeat;
}
.sprite + .sprite-text {
padding-left: 0.312em;
}
/* [[Template:CommentSprite]]: [[File:CommentCSS.png]] */
.comment-sprite {
background-image: url(/w/images/9/9c/CommentCSS.png);
}
/* To make images responsive */
.res-img img {
max-width:100%;
}
.stretch-img img {
width:100%;
}
.pixel-img img {
image-rendering: crisp-edges;
}
/* Generic nowrap class */
.nowrap {
white-space: nowrap;
}
/* Hide noscript only elements */
.noscript {
display: none;
}
/* Hide things on mobile (the extension is meant to do this automatically, but it doesn't work) */
.skin-minerva .nomobile {
display: none;
}
/* [[Template:Archive box]] */
.archive-box {
background-color: var(--custom-table-background);
text-align: left;
border: 1px solid var(--theme-border-color);
margin-top: 3px;
max-width: 16em;
min-width: 8em;
font-size: 90%;
padding: 2px;
}
/* [[Template:Table Choice]] */
.tc-always {
background-color: var(--custom-table-choice-always-background);
color: var(--custom-table-choice-always);
}
.tc-yes {
background-color: var(--custom-table-choice-yes-background);
color: var(--custom-table-choice-yes);
}
.tc-no {
background-color: var(--custom-table-choice-no-background);
color: var(--custom-table-choice-no);
}
.tc-never {
background-color: var(--custom-table-choice-never-background);
color: var(--custom-table-choice-never);
}
.tc-rarely {
background-color: var(--custom-table-choice-rarely-background);
color: var(--custom-table-choice-rarely);
}
.tc-neutral {
background-color: var(--custom-table-choice-neutral-background);
color: var(--custom-table-choice-neutral);
}
.tc-partial {
background-color: var(--custom-table-choice-partial-background);
color: var(--custom-table-choice-partial);
}
.tc-planned {
background-color: var(--custom-table-choice-planned-background);
color: var(--custom-table-choice-planned);
}
.tc-unknown {
background-color: var(--custom-table-choice-unknown-background);
color: var(--custom-table-choice-unknown);
}
.tc-in-off {
background-color: var(--custom-table-choice-in-off-background);
color: var(--custom-table-choice-default);
}
.tc-in-on {
background-color: var(--custom-table-choice-in-on-background);
color: var(--custom-table-choice-default);
}
.tc-out-off {
background-color: var(--custom-table-choice-out-off-background);
color: var(--custom-table-choice-default);
}
.tc-out-on {
background-color: var(--custom-table-choice-out-on-background);
color: var(--custom-table-choice-default);
}
.tc-na {
background-color: var(--custom-table-choice-default);
color: var(--custom-table-choice-na);
/* [[Template:Quote]] */
.quote {
display: grid;
gap: 0 4px;
align-items: center;
max-width: max-content;
}
.quote-mark {
font: bold 3.3em Times, serif;
}
.quote-mark-start {
align-self: start;
}
.quote-mark-end {
line-height: 0.5;
align-self: end;
}
.quote-attribution {
grid-column: -3 / span 1;
text-align: right;
font-size: smaller;
}
.quote-content, .quote-content:lang(zh-Hans), .quote-content:lang(zh-Hans-CN) {
font-size: 107.143%;
font-family: Garamond, Optima, "Times New Roman", "Liberation Serif", "Kaiti SC", "AR PL UKai CN", "Adobe Kaiti Std", "AR PL UKai TW", KaiTi, STKaiti, BiauKai, DFKai-SB, sans-serif;
}
.quote-content:lang(zh-Hant), .quote-content:lang(zh-Hant-TW) {
font-family: Garamond, Optima, "Times New Roman", "Liberation Serif", "Kaiti TC", "AR PL UKai TW", "Adobe Kaiti Std", "AR PL UKai CN", BiauKai, DFKai-SB, KaiTi, STKaiti, sans-serif;
}
/** Misc stuff **/
/* The white header used throughout the wiki */
.wiki-header {
background: #EEE;
border: 1px solid #CCC;
border-bottom: 4px groove #BBB;
border-right: 4px groove #BBB;
padding: 5px;
}
.mainpage-header {
display: flex;
justify-content: center;
align-items: center;
flex-wrap: wrap;
}
.wordmark-container {
display: flex;
flex-direction: column;
justify-content: center;
}
@media screen and (max-width: 850px),
@media screen and (max-width: 1099px) and (min-width: 851px){
.wordmark-description-container {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
}
.wordmark-description {
font-size: 1.2em;
}
/* Collapsible elements ([[MediaWiki:Gadget-site.js]]) */
.collapsible.collapsed > tr:not(:first-child),
.collapsible.collapsed > tbody > tr:not(:first-child),
.collapsible.collapsed > thead + tbody > tr:first-child,
.collapsible.collapsed > tbody + tbody > tr:first-child,
.collapsible.collapsed > tfoot > tr,
.collapsible.collapsed > .collapsible-content {
display: none;
}
.collapsetoggle {
display: inline-block;
font-weight: normal;
font-style: normal;
float: right;
text-align: right;
margin-left: 0.8em;
}
.collapsetoggle-left > tr > * > .collapsetoggle,
.collapsetoggle-left > * > tr > * > .collapsetoggle,
.collapsetoggle-left > * > .collapsetoggle,
.collapsetoggle-left > .collapsetoggle {
float: left;
text-align: left;
margin-right: 0.8em;
margin-left: 0;
}
.collapse-button-none > * > tr > * > .collapsetoggle,
.collapsetoggle-inline > tr > * > .collapsetoggle,
.collapsetoggle-inline > * > tr > * > .collapsetoggle,
.collapsetoggle-inline > * > .collapsetoggle,
.collapsetoggle-inline > .collapsetoggle {
float: none;
text-align:left;
}
.collapsetoggle-custom {
visibility: hidden;
}
/* [[Template:Keys]], [[Module:Keys]] */
.keyboard-key {
background-color: #f8f9fa;
color: #222;
font-size: 80%;
font-family: inherit;
font-weight: bold;
border: 1px solid #c8ccd1;
border-radius: 2px;
box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 0 0 2px #fff inset;
padding: 0.1em 0.4em;
text-shadow: 0 1px 0 #fff;
text-align: center;
}
/* tooltip */
abbr[title],.explain[title] {
border: 1px solid #cccccc;
border-radius: 2px;
text-decoration: none
}
/* Comments */
.comments-body > p:nth-child(2) {
display: none;
}
select[name="TheOrder"] {
background-color: #f8f9fa;
min-height: 2.28571429em;
border: 1px solid #a2a9b1;
border-radius: 2px;
padding: 6px 12px;
line-height: 1;
}
#spy > p > a,
.c-form-button > input {
background-color: #f8f9fa;
color: #202122;
display: inline-block;
box-sizing: border-box;
min-height: 2.28571429em;
padding: 6px 12px;
border: 1px solid #a2a9b1;
border-radius: 2px;
cursor: pointer;
font-weight: bold;
margin: auto 0;
font-size: 0.95em !important;
}
#spy > p {
margin: 0;
}
.c-spy {
font-size: 0.95em !important;
}
/* Heimu */
span.heimu a.external,
span.heimu a.external:visited,
span.heimu a.extiw,
span.heimu a.extiw:visited {
color: #252525;
}
.heimu,
.heimu a,
a .heimu,
.heimu a.new {
background-color: #252525;
color: #252525;
text-shadow: none;
}
body:not(.heimu_toggle_on) .heimu:hover,
body:not(.heimu_toggle_on) .heimu:active,
body:not(.heimu_toggle_on) .heimu.off {
transition: color .13s linear;
color: white;
}
body:not(.heimu_toggle_on) .heimu:hover a,
body:not(.heimu_toggle_on) a:hover .heimu,
body:not(.heimu_toggle_on) .heimu.off a,
body:not(.heimu_toggle_on) a:hover .heimu.off {
transition: color .13s linear;
color: lightblue;
}
body:not(.heimu_toggle_on) .heimu.off .new,
body:not(.heimu_toggle_on) .heimu.off .new:hover,
body:not(.heimu_toggle_on) .new:hover .heimu.off,
body:not(.heimu_toggle_on) .heimu.off .new,
body:not(.heimu_toggle_on) .heimu.off .new:hover,
body:not(.heimu_toggle_on) .new:hover .heimu.off {
transition: color .13s linear;
color: #BA0000;
}
/* CJK */
span[lang] {
font-family: initial;
font-feature-settings: "locl" on;
-webkit-font-feature-settings: "locl" on;
}
[style*="font:" i] span[lang],
[style*="font-family:" i] span[lang] {
font-family: inherit;
}
/* Japanese Italic */
@font-face {
font-family: JapaneseItalic;
src: local(meiryo);
}
i span[lang=ja i],
span[lang=ja i] i,
[style*=italic i] span[lang=ja i],
span[lang=ja i] [style*=italic i] {
font-family: JapaneseItalic, sans-serif;
}
[style*="font:" i] i span[lang=ja i],
[style*="font-family:" i] i span[lang=ja i],
[style*="font:" i] span[lang=ja i] i,
[style*="font-family:" i] span[lang=ja i] i,
[style*="font:" i] [style*=italic i] span[lang=ja i],
[style*="font-family:" i] [style*=italic i] span[lang=ja i],
[style*="font:" i] span[lang=ja i] [style*=italic i],
[style*="font-family:" i] span[lang=ja i] [style*=italic i] {
font-family: inherit;
}