Jump to content

MediaWiki:Common.css: Difference between revisions

From Noumenapedia
No edit summary
Tag: Manual revert
No edit summary
Line 1: Line 1:
body {
/* Wikipedia-style biography infobox */
     outline: 10px solid red !important;
.infobox {
     border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: #202122;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    width: 22em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}
 
.infobox caption,
.infobox-above {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
}
 
.infobox th {
    text-align: left;
    vertical-align: top;
    white-space: normal;
}
 
.infobox td {
    vertical-align: top;
}
 
.infobox-above,
.infobox-header {
    text-align: center;
    font-weight: bold;
}
 
.infobox-above {
    background-color: #b0c4de;
    padding: 0.25em;
}
 
.infobox-native_name {
    text-align: center;
    font-size: 105%;
}
 
.infobox-image {
    text-align: center;
}
 
.infobox-image img {
    max-width: 100%;
    height: auto;
}
 
.infobox-caption {
    text-align: center;
    font-size: 90%;
    line-height: 1.25em;
    padding: 0.2em 0.3em;
}
 
.infobox-header {
    background-color: #b0c4de;
    padding: 0.2em;
}
 
.infobox th[scope="row"] {
    background-color: transparent;
    font-weight: bold;
}
 
.infobox td {
    padding: 0.15em 0.3em;
}
 
/* Prevent long titles or links from forcing the box too wide */
.infobox a {
    overflow-wrap: anywhere;
}
 
/* Small screens */
@media screen and (max-width: 720px) {
    .infobox {
        width: 100%;
        max-width: 100%;
        margin: 0.5em 0;
        float: none;
        clear: both;
        box-sizing: border-box;
    }
}
}

Revision as of 18:20, 16 September 2026

/* Wikipedia-style biography infobox */
.infobox {
    border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: #202122;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    width: 22em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
}

.infobox caption,
.infobox-above {
    font-size: 125%;
    font-weight: bold;
    text-align: center;
}

.infobox th {
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.infobox td {
    vertical-align: top;
}

.infobox-above,
.infobox-header {
    text-align: center;
    font-weight: bold;
}

.infobox-above {
    background-color: #b0c4de;
    padding: 0.25em;
}

.infobox-native_name {
    text-align: center;
    font-size: 105%;
}

.infobox-image {
    text-align: center;
}

.infobox-image img {
    max-width: 100%;
    height: auto;
}

.infobox-caption {
    text-align: center;
    font-size: 90%;
    line-height: 1.25em;
    padding: 0.2em 0.3em;
}

.infobox-header {
    background-color: #b0c4de;
    padding: 0.2em;
}

.infobox th[scope="row"] {
    background-color: transparent;
    font-weight: bold;
}

.infobox td {
    padding: 0.15em 0.3em;
}

/* Prevent long titles or links from forcing the box too wide */
.infobox a {
    overflow-wrap: anywhere;
}

/* Small screens */
@media screen and (max-width: 720px) {
    .infobox {
        width: 100%;
        max-width: 100%;
        margin: 0.5em 0;
        float: none;
        clear: both;
        box-sizing: border-box;
    }
}