No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 4: Line 4:
   position: relative;
   position: relative;
   margin: 1px;
   margin: 1px;
   display: flex;
   display: inline-block;
   align-items: center;
   vertical-align: middle;
   justify-content: center;
  background: #8b8b8b;
   overflow: visible;
  border: 2px solid;
   background: #3c3f41;
  border-color: #373737 #fff #fff #373737;
   box-sizing: border-box;
   text-align: center;
   line-height: 64px;
}
}


.invslot-bg {
/* Hide all the wrapper elements MediaWiki creates */
   position: absolute;
.invslot > * {
   top: 0;
   display: inline-block;
  left: 0;
   vertical-align: middle;
  width: 64px;
   line-height: normal;
  height: 64px;
  image-rendering: pixelated;
   z-index: 0;
}
}


.slotwrap {
/* Background image */
   position: relative;
.invslot .invslot-bg-img {
   width: 64px;
   position: absolute !important;
   height: 64px;
  top: 0 !important;
   display: flex;
  left: 0 !important;
   align-items: center;
   width: 64px !important;
   justify-content: center;
   height: 64px !important;
   z-index: 1;
   image-rendering: pixelated !important;
   z-index: 0 !important;
   margin: 0 !important;
   padding: 0 !important;
}
}


.invslot .image {
/* Item image */
  display: flex;
.invslot .invslot-item-img {
  align-items: center;
   position: relative !important;
  justify-content: center;
  width: 64px;
   height: 64px;
}
 
.invslot .image img {
   width: 32px !important;
   width: 32px !important;
   height: 32px !important;
   height: 32px !important;
   image-rendering: pixelated;
   image-rendering: pixelated !important;
  z-index: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !important;
}
}


/* count */
/* Count */
.invslot .invcount {
.invslot .invcount {
   position: absolute;
   position: absolute;
   bottom: 2px;
   bottom: 2px;
   right: 3px;
   right: 3px;
   font-family: monospace, sans-serif;
   font-family: Minecraft, monospace, sans-serif;
   font-size: 22px;
   font-size: 16px;
  font-weight: bold;
   color: #fff;
   color: #fff;
   text-shadow: 1px 1px 0 #000;
   text-shadow: 2px 2px 0 #3f3f3f;
   z-index: 2;
   z-index: 2;
  line-height: 1;
}
}


/* tooltip */
/* Tooltip */
.mctt {
.mctt {
   position: absolute;
   position: absolute;
   top: -46px;
   bottom: 100%;
   left: 0;
  left: 50%;
   background: rgba(16, 0, 16, 0.95);
  transform: translateX(-50%);
   border: 1px solid #000;
   margin-bottom: 8px;
   padding: 4px 6px;
   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: 10px;
   font-size: 12px;
   white-space: nowrap;
   white-space: nowrap;
   z-index: 3;
   z-index: 1000;
   display: none;
   display: none;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5);
  line-height: normal;
}
.mctt div {
  line-height: 1.4;
  margin: 1px 0;
}
}


/* show on hover */
/* Show on hover */
.invslot:hover .mctt {
.invslot:hover .mctt {
   display: block;
   display: block;
}
}


/* hover overlay */
/* Hover overlay */
.invslot::after {
.invslot::before {
   content: "";
   content: "";
   position: absolute;
   position: absolute;
   top: 0;
   top: 0;
   left: 0;
   left: 0;
   width: 64px;
   width: 100%;
   height: 64px;
   height: 100%;
   background: rgba(255, 255, 255, 0.25);
   background: rgba(255, 255, 255, 0);
   opacity: 0;
  z-index: 10;
   z-index: 1;
  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:hover::after {
.invslot-legendary {
   opacity: 1;
   background: #9b9b9b;
   background: rgba(255, 255, 255, 0.5);
   box-shadow: 0 0 4px rgba(255, 170, 0, 0.5);
}
}

Latest revision as of 00:18, 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;
  text-align: center;
  line-height: 64px;
}

/* Hide all the wrapper elements MediaWiki creates */
.invslot > * {
  display: inline-block;
  vertical-align: middle;
  line-height: normal;
}

/* Background image */
.invslot .invslot-bg-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 64px !important;
  height: 64px !important;
  image-rendering: pixelated !important;
  z-index: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Item image */
.invslot .invslot-item-img {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  image-rendering: pixelated !important;
  z-index: 1 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  padding: 0 !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);
  line-height: normal;
}

.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);
}