travis-web/app/styles/app/mixins.sass
Lisa P 79b456e511 dashboard row styles
start row layouting

work on dropup

rearrange markup, make tofu toggle

bäm

use placeholder instead of variable, doh

add border

replace all the icons

adjust icons sizes

use icon classes instead of svg

more icons adjustments

more icon tweaks on caches

update coloring mixins

fix stateMap, update db coloring mixin

cleanup owner page

even more icon fun

popup tweaks

tweak api icon

change to new broadcast icon

change icon path

responsive tweaks

dashboard filter

hack around Safari's not quite standard flexbox behaviour

update row labels and icon spacing

rearrange links in sidebar

make last builds a component, tweak svg stroke-width

more icon tweaks

fiddle around with svg view props

rearrange links in branch-row

tweak request icon

add integration test

more tweaks
2016-03-09 11:05:51 +01:00

139 lines
3.1 KiB
Sass

@mixin fadeOut($position, $angle, $color, $width: 0%)
content: ""
display: block
position: absolute
@if $position == bottom
bottom: 0
width: 100%
height: 2em
@else if $position == right
top: 0
right: 0
width: 2em
height: 100%
background: linear-gradient($angle, rgba($color, 1) $width, rgba($color, 0) 100%)
@mixin clearfix
&:before,
&:after
content: ""
display: table
&:after
clear: both
@mixin resetul
margin: 0
padding: 0
list-style: none
%absolute-center
position: absolute
top: 0
right: 0
left: 0
bottom: 0
margin: auto
=linkStyle
a
text-decoration: none
border-bottom: 1px solid $cement-grey
padding-bottom: 0.1rem
transition: color 200ms ease, border 200ms ease
&:hover,
&:active
color: $cement-grey
text-decoration: none
border-color: transparent
%helptext
font-size: $font-size-m
color: $cement-grey
+linkStyle
.helptext
@extend %helptext
// @todo simplyfiy coloring mixins
=colorStatusIcons($color, $status)
.status-icon.#{$status},
.request-icon.#{$status}
svg *
stroke: $color
=rowBorder
border: 1px solid lighten($cement-grey, 20)
border-radius: 2px
=rowColor($status, $color, $color-bg: $color)
&.#{$status}
.color
color: $color
a
color: $color
text-decoration: none
&:hover,
&:active
border-bottom: 1px solid $color
.status-icon g > *,
.request-icon g > *
stroke: $color-bg
.background
background-color: $color-bg
=rowBg($width, $status, $color)
&.#{$status}
background: linear-gradient(to right, $color 0%, $color $width, white $width, white 100%) no-repeat
=statusColors($color, $status, $width, $color2: $color, $building:false)
&.#{$status}
background: linear-gradient(to right, $color2 0%, $color2 $width, white $width, white 100%) no-repeat
.row-name,
.row-request a,
.row-color a
color: $color
&:hover
border-color: $color
.status-icon g > *,
.request-icon g > *
stroke: $color
.build a,
.repo-title a
color: $color
&:hover
border-color: $color
.build-status
color: $color
@include colorStatusIcons($color, $status)
@include colorLinks($color, $status, $building)
=colorBg($color, $status, $width, $color2: white)
&.#{$status}
background: linear-gradient(to right, $color 0%, $color $width, $color2 $width, $color2 100%) no-repeat
=colorLinks($color, $status, $building: false)
@if $building
.#{$status},
.#{$status} a,
color: $dozer-yellow
@else
.#{$status},
.#{$status} a,
color: $color
=colorRows($color, $status, $width, $is-building: false, $color-icon: $color)
@include colorBg($color, $status, $width)
@include colorLinks($color, $status, $is-building)
@include colorStatusIcons($color-icon, $status)
=colorJobs($color, $status, $width, $hover, $is-building: false, $bg-start: $color)
&.#{$status}
@include colorLinks($color, $status, $is-building)
@include colorStatusIcons($color, $status)
&:hover,
&:active
@include colorBg($bg-start, $status, $width, $hover)