hugo-theme-termlite/assets/css/099_page_header.css
Eryn Wells 3842e25fa0 Finally adjust the spacing of the date relative to the page title
This has been bothering me for a little while. The spacing is too big. Squish them
together and give it secondary text color so it doesn't compete with the title
or body text.
2024-11-16 09:40:50 -08:00

40 lines
836 B
CSS

.page-header {
font-family: var(--font-family-monospace);
grid-column: main-start / main-end;
margin-block: var(--space-xl) var(--space-l);
/* margin-block-start is set by the grid */
&:first-child,
.page-header__title:first-child
{
margin-block-start: 0;
}
:last-child {
margin-block-end: 0;
}
.page-header__title {
font-family: var(--font-family-monospace);
font-size: var(--text-xxl);
line-height: 1.2;
margin-block: var(--space-xs);
&:only-child {
margin-block-end: 0;
}
}
.page-header__subtitle {
color: var(--text-color-secondary);
font-size: var(--text-m);
}
.page-date {
color: var(--text-color-secondary);
display: block;
font-family: var(--font-family-body);
font-size: var(--text-s);
margin-block: var(--space-xs) 0;
}
}