Skip to content

Commit b200865

Browse files
authored
fix(theme): align badges in h1 and h2 (#5087) (closes #5063)
1 parent f119b18 commit b200865

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/client/theme-default/components/VPBadge.vue

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,14 @@ withDefaults(defineProps<Props>(), {
3939
display: none;
4040
}
4141
42-
.vp-doc h1 > .VPBadge {
43-
margin-top: 4px;
44-
vertical-align: top;
42+
.vp-doc h1 > .VPBadge,
43+
.vp-doc h2 > .VPBadge {
44+
margin: 0 0 0 2px;
45+
vertical-align: middle;
4546
}
4647
4748
.vp-doc h2 > .VPBadge {
48-
margin-top: 3px;
4949
padding: 0 8px;
50-
vertical-align: top;
5150
}
5251
5352
.vp-doc h3 > .VPBadge {

0 commit comments

Comments
 (0)