Skip to content

Commit 0496985

Browse files
committed
feature (#155): add simple badge styles
1 parent 48fbcc1 commit 0496985

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

src/.vuepress/styles/index.styl

+10
Original file line numberDiff line numberDiff line change
@@ -156,3 +156,13 @@
156156
font-weight: bold;
157157
opacity: 1!important;
158158
}
159+
160+
.badge {
161+
background-color: #b00000;
162+
font-size: 0.8rem;
163+
border: 2px solid #b00000;
164+
border-radius: 5px;
165+
margin-right: 0.5rem;
166+
color: #fff;
167+
padding: 0.25rem 0.25rem;
168+
}

src/.vuepress/theme/styles/index.styl

+5
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,17 @@ h1, h2, h3, h4, h5, h6
119119
margin-bottom 0
120120

121121
&:first-child
122+
display flex
123+
align-items center
122124
margin-top -1.5rem
123125
margin-bottom 1rem
124126

125127
+ p, + pre, + .custom-block
126128
margin-top 2rem
127129

130+
.badge:first-of-type
131+
margin-left 0.5rem
132+
128133
&:hover .header-anchor
129134
opacity: 1
130135

0 commit comments

Comments
 (0)