3
0
mirror of https://git.coop/cotech/website.git synced 2025-12-20 23:47:32 +00:00

Introduce stack to add consistent vertical spacing

The default value of `--space` here is 1.4rem, to match the
default paragraph spacing.
This commit is contained in:
Chris Lowis
2025-12-15 12:15:33 +00:00
parent 72feafaf49
commit 7b8f5c9870
2 changed files with 21 additions and 7 deletions

View File

@ -172,6 +172,20 @@ section {
padding: var(--space-sm);
}
.stack {
display: flex;
flex-direction: column;
justify-content: flex-start;
}
.stack > * {
margin-block: 0;
}
.stack > * + * {
margin-block-start: var(--space, 1.4rem);
}
.header {
display: flex;
padding: var(--space-lg) var(--space-md);