all the right colors!

This commit is contained in:
Lisa Passing 2015-03-10 16:45:54 +01:00
parent 9ba2e768f9
commit b443f0440e
4 changed files with 24 additions and 23 deletions

View File

@ -1,9 +1,3 @@
@mixin colorTiles($color)
.tile-status
background-color: $color
.repo-header-title a,
.repo-build-status a
color: $color
.repo
font-size: $font-size-m
@ -15,20 +9,6 @@
> *
vertical-align: middle
&.started,
&.created
@include colorTiles($start-color)
&.failed
@include colorTiles($fail-color)
&.errored
@include colorTiles($error-color)
&.canceled
@include colorTiles($cancel-color)
&.passed
@include colorTiles($pass-color)
&.inactive
@include colorTiles($cancel-color)
.repo-header-title
@extend %inline-block
margin: 0

View File

@ -1,3 +1,10 @@
@mixin colorTiles($color)
.tile-status
background-color: $color
.repo-header-title a,
.repo-build-status a
color: $color
.tile
@extend border-radius-4px
position: relative
@ -7,6 +14,20 @@
margin: 0
white-space: nowrap
&.started,
&.created
@include colorTiles($start-color)
&.failed
@include colorTiles($fail-color)
&.errored
@include colorTiles($error-color)
&.canceled
@include colorTiles($cancel-color)
&.passed
@include colorTiles($pass-color)
&.inactive
@include colorTiles($cancel-color)
@media #{$medium-up}
height: 145px

View File

@ -1,7 +1,7 @@
{{#if loading}}
<span class="sync-spinner sync-spinner--grey"><i></i><i></i><i></i></span>
{{else}}
<section class="tile tile--pass row" {{!-- id="new-summary" --}}>
<section {{bind-attr class=":tile :tile--pass :row build.state"}} {{!-- id="new-summary" --}}>
<div class="tile-status">
<span {{bind-attr class=":icon :icon-status build.state"}}></span>
<span {{bind-attr class=":request-kind build.eventType :icon"}}></span>

View File

@ -1,7 +1,7 @@
{{#if content.isLoaded}}
{{!-- <table id="builds" class="list"> --}}
{{#each build in controller itemController="buildsItem"}}
<div {{bind-attr class="build.color :tile :tile--small :tile--build :row"}}>
<div {{bind-attr class="build.state :tile :tile--small :tile--build :row"}}>
<div class="tile-status">
<span class="icon icon-status passed"></span>
<span {{bind-attr class=":request-kind build.eventType :icon"}}></span>
@ -25,7 +25,7 @@
{{#if build.id}}
{{#link-to "build" build.repo build}}
<span class="icon icon-hash"></span>
{{build.number}} {{build.status}}
{{build.number}} {{build.state}}
{{/link-to}}
{{/if}}
</p>