MediaWiki:Common.css

Revision as of 04:06, 18 March 2026 by LennLeaf (talk | contribs)

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5.
/* Version 31.0 - Seamless Stack Miraheze Mirror
   Fixes: Gaps between Title, Headers, and Labels/Data
*/

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');

:root {
    --kh-green: #3e5a47;
    --kh-yellow: #ffd700;
}

/* --- 1. THE MAIN PAGE CONTAINER --- */
body {
    font-family: 'Crimson Pro', serif !important;
}

#content, .mw-body {
    background-color: #ffffff !important;
    border: 1px solid #a2a9b1 !important;
    padding: 1.5em 2em !important;
    margin: 1em auto !important;
    max-width: 1100px !important;
    display: block !important;
}

/* --- 2. THE INFOBOX (ZERO-GAP CONSTRUCTION) --- */
.portable-infobox {
    background-color: #fff !important;
    border: 1px solid #a2a9b1 !important;
    width: 270px !important;
    float: right !important;
    margin: 0 0 1em 1.2em !important;
    padding: 0 !important;
    border-spacing: 0 !important; /* Removes gaps between cells */
    border-collapse: collapse !important; /* Ensures borders touch */
    font-size: 0.88em !important;
}

/* Force all internal "group" containers to have zero margin/padding gaps */
.portable-infobox .pi-item,
.portable-infobox .pi-group,
.portable-infobox .pi-section {
    margin: 0 !important;
    padding: 0 !important;
}

/* Title Styling: Full Width and Height Fill */
.portable-infobox .pi-title {
    background-color: var(--kh-yellow) !important;
    color: #000 !important;
    font-family: 'Cinzel', serif !important;
    font-weight: bold !important;
    padding: 15px 10px !important;
    font-size: 1.25em !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    border-bottom: 1px solid #a2a9b1 !important;
}

/* Header Styling: Full Width and Height Fill */
.portable-infobox .pi-header {
    background-color: var(--kh-green) !important;
    color: #fff !important;
    font-family: 'Cinzel', serif !important;
    padding: 10px 5px !important;
    text-align: center !important;
    font-weight: bold !important;
    display: block !important;
    margin: 0 !important;
}

/* Image Container: Remove gaps around the image */
.portable-infobox .pi-image {
    padding: 0 !important; /* Miraheze usually has no padding here */
    margin: 0 !important;
    line-height: 0 !important; /* Prevents tiny gap at bottom of images */
    background-color: #fff !important;
}

.portable-infobox .pi-image img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Data Row Precision */
.pi-item.pi-data {
    display: table-row !important;
    width: 100% !important;
    margin: 0 !important;
}

.pi-data-label {
    display: table-cell !important;
    width: 40% !important;
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
    padding: 8px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    border-right: 1px solid #a2a9b1 !important;
    vertical-align: middle !important;
}

.pi-data-value {
    display: table-cell !important;
    padding: 8px !important;
    border-bottom: 1px solid #a2a9b1 !important;
    vertical-align: middle !important;
    background-color: #ffffff !important;
}

/* --- 3. TABLE OF CONTENTS (TOC) --- */
#toc, .toc {
    background-color: #f8f9fa !important;
    border: 1px solid #a2a9b1 !important;
    padding: 8px !important;
    font-size: 90% !important;
    display: table !important;
}