点赞按钮调整

评论之间的间隙调整
This commit is contained in:
杨树明775174143 2018-09-28 09:50:55 +08:00
parent cd83d35231
commit fdabd4892d
4 changed files with 24 additions and 22 deletions

View File

@ -666,7 +666,7 @@ a:hover {
.commentparthalf {
margin-top: 10px;
width: 84%;
width: 88%;
padding: 0px 0px 0px 4px;
}
@ -676,7 +676,7 @@ a:hover {
.parthalf_con {
/*border-bottom: 1px solid #eee;*/
padding: 6px 6px 6px 6px;
padding: 6px 6px 0px 6px;
margin: 2px 0px 0px 0px;
font-size: 14px;
}
@ -1096,7 +1096,7 @@ pre.prettyprint {
.comment-item {
font-size: 13px;
margin-left: 12px;
width: 88%;
width:93%;
height: 56px;
margin-bottom: 10px;
border-bottom: 1px solid #eee;
@ -1121,7 +1121,7 @@ pre.prettyprint {
padding: 3px 10px;
background-color: #ccc;
display: block;
font-size: 13px;
font-size: 12px;
border-radius: 4px;
text-decoration: none!important;
}
@ -1461,7 +1461,7 @@ pre.prettyprint {
}
.wi216{
width:100%;
min-height: 150px;
min-height: 100px;
overflow-y: auto;
}
@ -1510,10 +1510,10 @@ pre.prettyprint {
min-height: 25px;
}
.newmypre{
margin: 0 0 16px 28px;
margin: 0px 0px 0px 28px;
}
.newaddmypre{
margin: 0 0 16px 18px;
margin: 0px 0px 0px 18px;
}
.newmypre{
text-indent:15px;
@ -1527,7 +1527,7 @@ pre.prettyprint {
transform: rotate(270deg) !important;
font-size: 10px;
color: #8F8986;
margin-left: 0.7px;
margin-left: 0rem;
}
.deg90{
transform: rotate(90deg) !important;
@ -1536,9 +1536,9 @@ pre.prettyprint {
margin-left: 0rem;
}
.topthumbsThis{
margin:20px 0px 0px 17px;
width: 27px;
padding-left: 7px;
padding-left: 0.2rem;
padding-top: 0.2rem;
/*width: 27px;*/
}
.topthumbsThis p{
display: flex;
@ -1548,19 +1548,22 @@ pre.prettyprint {
height: 12px;
color: #000;
text-align: center;
margin-left: 0.015rem;
margin-left: 0.018rem;
display: flex;
}
.margin003{
margin: 0 0px -3px;
}
.margin023{
margin: 0 2px -3px;
margin:0.026rem 0.018rem 0px;
}
.newtopthumbs{
margin: 4px 0px 0px 16px;
padding-left: 0.2rem;
padding-top: 0.2rem;
width: 95%;
padding-left: 8px;
}
.newtopthumbs p{
display: flex;
}
.thumbsmarginLeft{
margin-left: 2px;
@ -1718,8 +1721,8 @@ animation: myfirst 10s;
}
.borderbottombox{
width: 87%;
margin-left: 28px;
padding: 13px 3px 13px 0px !important;
margin-left: 0.26rem;
padding: 0px 0px 10px 0px !important;
}
.newItemcommentPanel .pr .commentPanel .thumbsThis .mt15 .margin003{
margin: 0 0px 0px;

View File

@ -138,7 +138,6 @@ function getCookie(name) {
var csrftoken = getCookie('csrftoken');
function show_annotation(file_id, line_num) {
$("#modify_anno_textarea").autoHeightTextarea();
ev = window.event;
if(ev==undefined){
ev=arguments.callee.caller.arguments[0]||window.event;

View File

@ -80,7 +80,7 @@
{% else %}
<p class="margin003"><i class="fa fa-play deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
{% endif %}
<p class="margin023 thumbsThisnth2 thumbsmarginLeft"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
<p class="margin023 thumbsThisnth2"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
{% if comment.id in comment_vote_map and comment_vote_map|keyValue:comment.id == -1 %}
<p><i class="fa fa-play thumbs_active deg90" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},-1)"></i> </p>
@ -158,7 +158,7 @@
{% else %}
<p class="margin003"><i class="fa fa-play deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
{% endif %}
<p class="margin023 thumbsThisnth2 thumbsmarginLeft"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
<p class="margin023 thumbsThisnth2"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
{% if comment.id in comment_vote_map and comment_vote_map|keyValue:comment.id == -1 %}
<p><i class="fa fa-play thumbs_active deg90" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},-1)"></i> </p>

View File

@ -1,7 +1,7 @@
<div class="fl thumbsThis newtopthumbs">
<div class="fl">
<p class="margin003"><i class="fa fa-play deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
<p class="margin023 thumbsThisnth2 thumbsmarginLeft"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
<p><i class="fa fa-play deg270" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},1)"></i> </p>
<p class="thumbsThisnth2 thumbsmarginLeft"><span id="comment_{{comment.pk}}">{{ comment.voteup | add:comment.votedown}}</span></p>
<p><i class="fa fa-play deg90" aria-hidden="true" onclick="thumbsComment(this,{{comment.pk}},-1)"></i> </p>
</div>
<div class="fl comment-item">