Jump to content

User:4erospace/common.css

Revision as of 03:07, 13 July 2025 by 4erospace (talk | contribs) (CSS test)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
.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 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;
    -ms-interpolation-mode: nearest-neighbor;
}

.format-custom {
    text-shadow: 0.125em 0.125em 0 color-mix(in srgb,currentColor 25%,#000 75%);
}

#minetip-tooltip {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #100010;
    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 {
    display: block;
    margin-top: 0.25em;
}

/* Used to render low-res textures in larger sizes */

.pixel-image, .invslot-item-image, .sprite {
    image-rendering: pixelated;
}

.item-padding {
	padding: 16px;
}

/* 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;
}