MediaWiki:Common.css:修订间差异

来自个人知识库
跳到导航 跳到搜索
(创建页面,内容为“→‎这里放置的CSS将应用于所有皮肤:​ →‎* CSS for the Minecraft-style skin can be found at [[MediaWiki:Hydra.css]]. * This stylesheet is for desktop only; see [[MediaWiki:Mobile.css]] for mobile styles, and [[MediaWiki:Gadget-site-styles.css]] for global styles.:​ /* Note: Color styles may need to be coded as variables to support light, dark, * and per-namespace themes correctly. * * Note 2: Currently the variable names aren't stable; they ma…”
 
无编辑摘要
第1行: 第1行:
/* 这里放置的CSS将应用于所有皮肤 */
/* 这里放置的CSS将应用于所有皮肤 */
/*
/*
  * CSS for the Minecraft-style skin can be found at [[MediaWiki:Hydra.css]].
  * This is the CSS common to all desktop skins on en.Wikipedia.
  * This stylesheet is for desktop only; see [[MediaWiki:Mobile.css]] for mobile styles, and [[MediaWiki:Gadget-site-styles.css]] for global styles.
  * Styling inside .mw-parser-output should generally use TemplateStyles.
  */
  */
/* Note: Color styles may need to be coded as variables to support light, dark,
/* Reset italic styling set by user agent */
* and per-namespace themes correctly.
cite,
*
dfn {
* Note 2: Currently the variable names aren't stable; they may be stabilized
font-style: inherit;
* in the future to allow for inline `var()` declarations, but for now you
* should not do that, things may break if you do.
*
* Note 3: Some parts of the code written, with or without changes, by
* User:ItsPlantseed, some of which are also originally written by
* User:SansUT1.
*/
/* Defaults assume a namespace without a custom theme, and light theme. */
: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;
}
}


body.theme-fandomdesktop-dark {  
/* Straight quote marks for <q> */
--custom-background-blue: hsl(240, 25%, 12%);
q {
--custom-background-cyan: hsl(190, 25%, 12%);
quotes: '"' '"' "'" "'";
--custom-background-green: hsl(120, 25%, 12%);
--custom-background-gray: hsl(0, 0%, 12%);
--custom-background-grey: var(--custom-background-gray);
--custom-background-magenta: hsl(310, 25%, 12%);
--custom-background-orange: hsl(40, 25%, 12%);
--custom-background-purple: hsl(260, 25%, 12%);
--custom-background-red: hsl(0, 25%, 12%);
--custom-background-yellow: hsl(60, 25%, 12%);
--custom-border-blue: hsl(240, 15%, 36%);
--custom-border-cyan: hsl(190, 15%, 36%);
--custom-border-green: hsl(120, 15%, 36%);
--custom-border-gray: hsl(0, 0%, 36%);
--custom-border-grey: var(--custom-border-gray);
--custom-border-magenta: hsl(310, 15%, 36%);
--custom-border-orange: hsl(40, 15%, 36%);
--custom-border-purple: hsl(260, 15%, 36%);
--custom-border-red: hsl(0, 15%, 36%);
--custom-border-yellow: hsl(60, 15%, 36%);
--custom-closed-topic-neutral: #2a2a33;
--custom-closed-topic-no: #332a2a;
--custom-closed-topic-yes: #2a332a;
--custom-documentation: #393e3f;
--custom-documentation-baddoc: #3f3c39;
--custom-documentation-nodoc: #3f3939;
--custom-load-page-button-color: #fff2;
--custom-main-page-background: #202125;
--custom-main-page-border: #2e2e2e;
--custom-main-page-edition-subheader: #ddd;
--custom-mcwiki-header-color: #222c39;
--custom-navbox-background: #131313;
--custom-navbox-top: #363636;
--custom-navbox-middle: #2d2d2d;
--custom-navbox-thru: #202020;
--custom-nbt-inherit-color: #404050;
--custom-table-background: #131313;
--custom-table-alternate-background: #202020;
--custom-table-header-background: #363636;
--custom-topic-30-days: #303030;
--custom-topic-7-days: #242424;
}
}


/* Minecraft font */
/* Avoid collision of blockquote with floating elements by swapping margin and padding */
@font-face {
blockquote {
font-family: Minecraft;
overflow: hidden;
src: url("/media/hydra/fonts/minecraft.woff") format('woff'),
margin: 1em 0;
    url("/media/hydra/fonts/minecraft.ttf") format('truetype');
padding: 0 40px;
}
}


/** Main page stylings **/
/* Consistent size for <small>, <sub> and <sup> */
@supports (flex-wrap: wrap) {  
small {
.edition-group {
font-size: 85%;
display: flex;
flex-wrap: wrap;
}
.edition-group .edition-box {
flex: 17.4em;
}
}
}


/** Template stylings **/
.mw-body-content sub,
/* [[Template:SimpleNavbox]] */
.mw-body-content sup {
.navbox {
font-size: 80%;
background: var(--custom-navbox-background);
border: 1px solid var(--theme-border-color);
margin: 1em auto 0;
width: 100%;
}
}


.navbox table {
/* Same spacing for indented and unindented paragraphs on talk pages */
background: var(--custom-navbox-background);
.ns-talk .mw-body-content dd {
margin-top: 0.4em;
margin-bottom: 0.4em;
}
}


.navbox table,
/* Reduce page jumps by hiding collapsed/dismissed content */
.navbox .table-wide {
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),
margin-left: -4px;
margin-right: -2px;
}


.navbox table:first-child,
/* Avoid FOUC/reflows on collapsed elements. */
.navbox .table-wide:first-child {
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
margin-top: -2px;
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
}
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,


.navbox table:last-child,
/* Hide charinsert base for those not using the gadget */
.navbox .table-wide:last-child {
#editpage-specialchars {
margin-bottom: -2px;
display: none;
}
}


.navbox .table-wide {
/* Make the list of references smaller
clear: none;
* Keep in sync with Template:Refbegin/styles.css
* And Template:Reflist/styles.css
*/
ol.references {
font-size: 90%;
margin-bottom: 0.5em;
}
}


.navbox .navbox-top {
/* Cite customizations for Parsoid
white-space: nowrap;
* Once everything uses the one true parser these are just customizations
background-color: var(--custom-navbox-top);
*/
padding: 0 3px;
span[ rel="mw:referencedBy" ] {
text-align: center;
counter-reset: mw-ref-linkback 0;
}
}


.navbox .navbox-middle {
span[ rel='mw:referencedBy' ] > a::before {
white-space: nowrap;
content: counter( mw-ref-linkback, lower-alpha );
background-color: var(--custom-navbox-middle);
padding: 0 3px;
text-align: center;
}
 
.navbox .navbox-thru {
white-space: nowrap;
background-color: var(--custom-navbox-thru);
padding: 0 3px;
text-align: center;
}
 
.navbox-navbar,
.navbox-navbar-mini {
float: left;
font-size: 80%;
font-size: 80%;
font-weight: bold;
font-style: italic;
}
}


.navbox-title {
a[ rel="mw:referencedBy" ]::before {
padding: 0 10px;
font-weight: bold;
font-size: 110%;
content: "^";
}
}


.navbox th {
span[ rel="mw:referencedBy" ]::before {
background-color: var(--custom-navbox-thru);
content: "^ ";
padding: 0 10px;
white-space: nowrap;
text-align: right;
}
}


.navbox td {
.mw-ref > a[data-mw-group=lower-alpha]::after {
width: 100%;
content: '[' counter( mw-Ref, lower-alpha ) ']';
padding: 0 0 0 2px;
}
}


.navbox .table-wide::before {
.mw-ref > a[data-mw-group=upper-alpha]::after {
width: 0;
content: '[' counter( mw-Ref, upper-alpha ) ']';
height: 0;
box-shadow: none;
}
}


.navbox .table-wide-inner,
.mw-ref > a[data-mw-group=decimal]::after {
.navbox .table-wide table {
content: '[' counter( mw-Ref, decimal ) ']';
margin: 0;
}
}


/* [[Template:LoadBox]] with navbox */
.mw-ref > a[data-mw-group=lower-roman]::after {
.loadbox-navbox {
content: '[' counter( mw-Ref, lower-roman ) ']';
padding: 2px !important;
margin: 1em 0 0 !important;
clear: both;
}
#content .loadbox-navbox > p {
background-color: var(--custom-navbox-top);
text-align: center;
margin: 0;
padding: 0 3px;
}
.loadbox-navbox > p > b {
font-size: 110%;
}
}


.loadbox-navbox .navbox {
.mw-ref > a[data-mw-group=upper-roman]::after {
margin: 0 -2px -2px;
content: '[' counter( mw-Ref, upper-roman ) ']';
border: 0;
}
.loadbox-navbox > .load-page-content > .mw-parser-output > .navbox > tbody > tr:first-child {
display: none;
}
}


/* [[Template:Hatnote]] */
.mw-ref > a[data-mw-group=lower-greek]::after {
.hatnote {
content: '[' counter( mw-Ref, lower-greek ) ']';
text-indent: 2em;
padding-bottom: 0.5em;
margin-bottom: 0.5em;
}
}


/* [[Template:Director table]] */
/* Styling for jQuery makeCollapsible, matching that of collapseButton */
.director-table {
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
float: right;
font-weight: normal;
width: 300px;
padding-right: 0.2em;
padding-left: 0.2em;
}
}


@media screen and (max-width: 720px) {
.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
.director-table {
/* @noflip */
float: none;
float: left;
width: 100%;
}
}
}


/* [[Template:Layered blueprint]] */
/* Lists in wikitable data cells are always left-aligned */
@-webkit-keyframes layered-blueprint-fade-in {
.wikitable td ul,
0% {
.wikitable td ol,
opacity: 0;
.wikitable td dl {
visibility: hidden;
/* @noflip */
}
text-align: left;
100% {
opacity: 1;
visibility: visible;
}
}
@keyframes layered-blueprint-fade-in {
0% {
opacity: 0;
visibility: hidden;
}
100% {
opacity: 1;
visibility: visible;
}
}
.layered-blueprint-layer {
-webkit-animation: layered-blueprint-fade-in 200ms;
animation: layered-blueprint-fade-in 200ms;
}
}


