Improve spacing for octocats.

This commit is contained in:
Mathias Meyer 2014-05-08 17:11:15 +02:00
parent e1bd111224
commit bf84301710
3 changed files with 21 additions and 16 deletions

View File

@ -39,15 +39,16 @@
</div> </div>
<div class="commit-changes"> <div class="commit-changes">
<div class=""><a class="commit" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha commit.sha}}</a></div><img src="/images/icons/github.png" height="15"/> <div><a class="commit" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha commit.sha}}</a></div><img src="/images/icons/github.png"/>
<div>
{{#if build.pullRequest}} {{#if build.pullRequest}}
<div><a class="compare" {{bind-attr href="build.commit.compareUrl"}} >#{{build.pullRequestNumber}}: {{build.pullRequestTitle}}</a></div> <a class="compare" {{bind-attr href="build.commit.compareUrl"}} >#{{build.pullRequestNumber}}: {{build.pullRequestTitle}}</a><img src="/images/icons/github.png"/>
{{else}} {{else}}
{{#if build.commit.compareUrl}} {{#if build.commit.compareUrl}}
<div><a class="compare" {{bind-attr href="build.commit.compareUrl"}}>Compare {{shortCompareShas build.commit.compareUrl}}</a></div> <a class="compare" {{bind-attr href="build.commit.compareUrl"}}>Compare {{shortCompareShas build.commit.compareUrl}}</a><img src="/images/icons/github.png"/>
{{/if}} {{/if}}
{{/if}} {{/if}}
<img src="/images/icons/github.png" height="15"/> </div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -38,16 +38,17 @@
</div> </div>
<div class="commit-changes"> <div class="commit-changes">
<div><a class="commit" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha job.commit.sha}}</a></div><img src="/images/icons/github.png" height="15"/> <div><a class="commit" {{bind-attr href="controller.urlGithubCommit"}}>Commit {{formatSha job.commit.sha}}</a><img src="/images/icons/github.png" height="15"/></div>
<div>
{{#if job.build.pullRequest}} {{#if job.build.pullRequest}}
<div><a class="compare" {{bind-attr href="job.commit.compareUrl"}} >#{{job.build.pullRequestNumber}}: {{job.build.pullRequestTitle}}</a></div> <a class="compare" {{bind-attr href="job.commit.compareUrl"}} >#{{job.build.pullRequestNumber}}: {{job.build.pullRequestTitle}}</a><img src="/images/icons/github.png"/>
{{else}} {{else}}
{{#if job.commit.compareUrl}} {{#if job.commit.compareUrl}}
<div><a class="compare" {{bind-attr href="job.commit.compareUrl"}}>Compare {{shortCompareShas <a class="compare" {{bind-attr href="job.commit.compareUrl"}}>Compare {{shortCompareShas job.commit.compareUrl}}</a><img src="/images/icons/github.png"/>
job.commit.compareUrl}}</a></div>
{{/if}} {{/if}}
{{/if}} {{/if}}
<img src="/images/icons/github.png" height="15"/> </div>
</div> </div>
</div> </div>
</div> </div>

View File

@ -87,6 +87,9 @@
a a
text-decoration: underline text-decoration: underline
img
vertical-align: middle
.commit-changes .commit-changes
text-align: right text-align: right
width: inherit width: inherit
@ -96,14 +99,12 @@
div div
display: inline display: inline
clear: none clear: none
max-width: 200px
overflow: hidden
white-space: nowrap
img img
margin-left: 5px margin-right: 2px
margin-right: 5px margin-left: 4px
vertical-align: middle height: 15px
width: 15px
.author .author
float: left float: left
@ -115,6 +116,8 @@
img img
height: 15px height: 15px
width: 15px width: 15px
margin-right: 4px
margin-left: 2px
#summary #summary
margin: 0 0 0 12px margin: 0 0 0 12px