Skip to content

Commit

Permalink
feat(theme): allow using VPBadge classes in sidebar (#3391)
Browse files Browse the repository at this point in the history
  • Loading branch information
brc-dd committed Dec 30, 2023
1 parent d10bf42 commit 50a774e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion src/client/theme-default/components/VPBadge.vue
Expand Up @@ -14,7 +14,7 @@ withDefaults(defineProps<Props>(), {
</span>
</template>

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

0 comments on commit 50a774e

Please sign in to comment.