@-webkit-keyframes layered-blueprint-fade-out {
/* Change the external link icon to a PDF icon for all PDF files */
0% {
.mw-parser-output a[href$=".pdf"].external,
opacity: 1;
.mw-parser-output a[href*=".pdf?"].external,
visibility: visible;
.mw-parser-output a[href*=".pdf#"].external,
}
.mw-parser-output a[href$=".PDF"].external,
100% {
.mw-parser-output a[href*=".PDF?"].external,
opacity: 0;
.mw-parser-output a[href*=".PDF#"].external {
visibility: hidden;
background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
}
/* @noflip */
}
padding: 8px 18px 8px 0;
@keyframes layered-blueprint-fade-out {
0% {
opacity: 1;
visibility: visible;
}
100% {
opacity: 0;
visibility: hidden;
}
}
.layered-blueprint-radio:checked + .layered-blueprint-tab + .layered-blueprint-layer ~ .layered-blueprint-layer {
-webkit-animation: layered-blueprint-fade-out 200ms;
animation: layered-blueprint-fade-out 200ms;
}
}


/* Prevent page jump from the toolbar loading */
/* System messages styled similarly to fmbox */
.client-js #editform {
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
/* To disable margin collapsing */
* the edit-protected notice and the special:Contribs for blocked users
overflow: hidden;
* The latter has specificity of 3 classes so we have to triple up here.
}
*/
.client-js .mw-editform > #wpTextbox1 {
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
    margin-top: 73px;
div.mw-lag-warn-high,
}
div.mw-cascadeprotectedwarning,
.mw-editform .wikiEditor-ui-top {
div#mw-protect-cascadeon {
min-height: 72px;
clear: both;
margin: 0.2em 0;
border: 1px solid #bb7070;
background-color: #ffdbdb;
padding: 0.25em 0.9em;
box-sizing: border-box;
}
}


/* Alternating cell background */
/* default colors for partial block message */
.alternatecells:nth-child(2n+1) {
/* gotta get over the hump introduced by the triple class above */
background-color: var(--custom-table-alternate-background, #f9f9f9);
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
}
border-color: #fc3;
/* Alternating table rows, primarily used with [[Template:Infobox row]] */
background-color: #fef6e7;
.alternaterows tr:nth-child(2n),
.infobox-rows tr:nth-child(2n) {
background-color: var(--custom-table-alternate-background, #f9f9f9);
}
}


/* Scale file page image to the width of the page */
/* Minimum thumb width */
#file img {
figure[typeof~='mw:File/Thumb'],
max-width: 100%;
figure[typeof~='mw:File/Frame'],
height: auto;
.thumbinner {
min-width: 100px;
}
}


/* Highlight clicked reference in blue to help navigation */
/* Prevent floating boxes from overlapping any category listings,
ol.references li:target,
  file histories, edit previews, and edit [Show changes] views. */
sup.reference:target,
#mw-subcategories,
span.citation:target {  
#mw-pages,
background-color: #C1DAF2;
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
clear: both;
}
}


/* Style the sitenotice, avoid content jumping */
/* Styling for tags in changes pages */
#siteNotice {
.mw-tag-markers {
margin-bottom: 2px;
font-style: italic;
text-align: center;
font-size: 90%;
}
}


#localNotice {
/* Hide stuff meant for accounts with special permissions. Made visible again in
height: 60px;
  [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
overflow: hidden;
  [[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]],
}
  [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
 
  [[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
/* Allow parts of toc to be hidden */
.checkuser-show,
/* Section levels */
.sysop-show,
.toc-hidelevel2 .toclevel-1 ul,
.abusefilter-show,
.toc-hidelevel3 .toclevel-2 ul,
.abusefilter-helper-show,
.toc-hidelevel4 .toclevel-3 ul,
.patroller-show,
/* Numbers */
.templateeditor-show,
.toc-nonumbers .tocnumber {
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
display: none;
display: none;
}
}


/* Turn a list into a tree view style (See [[.minecraft]]) */
/* Hide the redlink generated by {{Editnotice}},
.treeview {
  this overrides the ".sysop-show { display: none; }" above that applies
margin-top: 0.3em;
  to the same link as well. See [[phab:T45013]]
}


.treeview .treeview-header {
  Hide the images in editnotices to keep them readable in VE view.
padding-left: 3px;
  Long term, editnotices should become a core feature so that they can be designed responsive. */
font-weight: bold;
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
}
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.treeview .treeview-header:last-child {
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
border-color: #636363 !important;
display: none !important;
border-left-style: dotted;
}
.treeview .treeview-header:not(:last-child)::before {
content: none;
}
.treeview .treeview-header:last-child::before {
border-bottom: 0;
}
}


.treeview ul,
/* Remove bullets when there are multiple edit page warnings */
.treeview li {
ul.permissions-errors {
margin: 0;
margin: 0;
padding: 0;
list-style-type: none;
list-style-image: none;
}
}


.treeview li li {
ul.permissions-errors > li {
position: relative;
list-style: none;
padding-left: 13px;
margin-left: 7px;
border-left: 1px solid #636363;
}
.treeview li li::before {
content: "";
position: absolute;
top: 0;
left: -1px;
width: 11px;
height: 11px;
border-bottom: 1px solid #636363;
}
}


.treeview li li:last-child:not(.treeview-continue) {
/* larger inline math */
border-color: transparent;
span.mwe-math-mathml-inline {
}
font-size: 118%;
.treeview li li:last-child:not(.treeview-continue)::before {
border-left: 1px solid #636363;
width: 10px;
}
}


