MediaWiki:Common.css: Difference between revisions

CSS test
m CSS fix
 
(One intermediate revision by the same user not shown)
Line 1,582: Line 1,582:
/* CSS for the Minecraft tooltip "Minetip" */
/* CSS for the Minecraft tooltip "Minetip" */


.format-custom {
.sprite {
     text-shadow: 0.125em 0.125em 0 color-mix(in srgb,currentColor 25%,#000 75%)
    display: inline-block;
     vertical-align: text-top;
    height: 16px;
    width: 16px;
    background-repeat: no-repeat;
}
}


#minetip-tooltip {
.sprite-file {
     position: fixed;
     --vertical-align: text-top;
    top: 0;
     display: inline-block;
    left: 0;
     height: 16px;
    background-color: #100010;
     width: 16px;
    background-color: rgba(16,0,16,0.94);
    padding: 0.375em;
    font-family: Minecraft,sans-serif;
    font-size: 16px;
     word-spacing: 4px;
    white-space: nowrap;
     line-height: 1.25em;
     margin: 0.125em 0.25em;
    pointer-events: none;
    z-index: 9999
}
}


#minetip-tooltip > .description,#minetip-tooltip > .minetip-description {
.sprite-file img {
     display: block;
     vertical-align: var(--vertical-align);
    margin-top: 0.25em
}
}


/* Used to render low-res textures in larger sizes */
.sprite-file + a > .sprite-text,.sprite-file + .sprite-text,.sprite + .sprite-text {
    padding-left: 0.312em;
}


.pixel-image, .invslot-item-image, .sprite {
.sprite-file a.new:first-child {
    vertical-align: var(--vertical-align);
    background-image: url(/images/Grid_Unknown.png?4cbf2);
    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;
     image-rendering: pixelated;
    -ms-interpolation-mode: nearest-neighbor;
}
}


.item-padding {
.format-custom {
padding: 16px;
    text-shadow: 0.125em 0.125em 0 color-mix(in srgb,currentColor 25%,#000 75%);
}
 
/* Animation CSS for the Animated Sprites of the Crafting UI */
 
.mw-body-content .animated > *:not(.animated-active),.mw-body-content .animated > .animated-subframe > *:not(.animated-active) {
    display: none
}
 
.mw-body-content span.animated,.mw-body-content span.animated.animated-visible > *,.mw-body-content span.animated.animated-visible > .animated-subframe > * {
    display: inline-block
}
 
.mw-body-content div.animated.animated-visible > *,.mw-body-content div.animated.animated-visible > .animated-subframe > * {
    display: block
}
}