提交 f64c4999 编写于 作者: D Dillon

fix: mobile-toc target offset

上级 36a9b754
......@@ -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>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册