.nbttree-inherited {
/* Make <math display="block"> be left aligned with one space indent for
background-color: var(--custom-nbt-inherit-color);
* compatibility with style conventions
*/
.mwe-math-fallback-image-display,
.mwe-math-mathml-display {
margin-left: 1.6em !important;
margin-top: 0.6em;
margin-bottom: 0.6em;
}
}


/* Simulate link styling for JS only links */
.mwe-math-mathml-display math {
.jslink {
display: inline;
color: var(--theme-link-color);
-webkit-user-select: none;
  -moz-user-select: none;
    -ms-user-select: none;
        user-select: none;
}
.jslink:hover {
text-decoration: underline;
cursor: pointer;
}
.jslink:active {
color: var(--theme-link-color--hover);
}
}


/* Try to use nearest neighbour scaling for pixelated images */
@media screen {
.filehistory a img,
/* Put a chequered background behind images, only visible if they have transparency,
.msgbox img,
* except on main, user, and portal namespaces
.pixel-image,
*/
.invslot-item-image,
body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
.spriteedit-new-image,
background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
.sprite {
}
image-rendering: optimizeSpeed;
image-rendering: -webkit-optimize-contrast;
image-rendering: optimize-contrast;
image-rendering: -moz-crisp-edges;
image-rendering: -o-crisp-edges;
image-rendering: crisp-edges;
image-rendering: pixelated;
-ms-interpolation-mode: nearest-neighbor;
}


/* Make external links the same colour as internal links, the icon is enough to differentiate them */
/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
#mw-content-text a.external {
  do not apply to print mode */
color: #0645ad;
#siteSub {
}
display: block;
#mw-content-text a.external:visited {
}
color: #0b0080;
}
#mw-content-text a.external:active {
color: #faa700;
}
}


/* Mark internal links as plain */
/* Hide FlaggedRevs notice UI when there are no pending changes */
#mw-content-text a.external[href^="https://minecraft.fandom.com/zh/wiki/"],
.flaggedrevs_draft_synced,
#mw-content-text a.external[href^="//minecraft.fandom.com/zh/wiki/"] {
.flaggedrevs_stable_synced,
background: none;
/* "Temporary" to remove links in sidebar T255381 */
padding-right: 0;
#t-upload,
/* Hide broken download box on Special:Book pending T285400 */
.mw-special-Book #coll-downloadbox {
display: none;
}
}


/* Make tabs the correct size */
/*
body {
* BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
-moz-tab-size: 4;
* SEE [[MediaWiki talk:Common.css/to do]]
  -o-tab-size: 4;
*/
    tab-size: 4;
}
 
/* Classes corresponding to Minecraft formatting codes */
.format-0 {
color: #000;
text-shadow: 0.125em 0.125em 0 #000;
}
.format-1 {
color: #00A;
text-shadow: 0.125em 0.125em 0 #00002A;
}
.format-2 {
color: #0A0;
text-shadow: 0.125em 0.125em 0 #002A00;
}
.format-3 {
color: #0AA;
text-shadow: 0.125em 0.125em 0 #002A2A;
}
.format-4 {
color: #A00;
text-shadow: 0.125em 0.125em 0 #2A0000;
}
.format-5 {
color: #A0A;
text-shadow: 0.125em 0.125em 0 #2A002A;
}
.format-6 {
color: #FA0;
text-shadow: 0.125em 0.125em 0 #2A2A00;
}
.format-7 {
color: #AAA;
text-shadow: 0.125em 0.125em 0 #2A2A2A;
}
.format-8 {
color: #555;
text-shadow: 0.125em 0.125em 0 #151515;
}
.format-9 {
color: #55F;
text-shadow: 0.125em 0.125em 0 #15153F;
}
.format-a {
color: #5F5;
text-shadow: 0.125em 0.125em 0 #153F15;
}
.format-b {
color: #5FF;
text-shadow: 0.125em 0.125em 0 #153F3F;
}
.format-c {
color: #F55;
text-shadow: 0.125em 0.125em 0 #3F1515;
}
.format-d {
color: #F5F;
text-shadow: 0.125em 0.125em 0 #3F153F;
}
.format-e {
color: #FF5;
text-shadow: 0.125em 0.125em 0 #3F3F15;
}
.format-f,
#minetip-tooltip {
color: #FFF;
text-shadow: 0.125em 0.125em 0 #3F3F3F;
}
.format-l {
font-weight: bold;
letter-spacing: 0.125em;
}
.format-m {
text-decoration: line-through;
}
.format-n {
text-decoration: underline;
}
.format-o {
font-style: italic;
}
 
/* Styling for tooltip */
.explain {
border-bottom: 0;
text-decoration: underline dotted;
}
 
.explain.noline {
text-decoration: none;
}
 
