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
Tag: Reverted
Undo revision 1613 by Admornstein (talk)
Tag: Undo
Line 1: Line 1:
/* === GROUP TOGGLE BUTTONS (VERTICAL LEFT-SIDE) === */
@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;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  font-size: 0;
  z-index: 0;
}
.wm > .img {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.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;
}
.wm-pin:hover {
  z-index: 98;
}
 
/* === 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: 99;
  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;
}
 
/* === 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 === */
.wm-controls {
.wm-controls {
  position: absolute;
  top: 20px;
  left: -160px;
   display: flex;
   display: flex;
   flex-direction: column;
   flex-wrap: nowrap;
   align-items: stretch;
  justify-content: space-between;
   gap: 10px;
   align-items: center;
   width: 140px;
   margin: 0 0 10px 0;
   z-index: 100;
   padding: 0;
   width: 100%;
   font-size: 0;
   font-size: 0;
}
}


/* === BUTTON STYLE === */
.wm-controls .wmbtn {
.wm-controls .wmbtn {
   display: block;
   flex: 0 0 25%;
   width: 100%;
   text-align: center;
   padding: 12px 10px;
   height: 48px;
   font-family: 'AngerStyles', serif;
   font-family: 'AngerStyles', serif;
   font-size: 15px;
   font-size: 15px;
   text-align: center;
   padding: 12px 0;
   background: linear-gradient(145deg, #1a1a1a, #2a2a2a);
  box-sizing: border-box;
   color: #ccc;
  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;
   border: 1px solid;
   border-radius: 6px;
   margin: 0;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
}
}


/* === BUTTON COLORS === */
/* === COLOR THEMES === */
.wmbtn[data-group="group1"] {
.wm-controls .wmbtn[data-group="group1"] {
   border-color: #77ff77;
   border-color: #77ff77;
   color: #77ff77;
   color: #77ff77;
}
}
.wmbtn[data-group="group2"] {
.wm-controls .wmbtn[data-group="group2"] {
   border-color: #ffff66;
   border-color: #ffff66;
   color: #ffff66;
   color: #ffff66;
}
}
.wmbtn[data-group="group3"] {
.wm-controls .wmbtn[data-group="group3"] {
   border-color: #ffbb55;
   border-color: #ffbb55;
   color: #ffbb55;
   color: #ffbb55;
}
}
.wmbtn[data-group="group4"] {
.wm-controls .wmbtn[data-group="group4"] {
   border-color: #ff6666;
   border-color: #ff6666;
   color: #ff6666;
   color: #ff6666;
}
}
 
.wm-controls .wmbtn:hover {
/* === HOVER === */
   background: #2a2a2a;
.wmbtn:hover {
   background: linear-gradient(145deg, #2a2a2a, #1a1a1a);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.2);
}
}
 
.wm-controls .wmbtn.active[data-group="group1"] {
/* === ACTIVE === */
.wmbtn.active[data-group="group1"] {
   background: #77ff77;
   background: #77ff77;
   color: #1a1a1a;
   color: #1a1a1a;
}
}
.wmbtn.active[data-group="group2"] {
.wm-controls .wmbtn.active[data-group="group2"] {
   background: #ffff66;
   background: #ffff66;
   color: #1a1a1a;
   color: #1a1a1a;
}
}
.wmbtn.active[data-group="group3"] {
.wm-controls .wmbtn.active[data-group="group3"] {
   background: #ffbb55;
   background: #ffbb55;
   color: #1a1a1a;
   color: #1a1a1a;
}
}
.wmbtn.active[data-group="group4"] {
.wm-controls .wmbtn.active[data-group="group4"] {
   background: #ff6666;
   background: #ff6666;
   color: #1a1a1a;
   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;
}
}

Revision as of 10:58, 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;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  font-size: 0;
  z-index: 0;
}
.wm > .img {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.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;
}
.wm-pin:hover {
  z-index: 98;
}

/* === 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: 99;
  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;
}

/* === 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 === */
.wm-controls {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px 0;
  padding: 0;
  width: 100%;
  font-size: 0;
}

.wm-controls .wmbtn {
  flex: 0 0 25%;
  text-align: center;
  height: 48px;
  font-family: 'AngerStyles', serif;
  font-size: 15px;
  padding: 12px 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;
  margin: 0;
}

/* === COLOR THEMES === */
.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;
}