Prevent multiple reserse-footnote from overlapping (fix #439)
This commit is contained in:
parent
a1551cd740
commit
b7cc22983f
3 changed files with 6 additions and 6 deletions
|
@ -20,8 +20,8 @@ $(function() {
|
|||
|
||||
const hash = decodeURI(this.hash);
|
||||
let isFnRef = RegExp(/^#fnref:/).test(hash);
|
||||
let isFn = RegExp(/^#fn:/).test(hash);
|
||||
let selector = hash.includes(":") ? hash.replace(/\:/, "\\:") : hash;
|
||||
let isFn = isFnRef? false : RegExp(/^#fn:/).test(hash);
|
||||
let selector = hash.includes(":") ? hash.replace(/\:/g, "\\:") : hash;
|
||||
let target = $(selector);
|
||||
|
||||
if (target.length) {
|
||||
|
|
|
@ -319,10 +319,10 @@ footer {
|
|||
.reversefootnote {
|
||||
@at-root a#{&} {
|
||||
font-size: 0.6rem;
|
||||
position: absolute;
|
||||
line-height: 1;
|
||||
padding-top: 0.5em;
|
||||
margin-left: 0.5em;
|
||||
position: relative;
|
||||
bottom: 0.25em;
|
||||
margin-left: 0.25em;
|
||||
border-bottom-style: none !important;
|
||||
}
|
||||
}
|
||||
|
|
2
assets/js/dist/post.min.js
vendored
2
assets/js/dist/post.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue