MediaWiki:Common.css: Difference between revisions

m CSS fix
Lifted stuff to Common.css that really should be there
 
(3 intermediate revisions by the same user not shown)
Line 1,580: Line 1,580:
}
}


/* CSS for the Minecraft tooltip "Minetip" */
/* Making tabs wrap for infoboxes */


.sprite {
.tabberwrapping {
flex-wrap: wrap;
justify-content: center;
}
 
.invslot {
    position: relative;
     display: inline-block;
     display: inline-block;
     vertical-align: text-top;
    background: #8B8B8B no-repeat center center / 32px 32px;
     height: 16px;
    border: 2px solid;
     width: 16px;
    border-color: #373737 #FFF #FFF #373737;
     background-repeat: no-repeat;
    width: 32px;
    height: 32px;
    font-size: 16px;
    line-height: 1;
    text-align: left;
     vertical-align: bottom;
}
 
.invslot::before,.invslot::after {
    content: "";
    position: absolute;
    background-color: #8B8B8B;
     height: 2px;
     width: 2px;
     pointer-events: none;
}
 
.invslot::before {
    bottom: -2px;
    left: -2px;
}
}


.sprite-file {
.invslot::after {
     --vertical-align: text-top;
     top: -2px;
     display: inline-block;
     right: -2px;
    height: 16px;
    width: 16px;
}
}


.sprite-file img {
.invslot-large {
     vertical-align: var(--vertical-align);
     padding: 8px;
}
}


.sprite-file + a > .sprite-text,.sprite-file + .sprite-text,.sprite + .sprite-text {
.invslot-item,.invslot-item a:first-child {
     padding-left: 0.312em;
    position: relative;
    display: block;
    margin: -2px;
     padding: 2px;
    width: 32px;
    height: 32px;
}
}


.sprite-file a.new:first-child {
.invslot-item-image a.new:first-child {
    vertical-align: var(--vertical-align);
     background: url(/images/Grid_Unknown.png?4cbf2) no-repeat content-box;
     background-image: url(/images/Grid_Unknown.png?4cbf2);
     width: 32px;
     background-size: 100% 100%;
     height: 32px;
     display: inline-block;
     text-indent: -9999px;
     text-indent: -9999px;
     overflow: hidden;
     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;
}
}