#minetip-tooltip {
position: fixed;
top: 0;
left: 0;
background-color: #100010;
background-color: rgba(16, 0, 16, 0.94);
padding: 0.375em;
font-family: Minecraft, "Arial Black", Unifont, "WenQuanYi Bitmap Song", SimSun, MingLiU, "GB18030 Bitmap", Beijing, sans-serif;
font-size: 0.99em;
word-spacing: 4px;
white-space: nowrap;
line-height: 1.25em;
margin: 0.125em 0.25em;
pointer-events: none;
z-index: 9999;
}
#minetip-tooltip::before {
content: "";
position: absolute;
top: 0.125em;
right: -0.125em;
bottom: 0.125em;
left: -0.125em;
border: 0.125em solid #100010;
border-style: none solid;
border-color: rgba(16, 0, 16, 0.94);
}
#minetip-tooltip::after {
content: "";
position: absolute;
top: 0.125em;
right: 0;
bottom: 0.125em;
left: 0;
border: 0.125em solid #2D0A63;
border-image: -webkit-linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
border-image: linear-gradient(rgba(80, 0, 255, 0.31), rgba(40, 0, 127, 0.31)) 1;
}


#minetip-tooltip > .description,
/* Infobox template style */
#minetip-tooltip > .minetip-description {
.infobox {
display: block;
border: 1px solid #a2a9b1;
margin-top: 0.25em;
border-spacing: 3px;
}
background-color: #f8f9fa;
 
color: black;
.invslot-stacksize {
/* @noflip */
font-family: Minecraft, "Arial Black", sans-serif !important;
margin: 0.5em 0 0.5em 1em;
}
padding: 0.2em;
 
/* @noflip */
/* prevent sitenotice show/hide toggle from moving page contents down after pageload */
.globalNotice .globalNoticeDismiss {
float: right;
float: right;
/* @noflip */
clear: right;
font-size: 88%;
line-height: 1.5em;
width: 22em;
}
}


/* history table wrapping issue */
.infobox-header,
td > code {
.infobox-label,
display: inline-block;
.infobox-above,
line-height: 1.2;
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
}


/* Show abusefilter error footer only once at the end */
.infobox-label,
.errorbox li:not(:last-child) .abusefilter-message-footer {
.infobox-data,
    display: none;
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
}


/* Add [[File:Mojang logo.svg]] to known Mojang employee userlinks */
/* Remove .infobox when element selectors above are removed */
.mw-userlink[title="User:Dinnerbone-gpuser"],
.infobox .infobox-above,
.mw-userlink[title="User:Jeb mojang"],
.infobox .infobox-title,
.mw-userlink[title="User:Jocopa3"],
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.mw-userlink[title="User:MidnightEnforcer"],
.infobox caption {
.mw-userlink[title="User:Minecraft Staff"],
font-size: 125%;
.mw-userlink[title="User:Mojang tommo"],
font-weight: bold;
.mw-userlink[title="User:Slicedlime"],
text-align: center;
/* legacy/deleted */
.mw-userlink[title="User:MidnightEnforcer43458@legacy41488102"],
/* previously User:Jonkagstrom47437 */
.mw-userlink[title="User:@DeletedUser40286849"],
/* previously User:shoghicp */
.mw-userlink[title="User:@DeletedUser40317681"] {
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/a/ad/Mojang_logo.svg/revision/latest) no-repeat left center/16px;
}
}


/* Add [[File:Grass Block JE6 BE5.png]] to known Minecraft/Mojang-related contractor employee userlinks */
.infobox-title,
.mw-userlink[title="User:C418bla"] {
/* Remove element selector when every .infobox thing is using the standard module/templates  */
padding-left: 18px;
.infobox caption {
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/6/6a/Grass_Block_JE6_BE5.png/revision/latest) no-repeat left center/16px;
padding: 0.2em;
}
}


/* Add [[File:Gray Mojang Thing.png]] to known ex-Mojang employee userlinks */
/* Remove .infobox when element selectors above are removed */
.mw-userlink[title="User:EvilSeph"],
.infobox .infobox-header,
.mw-userlink[title="User:ExcitedZe"],
.infobox .infobox-subheader,
.mw-userlink[title="User:HelenAngel"],
.infobox .infobox-image,
.mw-userlink[title="User:Neon Master"],
.infobox .infobox-full-data,
.mw-userlink[title="User:RazzleberryFox"],
.infobox .infobox-below {
.mw-userlink[title="User:Tahg"],
text-align: center;
.mw-userlink[title="User:Tamerjeison"],
/* previously User:ProfMobius */
.mw-userlink[title="User:@DeletedUser40549330"] {
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/d/df/Gray_Mojang_Thing.png/revision/latest) no-repeat left center/16px;
}
}


