Build the page scaffolding with CSS grid
Grid columns are symmetrical. From the outside in, they are: - outer margin - inner margin - wide gutter - inner gutter - main content
This commit is contained in:
parent
5dd0748e25
commit
3cbce149ba
5 changed files with 64 additions and 24 deletions
|
@ -21,6 +21,11 @@
|
|||
.content-title {
|
||||
margin-block: var(--space-xl) var(--space-l);
|
||||
|
||||
/* margin-block-start is handled by the grid */
|
||||
&:first-child, &:first-child .title {
|
||||
margin-block-start: 0;
|
||||
}
|
||||
|
||||
.title:has(+ .subtitle) {
|
||||
margin-block-end: var(--space-xs);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue