start styling fact box, center rich text content

This commit is contained in:
elise
2024-07-15 20:47:43 +02:00
parent e64fa9d1c0
commit ea5ea5cf1c
2 changed files with 8 additions and 26 deletions

View File

@ -1,7 +1,9 @@
.factBox { .factBox {
/* TODO: default fact box color if none is chosen
background: var(--color-background-secondary); 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);
&[data-background-color="betongGray"] { &[data-background-color="betongGray"] {
background-color: var(--color-betongGray); background-color: var(--color-betongGray);

View File

@ -1,25 +1,5 @@
.richTextBlock { .richTextBlock {
padding-bottom: var(--spacing-section-bottom); padding-bottom: var(--spacing-section-bottom);
display: grid;
grid-template-columns: repeat(12, 1fr);
column-gap: var(--spacing-gap-column);
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
blockquote {
grid-column: 2 / span 10;
@media (max-width: 1200px) {
grid-column: 1 / -1;
}
}
h1, h1,
h2, h2,
@ -27,7 +7,7 @@
h4, h4,
h5, h5,
h6 { h6 {
margin: var(--spacing-m) 0 var(--spacing-s); margin: var(--spacing-m) auto var(--spacing-s);
max-width: var(--size-width-p); max-width: var(--size-width-p);
} }
@ -38,14 +18,14 @@
} }
p { p {
margin: 0 0 1.4em; margin: 0 auto 1.4em;
font-size: var(--font-size-body); font-size: var(--font-size-body);
max-width: var(--size-width-p); max-width: var(--size-width-p);
} }
ul, ul,
ol { ol {
margin: 1em 0 2em; margin: 1em auto 2em;
font-size: var(--font-size-body); font-size: var(--font-size-body);
max-width: var(--size-width-p); max-width: var(--size-width-p);
list-style: none; list-style: none;
@ -100,7 +80,7 @@
font-size: 2.8rem; font-size: 2.8rem;
font-style: italic; font-style: italic;
max-width: calc(var(--size-width-p) * 1.4); max-width: calc(var(--size-width-p) * 1.4);
margin: 2rem 0 3.2rem; margin: 2rem auto 3.2rem;
} }
strong, strong,