Skip to content

Commit

Permalink
fix: 修复部分显示bug
Browse files Browse the repository at this point in the history
  • Loading branch information
zyao89 committed Mar 1, 2020
1 parent 1f4da07 commit c3f2f21
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 9 deletions.
2 changes: 2 additions & 0 deletions theme/components/PersonalInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export default {
}
.left {
text-align: center;
&[simple] {
display: inline-block;
width: 46%;
Expand Down
11 changes: 10 additions & 1 deletion theme/components/PostInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
</template>
<!-- $page.excerpt -->
<template v-else-if="post.excerpt">
<div class="abstract" v-html="post.excerpt"></div>
<div
:class="$style.abstract"
class="theme-default-content abstract"
v-html="post.excerpt"
></div>
</template>
<!-- <Content :post-key="post.key" slot-key="summary" /> -->
</article>
Expand Down Expand Up @@ -87,5 +91,10 @@ export default {
font-size: 1.2rem;
}
}
.abstract {
padding: 0 0 1rem;
max-width: none;
}
}
</style>
17 changes: 9 additions & 8 deletions theme/styles/code.styl
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
@require '~@default-theme/styles/code'

// fixed
{$contentClass}
div[class*="language-"]
width: 100%;
margin: 0.85rem auto;
div[class*="language-"]
width: 100%;
margin: 0.85rem auto;

.custom-style-wrapper.window-controls
padding: 10px 0 0 10px;
.custom-style-wrapper.window-controls
padding: 10px 0 0 10px;

div[class*="language-"].line-numbers-mode {
.line-numbers-wrapper {
top: 28px;
margin: 0.85rem 0;
bottom: 0px;
}

&:after {
top: 34px;
bottom: 34px;
top: 46px;
bottom: 0px;
height: auto;
}
}

0 comments on commit c3f2f21

Please sign in to comment.