Difference between revisions of "MediaWiki:Common.css"
Jump to navigation
Jump to search
m |
m |
||
Line 5: | Line 5: | ||
border: 1px solid #aaa; | border: 1px solid #aaa; | ||
float: right; | float: right; | ||
− | margin: 0 0 1em 1em; | + | margin: 0.5em 0 1em 1em; |
padding: 1em; | padding: 1em; | ||
− | width: | + | width: 300px; |
+ | word-break: break-word; | ||
+ | font-size: 0.85em; | ||
} | } | ||
.infobox-header { | .infobox-header { | ||
− | font-size: | + | font-size: 1.5em; |
text-align: center; | text-align: center; | ||
+ | line-height: 1.4em; | ||
+ | padding: 0.5em 0; | ||
} | } | ||
.infobox-title { | .infobox-title { | ||
font-size: 1.25em; | font-size: 1.25em; | ||
text-align: center; | text-align: center; | ||
+ | line-height: 2em; | ||
+ | background-color: #bebebe; | ||
+ | font-weight: bold; | ||
} | } | ||
.infobox-image { | .infobox-image { | ||
text-align: center; | text-align: center; | ||
+ | } | ||
+ | .infobox-image img { | ||
+ | max-width: 300px; | ||
+ | height: auto; | ||
} | } | ||
.infobox-stats { | .infobox-stats { | ||
Line 28: | Line 39: | ||
.infobox td { | .infobox td { | ||
vertical-align: top; | vertical-align: top; | ||
+ | padding: 0.25em 0.5em; | ||
+ | line-height: 1.6em; | ||
} | } |
Revision as of 10:34, 19 May 2020
/* CSS placed here will be applied to all skins */
.infobox {
background: #eee;
border: 1px solid #aaa;
float: right;
margin: 0.5em 0 1em 1em;
padding: 1em;
width: 300px;
word-break: break-word;
font-size: 0.85em;
}
.infobox-header {
font-size: 1.5em;
text-align: center;
line-height: 1.4em;
padding: 0.5em 0;
}
.infobox-title {
font-size: 1.25em;
text-align: center;
line-height: 2em;
background-color: #bebebe;
font-weight: bold;
}
.infobox-image {
text-align: center;
}
.infobox-image img {
max-width: 300px;
height: auto;
}
.infobox-stats {
text-align: center;
}
.infobox th {
vertical-align: top;
}
.infobox td {
vertical-align: top;
padding: 0.25em 0.5em;
line-height: 1.6em;
}