Jump to content

MediaWiki:Common.css: Difference between revisions

From Pyrrwiki
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 2: Line 2:


.infobox {
.infobox {
     background: #eee;
     background: #f7f7f7;
     border: 1px solid #aaa;
     border: 1px solid #aaa;
     float: right;
     float: right;
Line 9: Line 9:
     width: 300px;
     width: 300px;
}
}
/* md */
@media (width <= 48rem) {
.infobox {
    width: 95%;
    float: none;
    margin: 0px auto;
    margin-top: 0.25rem;
}
}
.infobox-title {
.infobox-title {
     font-size: 1.5rem;
     font-size: 1.5rem;
Line 20: Line 30:
     text-align: center;
     text-align: center;
}
}
.infobox-table th {
.infobox-table {
     width: 120px;
     display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}
.infobox-table > span:nth-child(odd) {
    font-weight: bold;
}
}

Latest revision as of 17:59, 29 June 2025

/* CSS placed here will be applied to all skins */

.infobox {
    background: #f7f7f7;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 0.25em;
    width: 300px;
}
/* md */
@media (width <= 48rem) {
.infobox {
    width: 95%;
    float: none;
    margin: 0px auto;
    margin-top: 0.25rem;
}
}

.infobox-title {
    font-size: 1.5rem;
    text-align: center;
}
.infobox-subtitle {
    font-style: italic;
    text-align: center;
}
.infobox-image {
    text-align: center;
}
.infobox-table {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0.5rem;
}
.infobox-table > span:nth-child(odd) {
    font-weight: bold;
}