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

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
 
(27 intermediate revisions by the same user not shown)
Line 29: Line 29:
   src: url('https://wiki.parallelmc.org/w/resources/assets/fonts/MinecraftiaRegular.ttf') format('truetype');
   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 180: 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 204: 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 690: Line 805:
.infobox-footer {
.infobox-footer {
text-align: center;
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');
}
}


Line 915: 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 1,074: Line 1,337:
background-color: hsl(0, 0%, 8%);
background-color: hsl(0, 0%, 8%);
border-left-color: hsl(0, 0%, 36%);
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;
}
}