Merge pull request #474 from travis-ci/lp-fix-env-var

some UI fixes after the update
This commit is contained in:
Lisa 2016-03-14 13:22:53 +01:00
commit 07d241bdc2
12 changed files with 42 additions and 60 deletions

View File

@ -3,7 +3,7 @@ import Ember from 'ember';
export default Ember.Component.extend({ export default Ember.Component.extend({
tagName: 'span', tagName: 'span',
classNames: ['avatar'], classNameBindings: ['small:avatar--small:avatar'],
userInitials: function() { userInitials: function() {
var name = this.get('name'); var name = this.get('name');

View File

@ -24,6 +24,7 @@
display: flex display: flex
flex-flow: row wrap flex-flow: row wrap
align-items: baseline align-items: baseline
padding-left: 0.4em
.row-branch .row-branch
flex: 1 0 18% flex: 1 0 18%

View File

@ -120,16 +120,16 @@
input input
display: inline-block display: inline-block
width: 100% width: 100%
padding: 0.6em 0.5em 0.7em 1.1em padding: 0.6em 0.5em 0.7em 2.5em
border-radius: 2px border-radius: 2px
border: none border: none
background-color: lighten($cement-grey, 20) background-color: lighten($cement-grey, 20)
color: $asphalt-grey color: $asphalt-grey
@extend .icon-lock @extend %icon-line-lock
background: background:
size: 14px size: 16px
repeat: no-repeat repeat: no-repeat
position: 0.8em 0.7em position: 0.5em 0.5em
.is-public & .is-public &
input input
background-image: none; background-image: none;

View File

@ -42,19 +42,11 @@
margin-left: 1em margin-left: 1em
top: -3px top: -3px
.commit-author .avatar--small
.avatar @extend .avatar
width: 18px width: 18px
height: 18px height: 18px
margin-right: .3rem margin-right: .3rem
.pseudo-avatar:after .pseudo-avatar:after
font-size: .7em font-size: 9px
line-height: 1.7 line-height: 16px
.row-committer
.avatar
width: 18px
height: 18px
.pseudo-avatar:after
font-size: .7em
line-height: 1.6

View File

@ -54,7 +54,8 @@
.build-title .build-title
.status-icon .status-icon
margin-left: -1.8rem margin-left: -1.9rem
margin-right: 0.7rem
.commit-info .commit-info
font-size: 15px font-size: 15px

View File

@ -10,27 +10,6 @@
height: 15px height: 15px
@extend %icon @extend %icon
.status-icon *,
.request-icon *
fill: none
stroke: $cement-grey
stroke-linecap: round
stroke-linejoin: round
stroke-miterlimit: 10
stroke-width: 2px
.status-icon
@extend %icon
width: 13px
height: 20px
margin-right: .3rem
.request-icon
@extend %icon
width: 16px
height: 19px
margin-right: .1rem
%icon-download-log %icon-download-log
background-image: inline-image('stroke-icons/icon-downloadlogs.svg') background-image: inline-image('stroke-icons/icon-downloadlogs.svg')
.icon-download-log .icon-download-log

View File

@ -110,18 +110,6 @@
@media #{$medium-up} @media #{$medium-up}
display: block display: block
.icon
margin-right: .2em
.avatar
display: inline-block
width: 16px
height: 16px
margin: 0 .4em 0 .1em
border-radius: 50%
vertical-align: middle
background-color: #E9EBEB
@include statusColors($turf-green, 'passed', 10px) @include statusColors($turf-green, 'passed', 10px)
@include statusColors($brick-red, 'failed', 10px) @include statusColors($brick-red, 'failed', 10px)
@include statusColors($brick-red, 'errored', 10px) @include statusColors($brick-red, 'errored', 10px)

View File

@ -1,3 +1,25 @@
.status-icon *,
.request-icon *
fill: none
stroke: $cement-grey
stroke-linecap: round
stroke-linejoin: round
stroke-miterlimit: 10
stroke-width: 2px
.status-icon
@extend %icon
width: 13px
height: 14px
line-height: 0
margin-right: .3rem
.request-icon
@extend %icon
width: 16px
height: 19px
margin-right: .1rem
.status-icon .status-icon
.is-rotating .is-rotating
width: 17px width: 17px

View File

@ -35,7 +35,6 @@
.label .label
vertical-align: middle vertical-align: middle
font-size: $font-size-m font-size: $font-size-m
color: $cement-grey
display: inline-block display: inline-block
&.label--small .label &.label--small .label
width: 7em width: 7em

View File

@ -60,9 +60,9 @@
<div class="row-commiter"> <div class="row-commiter">
<div class="row-item"> <div class="row-item">
{{#if build.last_build}} {{#if build.last_build}}
<img src="{{build.last_build.commit.committer.avatar_url}}" alt="avatar" class="avatar"><span class="label-align">{{build.last_build.commit.committer.name}}</span> <img src="{{build.last_build.commit.committer.avatar_url}}" alt="avatar" class="avatar--small"><span class="label-align">{{build.last_build.commit.committer.name}}</span>
{{else}} {{else}}
<div class="avatar"></div><span class="label-align">no commits yet</span> <div class="avatar--small"></div><span class="label-align">no commits yet</span>
{{/if}} {{/if}}
</div> </div>
</div> </div>

View File

@ -41,12 +41,12 @@
</ul> </ul>
<p class="commit-author"> <p class="commit-author">
{{#if commit.authorName}} {{#if commit.authorName}}
{{user-avatar url=commit.authorAvatarUrlOrGravatar name=commit.authorName}} {{user-avatar url=commit.authorAvatarUrlOrGravatar name=commit.authorName small=true}}
<span class="label-align">{{commit.authorName}} authored{{#if commit.authorIsCommitter}} and committed{{/if}}</span> <span class="label-align">{{commit.authorName}} authored{{#if commit.authorIsCommitter}} and committed{{/if}}</span>
{{/if}} {{/if}}
{{#unless commit.authorIsCommitter}} {{#unless commit.authorIsCommitter}}
{{#if commit.committerName}} {{#if commit.committerName}}
{{user-avatar url=commit.committerAvatarUrlOrGravatar name=commit.committerName}} {{user-avatar url=commit.committerAvatarUrlOrGravatar name=commit.committerName smll=true}}
<span class="label-align">{{commit.committerName}} committed</span> <span class="label-align">{{commit.committerName}} committed</span>
{{/if}} {{/if}}
{{/unless}} {{/unless}}

View File

@ -20,7 +20,7 @@
{{/unless}} {{/unless}}
</div> </div>
<div class="row-item row-committer"> <div class="row-item row-committer">
{{user-avatar url=build.commit.authorAvatarUrlOrGravatar name=build.commit.authorName}} {{user-avatar url=build.commit.authorAvatarUrlOrGravatar name=build.commit.authorName small=true}}
<span class="label-align">{{build.commit.authorName}}</span> <span class="label-align">{{build.commit.authorName}}</span>
</div> </div>
</div> </div>