diff options
| author | eltrac <hi@eltr.ac> | 2026-03-25 13:33:22 +0800 |
|---|---|---|
| committer | eltrac <hi@eltr.ac> | 2026-03-25 13:33:22 +0800 |
| commit | 14a63e721dc4e027ae1f98c855f35453c7b474f5 (patch) | |
| tree | 31d5fae566e92db564066b1d1530344701b7a6c6 /assets | |
| parent | 82c703d45307d1773181999648a92cee6f7d9a3b (diff) | |
feat: better inline footnotes
- smaller line height
- smaller font
- smaller opacity unless hovered
- highlight ref link when targeted
Diffstat (limited to 'assets')
| -rw-r--r-- | assets/css/_markdown.scss | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/assets/css/_markdown.scss b/assets/css/_markdown.scss index 6252c210..09089996 100644 --- a/assets/css/_markdown.scss +++ b/assets/css/_markdown.scss @@ -203,6 +203,16 @@ } } } + + /* footnotes */ + + .inline-footnote { + p { margin: 0 } + } + + sup[id*="fnref"]:target { + background-color: rgba(255, 235, 0, .25); + } } /* gallery shortcode */ |
