Jump to content

MediaWiki:Common.css: Difference between revisions

From National War Memorial
No edit summary
No edit summary
 
Line 94: Line 94:
.popup-text a:hover {
.popup-text a:hover {
   text-decoration: underline;
   text-decoration: underline;
}
/* --------------Three separate borders ONLY around article content -----------------*/
#mw-content-text .mw-parser-output {
  background: #ffffff;
  box-shadow:
    0 0 0 4px #FF9933,  /* Saffron */
    0 0 0 8px #FFFFFF,  /* White */
    0 0 0 12px #138808;  /* Green */
  padding: 24px;
}
}

Latest revision as of 04:50, 22 December 2025

/* Justify all wiki article text */
#mw-content-text, .mw-body-content, .mw-parser-output {
  text-align: justify;
}


/* --- VERIFIED BADGE POPUP STYLE --- */

/* Keep badge inline with heading and vertically centered */
.verified-badge {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  cursor: pointer;
}

/* Small visible badge icon (inline with title) */
.badge-icon {
  display: inline-block;
  vertical-align: middle;
}

/* Popup container */
.verified-popup {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background-color: #fff;
  border: 1px solid #e1e8ed;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 14px;
  width: 300px;
  color: #0f1419;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  z-index: 9999;
  transition: all 0.20s ease;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Reveal popup on hover (or keyboard focus if you add focus styles later) */
.verified-badge:hover .verified-popup,
.verified-badge:focus-within .verified-popup {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Title line (appears above description) */
.popup-title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 8px;
  color: #0f1419;
  line-height: 1.2;
}

/* Description: icon + text, icon visually aligns to start of first line */
.popup-description {
  display: flex;
  align-items: flex-start; /* ensures icon aligns with first line top */
  gap: 8px;
  color: #536471;
  font-size: 14px;
  line-height: 1.4;
}

/* Inline verified icon placed inside popup-description */
.inline-verified-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px; /* nudge so it lines up with the first text baseline */
}

/* Make sure long description text wraps nicely */
.popup-text {
  overflow-wrap: anywhere;
  text-align:justify;
}

/* Learn more link style */
.popup-text a {
  color: #1d9bf0;
  text-decoration: none;
  margin-left: 4px;
  
}
.popup-text a:hover {
  text-decoration: underline;
}


/* --------------Three separate borders ONLY around article content -----------------*/
#mw-content-text .mw-parser-output {
  background: #ffffff;

  box-shadow:
    0 0 0 4px #FF9933,   /* Saffron */
    0 0 0 8px #FFFFFF,   /* White */
    0 0 0 12px #138808;  /* Green */

  padding: 24px;
}