122 lines
2.1 KiB
Plaintext
122 lines
2.1 KiB
Plaintext
// This file handles infobox alignment, layout and styling.
|
|
|
|
.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: subgrid;
|
|
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 {
|
|
color: var(--gold-7);
|
|
@media (prefers-color-scheme: dark) {
|
|
color: var(--gold-2);
|
|
}
|
|
}
|
|
|
|
.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;
|
|
background-position-y: 58%;
|
|
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));
|
|
}
|
|
|
|
@media (min-width: 1201px) {
|
|
|
|
.info-wrapper {
|
|
margin-right: calc(var(--space) * 18 * -1);
|
|
}
|
|
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
|
|
}
|
|
|
|
@media (max-width: 720px) {
|
|
|
|
.info-wrapper {
|
|
float: unset;
|
|
width: auto;
|
|
max-width: unset;
|
|
margin-top: none;
|
|
margin: 0;
|
|
}
|
|
|
|
.info-title:first-child {
|
|
display: none;
|
|
}
|
|
|
|
} |