MediaWiki:Common.css: Difference between revisions
Appearance
Deleatur yhe (talk | contribs) No edit summary |
Deleatur yhe (talk | contribs) No edit summary |
||
| Line 92: | Line 92: | ||
box-sizing: border-box; | box-sizing: border-box; | ||
} | } | ||
} | |||
.mw-body-content { | |||
max-width: 100%; | |||
} | |||
.mw-parser-output { | |||
line-height: 1.6; | |||
} | |||
.mw-parser-output h2 { | |||
border-bottom: 1px solid #a2a9b1; | |||
font-size: 1.5em; | |||
font-weight: normal; | |||
margin-top: 1em; | |||
padding-bottom: 0.2em; | |||
} | |||
.mw-parser-output h3 { | |||
font-size: 1.2em; | |||
margin-top: 0.8em; | |||
} | |||
.mw-parser-output table.wikitable { | |||
border-collapse: collapse; | |||
background-color: #f8f9fa; | |||
} | |||
.mw-parser-output table.wikitable th { | |||
background-color: #eaecf0; | |||
font-weight: bold; | |||
} | |||
.mw-parser-output table.wikitable th, | |||
.mw-parser-output table.wikitable td { | |||
border: 1px solid #a2a9b1; | |||
padding: 0.3em 0.5em; | |||
} | } | ||
Revision as of 18:23, 16 September 2026
/* Wikipedia-style biography infobox */
.infobox {
border: 1px solid #a2a9b1;
border-spacing: 3px;
background-color: #f8f9fa;
color: #202122;
margin: 0.5em 0 0.5em 1em;
padding: 0.2em;
width: 22em;
float: right;
clear: right;
font-size: 88%;
line-height: 1.5em;
}
.infobox caption,
.infobox-above {
font-size: 125%;
font-weight: bold;
text-align: center;
}
.infobox th {
text-align: left;
vertical-align: top;
white-space: normal;
}
.infobox td {
vertical-align: top;
}
.infobox-above,
.infobox-header {
text-align: center;
font-weight: bold;
}
.infobox-above {
background-color: #b0c4de;
padding: 0.25em;
}
.infobox-native_name {
text-align: center;
font-size: 105%;
}
.infobox-image {
text-align: center;
}
.infobox-image img {
max-width: 100%;
height: auto;
}
.infobox-caption {
text-align: center;
font-size: 90%;
line-height: 1.25em;
padding: 0.2em 0.3em;
}
.infobox-header {
background-color: #b0c4de;
padding: 0.2em;
}
.infobox th[scope="row"] {
background-color: transparent;
font-weight: bold;
}
.infobox td {
padding: 0.15em 0.3em;
}
/* Prevent long titles or links from forcing the box too wide */
.infobox a {
overflow-wrap: anywhere;
}
/* Small screens */
@media screen and (max-width: 720px) {
.infobox {
width: 100%;
max-width: 100%;
margin: 0.5em 0;
float: none;
clear: both;
box-sizing: border-box;
}
}
.mw-body-content {
max-width: 100%;
}
.mw-parser-output {
line-height: 1.6;
}
.mw-parser-output h2 {
border-bottom: 1px solid #a2a9b1;
font-size: 1.5em;
font-weight: normal;
margin-top: 1em;
padding-bottom: 0.2em;
}
.mw-parser-output h3 {
font-size: 1.2em;
margin-top: 0.8em;
}
.mw-parser-output table.wikitable {
border-collapse: collapse;
background-color: #f8f9fa;
}
.mw-parser-output table.wikitable th {
background-color: #eaecf0;
font-weight: bold;
}
.mw-parser-output table.wikitable th,
.mw-parser-output table.wikitable td {
border: 1px solid #a2a9b1;
padding: 0.3em 0.5em;
}