Skip to content

Commit 50a774e

Browse files
authoredDec 30, 2023
feat(theme): allow using VPBadge classes in sidebar (#3391)
1 parent d10bf42 commit 50a774e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed
 

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

+11-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ withDefaults(defineProps<Props>(), {
1414
</span>
1515
</template>
1616

17-
<style scoped>
17+
<style>
1818
.VPBadge {
1919
display: inline-block;
2020
margin-left: 2px;
@@ -27,6 +27,16 @@ withDefaults(defineProps<Props>(), {
2727
transform: translateY(-2px);
2828
}
2929
30+
.VPBadge.small {
31+
padding: 0 6px;
32+
line-height: 18px;
33+
font-size: 11px;
34+
}
35+
36+
.VPDocFooter .VPBadge {
37+
display: none;
38+
}
39+
3040
.vp-doc h1 > .VPBadge {
3141
margin-top: 4px;
3242
vertical-align: top;

0 commit comments

Comments
 (0)
Please sign in to comment.