Skip to content

Commit

Permalink
💄 style: improve footnotes and <hr> styling
Browse files Browse the repository at this point in the history
Fixes multiple footnotes having a horizontal line above each.
  • Loading branch information
welpo committed Aug 2, 2023
1 parent 6b00aae commit a1ceb74
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
4 changes: 3 additions & 1 deletion content/blog/markdown.ca.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Exemples de Markdown"
date = 2023-01-31
updated = 2023-07-08
updated = 2023-08-02
description = "Aquesta publicació mostra alguns exemples de format en Markdown, incloent-hi una taula, blocs de codi i etiquetes, citacions, taules i notes a peu de pàgina."

[taxonomies]
Expand Down Expand Up @@ -69,4 +69,6 @@ Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.
>
> — Mercè Rodoreda, La plaça del Diamant
<hr>

[^1]: I aquí tens un exemple de nota a peu de pàgina!
4 changes: 3 additions & 1 deletion content/blog/markdown.es.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Ejemplos de Markdown"
date = 2023-01-31
updated = 2023-07-08
updated = 2023-08-02
description = "Esta publicación muestra algunos ejemplos de formato Markdown, incluyendo una tabla, bloques de código y etiquetas, citas, tablas y notas al pie de página."

[taxonomies]
Expand Down Expand Up @@ -69,4 +69,6 @@ Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.
>
> — Miguel de Unamuno, Niebla
<hr>

[^1]: ¡Y aquí tienes un ejemplo de una nota al pie de página!
3 changes: 2 additions & 1 deletion content/blog/markdown.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
+++
title = "Markdown examples"
date = 2023-01-31
updated = 2023-07-08
updated = 2023-08-02
description = "This post showcases some examples of Markdown formatting, including a table, code blocks and tags, quotes, tables, and footnotes."

[taxonomies]
Expand Down Expand Up @@ -69,5 +69,6 @@ Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.
>
> — Charlie Kaufman, Synecdoche, New York
<hr>

[^1]: And here's an example of a footnote!
13 changes: 9 additions & 4 deletions sass/parts/_misc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -112,15 +112,20 @@ a:not(.no-hover-padding):hover::before {
}
}

hr {
border: none;
height: 1px;
background-color: var(--border-color);
margin: 3.5rem 0 1rem;
}

.footnote-reference {
font-family: var(--serif-font);
font-size: 0.7rem;
}

.footnote-definition {
margin-top: 3.5rem;
border-top: 1px solid var(--border-color);
padding-top: 1rem;
margin-bottom: 0.6rem;

sup {
font-family: var(--serif-font);
Expand Down Expand Up @@ -177,7 +182,7 @@ a:not(.no-hover-padding):hover::before {
}

&::before {
background-color: transparent;
background-color: transparent;
}
}

Expand Down

0 comments on commit a1ceb74

Please sign in to comment.