Skip to content

Commit

Permalink
Fix side/end notes with multiple paragraphs
Browse files Browse the repository at this point in the history
  • Loading branch information
Declan Chidlow committed Jan 21, 2025
1 parent 6b65387 commit 76e6610
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/assets/styles/components/footnotes.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,20 @@
right: 3rem;
max-width: 60ch;
font-size: small;
line-height: 1.5;
color: light-dark(var(--grey), var(--white));
padding-bottom: 1rem;
transition: background-color 0.25s;
border-top: 1px solid light-dark(var(--white), var(--bright_grey));

p {
border-top: 1px solid light-dark(var(--white), var(--bright_grey));
padding-top: 0.25rem;
}

> * + * {
margin-top: 0.5rem;
}

[data-footnote-backref]::after {
content: none;
}
Expand All @@ -36,11 +41,16 @@
background: light-dark(var(--bright_white), var(--black));
padding: 0.5rem 1rem;
font-size: small;
line-height: 1.5;

@media (max-width: 700px) {
inset: auto 0.8rem;
}

.footnote-content > * + * {
margin-top: 0.5rem;
}

[data-footnote-backref] {
display: none;
}
Expand Down

0 comments on commit 76e6610

Please sign in to comment.