Jump to content

MediaWiki:Vector-2022.css: Difference between revisions

From Zenith
No edit summary
No edit summary
Tag: Manual revert
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* ==========================================================================
#mw-content-text .portable-infobox {
  PortableInfobox - Exact Wikipedia Vector (2022) Match
    box-sizing: border-box;
  ========================================================================== */
    float: right;
    clear: right;
    width: 22em;
    max-width: 100%;
    margin: 0.5em 0 1em 1em;
    padding: 0.2em;
    border: 1px solid var(--border-color-base, #a2a9b1);
    background: var(--background-color-neutral-subtle, #f8f9fa);
    color: var(--color-base, #202122);
    font-size: 88%;
    line-height: 1.5;
}
 
#mw-content-text .portable-infobox .pi-title {
    margin: 0;
    padding: 0.2em;
    background: transparent;
    color: var(--color-emphasized, var(--color-base, #202122));
    font-size: 1.25em;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}


.portable-infobox {
#mw-content-text .portable-infobox .pi-header {
     /* Precise Design Tokens from en.wikipedia.org */
     padding: 0.2em;
     --pi-background: #f8f9fa !important;            /* Wikipedia off-white body background */
     background: var(--background-color-neutral, #eaecf0);
    --pi-secondary-background: transparent !important; /* No default dark title/header boxes */
     color: var(--color-base, #202122);
     --pi-border-color: #a2a9b1 !important;           /* Standard MediaWiki UI gray border */
     font-weight: bold;
     --pi-text-color: #202122 !important;             /* Standard body text color */
     text-align: center;
     --pi-header-text-color: #000000 !important;
}


    /* Structural Framework */
#mw-content-text .portable-infobox .pi-data {
    font-family: sans-serif !important;
     display: grid;
    font-size: 88% !important;                      /* Wikipedia standard metadata text scaling */
     grid-template-columns: minmax(7em, 1fr) minmax(0, 2fr);
    line-height: 1.5em !important;
     gap: 0.2em 0.5em;
     width: 22em !important;                         /* Fixed desktop width specification */
     padding: 0.2em;
     float: right !important;
     border: 0;
    clear: right !important;
     background: transparent;
     margin: 0.5em 0 1em 1.4em !important;
     padding: 0.4em !important;                      /* Inner padding frame */
   
    /* Flattening Fandom Styles to Native Tables */
    border: 1px solid var(--pi-border-color) !important;
     border-radius: 0px !important;                   /* Strictly sharp corners, no rounded edges */
    box-shadow: none !important;                    /* Removes card-style drop shadows */
     background-color: var(--pi-background) !important;
}
}


/* Infobox Header Title (e.g., Person Name, Place Name) */
#mw-content-text .portable-infobox .pi-data-label {
.portable-infobox .pi-title {
     color: var(--color-base, #202122);
     font-size: 125% !important;                     /* Scaled up slightly */
     font-weight: bold;
     font-weight: bold !important;
    text-align: center !important;
    padding: 0.2em 0.4em !important;
    background-color: transparent !important;
    line-height: 1.2em !important;
}
}


/* Major Subsection Headers (Replaces background blocks with thin border lines) */
#mw-content-text .portable-infobox .pi-data-value {
.portable-infobox .pi-header {
     min-width: 0;
     font-size: 100% !important;
    font-weight: bold !important;
    text-align: center !important;
    background-color: transparent !important;        /* Wikipedia headers are transparent, not gray blocks */
    border: none !important;
    border-top: 1px solid var(--pi-border-color) !important; /* Thin line dividing sections */
    padding: 0.5em 0.2em 0.3em 0.2em !important;
    margin-top: 0.5em !important;
}
}


/* Image Frame Elements */
#mw-content-text .portable-infobox .pi-image {
.portable-infobox .pi-media,
    padding: 0.2em;
.portable-infobox .pi-image {
     text-align: center;
     text-align: center !important;
    padding: 0.3em 0 !important;
}
}
.portable-infobox .pi-image-caption {
 
     font-size: 92% !important;                       /* Slightly smaller caption size */
#mw-content-text .portable-infobox .pi-image img {
     line-height: 1.4em !important;
     max-width: 100%;
     color: #54595d !important;                      /* Wikipedia secondary text gray (#54595d) */
    height: auto;
     padding: 0.3em 0.5em 0 0.5em !important;
}
     text-align: left !important;                     /* Left-aligned captions */
 
#mw-content-text .portable-infobox .pi-caption {
     padding: 0.2em;
     color: var(--color-subtle, var(--color-base, #202122));
     font-size: 90%;
    line-height: 1.4;
     text-align: center;
}
}


/* Left Grid Column (Data Labels / Keys) */
#mw-content-text .portable-infobox .pi-secondary-background {
.portable-infobox .pi-data-label {
     background: transparent;
    font-weight: bold !important;
    text-align: left !important;
    padding: 0.3em 0.6em 0.3em 0.2em !important;    /* Tight text gutter padding */
    width: 35% !important;                          /* Proportional table column split */
    vertical-align: top !important;
     background: transparent !important;
}
}


/* Right Grid Column (Data Values) */
#mw-content-text .portable-infobox .pi-border-color {
.portable-infobox .pi-data-value {
     border-color: var(--border-color-base, #a2a9b1);
     text-align: left !important;
    padding: 0.3em 0.2em 0.3em 0 !important;
    vertical-align: top !important;
    background: transparent !important;
}
}


/* Clean Row Spacing fixes */
@media screen and (max-width: 720px) {
.portable-infobox .pi-data {
    #mw-content-text .portable-infobox {
    border-bottom: none !important;                 /* Prevents row dividers from breaking the look */
        float: none;
        clear: both;
        width: 100%;
        margin: 1em 0;
    }
}
}

Latest revision as of 11:13, 23 October 2026

#mw-content-text .portable-infobox {
    box-sizing: border-box;
    float: right;
    clear: right;
    width: 22em;
    max-width: 100%;
    margin: 0.5em 0 1em 1em;
    padding: 0.2em;
    border: 1px solid var(--border-color-base, #a2a9b1);
    background: var(--background-color-neutral-subtle, #f8f9fa);
    color: var(--color-base, #202122);
    font-size: 88%;
    line-height: 1.5;
}

#mw-content-text .portable-infobox .pi-title {
    margin: 0;
    padding: 0.2em;
    background: transparent;
    color: var(--color-emphasized, var(--color-base, #202122));
    font-size: 1.25em;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}

#mw-content-text .portable-infobox .pi-header {
    padding: 0.2em;
    background: var(--background-color-neutral, #eaecf0);
    color: var(--color-base, #202122);
    font-weight: bold;
    text-align: center;
}

#mw-content-text .portable-infobox .pi-data {
    display: grid;
    grid-template-columns: minmax(7em, 1fr) minmax(0, 2fr);
    gap: 0.2em 0.5em;
    padding: 0.2em;
    border: 0;
    background: transparent;
}

#mw-content-text .portable-infobox .pi-data-label {
    color: var(--color-base, #202122);
    font-weight: bold;
}

#mw-content-text .portable-infobox .pi-data-value {
    min-width: 0;
}

#mw-content-text .portable-infobox .pi-image {
    padding: 0.2em;
    text-align: center;
}

#mw-content-text .portable-infobox .pi-image img {
    max-width: 100%;
    height: auto;
}

#mw-content-text .portable-infobox .pi-caption {
    padding: 0.2em;
    color: var(--color-subtle, var(--color-base, #202122));
    font-size: 90%;
    line-height: 1.4;
    text-align: center;
}

#mw-content-text .portable-infobox .pi-secondary-background {
    background: transparent;
}

#mw-content-text .portable-infobox .pi-border-color {
    border-color: var(--border-color-base, #a2a9b1);
}

@media screen and (max-width: 720px) {
    #mw-content-text .portable-infobox {
        float: none;
        clear: both;
        width: 100%;
        margin: 1em 0;
    }
}