No CSS nesting

This commit is contained in:
Joe Carstairs
2024-07-01 13:59:26 +01:00
parent 682378938d
commit 534074e66a
4 changed files with 152 additions and 165 deletions

View File

@@ -1,10 +1,8 @@
.h-feed {
/* Assumes there is at most one level of subheading for sub-dividing entries */
:is(h2, h3, h4, h5, h6) {
margin-block-start: var(--spacing-block-md);
}
.h-entry {
margin-block-start: var(--spacing-block-sm);
}
/* Assumes there is at most one level of subheading for sub-dividing entries */
.h-feed :is(h2, h3, h4, h5, h6) {
margin-block-start: var(--spacing-block-md);
}
.h-feed .h-entry {
margin-block-start: var(--spacing-block-sm);
}