MediaWiki:Gadget-site-styles.css: Difference between revisions

no edit summary
No edit summary
No edit summary
Tag: Manual revert
 
(35 intermediate revisions by the same user not shown)
Line 19: Line 19:


@font-face {
@font-face {
   font-family: 'minecraftia';
   font-family: Minecraft;
   src: url(https://wiki.parallelmc.org/w/resources/assets/fonts/MinecraftiaRegular.ttf);
   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('filepath://Grid_Unknown.png') no-repeat content-box;
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('filepath://Grid_layout_Arrow_%28small%29.png') no-repeat;
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('filepath://Grid_layout_Shapeless.png');
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('filepath://Grid_layout_Fixed.png');
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 682: Line 1,071:
   line-height: 1.125em;
   line-height: 1.125em;
   position: relative;
   position: relative;
   font-family: minecraftia;
   font-family: Minecraftia;
   width: 18.25em;
   width: 18.25em;
   height: 22.5em;
   height: 22.5em;
Line 753: Line 1,142:
   background-image: url(https://wiki.parallelmc.org/w/images/4/4e/Book_arrow_right_selected.png);
   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;
}




Line 808: Line 1,233:
.collapsetoggle-custom {
.collapsetoggle-custom {
visibility: hidden;
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;
}
}