fix: mobile-toc target offset
This commit is contained in:
@@ -131,6 +131,15 @@
|
|||||||
.post-warp {
|
.post-warp {
|
||||||
padding-top: 6em;
|
padding-top: 6em;
|
||||||
|
|
||||||
|
.post-content {
|
||||||
|
a.post-title-target:target {
|
||||||
|
display: block;
|
||||||
|
position: relative;
|
||||||
|
top: -60px;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.categories-card {
|
.categories-card {
|
||||||
.card-item {
|
.card-item {
|
||||||
width: 95%;
|
width: 95%;
|
||||||
|
|||||||
@@ -77,6 +77,9 @@
|
|||||||
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
|
{{ $REin = `\[(.+?)\]\^\((.+?)\)` }}
|
||||||
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
|
{{ $REout = `<strong><ruby>$1<rt>$2</rt></ruby></strong>` }}
|
||||||
{{ $content = replaceRE $REin $REout $content }}
|
{{ $content = replaceRE $REin $REout $content }}
|
||||||
|
{{ $REin = `<(h[23456]) (id=".+?")>` }}
|
||||||
|
{{ $REout = `<a class="post-title-target" $2></a><$1>` }}
|
||||||
|
{{ $content = replaceRE $REin $REout $content }}
|
||||||
{{ $content | safeHTML }}
|
{{ $content | safeHTML }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user