Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new style to our progress in toolbar #2164

Merged
merged 1 commit into from
Aug 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/app/core/shell/shell.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,14 @@
</mat-sidenav>

<!-- Content -->
<mat-sidenav-content>
<mat-sidenav-content class="sidenav">

<!-- Toolbar -->
<mifosx-toolbar [sidenav]="sidenav" (collapse)="toggleCollapse($event)"></mifosx-toolbar>
<!-- Progress Bar -->
<mat-progress-bar [mode]="progressBarMode"></mat-progress-bar>
<div *ngIf="progressBarMode !== 'none'">
<div class="loading"></div>
</div>

<!-- Breadcrumb -->
<mifosx-breadcrumb></mifosx-breadcrumb>
Expand Down
79 changes: 79 additions & 0 deletions src/app/core/shell/shell.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,82 @@
width: 4rem;
}
}


$bar: 190px;
$foo: $bar * 8;
$color: #e2e4ec;


.loading {
position: absolute;
width: $bar;
height: 8px;
background: linear-gradient(125deg, rgb(255, 255, 255), #c4d2e9, rgb(255, 255, 255));
animation: grow 4s linear infinite, move 4s linear infinite;
top: 64px;
}

.sidenav {
overflow-x: hidden;
}

@keyframes move {
0% {
left: 0;
}

16.7% {
left: 0;
}

33.3% {
left: $foo / 2;
}

50% {
left: $foo - $bar;
}

66.7% {
left: $foo / 2;
}

83.3% {
left: 0;
}

100% {
left: 0;
}
}

@keyframes grow {
0% {
width: $bar;
}

16.7% {
width: $foo / 2;
}

33.3% {
width: $foo / 2;
}

50% {
width: $bar;
}

66.7% {
width: $foo / 2;
}

83.3% {
width: $foo / 2;
}

100% {
width: $bar;
}
}
2 changes: 1 addition & 1 deletion src/app/core/shell/shell.component.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Angular Imports */
import { Component, OnInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
import { BreakpointObserver, Breakpoints } from '@angular/cdk/layout';
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from '@angular/core';

/** rxjs Imports */
import { Observable, Subscription } from 'rxjs';
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/shell/toolbar/toolbar.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
<div #themeToggle>
<mifosx-theme-toggle></mifosx-theme-toggle>
</div>

<div #appMenu>
<button mat-icon-button class="ml-1 img-button" [matMenuTriggerFor]="applicationMenu">
<img src="assets/images/user_placeholder.png">
Expand Down
Loading