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 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}}
<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}}
{{#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}}
<img src="/images/icons/github.png" height="15"/>
</div>
</div>
</div>
</div>

View File

@ -38,16 +38,17 @@
</div>
<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}}
<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}}
{{#if job.commit.compareUrl}}
<div><a class="compare" {{bind-attr href="job.commit.compareUrl"}}>Compare {{shortCompareShas
job.commit.compareUrl}}</a></div>
<a class="compare" {{bind-attr href="job.commit.compareUrl"}}>Compare {{shortCompareShas job.commit.compareUrl}}</a><img src="/images/icons/github.png"/>
{{/if}}
{{/if}}
<img src="/images/icons/github.png" height="15"/>
</div>
</div>
</div>
</div>

View File

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