MediaWiki:Common.css: Difference between revisions

From Lenn's Fun Stuff

No edit summary
No edit summary
Line 1: Line 1:
/* ============================================================
/* ============================================================
   PORTABLE INFOBOX - KINGDOM HEARTS LIGHT STYLE
   PORTABLE INFOBOX - CLEANED UP KHWIKI STYLE
   ============================================================ */
   ============================================================ */


/* 1. Main Container - Fixed width and Floated Right */
.portable-infobox {
.portable-infobox {
     background-color: #ffffff; /* White background to match your page */
     background-color: #ffffff;
     border: 2px solid #003366; /* KH Blue border */
     border: 2px solid #003366; /* Clean KH Blue instead of Red */
    border-radius: 12px;
     width: 280px;
     width: 300px;
     float: right;
     float: right;
     margin: 0 0 1em 1em;
     margin: 0 0 1em 1em;
     padding: 0;
     padding: 0;
    overflow: hidden;
     box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
     box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    color: #333; /* Dark text for readability */
     font-family: "Georgia", serif;
     font-family: "Georgia", serif;
    font-size: 12px;
    overflow: hidden;
}
}


/* Title Bar - Gradient Blue */
/* 2. Top Title Bar - Deep KH Blue */
.pi-title {
.pi-title {
     background: linear-gradient(to bottom, #0055aa 0%, #003366 100%) !important;
     background-color: #003366 !important;  
     color: #ffffff !important;
     color: #ffffff !important;
     font-size: 18px;
     font-size: 16px;
     font-weight: bold;
     font-weight: bold;
     text-align: center;
     text-align: center;
     padding: 12px;
     padding: 10px;
    border-bottom: 2px solid #000;
}
}


/* Image Area - Ensuring it's visible */
/* 3. Image Area - Clean Background */
.pi-image {
.pi-image {
     background-color: #f9f9f9;
    display: block !important;
     background-color: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    text-align: center;
     padding: 10px;
     padding: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    display: block !important;
}
}


Line 39: Line 40:
     max-width: 100% !important;
     max-width: 100% !important;
     height: auto !important;
     height: auto !important;
    /* This ensures the image isn't hidden by a 0px height error */
    display: inline-block !important;
}
}


/* Section Headers - Gold/Yellow accent */
/* 4. Section Headers */
.pi-header {
.pi-header {
     background-color: #f0f0f0 !important;
     background-color: #4a4a4a !important;
     color: #b08d1a !important; /* KH Gold */
     color: #ffffff !important;
     font-weight: bold;
     font-weight: bold;
     text-align: left;
     text-align: center;
     padding: 8px 12px !important;
     padding: 6px 0 !important;
     text-transform: uppercase;
     text-transform: uppercase;
     font-size: 11px;
     font-size: 10px;
     border-top: 1px solid #ddd;
     letter-spacing: 1px;
     border-bottom: 1px solid #ddd;
     border-top: 1px solid #333;
}
}


/* Data Rows */
/* 5. Data Rows */
.pi-data {
.pi-data {
     display: flex !important;
     display: flex !important;
     border-bottom: 1px solid #eee;
     border-bottom: 1px solid #eeeeee;
}
}


.pi-data-label {
.pi-data-label {
     background-color: #f7faff !important; /* Very light blue tint */
     background-color: #f2f2f2 !important;
     color: #004488 !important;
     color: #333 !important;
     font-weight: bold;
     font-weight: bold;
     padding: 8px;
     padding: 8px;
     width: 40% !important;
     width: 35% !important;
    font-size: 11px;
     border-right: 1px solid #ccc !important;
     border-right: 1px solid #eee;
}
}


.pi-data-value {
.pi-data-value {
    background-color: #ffffff !important;
     padding: 8px;
     padding: 8px;
     width: 60% !important;
     width: 65% !important;
    font-size: 12px;
}
}

Revision as of 23:30, 10 March 2026

/* ============================================================
   PORTABLE INFOBOX - CLEANED UP KHWIKI STYLE
   ============================================================ */

/* 1. Main Container - Fixed width and Floated Right */
.portable-infobox {
    background-color: #ffffff;
    border: 2px solid #003366; /* Clean KH Blue instead of Red */
    width: 280px;
    float: right;
    margin: 0 0 1em 1em;
    padding: 0;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.15);
    font-family: "Georgia", serif;
    font-size: 12px;
    overflow: hidden;
}

/* 2. Top Title Bar - Deep KH Blue */
.pi-title {
    background-color: #003366 !important; 
    color: #ffffff !important;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    padding: 10px;
    border-bottom: 2px solid #000;
}

/* 3. Image Area - Clean Background */
.pi-image {
    display: block !important;
    background-color: #f8f9fa !important; 
    border-bottom: 1px solid #ddd !important;
    text-align: center;
    padding: 10px;
}

.pi-image img {
    max-width: 100% !important;
    height: auto !important;
    /* This ensures the image isn't hidden by a 0px height error */
    display: inline-block !important; 
}

/* 4. Section Headers */
.pi-header {
    background-color: #4a4a4a !important;
    color: #ffffff !important;
    font-weight: bold;
    text-align: center;
    padding: 6px 0 !important;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 1px;
    border-top: 1px solid #333;
}

/* 5. Data Rows */
.pi-data {
    display: flex !important;
    border-bottom: 1px solid #eeeeee;
}

.pi-data-label {
    background-color: #f2f2f2 !important;
    color: #333 !important;
    font-weight: bold;
    padding: 8px;
    width: 35% !important;
    border-right: 1px solid #ccc !important;
}

.pi-data-value {
    background-color: #ffffff !important;
    padding: 8px;
    width: 65% !important;
}