MediaWiki:Item.css
MediaWiki interface page
More actions
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.
/******************** Item.css *******************
Description:
This is a stylesheet for item pages
*************************************************/
/* ========== Textures ========== */
.gtw-cropbox {
display: inline-block;
width: var(--gtw-size, 32px);
height: var(--gtw-size, 32px);
overflow: hidden;
vertical-align: middle;
filter: drop-shadow(-2px 2px 0 rgba(0, 0, 0, 0.4));
}
.gtw-cropbox .gtw-crop {
display: block;
width: var(--gtw-crop, 32px);
height: var(--gtw-crop, 32px);
background-repeat: no-repeat;
background-position: calc(-1 * var(--gtw-x, 0px)) calc(-1 * var(--gtw-y, 0px));
transform-origin: 0 0;
transform: scale(var(--gtw-scale, 1));
}
.gtw-pixelated {
image-rendering: pixelated;
}
.gtw-cropbox .gtw-sheet-gems { background-image: url(/index.php?title=Special:FilePath/GemSprites.png); }
.gtw-cropbox .gtw-sheet-collisions { background-image: url(/index.php?title=Special:FilePath/CollisionTypeSprite.png); }
.gtw-cropbox .gtw-sheet-textures { background-image: url(/index.php?title=Special:FilePath/TextureTypeSprite.png); }
.gtw-cropbox .gtw-sheet-achievements { background-image: url(/index.php?title=Special:FilePath/AchievementSprites.png); }