1
0
mirror of https://github.com/cotes2020/jekyll-theme-chirpy.git synced 2025-06-08 08:37:53 +00:00

Prevent multiple reserse-footnote from overlapping (fix #439)

This commit is contained in:
Cotes Chung 2021-10-31 22:56:22 +08:00
parent ca8e85a7ec
commit 0126ab6d0b
3 changed files with 6 additions and 6 deletions

View File

@ -20,8 +20,8 @@ $(function() {
const hash = decodeURI(this.hash); const hash = decodeURI(this.hash);
let isFnRef = RegExp(/^#fnref:/).test(hash); let isFnRef = RegExp(/^#fnref:/).test(hash);
let isFn = RegExp(/^#fn:/).test(hash); let isFn = isFnRef? false : RegExp(/^#fn:/).test(hash);
let selector = hash.includes(":") ? hash.replace(/\:/, "\\:") : hash; let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
let target = $(selector); let target = $(selector);
if (target.length) { if (target.length) {

View File

@ -319,10 +319,10 @@ footer {
.reversefootnote { .reversefootnote {
@at-root a#{&} { @at-root a#{&} {
font-size: 0.6rem; font-size: 0.6rem;
position: absolute;
line-height: 1; line-height: 1;
padding-top: 0.5em; position: relative;
margin-left: 0.5em; bottom: 0.25em;
margin-left: 0.25em;
border-bottom-style: none !important; border-bottom-style: none !important;
} }
} }

File diff suppressed because one or more lines are too long