add new style to our progress in toolbar

This commit is contained in:
Omar-Nabil
2024-08-17 20:24:52 -06:00
committed by Jose Alberto Hernandez
parent 37883380aa
commit 3430188991
4 changed files with 85 additions and 4 deletions
+4 -2
View File
@@ -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>
+79
View File
@@ -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;
}
}
+1 -1
View File
@@ -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';
@@ -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">