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