Juanfran 2014-07-08 14:55:08 +02:00
parent 40fe776a89
commit 76ab961d0f
3 changed files with 3 additions and 43 deletions

View File

@ -520,7 +520,6 @@ CommentDirective = () ->
link = ($scope, $el, $attrs, $model) -> link = ($scope, $el, $attrs, $model) ->
$el.on "click", ".activity-title", (event) -> $el.on "click", ".activity-title", (event) ->
event.preventDefault() event.preventDefault()
$el.find(".activity-inner").toggle()
$el.find(".activity-inner").toggleClass("active") $el.find(".activity-inner").toggleClass("active")
$scope.$on "$destroy", -> $scope.$on "$destroy", ->

View File

@ -1,45 +1,3 @@
.us-activity {
margin-bottom: 1rem;
padding: 0 1rem;
}
.activity-title {
display: block;
padding: .5rem;
&:hover {
.icon {
@include transform(rotate(180deg));
@include transition(all.2s linear);
color: $green-taiga;
}
}
.icon {
@include transform(rotate(0));
@include transition(all.2s linear);
color: $grayer;
float: right;
}
}
.activity-inner {
@include table-flex;
border-bottom: 1px solid $gray-light;
padding: 1rem 0;
&:last-child {
border-bottom: 0;
}
.activity-changed,
.activity-fromto {
@include table-flex-child(1, 50px, 0);
}
.activity-changed {
@extend %bold;
}
.activity-fromto {
@extend %small;
}
}
.activity-single { .activity-single {
@include table-flex; @include table-flex;
border-bottom: 2px solid $gray-light; border-bottom: 2px solid $gray-light;

View File

@ -51,6 +51,9 @@
background: $whitish; background: $whitish;
.activity-inner { .activity-inner {
display: none; display: none;
&.active {
display: flex;
}
} }
} }
.date { .date {