Skip to content

Commit

Permalink
修复评论样式
Browse files Browse the repository at this point in the history
1. 调整评论脚本在模块的位置,修复评论在侧边栏拉开时定位不变的问题
2. 调整评论块样式,与文本宽度对齐
  • Loading branch information
huangjj27 committed Jan 29, 2022
1 parent 9c984f8 commit e36a08c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
3 changes: 3 additions & 0 deletions mytheme/css/general.css
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ h6:target::before {
.content .header:visited:hover {
text-decoration: none;
}
.content .utterances {
max-width: var(--content-max-width);
}

table {
margin: 0 auto;
Expand Down
15 changes: 7 additions & 8 deletions mytheme/index.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@
{{{ content }}}
</main>

<script src="https://utteranc.es/client.js"
repo="RustMagazine/rust_magazine_2021"
issue-term="title"
theme="github-light"
crossorigin="anonymous"
async></script>

<nav class="nav-wrapper" aria-label="Page navigation">
<!-- Mobile navigation buttons -->
{{#previous}}
Expand Down Expand Up @@ -301,13 +308,5 @@
</script>
{{/if}}
{{/if}}

<script src="https://utteranc.es/client.js"
repo="RustMagazine/rust_magazine_2021"
issue-term="title"
theme="github-light"
crossorigin="anonymous"
async></script>

</body>
</html>

0 comments on commit e36a08c

Please sign in to comment.