MediaWiki:Common.css: Difference between revisions

MediaWiki interface page
(Created page with "→‎CSS placed here will be applied to all skins: .infobox { background: #eee; border: 1px solid #aaa; float: right; margin: 0 0 1em 1em; padding: 1em; width: 400px; } .infobox-title { font-size: 2em; text-align: center; } .infobox-image { text-align: center; } .infobox th { text-align: right; vertical-align: top; width: 120px; } .infobox td { vertical-align: top; }")
 
No edit summary
Line 1: Line 1:
/* CSS placed here will be applied to all skins */
element.style {
}
.infobox {
.infobox {
     background: #eee;
     border: 1px solid #a2a9b1;
     border: 1px solid #aaa;
     border-spacing: 3px;
    background-color: #f8f9fa;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
     float: right;
     float: right;
     margin: 0 0 1em 1em;
     clear: right;
     padding: 1em;
     font-size: 88%;
     width: 400px;
    line-height: 1.5em;
     width: 22em;
}
table {
    font-size: 100%;
}
user agent stylesheet
table {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    border-spacing: 2px;
    border-color: grey;
}
.mw-content-ltr {
    direction: ltr;
}
}
.infobox-title {
.vector-body {
     font-size: 2em;
     font-size: 0.875em;
     text-align: center;
     font-size: calc(1em * 0.875);
    line-height: 1.6;
}
}
.infobox-image {
.mw-body, .parsoid-body {
     text-align: center;
     background-color: #ffffff;
    color: #202122;
    direction: ltr;
    padding: 1em;
}
}
.infobox th {
html, body {
     text-align: right;
     font-family: sans-serif;
    vertical-align: top;
    width: 120px;
}
}
.infobox td {
html {
     vertical-align: top;
     font-size: 100%;
}
}

Revision as of 09:34, 1 August 2022

element.style {
}
.infobox {
    border: 1px solid #a2a9b1;
    border-spacing: 3px;
    background-color: #f8f9fa;
    color: black;
    margin: 0.5em 0 0.5em 1em;
    padding: 0.2em;
    float: right;
    clear: right;
    font-size: 88%;
    line-height: 1.5em;
    width: 22em;
}
table {
    font-size: 100%;
}
user agent stylesheet
table {
    display: table;
    border-collapse: separate;
    box-sizing: border-box;
    text-indent: initial;
    border-spacing: 2px;
    border-color: grey;
}
.mw-content-ltr {
    direction: ltr;
}
.vector-body {
    font-size: 0.875em;
    font-size: calc(1em * 0.875);
    line-height: 1.6;
}
.mw-body, .parsoid-body {
    background-color: #ffffff;
    color: #202122;
    direction: ltr;
    padding: 1em;
}
html, body {
    font-family: sans-serif;
}
html {
    font-size: 100%;
}