Template:Infobox/styles.css: Difference between revisions
Template page
More actions
Replace infobox styles with a new, less noisy version based on Wikipedia's styles |
Replace 1px border with a border radius |
||
| Line 1: | Line 1: | ||
.infobox { | .infobox { | ||
background: var(--background-color-neutral-subtle, #DEDEDE); | background: var(--background-color-neutral-subtle, #DEDEDE); | ||
border: | border: none; | ||
border-radius: var(--border-radius-large); | |||
color: var(--color-base, black); | color: var(--color-base, black); | ||
padding: 0.2em; | padding: 0.2em; | ||
Latest revision as of 03:02, 20 March 2026
.infobox {
background: var(--background-color-neutral-subtle, #DEDEDE);
border: none;
border-radius: var(--border-radius-large);
color: var(--color-base, black);
padding: 0.2em;
font-size: 88%;
line-height: 1.5em;
border-spacing: 3px;
margin: 0.5em 0;
}
@media screen {
.infobox {
background-color: var(--background-color-neutral-subtle, #f8f9fa);
}
}
@media (max-width: 640px) {
.infobox {
width: 100%;
}
.infobox .nowrap {
white-space: normal;
}
}
@media (min-width: 640px) {
.infobox {
/* @noflip */
margin-left: 1em;
/* @noflip */
float: right;
/* @noflip */
clear: right;
width: 22em;
}
}
.infobox th,
.infobox td {
/* @noflip */
text-align: left;
vertical-align: top;
}
.infobox th {
font-weight: bold;
}
.infobox th:only-child {
background: var(--color-surface-3, rgba(24, 61, 98, 0.6));
}
.infobox caption {
font-size: 125%;
font-weight: bold;
text-align: center;
padding: 0.2em;
}
.infobox .plainlinks>ul {
margin: 0;
}