Skip to content

Commit

Permalink
Style footnotes and fix hr spacing
Browse files Browse the repository at this point in the history
Modified to support jakewies#159.

Co-authored-by: Diab Neiroukh <[email protected]>
  • Loading branch information
2 people authored and lzlrd committed Apr 9, 2024
1 parent 23c0f05 commit f724097
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions assets/scss/pages/post.scss
Original file line number Diff line number Diff line change
Expand Up @@ -288,3 +288,50 @@ p {
mark {
background-color: #ffee58;
}

/* footnote customization */

// Footnote ([1])
a[href^="#fn:"] {
text-decoration: none;
color: $primary;
font-family: 'monospace';
border-radius: 3px;
font-size: .75rem;
margin-left: 0.2rem;
&:hover {
background: lighten($primary, 38%);
}
&::before {
content: "[";
}
&::after {
content: "]";
}
}

// Return to footnote (↩︎)
a[href^="#fnref:"] {
text-decoration: none;
color: $primary;
border-radius: 3px;
padding: 0rem 0.2rem 0rem 0.2rem;
font-size: 0.85rem;
margin-left: 0.2rem;
&:hover {
background: lighten($primary, 38%);
}
}

// Line separating post content from the footnotes at the bottom

.footnotes {
> hr {
color: $darkGrey;
@media (prefers-color-scheme: dark) {
color: $lightGrey;
}
border-top: 1px;
margin: 1rem 0;
}
}

0 comments on commit f724097

Please sign in to comment.