fix notification-light blink

stable
Juanfran 2014-08-20 13:31:24 +02:00
parent 208d99b3a4
commit 76d2d4da56
2 changed files with 7 additions and 2 deletions

View File

@ -162,7 +162,10 @@ class ConfirmService extends taiga.Service
@.el.find("p").html(NOTIFICATION_MSG[type].message)
body = angular.element("body")
body.find(".notification-message .notification-light").removeClass('active')
body.find(".notification-message .notification-light")
.removeClass('active')
.addClass('inactive')
body.find(selector)
.removeClass('inactive')
.addClass('active')

View File

@ -54,7 +54,6 @@
.notification-light {
@include transform(translateY(-100%));
@include transition (all .6s ease-in-out);
background: rgba($gray-light, .95);
color: $white;
left: calc(50% - 200px);
@ -63,6 +62,9 @@
top: 0;
width: 400px;
z-index: 9999;
&.inactive {
@include transition (all .6s ease-in-out);
}
&.active {
@include transform(translateY(0));
@include transition (all .6s ease-in-out);