Module:InfoboxBuilder/styles.css: Difference between revisions
Appearance
Create styles for infoboxes |
m Fix width and slightly improve rows |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
.infobox-root { | |||
float: right; | |||
width: 300px; | |||
margin: 0 0 1em 1em; | |||
background-color: var(--background-color-neutral-subtle); | |||
border: 1px solid var(--border-color-base); | |||
} | |||
.infobox-title { | .infobox-title { | ||
font-size: 125%; | font-size: 125%; | ||
} | |||
.infobox-title, .infobox-header { | |||
font-weight: bold; | font-weight: bold; | ||
text-align: center; | |||
background-color: var(--background-color-neutral); | |||
} | |||
.infobox-group { | |||
width: 100%; | |||
} | |||
.infobox-row-label { | |||
text-align: left; | |||
} | |||
@media screen and (width < 640px) { | |||
.infobox-root { | |||
float: unset; | |||
} | |||
} | |||
/* Infobox building */ | |||
.infobox-building .infobox-image { | |||
display: grid; | |||
place-items: center; | |||
min-width: 300px; | |||
min-height: 300px; | |||
} | } | ||
Latest revision as of 19:07, 25 October 2026
.infobox-root {
float: right;
width: 300px;
margin: 0 0 1em 1em;
background-color: var(--background-color-neutral-subtle);
border: 1px solid var(--border-color-base);
}
.infobox-title {
font-size: 125%;
}
.infobox-title, .infobox-header {
font-weight: bold;
text-align: center;
background-color: var(--background-color-neutral);
}
.infobox-group {
width: 100%;
}
.infobox-row-label {
text-align: left;
}
@media screen and (width < 640px) {
.infobox-root {
float: unset;
}
}
/* Infobox building */
.infobox-building .infobox-image {
display: grid;
place-items: center;
min-width: 300px;
min-height: 300px;
}