Simplify blog post spacing

Cannot remember why I did it differently before.
This commit is contained in:
Tetrakern 2024-10-14 12:35:42 +02:00
parent b769bcd5a4
commit 5488718a68
3 changed files with 5 additions and 12 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,16 +1,9 @@
:is(.blog-posts, .latest-posts) { :is(.blog-posts, .latest-posts) {
.post { .post {
padding-bottom: 1rem;
&:not(:last-child) {
padding-bottom: var(--layout-spacing-vertical);
}
&:not(:first-child) { &:not(:first-child) {
.post__header { border-top: var(--layout-hr-border);
border-top: var(--layout-hr-border); padding-top: var(--layout-spacing-vertical);
padding-top: var(--layout-spacing-vertical); margin-top: var(--layout-spacing-vertical);
}
} }
} }
} }