提交 5236ed3d 编写于 作者: EvanOne(文一)'s avatar EvanOne(文一)

refactor: Adjust comment to adapt mobile

上级 60d928a7
......@@ -272,7 +272,7 @@ reward:
# See: https://github.com/imsun/gitment
gitment:
enable: true
# Github username
# Github username.
owner:
# Github repository.
repo:
......
......@@ -51,4 +51,5 @@ if theme.favicon.safari_pinned_tab
script.
var CONFIG = {
back2top_animation: !{theme.back2top.icon.animation}
};
......@@ -15,13 +15,11 @@ script.
gitment.render('gitment-container')
}
if theme.gitment.lazy
script.
if (!{theme.gitment.lazy})
function showGitment() {
document.getElementById('gitment-button').style.display = 'none';
document.getElementById('gitment-container').style.display = 'block';
renderGitment();
}
else
script.
window.onload = function () {renderGitment();};
else
renderGitment();
......@@ -26,6 +26,9 @@
float: none
margin: 0 auto
.comments
margin: 1.5rem auto 0
// $md-width: 992px
// -----------------------------------------
@media screen and (min-width: $md-width)
......@@ -157,3 +160,13 @@
.article-sort-item
margin-bottom: .5rem
.comments
.gitment-editor-tab
padding: 11px 8px
.gitment-editor-login
margin-right: 8px
.gitment-editor-footer-tip
margin-bottom: 10px
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册