Small improvements to collectible pages

This commit is contained in:
DrMint 2024-06-08 21:21:18 +02:00
parent 2a34a0b60f
commit 3b4f2591a9
5 changed files with 61 additions and 47 deletions

View File

@ -53,10 +53,11 @@ const { reducedAsideWidth = false } = Astro.props;
@media (min-width: 1280.5px) {
display: grid;
justify-content: space-between;
grid-template-columns: 35rem 35rem;
gap: 5rem;
grid-template-columns: 1fr 35rem;
&.reduced-width {
grid-template-columns: 35rem 27rem;
grid-template-columns: 1fr 27rem;
}
align-items: start;

View File

@ -167,7 +167,8 @@ const { currentTheme } = Astro.locals;
p,
button,
body,
html {
html,
hr {
padding: 0;
margin: 0;
overflow-wrap: anywhere;

View File

@ -128,7 +128,7 @@ if (updatedBy) {
border: none;
border-top: 3px dotted var(--color-base-500);
margin-block: 24px;
width: 100%;
width: min(100%, 35rem);
}
#credits {

View File

@ -33,8 +33,20 @@ const { t } = await getI18n(Astro.locals.currentLocale);
& > #values {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: clamp(6px, 2vmin, 16px);
grid-template-columns: repeat(auto-fill, 270px);
@media (max-width: 600.5px) {
grid-template-columns: 1fr 1fr;
row-gap: 12px;
}
@media (max-width: 24rem) {
grid-template-columns: 1fr;
}
align-items: start;
}
}
</style>

View File

@ -154,9 +154,10 @@ if (price) {
</Fragment>
<Fragment slot="header-aside">
<div id="images">
{
thumbnail && (
(thumbnail || gallery || scans) && (
<div id="images">
{thumbnail && (
<a
id="thumbnail"
href={getLocalizedUrl(`/images/${thumbnail.id}`)}
@ -169,11 +170,9 @@ if (price) {
height={thumbnail.height}
/>
</a>
)
}
)}
{
(gallery || scans) && (
{(gallery || scans) && (
<div
id="gallery-scans"
class:list={{ "when-no-print": true, "with-two": gallery && scans }}>
@ -195,9 +194,10 @@ if (price) {
/>
)}
</div>
)}
</div>
)
}
</div>
</Fragment>
<Fragment slot="aside">