feat(theme): allow using VPBadge classes in sidebar (#3391)

pull/3398/head
Divyansh Singh 1 year ago committed by GitHub
parent d10bf42c26
commit 50a774ea7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ withDefaults(defineProps<Props>(), {
</span> </span>
</template> </template>
<style scoped> <style>
.VPBadge { .VPBadge {
display: inline-block; display: inline-block;
margin-left: 2px; margin-left: 2px;
@ -27,6 +27,16 @@ withDefaults(defineProps<Props>(), {
transform: translateY(-2px); transform: translateY(-2px);
} }
.VPBadge.small {
padding: 0 6px;
line-height: 18px;
font-size: 11px;
}
.VPDocFooter .VPBadge {
display: none;
}
.vp-doc h1 > .VPBadge { .vp-doc h1 > .VPBadge {
margin-top: 4px; margin-top: 4px;
vertical-align: top; vertical-align: top;

Loading…
Cancel
Save