MediaWiki:Common.css

From Lenn's Fun Stuff

Revision as of 03:47, 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 24.0 - Total Miraheze & Kingdom Hearts Style Alignment
   Combines Infobox fixes with Miraheze UI styles
*/

@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;
    --miraheze-bg: #f9fdfa;
}

/* --- 1. GLOBAL PAGE STYLING --- */
body, html {
    font-family: 'Crimson Pro', serif !important;
}

/* Main Content Area (The "White Box" look) */
.mw-body, #content {
    background-color: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 4px !important;
    padding: 1.5em !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
}

/* Headings (Miraheze/KH Serif Style) */
h1, h2, h3, .firstHeading {
    font-family: 'Cinzel', serif !important;
    color: var(--kh-green) !important;
    border-bottom: 2px solid var(--kh-green) !important;
    padding-bottom: 5px !important;
}

/* --- 2. PORTABLE INFOBOX ALIGNMENT --- */
.portable-infobox {
    background-color: #fff !important;
    border: 2px solid var(--kh-green) !important;
    width: 300px !important;
    float: right !important;
    display: flex !important;
    flex-direction: column !important;
    margin-left: 1em !important;
    margin-bottom: 1em !important;
}

/* Stretch Titles/Headers */
.portable-infobox .pi-title, 
.portable-infobox .pi-header {
    width: 100% !important;
    text-align: center !important;
    font-family: 'Cinzel', serif !important;
}

.portable-infobox .pi-title {
    background-color: var(--kh-yellow) !important;
    color: #2d4234 !important;
    padding: 10px !important;
}

.portable-infobox .pi-header {
    background-color: var(--kh-green) !important;
    color: #fff !important;
    padding: 6px !important;
}

/* Label/Data Alignment */
.pi-item.pi-data {
    display: flex !important;
    border-bottom: 1px solid #ddd !important;
}

.pi-data-label {
    flex: 0 0 40% !important;
    background-color: #f2f2f2 !important;
    font-weight: bold !important;
    padding: 8px !important;
    border-right: 1px solid #ddd !important;
}

.pi-data-value {
    flex: 1 !important;
    padding: 8px !important;
}

/* --- 3. COSMOS SKIN SIDEBAR TWEAKS --- */
.cosmos-sidebar {
    font-family: 'Crimson Pro', serif !important;
}

.cosmos-sidebar .sidebar-title {
    font-family: 'Cinzel', serif !important;
    color: var(--kh-yellow) !important;
}