Template:Invslot/styles.css

Revision as of 16:52, 2 November 2025 by Administrator (talk | contribs) (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; }...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
.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 img {
  display: block;
}

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

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