Adjust article and content child element margin

This commit is contained in:
Helen Chong 2024-04-15 14:13:01 +08:00
parent 97206f4cf4
commit 2dd63ea370
1 changed files with 5 additions and 20 deletions

View File

@ -142,6 +142,7 @@ h2, h3, h4, h5, h6 {
h2, h3 { h2, h3 {
font-size: clamp(1.55rem,1rem + 3vw,2.15rem); font-size: clamp(1.55rem,1rem + 3vw,2.15rem);
line-height: 1.2; line-height: 1.2;
margin-bottom: 0.4em;
} }
hr { hr {
@ -265,20 +266,10 @@ main {
gap: 0.2em; gap: 0.2em;
} }
.content > * + :not([class]),
.content h2, .article h2, .content__section > * + :not([class]),
.content h3, .article h3 { .article > * + :not([class]) {
margin-bottom: 0.5em; margin-top: 1.15em;
}
.content p,
.article p {
line-height: 1.6;
}
.content p:not(:last-child),
.article p:not(:last-child) {
padding-bottom: 1em;
} }
.left-sidebar, .left-sidebar,
@ -538,12 +529,6 @@ main {
gap: 0.7em; gap: 0.7em;
} }
.content-list a {
display: block;
font-size: 1.3rem;
margin-bottom: 0.1em;
}
/* Pride flag backgrounds */ /* Pride flag backgrounds */
.flag-ace { .flag-ace {
background: repeating-linear-gradient( background: repeating-linear-gradient(