Jump to content

MediaWiki:Common.css: Difference between revisions

No edit summary
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 401: Line 401:
html.skin-theme-clientpref-day .infobox-character th {
html.skin-theme-clientpref-day .infobox-character th {
   color: #ff79c6;
   color: #ff79c6;
}
/* Hide stray VisualEditor <p><br></p> after infoboxes */
.mw-parser-output .infobox + p:has(br) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
/* === Mobile Infobox Layout Fix === */
@media (max-width: 768px) {
  /* Force infoboxes to drop below text and use full width */
  .infobox {
    float: none !important;
    margin: 1em auto !important;
    width: 100% !important;
    max-width: 100% !important;
    clear: both !important;
    display: block !important;
  }
  /* Slight padding and center alignment for aesthetics */
  .infobox th,
  .infobox td {
    padding: 0.4em !important;
  }
  /* Make sure text wraps nicely */
  .infobox td,
  .infobox th {
    word-wrap: break-word !important;
  }
}
/* === Desktop: show full wordmark === */
.mw-logo-icon { display: none !important; }
.mw-logo-wordmark { display: inline-block !important; }
/* === Mobile (under 768px): hide wordmark, show square icon === */
@media (max-width: 768px) {
  .mw-logo-wordmark { display: none !important; }
  .mw-logo-icon {
    display: inline-block !important;
    content: url("https://untenables.com/images/2/26/Favicon.png");
    width: 42px;
    height: auto;
    margin-top: 4px;
  }
}
}