Skip to content

Commit be008ae

Browse files
committed
perf(style):components style optimize
1 parent a5ae7e5 commit be008ae

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.vitepress/theme/components/ArticleMetadata/ArticleMetadata.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,10 @@ const handleTagClick = (tag: string) => {
9191
<style scoped>
9292
.ArticleMetadata-word {
9393
color: var(--custom-text);
94-
font-family: monospace;
9594
white-space: nowrap;
9695
width: fit-content;
9796
min-width: 200px;
98-
font-size: 0.75em;
97+
font-size: 0.72em;
9998
font-weight: bolder;
10099
}
101100

.vitepress/theme/components/PostList/PostList.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -134,16 +134,17 @@ const processedPosts = computed(() => {
134134
}
135135
136136
.post-title {
137-
font-family: monospace;
137+
font-weight: bolder;
138138
text-decoration: none;
139139
word-break: break-word;
140140
flex-shrink: 0;
141+
font-size: 0.95em;
141142
}
142143
143144
.post-tags {
144145
color: gray;
145-
font-family: monospace;
146-
font-size: 0.76em;
146+
font-weight: bolder;
147+
font-size: 0.72em;
147148
font-weight: bolder;
148149
}
149150
@@ -166,9 +167,8 @@ const processedPosts = computed(() => {
166167
.post-update,
167168
.post-date {
168169
color: var(--custom-text);
169-
font-family: monospace;
170-
font-size: 0.76em;
171170
font-weight: bolder;
171+
font-size: 0.72em;
172172
}
173173
174174
/* 移动端适配 */

0 commit comments

Comments
 (0)