hugo-theme-termlite/assets/css/099_page_summary.css
Eryn Wells 4d9e9e1301 Only include an <hgroup> in the page summary if there's a description to include
Otherwise just use an <h2>. Add .page-summary__heading to both elements and update
the styles.
2024-10-20 09:16:43 -07:00

52 lines
794 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);
h2 {
line-height: 1;
font-size: var(--text-l);
margin-block: 0;
}
p {
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);
}
}