add state colors
This commit is contained in:
parent
85e4237165
commit
4fc3ead817
|
@ -1,15 +1,40 @@
|
||||||
$sb-grey: #f2f2f2
|
$sb-grey: #f2f2f2
|
||||||
$sb-font-size: 14px
|
$sb-font-size: 14px
|
||||||
|
|
||||||
|
@mixin colorSidebarTiles($color)
|
||||||
|
border-color: $color
|
||||||
|
a
|
||||||
|
color: $color
|
||||||
|
|
||||||
.tile--sidebar
|
.tile--sidebar
|
||||||
padding: 0
|
height: auto
|
||||||
// border-left: 8px solid #
|
padding: 0.6em 0.5em
|
||||||
|
margin-bottom: .46rem
|
||||||
background-color: $white
|
background-color: $white
|
||||||
border-bottom: 6px solid #FAF9F7
|
border-radius: 0
|
||||||
|
border-left: 8px solid
|
||||||
|
|
||||||
|
|
||||||
|
&.failed,
|
||||||
|
&.errored
|
||||||
|
@include colorSidebarTiles($fail-color)
|
||||||
|
&.passed
|
||||||
|
@include colorSidebarTiles($pass-color)
|
||||||
|
&.started,
|
||||||
|
&.created,
|
||||||
|
&.received
|
||||||
|
@include colorSidebarTiles($created-color)
|
||||||
|
|
||||||
|
|
||||||
h2, p
|
h2, p
|
||||||
|
margin: 0
|
||||||
font-size: $sb-font-size
|
font-size: $sb-font-size
|
||||||
font-weight: 400
|
font-weight: 400
|
||||||
|
h2
|
||||||
|
display: inline-block
|
||||||
|
a:hover
|
||||||
|
text-decoration: underline
|
||||||
|
|
||||||
|
|
||||||
.tabnav--sidebar
|
.tabnav--sidebar
|
||||||
font-size: $sb-font-size
|
font-size: $sb-font-size
|
||||||
|
@ -25,8 +50,9 @@ $sb-font-size: 14px
|
||||||
color: $teal1
|
color: $teal1
|
||||||
|
|
||||||
.sidebar-list
|
.sidebar-list
|
||||||
margin-top: 1rem
|
margin-top: 1.4rem
|
||||||
ul
|
ul
|
||||||
@include resetul
|
@include resetul
|
||||||
|
background-color: #FAF9F7
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
{{#if isLoaded}}
|
{{#if isLoaded}}
|
||||||
{{#collection 'repos-list' content=this}}
|
{{#collection 'repos-list' content=this}}
|
||||||
{{#with view.repo as repo}}
|
{{#with view.repo as repo}}
|
||||||
<div class="tile tile--sidebar">
|
<div {{bind-attr class=":tile :tile--sidebar repo.lastBuildState"}}>
|
||||||
<h2 class="tile-title">
|
<h2 class="tile-title">
|
||||||
{{#if repo.slug}}
|
{{#if repo.slug}}
|
||||||
<span {{bind-attr class=":icon :icon--job repo.lastBuildState"}}></span>
|
<span {{bind-attr class=":icon :icon--job repo.lastBuildState"}}></span>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user