Difference between revisions of "MediaWiki:Common.css"

From BTAWiki
Jump to navigation Jump to search
m
m
Line 3: Line 3:
 
/* Infobox template style */
 
/* Infobox template style */
 
.infobox {
 
.infobox {
border: 1px solid #a2a9b1;
+
    background: #dddddd;
border-spacing: 3px;
+
    border: 1px solid #aaa;
background-color: #f8f9fa;
+
    float: right;
color: black;
+
    margin: 0 0 1em 1em;
/* @noflip */
+
    padding: 1em;
margin: 0.5em 0 0.5em 1em;
+
    width: 400px;
padding: 0.2em;
 
/* @noflip */
 
float: right;
 
/* @noflip */
 
clear: right;
 
font-size: 88%;
 
line-height: 1.5em;
 
 
}
 
}
.infobox caption {
+
.infobox-title {
font-size: 125%;
+
    font-size: 2em;
font-weight: bold;
+
    text-align: center;
padding: 0.2em;
+
}t
text-align: center;
+
.infobox-image {
 +
    text-align: center;
 
}
 
}
.infobox td,
 
 
.infobox th {
 
.infobox th {
vertical-align: top;
+
    text-align: right;
/* @noflip */
+
    vertical-align: top;
text-align: left;
+
    width: 120px;
 
}
 
}
.infobox.bordered {
+
.infobox td {
border-collapse: collapse;
+
    vertical-align: top;
}
 
.infobox.bordered td,
 
.infobox.bordered th {
 
border: 1px solid #a2a9b1;
 
}
 
.infobox.bordered .borderless td,
 
.infobox.bordered .borderless th {
 
border: 0;
 
 
}
 
}

Revision as of 02:49, 16 November 2020

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

/* Infobox template style */
.infobox {
    background: #dddddd;
    border: 1px solid #aaa;
    float: right;
    margin: 0 0 1em 1em;
    padding: 1em;
    width: 400px;
}
.infobox-title {
    font-size: 2em;
    text-align: center;
}t
.infobox-image {
    text-align: center;
}
.infobox th {
    text-align: right;
    vertical-align: top;
    width: 120px;
}
.infobox td {
    vertical-align: top;
}