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 1: Line 1:
@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;
}
.wm {
.wm {
   position: relative;
   position: relative;
Line 6: Line 14:
   margin: 0 auto;
   margin: 0 auto;
}
}
.wm > .img img {
.wm > .img img {
   width: 100%;
   width: 100%;
Line 12: Line 19:
   display: block;
   display: block;
}
}
.wm-layer {
.wm-layer {
   position: absolute;
   position: absolute;
Line 19: Line 25:
}
}


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


.wm-pin:hover .box,
/* === TOOLTIP PANEL === */
.wm-pin:focus .box {
  opacity: 1;
  transform: translate(-50%, -110%) scale(1);
  pointer-events: auto;
}
 
.wm-pin .box {
.wm-pin .box {
   position: absolute;
   position: absolute;
   left: 50%;
   left: 50%;
   top: 0;
   top: -5px;
   transform: translate(-50%, -110%) scale(0.95);
   transform: translate(-50%, -100%) scale(0.85);
  width: 0;
  height: 0;
  overflow: hidden;
   opacity: 0;
   opacity: 0;
   pointer-events: none;
   transition: width 0.4s ease, height 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
   z-index: 10;
   z-index: 10;
  clip-path: inset(0px -500px 0px 0px); /* horizontal overflow allowed */
}


  background: linear-gradient(to bottom right, rgba(10, 10, 15, 0.96), rgba(24, 28, 32, 0.94));
.wm-pin:hover .box,
  color: #e0f5ff;
.wm-pin:focus .box {
  border: 1px solid rgba(120, 180, 255, 0.35);
   width: 320px;
  border-radius: 10px;
   height: auto;
   padding: 10px 12px;
   opacity: 1;
   width: max-content;
   transform: translate(-50%, -115%) scale(1);
   max-width: 280px;
   transition: opacity 0.2s ease, transform 0.2s ease;
  font: 13px/1.45 ui-sans-serif, system-ui, sans-serif;
 
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5);
   overflow: visible;
   overflow: visible;
   white-space: normal;
   pointer-events: auto;
  word-break: break-word;
}
}


.wm-pin .box::after {
/* === CARD BODY === */
   content: "";
.wm-pin .box .content {
   position: absolute;
   background: #1a1a1a;
   left: 50%;
   border: 1px double #ed6912;
   bottom: -6px;
   border-radius: 8px;
  transform: translateX(-50%) rotate(45deg);
   box-shadow: 10px 10px 20px #000;
   width: 12px;
   padding: 12px 14px;
   height: 12px;
   color: #eee;
   background: linear-gradient(to bottom right, rgba(10, 10, 15, 0.96), rgba(24, 28, 32, 0.94));
   font-size: 13px;
   border-left: 1px solid rgba(120, 180, 255, 0.35);
   font-family: ui-sans-serif, system-ui, sans-serif;
   border-bottom: 1px solid rgba(120, 180, 255, 0.35);
   line-height: 1.45;
}
}


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


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


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

Revision as of 14:52, 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;
}

.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;
  left: 50%;
  top: -5px;
  transform: translate(-50%, -100%) scale(0.85);
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: width 0.4s ease, height 0.4s ease, transform 0.4s ease, opacity 0.3s ease;
  z-index: 10;
  clip-path: inset(0px -500px 0px 0px); /* horizontal overflow allowed */
}

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

/* === CARD BODY === */
.wm-pin .box .content {
  background: #1a1a1a;
  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;
}