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 123: Line 123:
   justify-content: center;
   justify-content: center;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 12px;
   gap: 0;
   margin: 20px auto 30px auto;
   margin: 20px auto 30px auto;
   padding: 4px 0;
   padding: 4px 0;
  width: 100%;
}
}


.wm-controls .wmbtn {
.wm-controls .wmbtn {
  flex: 1 1 25%;
  text-align: center;
  height: 48px;
  line-height: 1;
   font-family: 'AngerStyles', serif;
   font-family: 'AngerStyles', serif;
   font-size: 15px;
   font-size: 15px;
   padding: 6px 14px;
   padding: 8px 0;
  box-sizing: border-box;
   border-radius: 0;
   border-radius: 0;
   background: #1a1a1a;
   background: #1a1a1a;
   text-shadow: none;
   text-shadow: none;
   box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
   box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
   cursor: pointer;
   cursor: pointer;
   transition: background 0.2s ease, color 0.2s ease;
   transition: background 0.2s ease, color 0.2s ease;
   border: 1px solid;
   border: 1px solid;
}
}


.wm-controls .wmbtn[data-group="group1"] {
.wm-controls .wmbtn[data-group="group1"] {

Revision as of 10:01, 25 August 2025

@font-face {
  font-family: 'AngerStyles';
  src: url('https://wiki.cathedralofblades.com/resources/AngerStyles.woff2') format('woff2'),
       url('https://wiki.cathedralofblades.com/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%;
  left: 50%;
  transform: translate(-50%, -15px) scale(0.85);
  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: 12;
  pointer-events: none;
}

.wm-pin:hover .box,
.wm-pin:focus .box {
  width: 380px;
  height: auto;
  opacity: 1;
  transform: translate(-50%, -105%) scale(1);
  overflow: visible;
  pointer-events: auto;
  z-index: 12;
}

/* === CARD BODY === */
.wm-pin .box .content {
  background: rgba(26, 26, 26, 0.9);
  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 BOX + TAG === */
.wm-pin .box .content .level-box {
  height: 80%;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.wm-pin .box .content .level {
  font-size: 11px;
  color: #ffaa66;
  font-weight: bold;
  letter-spacing: 0.5px;
  display: inline;
  margin: 0;
  padding: 0;
  line-height: 1;
}

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

/* === GROUP TOGGLE BUTTONS (SQUARED, THEMED) === */
.wm-controls {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  margin: 20px auto 30px auto;
  padding: 4px 0;
  width: 100%;
}

.wm-controls .wmbtn {
  flex: 1 1 25%;
  text-align: center;
  height: 48px;
  line-height: 1;
  font-family: 'AngerStyles', serif;
  font-size: 15px;
  padding: 8px 0;
  box-sizing: border-box;
  border-radius: 0;
  background: #1a1a1a;
  text-shadow: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  border: 1px solid;
}


.wm-controls .wmbtn[data-group="group1"] {
  border-color: #77ff77;
  color: #77ff77;
}
.wm-controls .wmbtn[data-group="group2"] {
  border-color: #ffff66;
  color: #ffff66;
}
.wm-controls .wmbtn[data-group="group3"] {
  border-color: #ffbb55;
  color: #ffbb55;
}
.wm-controls .wmbtn[data-group="group4"] {
  border-color: #ff6666;
  color: #ff6666;
}

.wm-controls .wmbtn:hover {
  background: #2a2a2a;
}

.wm-controls .wmbtn.active[data-group="group1"] {
  background: #77ff77;
  color: #1a1a1a;
}
.wm-controls .wmbtn.active[data-group="group2"] {
  background: #ffff66;
  color: #1a1a1a;
}
.wm-controls .wmbtn.active[data-group="group3"] {
  background: #ffbb55;
  color: #1a1a1a;
}
.wm-controls .wmbtn.active[data-group="group4"] {
  background: #ff6666;
  color: #1a1a1a;
}

/* === PIN VISIBILITY === */
.wm .wm-pin {
  display: none;
}
.wm.wm-pin-showgroup1 .wm-pin.group1,
.wm.wm-pin-showgroup2 .wm-pin.group2,
.wm.wm-pin-showgroup3 .wm-pin.group3,
.wm.wm-pin-showgroup4 .wm-pin.group4 {
  display: block;
}