fix(style): incorrect header anchor icon position with multline headers (#2694)

Co-authored-by: Divyansh Singh <40380293+brc-dd@users.noreply.github.com>
pull/2705/head
烽宁 1 year ago committed by GitHub
parent 2ae90a2343
commit 77c1b4d3cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ h3 .VPBadge,
h4 .VPBadge, h4 .VPBadge,
h5 .VPBadge, h5 .VPBadge,
h6 .VPBadge { h6 .VPBadge {
vertical-align: top; vertical-align: text-top;
} }
h2 .VPBadge { h2 .VPBadge {

@ -36,9 +36,10 @@
} }
.vp-doc .header-anchor { .vp-doc .header-anchor {
float: left; position: absolute;
top: 0;
left: 0;
margin-left: -0.87em; margin-left: -0.87em;
padding-right: 0.23em;
font-weight: 500; font-weight: 500;
user-select: none; user-select: none;
opacity: 0; opacity: 0;
@ -74,6 +75,10 @@
} }
} }
.vp-doc h2 .header-anchor {
top: 24px;
}
/** /**
* Paragraph and inline elements * Paragraph and inline elements
* -------------------------------------------------------------------------- */ * -------------------------------------------------------------------------- */

Loading…
Cancel
Save