MediaWiki:Vector-2022.css: Difference between revisions
Appearance
Zephyrsnoww (talk | contribs) No edit summary |
Zephyrsnoww (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
#mw-content-text .portable-infobox { | #mw-content-text .portable-infobox { | ||
box-sizing: border-box; | box-sizing: border-box; | ||
| Line 8: | Line 7: | ||
margin: 0.5em 0 1em 1em; | margin: 0.5em 0 1em 1em; | ||
padding: 0.2em; | padding: 0.2em; | ||
border: 1px solid #a2a9b1; | border: 1px solid var(--border-color-base, #a2a9b1); | ||
background: #f8f9fa; | background: var(--background-color-neutral-subtle, #f8f9fa); | ||
color: #202122; | color: var(--color-base, #202122); | ||
font-size: 88%; | font-size: 88%; | ||
line-height: 1.5; | line-height: 1.5; | ||
} | } | ||
#mw-content-text .portable-infobox .pi-title { | #mw-content-text .portable-infobox .pi-title { | ||
margin: 0; | margin: 0; | ||
padding: 0.2em; | padding: 0.2em; | ||
background: transparent; | background: transparent; | ||
color: | color: var(--color-emphasized, var(--color-base, #202122)); | ||
font-size: 1.25em; | font-size: 1.25em; | ||
font-weight: bold; | font-weight: bold; | ||
| Line 27: | Line 25: | ||
} | } | ||
#mw-content-text .portable-infobox .pi-header { | #mw-content-text .portable-infobox .pi-header { | ||
padding: 0.2em; | padding: 0.2em; | ||
background: #eaecf0; | background: var(--background-color-neutral, #eaecf0); | ||
color: | color: var(--color-base, #202122); | ||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | text-align: center; | ||
} | } | ||
#mw-content-text .portable-infobox .pi-data { | #mw-content-text .portable-infobox .pi-data { | ||
display: grid; | display: grid; | ||
| Line 47: | Line 43: | ||
#mw-content-text .portable-infobox .pi-data-label { | #mw-content-text .portable-infobox .pi-data-label { | ||
color: | color: var(--color-base, #202122); | ||
font-weight: bold; | font-weight: bold; | ||
} | } | ||
| Line 55: | Line 51: | ||
} | } | ||
#mw-content-text .portable-infobox .pi-image { | #mw-content-text .portable-infobox .pi-image { | ||
padding: 0.2em; | padding: 0.2em; | ||
| Line 68: | Line 63: | ||
#mw-content-text .portable-infobox .pi-caption { | #mw-content-text .portable-infobox .pi-caption { | ||
padding: 0.2em; | padding: 0.2em; | ||
color: var(--color-subtle, var(--color-base, #202122)); | |||
font-size: 90%; | font-size: 90%; | ||
line-height: 1.4; | line-height: 1.4; | ||
| Line 73: | Line 69: | ||
} | } | ||
#mw-content-text .portable-infobox .pi-secondary-background { | #mw-content-text .portable-infobox .pi-secondary-background { | ||
background: transparent; | background: transparent; | ||
| Line 79: | Line 74: | ||
#mw-content-text .portable-infobox .pi-border-color { | #mw-content-text .portable-infobox .pi-border-color { | ||
border-color: #a2a9b1; | border-color: var(--border-color-base, #a2a9b1); | ||
} | } | ||
@media screen and (max-width: 720px) { | @media screen and (max-width: 720px) { | ||
#mw-content-text .portable-infobox { | #mw-content-text .portable-infobox { | ||
Revision as of 11:11, 23 October 2026
#mw-content-text .portable-infobox {
box-sizing: border-box;
float: right;
clear: right;
width: 22em;
max-width: 100%;
margin: 0.5em 0 1em 1em;
padding: 0.2em;
border: 1px solid var(--border-color-base, #a2a9b1);
background: var(--background-color-neutral-subtle, #f8f9fa);
color: var(--color-base, #202122);
font-size: 88%;
line-height: 1.5;
}
#mw-content-text .portable-infobox .pi-title {
margin: 0;
padding: 0.2em;
background: transparent;
color: var(--color-emphasized, var(--color-base, #202122));
font-size: 1.25em;
font-weight: bold;
line-height: 1.3;
text-align: center;
}
#mw-content-text .portable-infobox .pi-header {
padding: 0.2em;
background: var(--background-color-neutral, #eaecf0);
color: var(--color-base, #202122);
font-weight: bold;
text-align: center;
}
#mw-content-text .portable-infobox .pi-data {
display: grid;
grid-template-columns: minmax(7em, 1fr) minmax(0, 2fr);
gap: 0.2em 0.5em;
padding: 0.2em;
border: 0;
background: transparent;
}
#mw-content-text .portable-infobox .pi-data-label {
color: var(--color-base, #202122);
font-weight: bold;
}
#mw-content-text .portable-infobox .pi-data-value {
min-width: 0;
}
#mw-content-text .portable-infobox .pi-image {
padding: 0.2em;
text-align: center;
}
#mw-content-text .portable-infobox .pi-image img {
max-width: 100%;
height: auto;
}
#mw-content-text .portable-infobox .pi-caption {
padding: 0.2em;
color: var(--color-subtle, var(--color-base, #202122));
font-size: 90%;
line-height: 1.4;
text-align: center;
}
#mw-content-text .portable-infobox .pi-secondary-background {
background: transparent;
}
#mw-content-text .portable-infobox .pi-border-color {
border-color: var(--border-color-base, #a2a9b1);
}
@media screen and (max-width: 720px) {
#mw-content-text .portable-infobox {
float: none;
clear: both;
width: 100%;
margin: 1em 0;
}
}