/* Add [[File:Curse flame.png]] to Gamepedia staff userlinks */
/* Remove .infobox when element selectors above are removed */
.mw-userlink[title="User:Alianin"],
.infobox .infobox-navbar {
.mw-userlink[title="User:Azgoodaz"],
/* @noflip */
.mw-userlink[title="User:Azxiana"],
text-align: right;
.mw-userlink[title="User:Chaud"],
.mw-userlink[title="User:CrsBenjamin"],
.mw-userlink[title="User:DBTeamWiki"],
.mw-userlink[title="User:Doneholmes"],
.mw-userlink[title="User:Encredechine"],
.mw-userlink[title="User:Equazcion"],
.mw-userlink[title="User:Ferretwings"],
.mw-userlink[title="User:Ferthi"],
.mw-userlink[title="User:Furl"],
.mw-userlink[title="User:Gam3rkitteh"],
.mw-userlink[title="User:Game widow"],
.mw-userlink[title="User:Hectordonis"],
.mw-userlink[title="User:Heytots"],
.mw-userlink[title="User:HydraGPEBot"],
.mw-userlink[title="User:Majr"],
.mw-userlink[title="User:MannedTooth"],
.mw-userlink[title="User:MarkusRost"],
.mw-userlink[title="User:Misterwoodhouse"],
.mw-userlink[title="User:Mr Pie 5"],
.mw-userlink[title="User:Norrissium"],
.mw-userlink[title="User:OOeyes"],
.mw-userlink[title="User:Pcj"],
.mw-userlink[title="User:ReedemtheD3ad"],
.mw-userlink[title="User:RheingoldRiver"],
.mw-userlink[title="User:SandovalCurse"],
.mw-userlink[title="User:Sitb"],
.mw-userlink[title="User:Smokie"],
.mw-userlink[title="User:Surafbrov"],
.mw-userlink[title="User:Tagaziel"],
.mw-userlink[title="User:TheSatanicSanta"],
.mw-userlink[title="User:Wagnike2"] {
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/0/02/Curse_flame.png/revision/latest) no-repeat left center/16px;
}
}


/* CUSTOMIZED RULES */
/* Normal font styling for wikitable row headers with scope="row" tag */
 
.wikitable.plainrowheaders th[scope=row],
#siteNotice #localNotice, #siteNotice .globalNotice {
.wikitable.plainrowheaders th[scope=rowgroup] {
background-color: transparent;  
font-weight: normal;
border: none;
/* @noflip */
text-align: left;
}
}


#localNotice .globalNoticeDismiss {
/* Remove underlines from certain links */
display: none;
.nounderlines a,
.IPA a:link,
.IPA a:visited {
text-decoration: none !important;
}
}


/* Add icons for administrations, hide some Chinese varients */
/* Prevent line breaks in silly places where desired (nowrap)
#ca-varlang-1, #ca-varlang-2, #ca-varlang-5, #ca-varlang-6, #ca-varlang-7 {
  and links when we don't want them to (nowraplinks a) */
display: none;
.nowrap,
.nowraplinks a {
white-space: nowrap;
}
}


pre, tt, samp, .mw-code {
/* But allow wrapping where desired: */
font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace, Courier;
.wrap,
.wraplinks a {
white-space: normal;
}
}


code {
/* texhtml class for inline math (based on generic times-serif class) */
display: inline-block;
span.texhtml {
}
font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
 
font-size: 118%;
.load-page-button {
line-height: 1;
    background-color: var(--custom-load-page-button-color);
white-space: nowrap;
/* Force tabular and lining display for texhtml */
font-variant-numeric: lining-nums tabular-nums;
font-kerning: none;
}
}


.mw-userlink[title="User:Ff98sha"],
span.texhtml span.texhtml {
.mw-userlink[title="User:Lxazl5770"] {
font-size: 100%;
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/c/cc/Sprite-bureaucrat.png/revision/latest) no-repeat left center/16px;
}
}


.mw-userlink[title="User:Anterdc99"],
@media screen {
.mw-userlink[title="User:Hatsuki kiri"],
.nochecker .gallerybox .thumb img {
.mw-userlink[title="User:MysticNebula70"] {
background-image: none;
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/2/2d/Sprite-admin.png/revision/latest) no-repeat left center/16px;
}
 
.mw-userlink[title="User:KaplanSteve"],
.mw-userlink[title="User:Siiftun1857"],
.mw-userlink[title="User:XiaoXin666"] {
padding-left: 18px;
background: url(https://static.wikia.nocookie.net/minecraft_zh_gamepedia/images/4/4b/Sprite-patrol.png/revision/latest) no-repeat left center/16px;
}
 
@media screen and (max-width: 720px) {
    div#mw-navigation div#mw-panel {
position: static !important;
}
 
    body.page-Minecraft_Wiki.action-view img.banner-image {
display: none;
}
}
}
}


div.footer-post {
/* Put anything you mean to be a sitewide addition above the TemplateStyles
    padding-bottom: 0;
* comment above.
}
*/
 
/* search on small screens */
@media screen and (max-width: 720px) {
#mw-head {
top: 13px;
}
div#p-search form {
background: none;
border: none;
margin: 0;
}
div#p-search form::before,
div#p-search form::after {
border: none;
}
div#simpleSearch::before {
border-left-color: transparent;
}
div#simpleSearch::after {
border-top-color: transparent;
}
}
 
/* math symbol fix */
.mwe-math-fallback-image-inline {
  padding: 0;
  margin: 2px;
  vertical-align: middle !important;
}

2023年9月25日 (一) 12:36的版本

/* 这里放置的CSS将应用于所有皮肤 */
/*
 * This is the CSS common to all desktop skins on en.Wikipedia.
 * Styling inside .mw-parser-output should generally use TemplateStyles.
 */
/* Reset italic styling set by user agent */
cite,
dfn {
	font-style: inherit;
}

/* Straight quote marks for <q> */
q {
	quotes: '"' '"' "'" "'";
}

/* Avoid collision of blockquote with floating elements by swapping margin and padding */
blockquote {
	overflow: hidden;
	margin: 1em 0;
	padding: 0 40px;
}

/* Consistent size for <small>, <sub> and <sup> */
small {
	font-size: 85%;
}

