Created page with ".invslot { width: 64px; height: 64px; position: relative; margin: 1px; display: flex; align-items: center; justify-content: center; overflow: visible; background: #3c3f41; } .invslot-bg { position: absolute; top: 0; left: 0; width: 64px; height: 64px; image-rendering: pixelated; z-index: 0; } .slotwrap { position: relative; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; z-index: 1; }..." |
No edit summary |
||
| Line 37: | Line 37: | ||
width: 64px; | width: 64px; | ||
height: 64px; | height: 64px; | ||
} | } | ||
| Line 77: | Line 73: | ||
} | } | ||
/* show on hover */ | |||
.invslot:hover .mctt { | .invslot:hover .mctt { | ||
display: block; | display: block; | ||
Revision as of 16:56, 2 November 2025
.invslot {
width: 64px;
height: 64px;
position: relative;
margin: 1px;
display: flex;
align-items: center;
justify-content: center;
overflow: visible;
background: #3c3f41;
}
.invslot-bg {
position: absolute;
top: 0;
left: 0;
width: 64px;
height: 64px;
image-rendering: pixelated;
z-index: 0;
}
.slotwrap {
position: relative;
width: 64px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.invslot .image {
display: flex;
align-items: center;
justify-content: center;
width: 64px;
height: 64px;
}
.invslot .image img {
width: 32px !important;
height: 32px !important;
image-rendering: pixelated;
}
/* count */
.invslot .invcount {
position: absolute;
bottom: 2px;
right: 3px;
font-family: monospace, sans-serif;
font-size: 22px;
color: #fff;
text-shadow: 1px 1px 0 #000;
z-index: 2;
}
/* tooltip */
.mctt {
position: absolute;
top: -46px;
left: 0;
background: rgba(16, 0, 16, 0.95);
border: 1px solid #000;
padding: 4px 6px;
color: #fff;
font-family: monospace, sans-serif;
font-size: 10px;
white-space: nowrap;
z-index: 3;
display: none;
}
/* show on hover */
.invslot:hover .mctt {
display: block;
}
/* hover overlay */
.invslot::after {
content: "";
position: absolute;
top: 0;
left: 0;
width: 64px;
height: 64px;
background: rgba(255, 255, 255, 0.25);
opacity: 0;
z-index: 1;
}
.invslot:hover::after {
opacity: 1;
background: rgba(255, 255, 255, 0.5);
}