hugo-theme-termlite/assets/css/099_content.css
Eryn Wells 3cbce149ba 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
2024-07-06 11:07:52 -07:00

44 lines
768 B
CSS

.content {
.heading {
align-items: center;
gap: 0.25em;
display: flex;
}
.heading__anchor {
/* font-family: var(--font-family-monospace); */
font-size: 60%;
text-decoration: none;
}
.codeblock {
font-family: var(--font-family-monospace);
overflow: auto;
}
}
.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);
}
.title:not(:has(+ .subtitle)), .subtitle {
margin-block-end: var(--space-m);
}
.subtitle {
color: var(--gray3);
}
.content-date {
margin-block-end: var(--space-paragraph);
}
}