Template:Infobox/styles.css: Difference between revisions
Appearance
Shared infobox stylesheet (TemplateStyles) |
Pair every background with an explicit text colour (report 66a) |
||
| Line 7: | Line 7: | ||
border: 1px solid #a2a9b1; | border: 1px solid #a2a9b1; | ||
background: #f8f9fa; | background: #f8f9fa; | ||
color: #202122; | |||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.4; | line-height: 1.4; | ||
| Line 36: | Line 37: | ||
.yz-infobox-header { | .yz-infobox-header { | ||
background: #dfe6ef; | background: #dfe6ef; | ||
color: #202122; | |||
text-align: center; | text-align: center; | ||
font-weight: bold; | font-weight: bold; | ||
| Line 50: | Line 52: | ||
padding: 0.35em 0.6em; | padding: 0.35em 0.6em; | ||
background: #f0f2f5; | background: #f0f2f5; | ||
color: #202122; | |||
} | } | ||
.yz-infobox-data { | .yz-infobox-data { | ||
Latest revision as of 20:13, 4 August 2026
/* Shared styles for infoboxes rendered by Module:Infobox. */
.yz-infobox {
float: right;
clear: right;
width: 22em;
margin: 0 0 1em 1em;
border: 1px solid #a2a9b1;
background: #f8f9fa;
color: #202122;
font-size: 88%;
line-height: 1.4;
}
.yz-infobox-title {
background: #2a4b6b;
color: #ffffff;
text-align: center;
font-weight: bold;
font-size: 1.15em;
padding: 0.4em 0.6em;
}
.yz-infobox-subtitle {
background: #2a4b6b;
color: #eaf0f6;
text-align: center;
font-style: italic;
padding: 0 0.6em 0.4em;
}
.yz-infobox-image {
text-align: center;
padding: 0.6em;
}
.yz-infobox-caption {
font-size: 0.9em;
color: #54595d;
padding-top: 0.3em;
}
.yz-infobox-header {
background: #dfe6ef;
color: #202122;
text-align: center;
font-weight: bold;
padding: 0.3em 0.6em;
border-top: 1px solid #c8d4e0;
}
.yz-infobox-row {
display: flex;
border-top: 1px solid #eaecf0;
}
.yz-infobox-label {
flex: 0 0 40%;
font-weight: bold;
padding: 0.35em 0.6em;
background: #f0f2f5;
color: #202122;
}
.yz-infobox-data {
flex: 1 1 auto;
padding: 0.35em 0.6em;
}