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:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user