Merge pull request #4426 from Flaburgan/fix-padding-spv

[Ready to merge] fix padding between panels
This commit is contained in:
Jason Robinson 2014-04-13 15:08:29 +03:00
commit 07ae7d7862
3 changed files with 32 additions and 27 deletions

View file

@ -23,6 +23,7 @@ Read more in [#4249](https://github.com/diaspora/diaspora/pull/4249) and [#4883]
* Port notifications and hovercards to Bootstrap [#4814](https://github.com/diaspora/diaspora/pull/4814) * Port notifications and hovercards to Bootstrap [#4814](https://github.com/diaspora/diaspora/pull/4814)
* Replace .rvmrc by .ruby-version and .ruby-gemset [#4854](https://github.com/diaspora/diaspora/pull/4855) * Replace .rvmrc by .ruby-version and .ruby-gemset [#4854](https://github.com/diaspora/diaspora/pull/4855)
* Reorder and reword items on user settings page [#4912](https://github.com/diaspora/diaspora/pull/4912) * Reorder and reword items on user settings page [#4912](https://github.com/diaspora/diaspora/pull/4912)
* SPV: Improve padding and interaction counts [#4426](https://github.com/diaspora/diaspora/pull/4426)
## Bug fixes ## Bug fixes
* Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280) * Improve time agos by updating the plugin [#4280](https://github.com/diaspora/diaspora/issues/4280)
@ -372,7 +373,6 @@ Updated:
* webmock 1.11.0 -> 1.13.0 * webmock 1.11.0 -> 1.13.0
* xpath 0.1.4 -> 2.0.0 * xpath 0.1.4 -> 2.0.0
# 0.1.1.0 # 0.1.1.0
## Refactor ## Refactor

View file

@ -3,6 +3,8 @@
} }
#single-post-content { #single-post-content {
border-right: solid 1px #cccccc;
padding-right: 12px;
#head { #head {
padding-bottom: 10px; padding-bottom: 10px;
border-bottom: 1px solid $border-grey; border-bottom: 1px solid $border-grey;
@ -44,7 +46,7 @@
display: block; display: block;
font-size: 12px; font-size: 12px;
} }
.avatar { .avatar {
height: 30px; height: 30px;
width: 30px; width: 30px;
} }
@ -80,9 +82,7 @@
} }
} }
} }
border-right: solid 1px #cccccc;
padding-right: 10px;
#body { #body {
margin-left: 20px; margin-left: 20px;
padding-top: 20px; padding-top: 20px;
@ -129,7 +129,8 @@
position: relative; position: relative;
left: -1px; left: -1px;
margin-left: 0; margin-left: 0;
padding-left: 2.5%; padding-left: 15px;
.comments .comment { .comments .comment {
border-bottom: solid 1px #cccccc; border-bottom: solid 1px #cccccc;
padding-top: 10px; padding-top: 10px;
@ -164,18 +165,22 @@
font-size: smaller; font-size: smaller;
} }
.count { .count {
width: 12.8%;
text-align: right;
i { i {
display: inline-block; display: inline-block;
text-align: center; text-align: center;
width: 25px; width: 25px;
vertical-align: middle; vertical-align: middle;
} }
span {
margin-left: -3px;
width: 30px;
display: inline-block;
text-align: center;
}
} }
#reshares .count i { text-align: left; } #reshares, #likes, #comments-meta {
.persons { margin-left: 7px;
margin-left: 5px; margin-bottom: 8px;
} }
} }

View file

@ -1,39 +1,39 @@
{{#if resharesCount}} {{#if resharesCount}}
<div class='row' id='reshares'> <div id='reshares'>
<div class='span2 count'> <span class="count">
{{resharesCount}}
<i class='entypo retweet middle gray'></i> <i class='entypo retweet middle gray'></i>
</div> <span>{{resharesCount}}</span>
<div class='span10 persons'> </span>
<span>
{{#each reshares}} {{#each reshares}}
{{#linkToPerson author}} {{#linkToPerson author}}
{{{personImage this 'small' 'micro'}}} {{{personImage this 'small' 'micro'}}}
{{/linkToPerson}} {{/linkToPerson}}
{{/each}} {{/each}}
</div> </span>
</div> </div>
{{/if}} {{/if}}
{{#if likesCount}} {{#if likesCount}}
<div class='row' id='likes'> <div id='likes'>
<div class='span2 count'> <span class="count">
{{likesCount}}
<i class='entypo heart middle gray'></i> <i class='entypo heart middle gray'></i>
</div> <span>{{likesCount}}</span>
<div class='span10 persons'> </span>
<span>
{{#each likes}} {{#each likes}}
{{#linkToPerson author}} {{#linkToPerson author}}
{{{personImage this 'small' 'micro'}}} {{{personImage this 'small' 'micro'}}}
{{/linkToPerson}} {{/linkToPerson}}
{{/each}} {{/each}}
</div> </span>
</div> </div>
{{/if}} {{/if}}
{{#if commentsCount}} {{#if commentsCount}}
<div class='row' id='comments-meta'> <div id='comments-meta'>
<div class='span2 count'> <span class='count'>
{{commentsCount}}
<i class='entypo comment middle gray'></i> <i class='entypo comment middle gray'></i>
</div> <span>{{commentsCount}}</span>
</span>
</div> </div>
{{else}} {{else}}
<div class='no_comments'> <div class='no_comments'>