Jump to content

MediaWiki:Common.css: Difference between revisions

From The Final Nights
No edit summary
No edit summary
Tag: Manual revert
 
(14 intermediate revisions by the same user not shown)
Line 2: Line 2:
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
/* Infoboxes */
.full-width-image img {
.infobox {
    width: 100% !important;
border: 1px solid #a2a9b1;
    height: 100% !important;
color: black;
    object-fit: cover;
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
border-spacing: 3px;
margin: 0.5em 0;
}
}
 
.red-links a { color: #870000 !important; text-decoration: none; }
.red-links a:hover { color: #ff0000 !important; text-decoration: underline; }
/* Infobox */
@media screen {
@media screen {
.infobox {
    table.infobox,
background-color: var(--background-color-neutral-subtle, #f8f9fa);
    .infobox tr,
    .infobox th,
    .infobox td {
        background-color: transparent !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #202122 !important;
        font-family: sans-serif !important;
        white-space: normal !important;
     }
     }
}


@media (max-width: 640px) {
    table.infobox {
.infobox {
        background-color: #f8f9fa !important;
width: 100%;
        border: 1px solid #a2a9b1 !important;
}
        border-collapse: collapse !important;
   
        width: 22em;
.infobox .nowrap {
        float: right;
white-space: normal;
        margin: 0 0 1em 1em;
}
    }
}


@media (min-width: 640px) {
    .infobox-header {
.infobox {
        background-color: #cedff2 !important;
/* @noflip */
        font-weight: bold;
margin-left: 1em;
        font-family: 'Cinzel Decorative', serif !important;
/* @noflip */
        text-transform: uppercase;
float: right;
        letter-spacing: 1px;
/* @noflip */
    }
clear: right;
width: 22em;
}
}
 
.infobox-header,
.infobox-label,
.infobox-above,
.infobox-full-data,
.infobox-data,
.infobox-below,
.infobox-subheader,
.infobox-image,
.infobox-navbar,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
vertical-align: top;
}
 
.infobox-label,
.infobox-data,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-above,
.infobox .infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
}
 
.infobox-title,
/* Remove element selector when every .infobox thing is using the standard module/templates  */
.infobox caption {
padding: 0.2em;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-header,
.infobox .infobox-subheader,
.infobox .infobox-image,
.infobox .infobox-full-data,
.infobox .infobox-below {
text-align: center;
}
 
/* Remove .infobox when element selectors above are removed */
.infobox .infobox-navbar {
/* @noflip */
text-align: right;
}
}

Latest revision as of 18:25, 18 May 2026

/* CSS placed here will be applied to all skins */
@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&display=swap');
.full-width-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
}
.red-links a { color: #870000 !important; text-decoration: none; }
.red-links a:hover { color: #ff0000 !important; text-decoration: underline; }
/* Infobox */
@media screen {
    table.infobox,
    .infobox tr,
    .infobox th,
    .infobox td {
        background-color: transparent !important;
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        color: #202122 !important;
        font-family: sans-serif !important;
        white-space: normal !important;
    }

    table.infobox {
        background-color: #f8f9fa !important;
        border: 1px solid #a2a9b1 !important;
        border-collapse: collapse !important;
        width: 22em;
        float: right;
        margin: 0 0 1em 1em;
    }

    .infobox-header {
        background-color: #cedff2 !important;
        font-weight: bold;
        font-family: 'Cinzel Decorative', serif !important;
        text-transform: uppercase;
        letter-spacing: 1px;
    }
}