12
12
<ol class =" inline-flex items-center space-x-1 md:space-x-3" >
13
13
<li class =" inline-flex items-center" >
14
14
<a @click =" router.push('/')"
15
- class =" cursor-pointer inline-flex items-center text-sm font-medium text-gray-700 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white" >
15
+ class =" cursor-pointer inline-flex items-center text-sm font-medium text-gray-500 hover:text-blue-600 dark:text-gray-400 dark:hover:text-white" >
16
16
<svg class =" w-3 h-3 mr-2.5" aria-hidden =" true" xmlns =" http://www.w3.org/2000/svg"
17
17
fill =" currentColor" viewBox =" 0 0 20 20" >
18
18
<path
66
66
</svg > 阅读量 {{ article.readNum }}
67
67
</div >
68
68
69
- <div class =" article-content" v-viewer v-html =" article.content" v-highlightjs >
69
+ <div class =" article-content" v-viewer v-html =" article.content" v-highlight >
70
70
</div >
71
+
71
72
<!-- 标签 -->
72
73
<div class =" mt-5 mb-5" >
73
74
<div @click =" goTagArticleListPage(item.id, item.name)" v-for =" (item, index) in article.tags"
@@ -262,7 +263,7 @@ const goTagArticleListPage = (id, name) => {
262
263
color : #f8f8f2 ;
263
264
border-radius : 5px ;
264
265
padding : 32px 0 0 ;
265
- font-size : 16 px ;
266
+ font-size : 17 px ;
266
267
}
267
268
268
269
:deep(pre :before ) {
@@ -287,6 +288,20 @@ const goTagArticleListPage = (id, name) => {
287
288
font-family : -apple-system , BlinkMacSystemFont, PingFang SC, Hiragino Sans GB, Microsoft Yahei, Arial , sans-serif ;
288
289
}
289
290
291
+ :deep(.article-content h1 , .article-content h2 , .article-content h3 , .article-content h4 , .article-content h5 , .article-content h6 ) {
292
+ margin : 30px 0 10px 0 ;
293
+ color : #292525 ;
294
+ line-height : 150% ;
295
+ font-family : PingFang SC,Helvetica Neue,Helvetica ,Hiragino Sans GB,Microsoft YaHei," \5FAE\8F6F\96C5\9ED1 " ,Arial ,sans-serif ;
296
+ }
297
+
298
+ :deep(.article-content h3 ) {
299
+ font-size : 20px ;
300
+ margin-top : 40px ;
301
+ margin-bottom : 16px ;
302
+ font-weight : 600 ;
303
+ }
304
+
290
305
:deep(.image-caption ) {
291
306
min-width : 20% ;
292
307
max-width : 80% ;
@@ -306,11 +321,22 @@ const goTagArticleListPage = (id, name) => {
306
321
padding-bottom : 10px ;
307
322
}
308
323
309
- :deep(code ) {
310
- display : inline ;
324
+ :deep(code :not (pre code )) {
325
+ padding : 2px 4px ;
326
+ margin : 0 2px ;
327
+ font-size : 95% !important ;
328
+ border-radius : 4px ;
329
+ color : rgb (41 , 128 , 185 );
330
+ background-color : rgba (27 , 31 , 35 , 0.05 );
311
331
font-family : Operator Mono, Consolas, Monaco, Menlo, monospace ;
312
- border-radius : 2px ;
313
- padding : 5px ;
332
+ }
333
+
334
+ :deep(pre code ) {
335
+ display : block ;
336
+ font-size : 95% !important ;
337
+ background-color : rgba (27 , 31 , 35 , 0.05 );
338
+ font-family : Operator Mono, Consolas, Monaco, Menlo, monospace ;
339
+ /* color: #fff; */
314
340
}
315
341
316
342
:deep(article ul ) {
@@ -324,12 +350,7 @@ const goTagArticleListPage = (id, name) => {
324
350
font-size : 16px ;
325
351
}
326
352
327
- :deep(pre code ) {
328
- display : block ;
329
- font-size : 95% !important ;
330
- background-color : rgba (27 , 31 , 35 , 0.05 );
331
- font-family : Operator Mono, Consolas, Monaco, Menlo, monospace ;
332
- }
353
+
333
354
334
355
:deep(blockquote ) {
335
356
/* margin: 20px 0; */
0 commit comments