Use global typography styles on Poster page layout

This commit is contained in:
2022-09-14 22:07:31 +02:00
parent 07060c8661
commit 0728491aa6
3 changed files with 19 additions and 22 deletions

View File

@@ -75,8 +75,8 @@
<aside class="poster-layout__buy"> <aside class="poster-layout__buy">
<div class="poster-layout__info"> <div class="poster-layout__info">
<dl> <dl>
<dt>{capitalizeFirstLetter(product.type)}</dt> <dt class="title-small">{capitalizeFirstLetter(product.type)}</dt>
<dd>{shopProduct.name} {shopProduct.price}</dd> <dd class="text-info">{shopProduct.name} {shopProduct.price}</dd>
</dl> </dl>
<Button <Button
tag="button" tag="button"
@@ -114,10 +114,10 @@
<div class="poster-layout__about grid"> <div class="poster-layout__about grid">
<div class="text container"> <div class="text container">
{#if product.description} {#if product.description}
<p>{product.description}</p> <p class="headline text-large">{product.description}</p>
{/if} {/if}
{#if product.details} {#if product.details}
<p class="details">{product.details}</p> <p class="details text-xsmall">{product.details}</p>
{/if} {/if}
</div> </div>
</div> </div>

View File

@@ -142,9 +142,16 @@
// Large // Large
.text-large { .text-large {
font-size: rem(32px); font-size: rem(24px);
font-weight: 400; font-weight: 400;
line-height: 1.5; line-height: 1.4;
@include bp (sm) {
font-size: rem(28px);
}
@include bp (sd) {
font-size: rem(32px);
}
} }
// Medium // Medium

View File

@@ -73,20 +73,15 @@
// Title // Title
dt { dt {
color: $color-secondary; color: $color-secondary;
font-family: $font-serif; line-height: 1.2;
font-size: rem(36px);
line-height: 1.3;
} }
// Text // Text
dd { dd {
margin-top: 8px; margin-top: 8px;
font-size: rem(14px);
line-height: 1.4;
color: $color-gray; color: $color-gray;
@include bp (sm) { @include bp (sm) {
max-width: none; max-width: none;
font-size: rem(16px);
} }
} }
} }
@@ -177,7 +172,7 @@
white-space: pre-line; white-space: pre-line;
@include bp (sm) { @include bp (sm) {
padding: 144px 0 260px; padding: clamp(88px, 20vw, 144px) 0 clamp(256px, 20vw, 320px);
margin: -120px 0; margin: -120px 0;
} }
@@ -186,25 +181,20 @@
max-width: 768px; max-width: 768px;
margin-left: 0; margin-left: 0;
margin-right: 0; margin-right: 0;
font-size: clamp(#{rem(22px)}, 5vw, #{rem(28px)});
font-weight: 200;
@include bp (sm) { @include bp (sm) {
grid-column: 5 / span 12; grid-column: 5 / span 12;
font-size: rem(32px);
} }
} }
.headline {
font-weight: 300;
}
.details { .details {
color: $color-gray; color: $color-gray;
font-size: rem(16px);
margin-top: 32px; margin-top: 32px;
line-height: 1.5;
font-weight: 300;
@include bp (sm) { @include bp (sm) {
margin-top: 56px; margin-top: 40px;
font-size: rem(18px);
} }
} }
} }