Fixing milestone arrows

stable
Alejandro Alonso 2015-01-28 14:47:40 +01:00
parent 5e77c42cc0
commit a64a73c452
2 changed files with 4 additions and 41 deletions

View File

@ -54,13 +54,10 @@ BacklogSprintDirective = ($repo, $rootscope) ->
$scope.$watch $attrs.tgBacklogSprint, (sprint) ->
sprint = $scope.$eval($attrs.tgBacklogSprint)
if $scope.$first
toggleSprint($el)
else if sprint.closed
if sprint.closed
$el.addClass("sprint-closed")
else if not $scope.$first and not sprint.closed
else
toggleSprint($el)
$el.addClass("sprint-old-open")
# Event Handlers
$el.on "click", ".sprint-name > .icon-arrow-up", (event) ->

View File

@ -60,11 +60,11 @@
display: inline-block;
}
.icon-arrow-up {
transform: rotate(180deg);
transform: rotate(90deg);
transition: all .2s linear;
vertical-align: baseline;
&.active {
transform: rotate(0);
transform: rotate(180deg);
transition: all .2s linear;
}
&:hover {
@ -209,45 +209,11 @@
}
}
// If Sprint is open but date is old
.sprint-old-open {
.sprint-name {
.icon-arrow-up {
transform: rotate(180deg);
transition: all .2s linear;
vertical-align: baseline;
&.active {
transform: rotate(0);
transition: all .2s linear;
}
&:hover {
color: $fresh-taiga;
transition: color .2s linear;
}
}
}
}
// If sprint is closed and date is old
.sprint-closed {
.sprint-table {
display: none;
}
.sprint-name {
.icon-arrow-up {
transform: rotate(180deg);
transition: all .2s linear;
vertical-align: baseline;
&.active {
transform: rotate(0);
transition: all .2s linear;
}
&:hover {
color: $fresh-taiga;
transition: color .2s linear;
}
}
}
.number,
.description {
color: $gray-light;