.format-custom {
.invslot-stacksize {
     text-shadow: 0.125em 0.125em 0 color-mix(in srgb,currentColor 25%,#000 75%);
    position: absolute;
    right: 0;
    bottom: 0;
    font-family: Minecraft,sans-serif !important;
    font-weight: normal !important;
    color: #FFF !important;
     text-shadow: 2px 2px 0 #3F3F3F;
    filter: dropshadow(color=#3F3F3F,offx=2,offy=2);
    z-index: 2;
}
 
.invslot-plain {
    background-color: transparent;
    border: 0;
}
 
.invslot-plain::before,.invslot-plain::after {
    content: none;
}
 
.invslot-plain > .invslot-item,.invslot-plain > .invslot-item a:first-child {
    margin: 0;
    padding: 0;
}
 
.invslot-default-head {
    background-image: url(/images/Grid_layout_Head_Empty.png?c6d2b);
}
 
.invslot-default-chest {
    background-image: url(/images/Grid_layout_Chest_Empty.png?4c32c);
}
 
.invslot-default-legs {
    background-image: url(/images/Grid_layout_Legs_Empty.png?f5d09);
}
 
.invslot-default-feet {
    background-image: url(/images/Grid_layout_Feet_Empty.png?70c3c);
}
 
.invslot-default-offhand {
    background-image: url(/images/Grid_layout_Offhand_Empty.png?b6488);
}
 
.invslot-default-smithing {
    background-image: url(/images/Grid_layout_Smithing_Empty.png?e28f7);
}
 
.invslot-default-brewing {
    background-image: url(/images/Grid_layout_Brewing_Empty.png?2bf2a);
}
 
.invslot-default-brewing-fuel {
    background-image: url(/images/Grid_layout_Brewing_Fuel_Empty.png?acb80);
}
 
.mc-hearts::before {
    content: ' (';
}
 
.mc-hearts::after {
    content: ')';
}
}


#minetip-tooltip {
.mcui {
     position: fixed;
     display: inline-block;
     top: 0;
     position: relative;
    left: 0;
     background-color: #C6C6C6;
     background-color: #100010;
     border: 2px solid;
    background-color: rgba(16,0,16,0.94);
     border-color: #DBDBDB #5B5B5B #5B5B5B #DBDBDB;
     padding: 0.375em;
     padding: 6px;
     font-family: Minecraft,sans-serif;
     text-align: left;
     font-size: 16px;
     word-spacing: 4px;
     white-space: nowrap;
     white-space: nowrap;
     line-height: 1.25em;
     vertical-align: bottom;
     margin: 0.125em 0.25em;
}
     pointer-events: none;
 
     z-index: 9999;
.mcui-Crafting_Table > *,.mcui-Furnace > * {
    display: inline-block;
    vertical-align: top;
}
 
.mcui-Crafting_Table .mcui-row {
    display: block;
}
 
.mcui-Crafting_Table > .mcui-arrow {
    background: url(https://minecraft.wiki/images/Grid_layout_Arrow_%28small%29.png?a4894) no-repeat;
    width: 32px;
    height: 26px;
     margin: 40px 4px 0;
}
 
.mcui-Crafting_Table > .mcui-output {
    margin-top: 28px;
}
 
.mcui-Crafting_Table > .mcui-icons {
    position: absolute;
    top: 6px;
     right: 6px;
}
 
.mcui-Crafting_Table .mcui-shapeless,.mcui-Crafting_Table .mcui-fixed {
    display: inline-block;
     background-repeat: no-repeat;
    width: 19px;
    height: 15px;
    cursor: help;
}
 
.mcui-Crafting_Table .mcui-shapeless {
    background-image: url(https://minecraft.wiki/images/Grid_layout_Shapeless.png?9dddf);
}
 
.mcui-Crafting_Table .mcui-fixed {
    background-image: url(https://minecraft.wiki/images/Grid_layout_Fixed.png?bb1da);
}
}


#minetip-tooltip > .description,#minetip-tooltip > .minetip-description {
.mcui-Furnace .mcui-fuel {
     display: block;
     display: block;
     margin-top: 0.25em;
     background: url(/images/Grid_layout_Fire.png?84fd9) no-repeat;
    width: 36px;
    height: 36px;
}
}


/* Used to render low-res textures in larger sizes */
.mcui-Furnace .mcui-fuel.mcui-inactive {
    background-image: url(/images/Grid_layout_Fire_%28in-active%29.png?2e313);
}
 
.mcui-Furnace > .mcui-arrow {
    background: url(/images/Grid_layout_Furnace_Progress.png?c8400) no-repeat;
    width: 44px;
    height: 32px;
    margin: 36px 18px 0 14px;
}


.pixel-image, .invslot-item-image, .sprite {
.mcui-Furnace > .mcui-arrow.mcui-inactive,.mcui-Inventory-Crafting_Table-arrow {
     image-rendering: pixelated;
     background-image: url(/images/Grid_layout_Furnace_Progress_%28in-active%29.png?4f3f7);
}
}


.item-padding {
.mcui-Furnace > .mcui-output {
padding: 16px;
    margin-top: 28px;
}
}


/* Animation CSS for the Animated Sprites of the Crafting UI */
.mcui-Furnace > .mcui-experience {
    position: absolute;
    top: 92px;
    left: 108px;
    text-align: center;
    width: 70px;
}


.mw-body-content .animated > *:not(.animated-active),.mw-body-content .animated > .animated-subframe > *:not(.animated-active) {
.mcui-Furnace .mcui-experience-orb {
     display: none;
    display: inline-block;
    margin-top: 3px;
    width: 16px;
    height: 16px;
    vertical-align: top;
     background-size: 16px 16px;
}
}


.mw-body-content span.animated,.mw-body-content span.animated.animated-visible > *,.mw-body-content span.animated.animated-visible > .animated-subframe > * {
.mcui-Furnace .mcui-experience-text {
     display: inline-block;
     display: inline-block;
    vertical-align: top;
    font-family: Minecraft,sans-serif;
    font-size: 16px;
    color: #404040;
}
}


.mw-body-content div.animated.animated-visible > *,.mw-body-content div.animated.animated-visible > .animated-subframe > * {
/* Used to render low-res textures in larger sizes */
    display: block;
 
.pixel-image, .invslot-item-image, .sprite {
    image-rendering: pixelated;
}
 
.item-padding {
padding: 16px;
}
}