No edit summary |
No edit summary |
||
| Line 19: | Line 19: | ||
height: 100%; | height: 100%; | ||
z-index: 0; | z-index: 0; | ||
overflow: hidden; | |||
} | } | ||
.invslot-bg | .invslot-bg * { | ||
margin: 0 !important; | |||
padding: 0 !important; | |||
} | } | ||
| Line 34: | Line 31: | ||
height: 64px !important; | height: 64px !important; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
position: absolute !important; | |||
top: 0 !important; | |||
left: 0 !important; | |||
} | } | ||
| Line 44: | Line 42: | ||
width: 100%; | width: 100%; | ||
height: 100%; | height: 100%; | ||
z-index: 1; | z-index: 1; | ||
display: flex; | display: flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
} | } | ||
. | .slotwrap > * { | ||
margin: 0 !important; | |||
} | } | ||
. | .slotwrap img { | ||
width: 32px !important; | width: 32px !important; | ||
height: 32px !important; | height: 32px !important; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
display: block !important; | display: block !important; | ||
position: relative !important; | |||
margin: 0 auto !important; | margin: 0 auto !important; | ||
} | } | ||
Revision as of 00:15, 13 December 2025
.invslot {
width: 64px;
height: 64px;
position: relative;
margin: 1px;
display: inline-block;
vertical-align: middle;
background: #8b8b8b;
border: 2px solid;
border-color: #373737 #fff #fff #373737;
box-sizing: border-box;
}
.invslot-bg {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 0;
overflow: hidden;
}
.invslot-bg * {
margin: 0 !important;
padding: 0 !important;
}
.invslot-bg img {
width: 64px !important;
height: 64px !important;
image-rendering: pixelated;
position: absolute !important;
top: 0 !important;
left: 0 !important;
}
.slotwrap {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 1;
display: flex;
align-items: center;
justify-content: center;
}
.slotwrap > * {
margin: 0 !important;
}
.slotwrap img {
width: 32px !important;
height: 32px !important;
image-rendering: pixelated;
display: block !important;
position: relative !important;
margin: 0 auto !important;
}
/* count */
.invslot .invcount {
position: absolute;
bottom: 2px;
right: 3px;
font-family: Minecraft, monospace, sans-serif;
font-size: 16px;
font-weight: bold;
color: #fff;
text-shadow: 2px 2px 0 #3f3f3f;
z-index: 2;
line-height: 1;
}
/* tooltip */
.mctt {
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
margin-bottom: 8px;
background: rgba(16, 0, 16, 0.94);
border: 2px solid;
border-color: #2d0a63 #100010;
padding: 5px 8px;
color: #fff;
font-family: Minecraft, monospace, sans-serif;
font-size: 12px;
white-space: nowrap;
z-index: 1000;
display: none;
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
}
.mctt div {
line-height: 1.4;
margin: 1px 0;
}
/* show on hover */
.invslot:hover .mctt {
display: block;
}
/* hover overlay */
.invslot::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(255, 255, 255, 0);
z-index: 10;
transition: background 0.1s;
}
.invslot:hover::before {
background: rgba(255, 255, 255, 0.3);
}
/* rarity classes */
.invslot-common {
background: #8b8b8b;
}
.invslot-uncommon {
background: #9b9b9b;
box-shadow: 0 0 4px rgba(85, 255, 85, 0.5);
}
.invslot-rare {
background: #9b9b9b;
box-shadow: 0 0 4px rgba(85, 170, 255, 0.5);
}
.invslot-epic {
background: #9b9b9b;
box-shadow: 0 0 4px rgba(170, 85, 255, 0.5);
}
.invslot-legendary {
background: #9b9b9b;
box-shadow: 0 0 4px rgba(255, 170, 0, 0.5);
}