No edit summary |
No edit summary |
||
| Line 4: | Line 4: | ||
position: relative; | position: relative; | ||
margin: 1px; | margin: 1px; | ||
display: flex; | display: inline-flex; | ||
align-items: center; | align-items: center; | ||
justify-content: center; | justify-content: center; | ||
overflow: visible; | overflow: visible; | ||
background: # | background: #8b8b8b; | ||
border: 2px solid; | |||
border-color: #373737 #fff #fff #373737; | |||
box-sizing: border-box; | |||
vertical-align: middle; | |||
} | } | ||
| Line 17: | Line 21: | ||
width: 64px; | width: 64px; | ||
height: 64px; | height: 64px; | ||
z-index: 0; | |||
} | |||
.invslot-bg img { | |||
width: 64px !important; | |||
height: 64px !important; | |||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | } | ||
| Line 43: | Line 52: | ||
height: 32px !important; | height: 32px !important; | ||
image-rendering: pixelated; | image-rendering: pixelated; | ||
} | |||
.invslot .image a { | |||
display: flex; | |||
align-items: center; | |||
justify-content: center; | |||
} | } | ||
| Line 50: | Line 65: | ||
bottom: 2px; | bottom: 2px; | ||
right: 3px; | right: 3px; | ||
font-family: monospace, sans-serif; | font-family: Minecraft, monospace, sans-serif; | ||
font-size: | font-size: 16px; | ||
font-weight: bold; | |||
color: #fff; | color: #fff; | ||
text-shadow: | text-shadow: 2px 2px 0 #3f3f3f; | ||
z-index: 2; | z-index: 2; | ||
line-height: 1; | |||
} | } | ||
| Line 60: | Line 77: | ||
.mctt { | .mctt { | ||
position: absolute; | position: absolute; | ||
bottom: 100%; | |||
left: 50%; | |||
background: rgba(16, 0, 16, 0. | transform: translateX(-50%); | ||
border: | margin-bottom: 8px; | ||
padding: | background: rgba(16, 0, 16, 0.94); | ||
border: 2px solid; | |||
border-color: #2d0a63 #100010; | |||
padding: 5px 8px; | |||
color: #fff; | color: #fff; | ||
font-family: monospace, sans-serif; | font-family: Minecraft, monospace, sans-serif; | ||
font-size: | font-size: 12px; | ||
white-space: nowrap; | white-space: nowrap; | ||
z-index: | z-index: 1000; | ||
display: none; | display: none; | ||
box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5); | |||
} | |||
.mctt div { | |||
line-height: 1.4; | |||
margin: 1px 0; | |||
} | } | ||
| Line 82: | Line 108: | ||
content: ""; | content: ""; | ||
position: absolute; | position: absolute; | ||
top: | top: 2px; | ||
left: | left: 2px; | ||
right: 2px; | |||
bottom: 2px; | |||
background: rgba(255, 255, 255, 0.25); | background: rgba(255, 255, 255, 0.25); | ||
opacity: 0; | opacity: 0; | ||
z-index: | z-index: 2; | ||
transition: opacity 0.1s; | |||
} | } | ||
.invslot:hover::after { | .invslot:hover::after { | ||
opacity: 1; | opacity: 1; | ||
background: rgba(255, 255, 255, 0.5); | } | ||
/* 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); | |||
} | } | ||
Revision as of 00:10, 13 December 2025
.invslot {
width: 64px;
height: 64px;
position: relative;
margin: 1px;
display: inline-flex;
align-items: center;
justify-content: center;
overflow: visible;
background: #8b8b8b;
border: 2px solid;
border-color: #373737 #fff #fff #373737;
box-sizing: border-box;
vertical-align: middle;
}
.invslot-bg {
position: absolute;
top: 0;
left: 0;
width: 64px;
height: 64px;
z-index: 0;
}
.invslot-bg img {
width: 64px !important;
height: 64px !important;
image-rendering: pixelated;
}
.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;
}
.invslot .image a {
display: flex;
align-items: center;
justify-content: center;
}
/* 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::after {
content: "";
position: absolute;
top: 2px;
left: 2px;
right: 2px;
bottom: 2px;
background: rgba(255, 255, 255, 0.25);
opacity: 0;
z-index: 2;
transition: opacity 0.1s;
}
.invslot:hover::after {
opacity: 1;
}
/* 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);
}