1
0
Fork 0

Add loader indication when loading videos list

This commit is contained in:
Chocobozzz 2016-06-05 08:48:44 +02:00
parent 1cdb5c0f58
commit e56b20f587
5 changed files with 14 additions and 7 deletions

View file

@ -1,3 +1,3 @@
<div id="video-loading" class="col-md-12 text-center" *ngIf="loading">
<div id="video-loading" *ngIf="loading">
<div class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></div>
</div>

View file

@ -1,7 +1,3 @@
div {
margin-top: 150px;
}
// Thanks https://gist.github.com/alexandrevicenzi/680147013e902a4eaa5d
.glyphicon-refresh-animate {
-animation: spin .7s infinite linear;

View file

@ -16,6 +16,11 @@
font-size: 13px;
padding-left: 0;
}
my-loader {
display: inline-block;
margin-left: 5px;
}
}
.videos-miniatures {

View file

@ -1,6 +1,5 @@
<my-loader [loading]="loading"></my-loader>
<div class="embed-responsive embed-responsive-19by9">
<my-loader [loading]="loading"></my-loader>
</div>
<div id="torrent-info">

View file

@ -1,3 +1,10 @@
my-loader {
display: block;
padding-top: 200px;
width: 100%;
text-align: center;
}
.embed-responsive {
height: 500px;
}