Skip to content

Commit

Permalink
feat: add loading effect
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 11, 2020
1 parent 2b774c6 commit 129922d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
[src]="src"
(load)="endLoading()"
></markdown>
<mat-spinner *ngIf="loading"></mat-spinner>
<mat-spinner *ngIf="loading" class="loading" color="accent"></mat-spinner>
4 changes: 4 additions & 0 deletions src/styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,7 @@ body {
.spacer {
flex: 1 1 auto;
}

.loading {
margin: 5em auto;
}

0 comments on commit 129922d

Please sign in to comment.