restyle informational section in the new SPV
This commit is contained in:
parent
7c46a74582
commit
f0b68ff6d1
4 changed files with 42 additions and 22 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
app.views.SinglePostInteractions = app.views.Base.extend({
|
app.views.SinglePostInteractions = app.views.Base.extend({
|
||||||
templateName: "single-post-viewer/single-post-interactions",
|
templateName: "single-post-viewer/single-post-interactions",
|
||||||
|
tooltipSelector: ".avatar.micro",
|
||||||
|
|
||||||
subviews: {
|
subviews: {
|
||||||
'#comments': 'commentStreamView'
|
'#comments': 'commentStreamView'
|
||||||
|
|
|
||||||
|
|
@ -35,4 +35,8 @@
|
||||||
&.large {
|
&.large {
|
||||||
font-size: 2.5em;
|
font-size: 2.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.middle {
|
||||||
|
font-size: 1.5em;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -92,10 +92,7 @@
|
||||||
left: -1px;
|
left: -1px;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
padding-left: 2.5%;
|
padding-left: 2.5%;
|
||||||
#likes, #reshares, #comments-meta {
|
.comments .comment {
|
||||||
padding-bottom: 5px;
|
|
||||||
}
|
|
||||||
.comment {
|
|
||||||
border-bottom: solid 1px #cccccc;
|
border-bottom: solid 1px #cccccc;
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
|
|
@ -117,6 +114,20 @@
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
}
|
}
|
||||||
|
.count {
|
||||||
|
width: 12.8%;
|
||||||
|
text-align: right;
|
||||||
|
i {
|
||||||
|
display: inline-block;
|
||||||
|
text-align: center;
|
||||||
|
width: 25px;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#reshares .count i { text-align: left; }
|
||||||
|
.persons {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.comment {
|
.comment {
|
||||||
|
|
|
||||||
|
|
@ -1,31 +1,35 @@
|
||||||
{{#if resharesCount}}
|
{{#if resharesCount}}
|
||||||
<div id='reshares'>
|
<div class='row' id='reshares'>
|
||||||
<span class='label reshare'>
|
<div class='span2 count'>
|
||||||
<i class='icon-retweet icon-white'></i>
|
|
||||||
{{resharesCount}}
|
{{resharesCount}}
|
||||||
</span>
|
<i class='entypo retweet middle gray'></i>
|
||||||
{{#each reshares}}
|
</div>
|
||||||
{{{personImage author 'small' "micro"}}}
|
<div class='span10 persons'>
|
||||||
{{/each}}
|
{{#each reshares}}
|
||||||
|
{{{personImage author 'small' 'micro'}}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if likesCount}}
|
{{#if likesCount}}
|
||||||
<div id='likes'>
|
<div class='row' id='likes'>
|
||||||
<span class='label like'>
|
<div class='span2 count'>
|
||||||
<i class='icon-heart icon-white'></i>
|
|
||||||
{{likesCount}}
|
{{likesCount}}
|
||||||
</span>
|
<i class='entypo heart middle gray'></i>
|
||||||
{{#each likes}}
|
</div>
|
||||||
{{{personImage author 'small' "micro"}}}
|
<div class='span10 persons'>
|
||||||
{{/each}}
|
{{#each likes}}
|
||||||
|
{{{personImage author 'small' 'micro'}}}
|
||||||
|
{{/each}}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if commentsCount}}
|
{{#if commentsCount}}
|
||||||
<div id='comments-meta'>
|
<div class='row' id='comments-meta'>
|
||||||
<span class='label comments'>
|
<div class='span2 count'>
|
||||||
<i class='icon-comment icon-white'></i>
|
|
||||||
{{commentsCount}}
|
{{commentsCount}}
|
||||||
</span>
|
<i class='entypo comment middle gray'></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div id='comments'>
|
<div id='comments'>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue