File tree 1 file changed +6
-6
lines changed
packages/@vuepress/theme-default/global-components
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -14,7 +14,10 @@ export default {
14
14
},
15
15
render (h , { props, slots }) {
16
16
return h (' span' , {
17
- class: [' badge' , props .type , props .vertical ]
17
+ class: [' badge' , props .type ],
18
+ style: {
19
+ verticalAlign: props .vertical
20
+ }
18
21
}, props .text || slots ().default )
19
22
}
20
23
}
@@ -29,16 +32,13 @@ export default {
29
32
border-radius 3px
30
33
padding 0 6px
31
34
color white
32
- margin-right 5px
33
35
background-color #42 b9 83
34
- & .middle
35
- vertical-align middle
36
- & .top
37
- vertical-align top
38
36
& .tip , & .green
39
37
background-color #42 b9 83
40
38
& .error
41
39
background-color #DA 59 61 // #f66
42
40
& .warning , & .warn , & .yellow
43
41
background-color darken (#ff e5 64 , 35% )
42
+ & + &
43
+ margin-left 5px
44
44
</style >
You can’t perform that action at this time.
0 commit comments