Merge pull request #53 from welpo/style/footnotes
💄♻️ update footnotes styling and refactor font variables
This commit is contained in:
commit
a8540ab499
@ -8,7 +8,7 @@ tags = ["markdown", "test"]
|
||||
|
||||
## Table
|
||||
|
||||
Here's an example of a table. Its colours change depending on the current theme.
|
||||
Here's an example of a table[^1]. Its colours change depending on the current theme.
|
||||
|
||||
| Symbol | Element | Atomic Number |
|
||||
|---------|---------|---------------|
|
||||
@ -36,3 +36,6 @@ Lorem ipsum `dolor` sit amet, `consectetur adipiscing` elit.
|
||||
> We're all hurtling towards death. Yet here we are, for the moment, alive. Each of us knowing we're going to die. Each of us secretly believing we won't.
|
||||
>
|
||||
> — Charlie Kaufman, Synecdoche, New York
|
||||
|
||||
|
||||
[^1]: And here's an example of a footnote!
|
||||
|
@ -39,11 +39,14 @@
|
||||
--normal-layout-width: 600px;
|
||||
--medium-layout-width: 350px;
|
||||
--small-layout-width: 200px;
|
||||
font-family: 'Inter', Arial, Helvetica, sans-serif;
|
||||
line-height: 190%;
|
||||
|
||||
--sans-serif-font: 'Inter', Helvetica, Arial, sans-serif;
|
||||
--serif-font: 'Source Serif Pro', 'Georgia', serif;
|
||||
--code-font: 'Cascadia Code';
|
||||
|
||||
font-family: var(--sans-serif-font);
|
||||
line-height: 190%;
|
||||
|
||||
--background-color: white;
|
||||
--bg-0: #f0f0f0;
|
||||
--bg-1: #e7e7e7;
|
||||
@ -176,7 +179,7 @@ h5 {
|
||||
}
|
||||
|
||||
p {
|
||||
font-family: 'Source Serif Pro', serif;
|
||||
font-family: var(--serif-font);
|
||||
margin-top: 0.4rem;
|
||||
margin-bottom: 2.3vmin;
|
||||
line-height: 2rem;
|
||||
|
@ -119,3 +119,21 @@ table td {
|
||||
table tbody tr:nth-child(even) {
|
||||
background-color: var(--bg-0);
|
||||
}
|
||||
|
||||
.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;
|
||||
sup {
|
||||
font-size: 0.75rem;
|
||||
margin-right: 0.15rem;
|
||||
}
|
||||
p {
|
||||
display: inline;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user