Replace content paragraph top margin with margin-block-start

This commit is contained in:
Helen Chong 2024-10-20 21:33:04 +08:00
parent 4a6f926f27
commit dfd9c0e5f6
2 changed files with 4 additions and 4 deletions

View File

@ -109,7 +109,7 @@
.blog__post--pagination { .blog__post--pagination {
padding-top: 1em; padding-top: 1em;
margin-top: 2.5em; margin-block-start: 2.5em;
border-top: 0.1em solid var(--clr-title-border); border-top: 0.1em solid var(--clr-title-border);
} }

View File

@ -24,10 +24,10 @@ content-wrapper,
} }
.content > * + .h2, .content > * + .h2,
.content__section > * + .h2 { margin-top: 2em; } .content__section > * + .h2 { margin-block-start: 2em; }
.content > * + :not([class]), .content > * + :not([class]),
.content__section > * + :not([class]) { margin-top: var(--sz-paragraph-margin); } .content__section > * + :not([class]) { margin-block-start: var(--sz-paragraph-margin); }
.content ul:not([class]), .content ol:not([class]) { .content ul:not([class]), .content ol:not([class]) {
display: grid; display: grid;
@ -35,7 +35,7 @@ content-wrapper,
} }
.content ul ul, .content ol ol, .content ul ul, .content ol ol,
.content ul ol, .content ol ul { margin-top: var(--sz-content-list-gap); } .content ul ol, .content ol ul { margin-block-start: var(--sz-content-list-gap); }
.sidebar--sticky { .sidebar--sticky {
position: sticky; position: sticky;