8,282
edits
No edit summary |
No edit summary |
||
(38 intermediate revisions by the same user not shown) | |||
Line 19: | Line 19: | ||
@font-face { | @font-face { | ||
font-family: | font-family: Minecraft; | ||
src: url(https://wiki.parallelmc.org/w/resources/assets/fonts/ | src: url('https://wiki.parallelmc.org/w/resources/assets/fonts/Minecraft.woff2') format('woff2'), | ||
url('https://wiki.parallelmc.org/w/resources/assets/fonts/Minecraft.woff') format('woff'); | |||
} | } | ||
/* Legacy font for written book displays */ | |||
@font-face { | |||
font-family: Minecraftia; | |||
src: url('https://wiki.parallelmc.org/w/resources/assets/fonts/MinecraftiaRegular.ttf') format('truetype'); | |||
} | |||
/** Template stylings **/ | |||
/* [[Template:Navbox]] */ | |||
.navbox { | |||
background: #FFF; | |||
border: 1px solid #CCC; | |||
margin: 1em auto 0; | |||
width: 100%; | |||
} | |||
.navbox table { | |||
background: #FFF; | |||
margin-left: -4px; | |||
margin-right: -2px; | |||
} | |||
.navbox table:first-child { | |||
margin-top: -2px; | |||
} | |||
.navbox table:last-child { | |||
margin-bottom: -2px; | |||
} | |||
.navbox .navbox-top { | |||
white-space: nowrap; | |||
background-color: #CCC; | |||
padding: 0 3px; | |||
text-align: center; | |||
} | |||
.navbox-navbar, | |||
.navbox-navbar-mini { | |||
float: left; | |||
font-size: 80%; | |||
} | |||
.navbox-title { | |||
padding: 0 10px; | |||
font-size: 110%; | |||
} | |||
.navbox th { | |||
background-color: #EEE; | |||
padding: 0 10px; | |||
white-space: nowrap; | |||
text-align: right; | |||
} | |||
.navbox td { | |||
width: 100%; | |||
padding: 0 0 0 2px; | |||
} | |||
body.wgl-theme-dark .navbox, | |||
body.wgl-theme-dark .historybox { | |||
background-color: #2f2f2f; | |||
border-color: #444; | |||
} | |||
body.wgl-theme-dark .navbox table, | |||
body.wgl-theme-dark .historybox table { | |||
background-color: #2f2f2f; | |||
} | |||
body.wgl-theme-dark .navbox .navbox-top, | |||
body.wgl-theme-dark .historybox .historybox-top { | |||
background-color: #111 !important; | |||
} | |||
body.wgl-theme-dark .navbox th, | |||
body.wgl-theme-dark .historybox th { | |||
background-color: #222; | |||
} | |||
/* [[Template:LoadBox]]*/ | |||
.load-page { | |||
background-color: rgba(255, 255, 255, .5); | |||
border: 1px solid #CCC; | |||
margin-bottom: 0.5em; | |||
padding: 0 0.5em; | |||
} | |||
body.wgl-theme-dark .load-page { | |||
background-color: #222; | |||
border-color: #111; | |||
} | |||
/* [[Template:LoadBox]] with navbox */ | |||
.loadbox-navbox { | |||
padding: 2px !important; | |||
margin: 1em 0 0 !important; | |||
clear: both; | |||
} | |||
#content .loadbox-navbox > p { | |||
background-color: #CCC; | |||
text-align: center; | |||
margin: 0; | |||
padding: 0 3px; | |||
} | |||
body.wgl-theme-dark #content .loadbox-navbox > p { | |||
background-color: #111; | |||
} | |||
.loadbox-navbox > p > b { | |||
font-size: 110%; | |||
} | |||
.loadbox-navbox .navbox { | |||
margin: 0 -2px -2px; | |||
border: 0; | |||
} | |||
.loadbox-navbox > .load-page-content > .mw-parser-output > .navbox > tbody > tr:first-child { | |||
display: none; | |||
} | |||
/** Template stylings **/ | /** Template stylings **/ | ||
Line 71: | Line 193: | ||
/* [[File:Grid Unknown.png]] */ | /* [[File:Grid Unknown.png]] */ | ||
.invslot-item-image > a.new:first-child { | .invslot-item-image > a.new:first-child { | ||
background: url(' | background: url('https://wiki.parallelmc.org/w/images/3/35/Grid_Unknown.png') no-repeat content-box; | ||
width: 32px; | width: 32px; | ||
height: 32px; | height: 32px; | ||
Line 173: | Line 295: | ||
.mcui-Crafting_Table > .mcui-arrow { | .mcui-Crafting_Table > .mcui-arrow { | ||
background: url(' | background: url('https://wiki.parallelmc.org/w/images/8/86/Grid_layout_Arrow_%28small%29.png') no-repeat; | ||
width: 32px; | width: 32px; | ||
height: 26px; | height: 26px; | ||
Line 197: | Line 319: | ||
} | } | ||
.mcui-Crafting_Table .mcui-shapeless { | .mcui-Crafting_Table .mcui-shapeless { | ||
background-image: url(' | background-image: url('https://wiki.parallelmc.org/w/images/a/a9/Grid_layout_Shapeless.png'); | ||
} | } | ||
.mcui-Crafting_Table .mcui-fixed { | .mcui-Crafting_Table .mcui-fixed { | ||
background-image: url(' | background-image: url('https://wiki.parallelmc.org/w/images/b/b8/Grid_layout_Fixed.png'); | ||
} | } | ||
Line 530: | Line 652: | ||
border-image: url('filepath://Achievement_background.png') 8 fill repeat; | border-image: url('filepath://Achievement_background.png') 8 fill repeat; | ||
} | } | ||
/* [[Template:Infobox]], [[Template:Infobox row]] */ | |||
.notaninfobox { | |||
position: relative; | |||
clear: right; | |||
margin: 0 0 1em 1em; | |||
width: 300px; | |||
font-size: 90%; | |||
background: #FFF; | |||
float: right; | |||
border: 1px solid #CCC; | |||
padding: 2px; | |||
overflow: auto; | |||
z-index: 1; | |||
} | |||
@media all and (max-width: 511px) { | |||
.notaninfobox { | |||
float: none; | |||
margin-left: 0; | |||
width: auto; | |||
} | |||
} | |||
@media all and (max-width: 337px) { | |||
.notaninfobox { | |||
margin-left: -16px; | |||
margin-right: -16px; | |||
border-left: none; | |||
border-right: none; | |||
} | |||
} | |||
.notaninfobox > .infobox-title { | |||
font-weight: bold; | |||
text-align: center; | |||
font-size: 120%; | |||
border: none; | |||
} | |||
.notaninfobox th + td > ul { | |||
list-style: none; | |||
margin-left: unset | |||
} | |||
.infobox-imagearea { | |||
text-align: center; | |||
padding: 4px; | |||
} | |||
.infobox-imagearea > div:not(:first-child) { | |||
padding-top: 1em; | |||
} | |||
/* Horizontally centre animated images */ | |||
#mw-content-text .infobox-imagearea .animated { | |||
display: inline-flex; | |||
align-items: center; | |||
} | |||
/* Infoboxes with gallery */ | |||
.infobox-imagearea li.gallerybox div.thumb { | |||
background: none; | |||
border: none; | |||
margin: 0; | |||
} | |||
.infobox-imagearea ul.gallery, | |||
.infobox-imagearea li.gallerybox, | |||
.infobox-imagearea li.gallerybox div.thumb > div { | |||
margin: 0 !important; | |||
} | |||
.infobox-imagearea li.gallerybox div.gallerytext { | |||
font-weight: bold; | |||
font-size: 100%; | |||
padding: 0; | |||
} | |||
/* Infoboxes with tabber */ | |||
.infobox-imagearea .tabber .tabbertab, | |||
.infobox-imagearea ul.tabbernav li a, | |||
.infobox-imagearea ul.tabbernav li.tabberactive a { | |||
background: none; | |||
border: none; | |||
} | |||
.infobox-imagearea ul.tabbernav { | |||
font: inherit; | |||
font-size: 100%; | |||
} | |||
.infobox-imagearea ul.tabbernav li a:hover, | |||
.infobox-imagearea ul.tabbernav li.tabberactive a:hover { | |||
color: #000; | |||
} | |||
.infobox-imagearea ul.tabbernav > li { | |||
margin-bottom: 5px; | |||
padding: 0; | |||
} | |||
.infobox-imagearea ul.tabbernav > li > a { | |||
color: #595959; | |||
padding-bottom: 1px; | |||
display: block; | |||
} | |||
/* To prevent the tabs from jumping around when they become active or inactive | |||
* due to the font-weight changing from normal to bold and vice versa, add an | |||
* invisible ::before which contains the same text as the tab's text, but | |||
* bolded. This way the element in which unbolded text sits is sized according | |||
* to the bolded text, preventing it from resizing upon being selected. | |||
*/ | |||
.infobox-imagearea ul.tabbernav > li > a::before { | |||
display: block; | |||
content: attr(alt); | |||
font-weight: bold; | |||
height: 0; | |||
color: transparent; | |||
overflow: hidden; | |||
visibility: hidden; | |||
} | |||
.infobox-imagearea ul.tabbernav > li.tabberactive { | |||
border: none; | |||
} | |||
.infobox-imagearea ul.tabbernav > li.tabberactive > a { | |||
font-weight: bold; | |||
border-bottom: 2px solid var(--infobox-header-background-color); | |||
color: #202122; | |||
} | |||
.notaninfobox .infobox-rows { | |||
display: table; | |||
margin: 0 !important; | |||
width: 100% !important; | |||
border-collapse: separate !important; | |||
border-spacing: 1px !important; | |||
} | |||
.infobox-rows > tbody > tr > th { | |||
text-align: left; | |||
white-space: nowrap; | |||
} | |||
#mw-content-text .infobox-rows p { | |||
margin: 0; | |||
} | |||
/* Merge adjacent dls in the infobox (since they're usually supposed to be one, but the wiki screws up sometimes) */ | |||
.infobox-rows dl + dl { | |||
margin-top: -0.4em; | |||
} | |||
.infobox-rows dl:last-child { | |||
margin-bottom: 0.2em; | |||
} | |||
.infobox-footer { | |||
text-align: center; | |||
} | |||
.infobox-extratext { | |||
text-align: center; | |||
font-weight: 600; | |||
} | |||
/* [[Template:Sprite]] */ | |||
.sprite { | |||
display: inline-block; | |||
vertical-align: text-top; | |||
height: 16px; | |||
width: 16px; | |||
background-repeat: no-repeat; | |||
} | |||
.sprite-file { | |||
--vertical-align: text-top; | |||
display: inline-block; | |||
height: 16px; | |||
width: 16px; | |||
} | |||
.sprite-file img { | |||
vertical-align: var(--vertical-align); | |||
} | |||
.sprite-file + a > .sprite-text, | |||
.sprite-file + .sprite-text, | |||
.sprite + .sprite-text { | |||
padding-left: 0.312em; | |||
} | |||
.sprite-file:has(> a:hover:not(.new)) + a:has(> .sprite-text), | |||
.sprite-file:has(> a:focus:not(.new)) + a:has(> .sprite-text) { | |||
text-decoration: underline; | |||
} | |||
.wgl-theme-light .sprite-file:has(> a:active:not(.new)) + a:has(> .sprite-text) { | |||
color: #faa700; | |||
} | |||
/* [[File:Grid Unknown.png]] */ | |||
.sprite-file > a.new:first-child { | |||
vertical-align: var(--vertical-align); | |||
background-image: url('https://wiki.parallelmc.org/w/images/3/35/Grid_Unknown.png'); | |||
background-size: 100% 100%; | |||
display: inline-block; | |||
text-indent: -9999px; | |||
overflow: hidden; | |||
height: 100%; | |||
width: 100%; | |||
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; | |||
} | |||
/* [[Template:AprilFoolsSprite]]: [[File:AprilFoolsSprite.png]] */ | |||
.af-sprite { | |||
background-image: url('filepath://AprilFoolsSprite.png'); | |||
} | |||
/* [[Template:BlockLegacySprite]]: [[File:BlockLegacyCSS.png]] */ | |||
.blocklegacy-sprite { | |||
background-image: url('filepath://BlockLegacyCSS.png'); | |||
} | |||
/* [[Template:ClockPhase]]: [[File:ClockSprite.png]] */ | |||
.clock-sprite { | |||
background-image: url('filepath://ClockSprite.png'); | |||
} | |||
/* [[Template:CommentSprite]]: [[File:CommentCSS.png]] */ | |||
.comment-sprite { | |||
background-image: url('filepath://CommentCSS.png'); | |||
} | |||
/* [[Template:Nbt/sprite]]: [[File:Nbtsheet.png]] */ | |||
.nbt-sprite { | |||
background-image: url('filepath://Nbtsheet.png'); | |||
} | |||
/* [[Template:Schematic]]: [[File:SchematicSprite.png]] */ | |||
.schematic-sprite { | |||
background-image: url('filepath://SchematicSprite.png'); | |||
background-size: 32em auto; | |||
width: 1em; | |||
height: 1em; | |||
} | |||
/* [[Template:TintSprite]]: [[File:TintSprite.png]] */ | |||
.tint-sprite { | |||
background-image: url('filepath://TintSprite.png'); | |||
} | |||
.tint-sprite-mask { | |||
-webkit-mask-image: url('filepath://TintSprite.png'); | |||
mask-image: url('filepath://TintSprite.png'); | |||
} | |||
/* [[Template:LegendsAchievementSprite]]: [[File:LegendsAchievementSprite.png]] */ | |||
.legendsachievement-sprite { | |||
background-image: url('filepath://LegendsAchievementSprite.png'); | |||
} | |||
/* [[Template:LegendsEntitySprite]]: [[File:LegendsEntityCSS.png]] */ | |||
.legendsentity-sprite { | |||
background-image: url('filepath://LegendsEntityCSS.png'); | |||
} | |||
/* [[Template:LegendsStructureSprite]]: [[File:LegendsStructureCSS.png]] */ | |||
.legendsstructure-sprite { | |||
background-image: url('filepath://LegendsStructureCSS.png'); | |||
} | |||
/* [[Template:Experience]]: | /* [[Template:Experience]]: | ||
Line 670: | Line 1,059: | ||
display: block; | display: block; | ||
} | } | ||
/* ========================================================================= */ | |||
/* */ | |||
/* Classes corresponding to Minecraft Written Book display */ | |||
/* */ | |||
/* ========================================================================= */ | |||
.book { | |||
background-image: url(https://wiki.parallelmc.org/w/images/e/e2/Book_page.png); | |||
background-size: 18.25em 22.5em; | |||
line-height: 1.125em; | |||
position: relative; | |||
font-family: Minecraftia; | |||
width: 18.25em; | |||
height: 22.5em; | |||
font-size: 16px; | |||
padding-top: 1.6875em; | |||
padding-left: 2em; | |||
padding-right: 1.6em; | |||
padding-bottom: 0.125em; | |||
box-sizing: border-box; | |||
user-select: none; | |||
} | |||
.book_pagetext { | |||
overflow-wrap: break-word; | |||
white-space: break-spaces; | |||
display: none; | |||
width: 14.688em; | |||
height: 15.75em; | |||
word-spacing: -0.1563em; | |||
} | |||
.book_pagetext.pageactive { | |||
overflow: hidden; | |||
display: block; | |||
width: 14.688em; | |||
height: 15.75em; | |||
} | |||
.book_pagenum { | |||
text-align: right; | |||
margin-bottom: 0.625em; | |||
margin-right: 0.687em; | |||
word-spacing: -0.1563em; | |||
} | |||
.book_pagenum p { | |||
text-align: left; | |||
margin-bottom: 0em; | |||
} | |||
.book_leftarrow { | |||
background-image: url(https://wiki.parallelmc.org/w/images/d/d1/Book_arrow_left.png); | |||
background-size: cover; | |||
display: inline-block; | |||
position: absolute; | |||
bottom: 1.5em; | |||
left: 3.25em; | |||
width: 2.25em; | |||
height: 1.25em; | |||
cursor: pointer; | |||
} | |||
.book_leftarrow:hover { | |||
background-image: url(https://wiki.parallelmc.org/w/images/6/64/Book_arrow_left_selected.png); | |||
} | |||
.book_rightarrow { | |||
background-image: url(https://wiki.parallelmc.org/w/images/7/73/Book_arrow_right.png); | |||
background-size: cover; | |||
display: inline-block; | |||
position: absolute; | |||
bottom: 1.5em; | |||
right: 3.625em; | |||
width: 2.25em; | |||
height: 1.25em; | |||
cursor: pointer; | |||
} | |||
.book_rightarrow:hover { | |||
background-image: url(https://wiki.parallelmc.org/w/images/4/4e/Book_arrow_right_selected.png); | |||
} | |||
/* Horizontal list */ | |||
#mw-content-text .hlist ul { | |||
display: inline; | |||
margin: 0; | |||
padding: 0; | |||
} | |||
#mw-content-text .hlist li { | |||
display: inline; | |||
} | |||
#mw-content-text .hlist li:not(:last-child) { | |||
padding-right: 0.286em; | |||
} | |||
#mw-content-text .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; | |||
} | |||
#mw-content-text .hlist li li:first-child::before { | |||
content: "("; | |||
font-weight: normal; | |||
} | |||
#mw-content-text .hlist li li:last-child::after { | |||
content: ")"; | |||
font-weight: normal; | |||
} | |||
#mw-content-text .hlist li li li { | |||
font-size: x-small; | |||
} | |||
/* Element animator */ | /* Element animator */ | ||
Line 684: | Line 1,193: | ||
#mw-content-text div.animated.animated-visible > .animated-subframe > * { | #mw-content-text div.animated.animated-visible > .animated-subframe > * { | ||
display: block; | display: block; | ||
} | |||
/* Collapsible elements ([[MediaWiki:Gadget-site.js]]) */ | |||
.client-js .collapsible.collapsed > tr:not(:first-child), | |||
.client-js .collapsible.collapsed > tbody > tr:not(:first-child), | |||
.client-js .collapsible.collapsed > thead + tbody > tr:first-child, | |||
.client-js .collapsible.collapsed > tbody + tbody > tr:first-child, | |||
.client-js .collapsible.collapsed > tfoot > tr, | |||
.client-js .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; | |||
} | |||
/* Various styling for message boxes */ | |||
.msgbox { | |||
display: flex; | |||
background: #FCFCFC; | |||
box-sizing: border-box; | |||
align-items: center; | |||
width: auto; | |||
padding: .4em .8em; | |||
margin: 0 auto; | |||
margin-bottom: 1em; | |||
} | |||
.msgbox + .msgbox { | |||
border-top: none; | |||
margin-top: -1em; | |||
} | |||
:not(.msgbox) + .msgbox, | |||
.msgbox:first-of-type { | |||
border-top-right-radius: .15em; | |||
border-top-left-radius: .15em; | |||
} | |||
.msgbox #msgbox-iconimage, | |||
.msgbox #msgbox-image { | |||
margin: 0 1.5em 0 .5em; | |||
} | |||
.msgbox-mini { | |||
padding: .4em .5em; | |||
margin: 0 0; | |||
margin-bottom: 1em; | |||
} | |||
.msgbox-mini #msgbox-icon { | |||
align-self: flex-start; | |||
} | |||
.msgbox-mini #msgbox-iconimage, | |||
.msgbox-mini #msgbox-image { | |||
margin: 0 .4em 0 .5em; | |||
} | |||
.msgbox-mini #msgbox-text { | |||
font-size: small; | |||
} | |||
.msgbox-red { | |||
background: hsl(0, 75%, 92%); | |||
border-left: 4px solid hsl(0, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-red { | |||
background-color: hsl(0, 25%, 8%); | |||
border-left-color: hsl(0, 15%, 36%); | |||
} | |||
.msgbox-orange { | |||
background: hsl(40, 75%, 92%); | |||
border-left: 4px solid hsl(40, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-orange { | |||
background-color: hsl(40, 25%, 8%); | |||
border-left-color: hsl(40, 15%, 36%); | |||
} | |||
.msgbox-yellow { | |||
background: hsl(60, 75%, 92%); | |||
border-left: 4px solid hsl(60, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-yellow { | |||
background-color: hsl(60, 25%, 8%); | |||
border-left-color: hsl(60, 15%, 36%); | |||
} | |||
.msgbox-green { | |||
background: hsl(120, 75%, 92%); | |||
border-left: 4px solid hsl(120, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-green { | |||
background-color: hsl(120, 25%, 8%); | |||
border-left-color: hsl(120, 15%, 36%); | |||
} | |||
.msgbox-blue { | |||
background: hsl(215, 75%, 92%); | |||
border-left: 4px solid hsl(215, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-blue { | |||
background-color: hsl(215, 25%, 8%); | |||
border-left-color: hsl(215, 15%, 36%); | |||
} | |||
.msgbox-magenta { | |||
background: hsl(310, 75%, 92%); | |||
border-left: 4px solid hsl(310, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-magenta { | |||
background-color: hsl(310, 25%, 8%); | |||
border-left-color: hsl(310, 15%, 36%); | |||
} | |||
.msgbox-purple { | |||
background: hsl(260, 75%, 92%); | |||
border-left: 4px solid hsl(260, 75%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-purple { | |||
background-color: hsl(260, 25%, 8%); | |||
border-left-color: hsl(260, 15%, 36%); | |||
} | |||
.msgbox-gray { | |||
background: hsl(0, 0%, 92%); | |||
border-left: 4px solid hsl(0, 0%, 85%); | |||
} | |||
body.wgl-theme-dark .msgbox-gray { | |||
background-color: hsl(0, 0%, 8%); | |||
border-left-color: hsl(0, 0%, 36%); | |||
} | |||
/* Try to use nearest neighbour scaling for pixelated images */ | |||
/*.filehistory a img,*/ | |||
/*.pixel-image,*/ | |||
/*.invslot-item-image,*/ | |||
/*.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;*/ | |||
/*}*/ | |||
/* Machine-readable extra template information */ | |||
.history-json, .chest-json, .chestcontents-json, .sound-json, .spawntable-json, .advancements-json, .achievements-json { | |||
display: none; | |||
} | } |