.mw-body-content sub,
.mw-body-content sup {
	font-size: 80%;
}

/* Same spacing for indented and unindented paragraphs on talk pages */
.ns-talk .mw-body-content dd {
	margin-top: 0.4em;
	margin-bottom: 0.4em;
}

/* Reduce page jumps by hiding collapsed/dismissed content */
.client-js .collapsible:not( .mw-made-collapsible).collapsed > tbody > tr:not(:first-child),

/* Avoid FOUC/reflows on collapsed elements. */
/* This copies MediaWiki's solution for T42812 to apply to innercollapse/outercollapse (T325115). */
/* TODO: Use :is() selector at some reasonable future when support is good for Most Clients */
/* Reference: https://gerrit.wikimedia.org/g/mediawiki/core/+/ecda06cb2aef55b77c4b4d7ecda492d634419ead/resources/src/jquery/jquery.makeCollapsible.styles.less#75 */
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > p,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > table,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) > thead + tbody,
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) tr:not( :first-child ),
.client-js .outercollapse .innercollapse.mw-collapsible:not( .mw-made-collapsible ) .mw-collapsible-content,

/* Hide charinsert base for those not using the gadget */
#editpage-specialchars {
	display: none;
}

/* Make the list of references smaller
 * Keep in sync with Template:Refbegin/styles.css
 * And Template:Reflist/styles.css
 */
ol.references {
	font-size: 90%;
	margin-bottom: 0.5em;
}

/* Cite customizations for Parsoid
 * Once everything uses the one true parser these are just customizations
 */
span[ rel="mw:referencedBy" ] {
	counter-reset: mw-ref-linkback 0;
}

span[ rel='mw:referencedBy' ] > a::before {
	content: counter( mw-ref-linkback, lower-alpha );
	font-size: 80%;
	font-weight: bold;
	font-style: italic;
}

a[ rel="mw:referencedBy" ]::before {
	font-weight: bold;
	content: "^";
}

span[ rel="mw:referencedBy" ]::before {
	content: "^ ";
}

.mw-ref > a[data-mw-group=lower-alpha]::after {
	content: '[' counter( mw-Ref, lower-alpha ) ']';
}

.mw-ref > a[data-mw-group=upper-alpha]::after {
	content: '[' counter( mw-Ref, upper-alpha ) ']';
}

.mw-ref > a[data-mw-group=decimal]::after {
	content: '[' counter( mw-Ref, decimal ) ']';
}

.mw-ref > a[data-mw-group=lower-roman]::after {
	content: '[' counter( mw-Ref, lower-roman ) ']';
}

.mw-ref > a[data-mw-group=upper-roman]::after {
	content: '[' counter( mw-Ref, upper-roman ) ']';
}

.mw-ref > a[data-mw-group=lower-greek]::after {
	content: '[' counter( mw-Ref, lower-greek ) ']';
}

/* Styling for jQuery makeCollapsible, matching that of collapseButton */
.mw-parser-output .mw-collapsible-toggle:not(.mw-ui-button) {
	font-weight: normal;
	padding-right: 0.2em;
	padding-left: 0.2em;
}

.mw-collapsible-leftside-toggle .mw-collapsible-toggle {
	/* @noflip */
	float: left;
}

/* Lists in wikitable data cells are always left-aligned */
.wikitable td ul,
.wikitable td ol,
.wikitable td dl {
	/* @noflip */
	text-align: left;
}

/* Change the external link icon to a PDF icon for all PDF files */
.mw-parser-output a[href$=".pdf"].external,
.mw-parser-output a[href*=".pdf?"].external,
.mw-parser-output a[href*=".pdf#"].external,
.mw-parser-output a[href$=".PDF"].external,
.mw-parser-output a[href*=".PDF?"].external,
.mw-parser-output a[href*=".PDF#"].external {
	background: url("//upload.wikimedia.org/wikipedia/commons/4/4d/Icon_pdf_file.png") no-repeat right;
	/* @noflip */
	padding: 8px 18px 8px 0;
}

/* System messages styled similarly to fmbox */
/* for .mw-warning-with-logexcerpt, behavior of this line differs between
 * the edit-protected notice and the special:Contribs for blocked users
 * The latter has specificity of 3 classes so we have to triple up here.
 */
.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt.mw-warning-with-logexcerpt,
div.mw-lag-warn-high,
div.mw-cascadeprotectedwarning,
div#mw-protect-cascadeon {
	clear: both;
	margin: 0.2em 0;
	border: 1px solid #bb7070;
	background-color: #ffdbdb;
	padding: 0.25em 0.9em;
	box-sizing: border-box;
}

/* default colors for partial block message */
/* gotta get over the hump introduced by the triple class above */
.mw-contributions-blocked-notice-partial .mw-warning-with-logexcerpt.mw-warning-with-logexcerpt {
	border-color: #fc3;
	background-color: #fef6e7;
}

/* Minimum thumb width */
figure[typeof~='mw:File/Thumb'],
figure[typeof~='mw:File/Frame'],
.thumbinner {
	min-width: 100px;
}

/* Prevent floating boxes from overlapping any category listings,
   file histories, edit previews, and edit [Show changes] views. */
