MediaWiki:Common.css: Difference between revisions

From The Character Database
No edit summary
No edit summary
Line 30: Line 30:
}
}


/* Mobile tabs */
/* Center infoboxes on mobile devices */
.mw-mf-page-actions .oo-ui-tabs-widget {
@media screen and (max-width: 767px) {
    display: flex;
    .infobox {
    flex-wrap: wrap;
        margin-left: auto;
}
        margin-right: auto;
.mw-mf-page-actions .oo-ui-tabs-tab {
        text-align: center;
     width: 50%;
     }
}
}

Revision as of 13:07, 24 April 2023

/* CSS placed here will be applied to all skins */
.infobox {
    border: 1px solid #aaa;
    background-color: #f9f9f9;
    color: black;
    margin-bottom: 0.5em;
    margin-left: 1em;
    padding: 0.2em;
    float: right;
    clear: right;
}
.infobox td,
.infobox th {
    vertical-align: top;
}
.infobox caption {
    font-size: larger;
    margin-left: inherit;
}
.infobox.bordered {
    border-collapse: collapse;
}
.infobox.bordered td,
.infobox.bordered th {
    border: 1px solid #aaa;
}
.infobox.bordered .borderless td,
.infobox.bordered .borderless th {
    border: 0;
}

/* Center infoboxes on mobile devices */
@media screen and (max-width: 767px) {
    .infobox {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}