fix(posts): resume target highlighting for superscripts and footnotes (#1253)

`<sup>` and `<footnote>` are highlighted when in `:target` state, but this feature has been missing since `v6.1.0` due to an oversight in development.
This commit is contained in:
Cotes Chung
2023-09-20 04:27:32 +08:00
committed by GitHub
parent 73e171b0fb
commit 0465a985dc
2 changed files with 16 additions and 1 deletions

View File

@@ -127,6 +127,16 @@
font-weight: 600;
}
%sup-fn-target {
&:target {
background-color: var(--footnote-target-bg);
width: -moz-fit-content;
width: -webkit-fit-content;
width: fit-content;
transition: background-color 1.75s ease-in-out;
}
}
/* ---------- scss mixin --------- */
@mixin mt-mb($value) {