Template:Infobox.css: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| Line 76: | Line 76: | ||
background-size: 100% 2px; | background-size: 100% 2px; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
content: ' '; | content: ' '; | ||
min-width: calc(var(--space) * 2); | min-width: calc(var(--space) * 2); | ||
Revision as of 06:19, 9 November 2025
.info-wrapper {
float: right; max-width: 360px; font-family: 'Shippori Mincho', serif; display: grid; grid-template-rows: auto; grid-template-columns: 1fr .6fr 1fr; row-gap: var(--space);
margin-left: calc(var(--space) * 2); margin-bottom: calc(var(--space) * 2); margin-top: calc(var(--space) / 2 * -1);
padding-bottom: var(--space); border-bottom: 2px solid var(--gold-3);
}
.info-title, .info-image, .info-datablock {
grid-column: 1 / 4;
}
.info-datablock {
display: grid; grid-template-columns: 1fr .6fr 1fr; column-gap: var(--space); font-size: .9em; align-items: center; line-height: 1em;
}
dt.infobox {
line-height: 1em;
}
dt.infobox.info-title, dd.infobox.info-data, dt.infobox.info-label {
margin: unset;
}
dt.infobox.info-label {
grid-column: 1 / 2; text-align: right; font-weight: bold;
}
.info-data {
grid-column: 2 / 4; text-align: left;
}
.info-title {
font-size: 1.5em;
}
.info-title, .info-label {
}
.info-title {
display: flex; gap: calc(var(--space) / 2); text-align: center;
}
.info-title::before, .info-title::after {
display: block; background-size: 100% 2px; background-repeat: no-repeat; content: ' '; min-width: calc(var(--space) * 2); flex-grow: 1;
}
.info-title::after {
background-image: linear-gradient(90deg, transparent, var(--gold-3));
}
.info-title::before {
background-image: linear-gradient(270deg, transparent, var(--gold-3));
}