#mw-subcategories,
#mw-pages,
#mw-category-media,
#filehistory,
#wikiPreview,
#wikiDiff {
	clear: both;
}

/* Styling for tags in changes pages */
.mw-tag-markers {
	font-style: italic;
	font-size: 90%;
}

/* Hide stuff meant for accounts with special permissions. Made visible again in
   [[MediaWiki:Group-checkuser.css]], [[MediaWiki:Group-sysop.css]], [[MediaWiki:Group-abusefilter.css]],
   [[MediaWiki:Group-abusefilter-helper.css]], [[MediaWiki:Group-patroller.css]],
   [[MediaWiki:Group-templateeditor.css]], [[MediaWiki:Group-extendedmover.css]],
   [[MediaWiki:Group-extendedconfirmed.css]], and [[Mediawiki:Group-autoconfirmed.css]]. */
.checkuser-show,
.sysop-show,
.abusefilter-show,
.abusefilter-helper-show,
.patroller-show,
.templateeditor-show,
.extendedmover-show,
.extendedconfirmed-show,
.autoconfirmed-show,
.user-show {
	display: none;
}

/* Hide the redlink generated by {{Editnotice}},
   this overrides the ".sysop-show { display: none; }" above that applies
   to the same link as well. See [[phab:T45013]]

   Hide the images in editnotices to keep them readable in VE view.
   Long term, editnotices should become a core feature so that they can be designed responsive. */
.ve-ui-mwNoticesPopupTool-item .editnotice-redlink,
.ve-ui-mwNoticesPopupTool-item .mbox-image,
.ve-ui-mwNoticesPopupTool-item .mbox-imageright {
	display: none !important;
}

/* Remove bullets when there are multiple edit page warnings */
ul.permissions-errors {
	margin: 0;
}

ul.permissions-errors > li {
	list-style: none;
}

/* larger inline math */
span.mwe-math-mathml-inline {
	font-size: 118%;
}

/* Make <math display="block"> be left aligned with one space indent for 
 * compatibility with style conventions
 */
.mwe-math-fallback-image-display,
.mwe-math-mathml-display {
	margin-left: 1.6em !important;
	margin-top: 0.6em;
	margin-bottom: 0.6em;
}

.mwe-math-mathml-display math {
	display: inline;
}

@media screen {
	/* Put a chequered background behind images, only visible if they have transparency,
	 * except on main, user, and portal namespaces
	 */
	body:not(.ns-0):not(.ns-2):not(.ns-100) .gallerybox .thumb img {
		background: #fff url(//upload.wikimedia.org/wikipedia/commons/5/5d/Checker-16x16.png) repeat;
	}

	/* Display "From Wikipedia, the free encyclopedia" in skins that support it,
	   do not apply to print mode */
	#siteSub {
		display: block;
	}
}

/* Hide FlaggedRevs notice UI when there are no pending changes */
.flaggedrevs_draft_synced,
.flaggedrevs_stable_synced,
/* "Temporary" to remove links in sidebar T255381 */
#t-upload,
/* Hide broken download box on Special:Book pending T285400 */
.mw-special-Book #coll-downloadbox {
	display: none;
}

/*
 * BELOW HERE THERE BE SOONTOBE TEMPLATESTYLES THINGS;
 * SEE [[MediaWiki talk:Common.css/to do]]
 */

/* Infobox template style */
.infobox {
	border: 1px solid #a2a9b1;
	border-spacing: 3px;
	background-color: #f8f9fa;
	color: black;
	/* @noflip */
	margin: 0.5em 0 0.5em 1em;
	padding: 0.2em;
	/* @noflip */
	float: right;
	/* @noflip */
	clear: right;
	font-size: 88%;
	line-height: 1.5em;
	width: 22em;
}

.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	vertical-align: top;
}

.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
	/* @noflip */
	text-align: left;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	font-size: 125%;
	font-weight: bold;
	text-align: center;
}

.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
	padding: 0.2em;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
	text-align: center;
}

/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
	/* @noflip */
	text-align: right;
}

/* Normal font styling for wikitable row headers with scope="row" tag */
.wikitable.plainrowheaders th[scope=row],
.wikitable.plainrowheaders th[scope=rowgroup] {
	font-weight: normal;
	/* @noflip */
	text-align: left;
}

/* Remove underlines from certain links */
.nounderlines a,
.IPA a:link,
.IPA a:visited {
	text-decoration: none !important;
}

/* Prevent line breaks in silly places where desired (nowrap)
   and links when we don't want them to (nowraplinks a) */
.nowrap,
.nowraplinks a {
	white-space: nowrap;
}

/* But allow wrapping where desired: */
.wrap,
.wraplinks a {
	white-space: normal;
}

/* texhtml class for inline math (based on generic times-serif class) */
span.texhtml {
	font-family: "Nimbus Roman No9 L", "Times New Roman", Times, serif;
	font-size: 118%;
	line-height: 1;
	white-space: nowrap;
	/* Force tabular and lining display for texhtml */
	font-variant-numeric: lining-nums tabular-nums;
	font-kerning: none;
}

span.texhtml span.texhtml {
	font-size: 100%;
}

@media screen {
	.nochecker .gallerybox .thumb img {
		background-image: none;
	}
}

/* Put anything you mean to be a sitewide addition above the TemplateStyles
 * comment above.
 */