hugo-theme-termlite/assets/css/099_page_summary.css
Eryn Wells 9995c8d10d Downgrade page_summary headings from <h2> to <h3>
When page_summaries are rendered in sections by year, the year heading is an <h2>
so these need to be <h3> for correct heading hierarchy.
2024-10-23 11:31:30 -07:00

53 lines
828 B
CSS

/**************************
# COMPONENT: PAGE SUMMARY
**************************/
.page-summary {
grid-column: main-start / main-end;
p + & {
margin-block-start: var(--space-xl);
}
&:not(:last-child) {
margin-block-end: var(--space-xl);
}
.page-summary__heading {
margin-block: 0 var(--space-xs);
font-size: var(--text-l);
h2, h3 {
line-height: 1;
margin-block: 0;
}
p {
font-size: var(--text-m);
margin-block-start: var(--space-xs);
}
a {
color: var(--text-color-body);
&:hover {
color: var(--text-color-link);
}
}
}
.page-summary__subtitle {
color: var(--text-color-secondary);
font-family: var(--font-family-heading);
font-weight: normal;
}
> .tag {
font-size: var(--text-s);
}
}