wrap and size fact box

This commit is contained in:
elise
2024-07-15 22:11:26 +02:00
parent 747cd6351e
commit dc17e90954
3 changed files with 17 additions and 11 deletions

View File

@ -12,14 +12,13 @@ export const FactBoxBlock = ({ block }: { block: FactBoxBlockTypeWithAlias }) =>
return <></>;
}
return (
<section
className={styles.factBox}
data-background-color={block.backgroundColor ?? ""}
>
<section className={styles.factBoxWrapper}>
<div className={styles.factBox} data-background-color={block.backgroundColor ?? ""}>
<div
className={styles.factBoxContent}
dangerouslySetInnerHTML={{ __html: block.factBoxBody }}
/>
</div>
</section>
);
};

View File

@ -1,6 +1,10 @@
.factBoxWrapper {
max-width: var(--size-width-p);
margin: 0 auto;
}
.factBox {
background: var(--color-background-secondary);
max-width: var(--size-width-p);
margin: 0 calc(var(--spacing-s) * -1);
padding: var(--spacing-s);
font-size: var(--font-size-caption);
@ -37,5 +41,9 @@
}
.factBoxContent {
ul,
ol {
margin: 1em auto 2em;
padding-left: var(--spacing-s);
}
}

View File

@ -53,7 +53,6 @@ a {
}
p {
font-size: var(--font-size-body);
max-width: var(--size-width-p);
&.lead {