Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:WorldMap/styles.css: Difference between revisions

Template page
No edit summary
No edit summary
Line 46: Line 46:
   top: 100%; /* attach to bottom of pin */
   top: 100%; /* attach to bottom of pin */
   left: 50%;
   left: 50%;
   transform: translate(-50%, -10px) scale(0.85);
   transform: translate(-50%, -15px) scale(0.85); /* moved up 5px */
   width: 0;
   width: 0;
   height: 0;
   height: 0;
Line 65: Line 65:
   height: auto;
   height: auto;
   opacity: 1;
   opacity: 1;
   transform: translate(-50%, -100%) scale(1); /* expand upward from pin */
   transform: translate(-50%, -105%) scale(1); /* adjusted for 5px upward */
   overflow: visible;
   overflow: visible;
   pointer-events: auto;
   pointer-events: auto;
Line 72: Line 72:
/* === CARD BODY === */
/* === CARD BODY === */
.wm-pin .box .content {
.wm-pin .box .content {
   background: #1a1a1a;
   background: rgba(26, 26, 26, 0.9); /* semi-transparent */
   border: 1px double #ed6912;
   border: 1px double #ed6912;
   border-radius: 8px;
   border-radius: 8px;

Revision as of 15:04, 22 August 2025

@font-face {
  font-family: 'AngerStyles';
  src: url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff2') format('woff2'),
       url('https://cathedralofblades.com/wiki/resources/AngerStyles.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

/* === CONTAINER === */
.wm {
  position: relative;
  line-height: 0;
  isolation: isolate;
  max-width: 1200px;
  margin: 0 auto;
}
.wm > .img img {
  width: 100%;
  height: auto;
  display: block;
}
.wm-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* === MARKER PINS === */
.wm-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, #ff8c00, #5a2200);
  border: 2px solid #ffbf7f;
  border-radius: 999px;
  box-shadow: 0 0 8px #ff9900;
  cursor: pointer;
  pointer-events: auto;
  z-index: 4;
}

/* === TOOLTIP PANEL === */
.wm-pin .box {
  position: absolute;
  top: 100%; /* attach to bottom of pin */
  left: 50%;
  transform: translate(-50%, -15px) scale(0.85); /* moved up 5px */
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    width 0.35s ease,
    height 0.35s ease,
    transform 0.35s ease,
    opacity 0.25s ease;
  z-index: 10;
  pointer-events: none;
}

.wm-pin:hover .box,
.wm-pin:focus .box {
  width: 320px;
  height: auto;
  opacity: 1;
  transform: translate(-50%, -105%) scale(1); /* adjusted for 5px upward */
  overflow: visible;
  pointer-events: auto;
}

/* === CARD BODY === */
.wm-pin .box .content {
  background: rgba(26, 26, 26, 0.9); /* semi-transparent */
  border: 1px double #ed6912;
  border-radius: 8px;
  box-shadow: 10px 10px 20px #000;
  padding: 12px 14px;
  color: #eee;
  font-size: 13px;
  font-family: ui-sans-serif, system-ui, sans-serif;
  line-height: 1.45;
}

/* === TITLE LINE === */
.wm-pin .box .content .title {
  font-family: 'AngerStyles', serif;
  font-size: 1.8em;
  color: #ed6912;
  margin-bottom: 6px;
}

/* === LEVEL TAG === */
.wm-pin .box .content .level {
  font-size: 11px;
  color: #ffaa66;
  font-weight: bold;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: block;
}

/* === PARAGRAPH === */
.wm-pin .box .content .desc {
  color: #e4d6c8;
  font-size: 12.5px;
  line-height: 1.4;
}