MediaWiki:Anisa.css: Difference between revisions

No edit summary
m 4 revisions imported
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
@import url("/w/index.php?title=MediaWiki:Common.css&action=raw&ctype=text/css");
/* FORCE OVERRIDE FOR ANISA */
/* ============================================================
:root {
  KH LEAF THEME - FINAL UNIFIED VERSION
    --kh-green: #3e5a47 !important;
  ============================================================ */
    --kh-yellow: #ffd700 !important;
}
 
/* Force links to Green */
a, .mw-body a { color: #3e5a47 !important; }
a:visited { color: #2d4234 !important; }
 
/* Force headers to Green */
.mw-parser-output h2,
.mw-parser-output h3 {
    border-bottom: 2px solid #3e5a47 !important;
    color: #3e5a47 !important;
}


/* 1. FONT IMPORTS (KH-Style Serifs) */
/* Version 1.0.2 - KH Leaf Unified */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700&family=Crimson+Pro:wght@400;700&display=swap');


/* 2. UNIVERSAL COLOR VARIABLES */
/* 1. UNIVERSAL COLOR VARIABLES */
:root {
:root {
     --kh-green: #3e5a47;
     --kh-green: #3e5a47;
Line 13: Line 24:
     --kh-dark-text: #2d4234;
     --kh-dark-text: #2d4234;
     --kh-light-bg: #f9fdfa;
     --kh-light-bg: #f9fdfa;
     --kh-label-bg: #f2f2f2; /* Subtle grey for the left side */
     --kh-label-bg: #f2f2f2;
     --kh-data-bg: #ffffff; /* Pure white for the right side */
     --kh-data-bg: #ffffff;
}
}


/* 3. PORTABLE INFOBOX: EDGE-TO-EDGE & SPLIT ROW FIX */
/* 2. PORTABLE INFOBOX: EDGE-TO-EDGE & SPLIT ROW FIX */
.portable-infobox {
.portable-infobox {
     width: 300px;
     width: 300px;
Line 31: Line 42:
}
}


/* Title: Kingdom Hearts Style */
.portable-infobox .pi-title {
.portable-infobox .pi-title {
     background-color: var(--kh-yellow) !important;
     background-color: var(--kh-yellow) !important;
Line 45: Line 55:
}
}


/* Headers: Green "Command Menu" style */
.portable-infobox .pi-header {
.portable-infobox .pi-header {
     background-color: var(--kh-green) !important;
     background-color: var(--kh-green) !important;
Line 58: Line 67:
}
}


/* --- THE SPLIT ROW FIX --- */
.portable-infobox .pi-data {
.portable-infobox .pi-data {
     display: flex !important; /* Forces Label and Value on the same line */
     display: flex !important;
     padding: 0 !important;   /* Allows backgrounds to hit the edge */
     padding: 0 !important;
     border-bottom: 1px solid #ddd;
     border-bottom: 1px solid #ddd;
     align-items: stretch;     /* Ensures both sides are the same height */
     align-items: stretch;
}
}


/* The Label (Left Side - Darker) */
.portable-infobox .pi-data-label {
.portable-infobox .pi-data-label {
     background-color: var(--kh-label-bg) !important;
     background-color: var(--kh-label-bg) !important;
Line 75: Line 82:
     text-transform: uppercase;
     text-transform: uppercase;
     padding: 8px 12px !important;
     padding: 8px 12px !important;
     flex: 0 0 40%; /* Locks the label to 40% width */
     flex: 0 0 40% !important;
     border-right: 1px solid #ddd;
     border-right: 1px solid #ddd;
     display: flex;
     display: flex;
Line 81: Line 88:
}
}


/* The Value (Right Side - Lighter) */
.portable-infobox .pi-data-value {
.portable-infobox .pi-data-value {
     background-color: var(--kh-data-bg) !important;
     background-color: var(--kh-data-bg) !important;
     padding: 8px 12px !important;
     padding: 8px 12px !important;
     flex: 1; /* Takes up the remaining 60% */
     flex: 1;
     font-size: 0.95em;
     font-size: 0.95em;
     display: flex;
     display: flex;
Line 91: Line 97:
}
}


/* Image Handling */
.portable-infobox .pi-image {
.portable-infobox .pi-image {
     padding: 0;
     padding: 0;
Line 104: Line 109:
}
}


/* 4. CONTENT DECORATIONS (Leaf Icons) */
/* 3. CONTENT DECORATIONS */
.mw-parser-output h2,  
.mw-parser-output h2,  
.mw-parser-output h3 {
.mw-parser-output h3 {
Line 113: Line 118:
}
}


.mw-parser-output h2::before { content: "\1F343 "; font-size: 1.2em; }
.mw-parser-output h2::before { content: "\1F343\0020"; font-size: 1.2em; }
.mw-parser-output h3::before { content: "\1F343 "; font-size: 1em; }
.mw-parser-output h3::before { content: "\1F343\0020"; font-size: 1em; }


/* 5. TABLE OF CONTENTS */
/* 4. TABLE OF CONTENTS */
#toc, .toc, .mw-toc {
#toc, .toc, .mw-toc {
     border: 2px solid var(--kh-green) !important;
     border: 2px solid var(--kh-green) !important;
Line 126: Line 131:
.toctext { color: var(--kh-green) !important; font-family: 'Cinzel', serif; }
.toctext { color: var(--kh-green) !important; font-family: 'Cinzel', serif; }


/* 6. AUTOMATIC FOOTER */
/* 5. AUTOMATIC FOOTER */
.mw-parser-output::after {
.mw-parser-output::after {
     content: "🍃\A END OF ENTRY";
     content: "\1F343\000A END OF ENTRY";
     white-space: pre !important;
     white-space: pre !important;
     display: block !important;
     display: block !important;
Line 141: Line 146:
}
}


/* 7. CLEANUP (Compatibility Shield) */
/* 6. SIDEBAR & NAVIGATION OVERRIDES */
#p-cactions h3::before,
#p-search h3::before,
.vector-menu-heading::before {
    content: none !important;
}
 
/* Styling Sidebar Headings */
.vector-menu-portal .vector-menu-heading,  
.vector-menu-portal .vector-menu-heading,  
#p-navigation h3,  
#p-navigation h3,  
Line 157: Line 155:
     letter-spacing: 1px;
     letter-spacing: 1px;
     font-weight: bold;
     font-weight: bold;
     border-bottom: 1px solid var(--kh-yellow);
     border-bottom: 1px solid var(--kh-yellow) !important;
     margin-bottom: 8px;
     margin-bottom: 8px;
}
/* 7. ANISA SPECIFIC FORCE-KILL BLUE */
.skin-anisa {
    --kh-green: #3e5a47 !important;
    --kh-yellow: #ffd700 !important;
}
.skin-anisa a { color: #3e5a47 !important; }
.skin-anisa a:visited { color: #2d4234 !important; }
.skin-anisa a.new { color: #ba0000 !important; } /* Red for broken links */
.skin-anisa .mw-parser-output h2 { border-bottom-color: #3e5a47 !important; }
/* Compatibility Shield */
#p-cactions h3::before,
#p-search h3::before,
.vector-menu-heading::before {
    content: none !important;
}
}