Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Commit

Permalink
[#00] feat (user.list;skill.list) -> add spinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Duc Anh Phi committed Feb 5, 2017
1 parent fe6e0ac commit 33ed9ef
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 18 deletions.
4 changes: 4 additions & 0 deletions assets/app/admin/skillList/skill.list.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ h1 {
max-width: 300px;
}

.g-ducspinner {
margin-top: 23%;
}

:host .modal-delete-skill /deep/ .modal-dialog {
max-width: 500px;
}
3 changes: 2 additions & 1 deletion assets/app/admin/skillList/skill.list.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ <h1>Skills</h1>
</form>
</div>

<div class="content-wrapper">
<div class="g-ducspinner" *ngIf="skills === undefined"></div>

<div class="content-wrapper" *ngIf="skills">
<div class="content-wrapper">

<div class="table-wrapper">
Expand Down
16 changes: 0 additions & 16 deletions assets/app/authenticated/project/project.list.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,3 @@
.order-buttons {
display: inline-block;
}

//spinner
.ducspinner {
margin: 20% auto 0 auto;
height: 28px;
width: 28px;
animation: rotate 0.5s infinite linear;
border: 6px solid $grey-medium;
border-right-color: transparent;
border-radius: 50%;
}

@keyframes rotate {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h6 class="settings-title">Order by:</h6>
</div>

<main class="content">
<div class="ducspinner" *ngIf="projects === undefined"></div>
<div class="g-ducspinner" *ngIf="projects === undefined"></div>
<div id="projects" class="tabpane" [ngClass]="{ active: activeTab === 'projects' }">
<app-project-card
[project]="project"
Expand Down
4 changes: 4 additions & 0 deletions assets/app/authenticated/userList/user.list.style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,7 @@ h1 {
color: $danger;
}
}

.g-ducspinner {
margin-top: 30%;
}
1 change: 1 addition & 0 deletions assets/app/authenticated/userList/user.list.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ <h1>People</h1>
New User
</button>
<div class="users">
<div class="g-ducspinner" *ngIf="users === undefined"></div>
<app-user-card *ngFor="let user of users" (onDelete)="deleteUser(user)" [user]="user"></app-user-card>
</div>

Expand Down
1 change: 1 addition & 0 deletions assets/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@import 'components/tag';
@import 'components/table';
@import 'components/card';
@import 'components/ducspinner';
@import 'components/input';
@import 'components/switch';
@import 'components/avatar';
Expand Down

0 comments on commit 33ed9ef

Please sign in to comment.