Skip to content

Commit

Permalink
feat($ionicLoading): implement backdrop class
Browse files Browse the repository at this point in the history
Closes #837.
  • Loading branch information
ajoslin committed Mar 21, 2014
1 parent 5afcc8a commit 57d71ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion js/ext/angular/src/directive/ionicLoading.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ angular.module('ionic.ui.loading', [])
link: function($scope, $element){
$element.addClass($scope.animation || '');
},
template: '<div class="loading-backdrop" ng-class="{enabled: showBackdrop}">' +
template: '<div class="loading-backdrop" ng-class="{\'show-backdrop\': showBackdrop}">' +
'<div class="loading" ng-transclude>' +
'</div>' +
'</div>'
Expand Down
11 changes: 4 additions & 7 deletions scss/_popup.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@
}

.loading-backdrop {
@include transition(visibility 0s linear 0.3s);
position: fixed;
top: 0;
left: 0;
Expand All @@ -119,13 +120,9 @@
&.active {
@include transition-delay(0s);
visibility: visible;
}
}

.loading-backdrop {
@include transition(visibility 0s linear 0.3s);
&.active {
background-color: rgba(0,0,0,0.7);
&.show-backdrop {
background-color: rgba(0,0,0,0.7);
}
}
}

Expand Down

0 comments on commit 57d71ed

Please sign in to comment.