Skip to content

Commit 71cdb42

Browse files
shawonshawon
authored andcommitted
new table design
1 parent 4ed55f8 commit 71cdb42

File tree

5 files changed

+143
-14
lines changed

5 files changed

+143
-14
lines changed

eform-client/src/app/common/modules/eform-shared/components/eform-new-subheader/eform-new-subheader.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<mat-card class="d-flex flex-row align-items-center mb-3 p-3">
1+
<mat-card class="eform-sub-header d-flex flex-row align-items-center mb-3 p-3 ">
22
<div class="d-flex flex-column">
33
<h2 style="margin: 0">
44
{{

eform-client/src/app/components/layouts/full-layout/full-layout.component.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
<div class="h-100 d-flex flex-column" *ngIf="selectIsAuth$ | async">
22
<!-- <app-header></app-header>-->
3-
<mat-toolbar style="padding-top: 5px; padding-bottom: 5px" class="d-flex align-items-center">
4-
<div *ngIf="headerSettingsModel.imageLinkVisible" class="d-flex">
5-
<div class="logo-container">
6-
<img height="30px" id="site-header-image" [src]="logoImage | authImage | async"
7-
*ngIf="headerSettingsModel.imageLinkVisible" alt="">
3+
<mat-toolbar style="padding-top: 5px; padding-bottom: 5px" class="d-flex align-items-center nav-header">
4+
<div class="d-flex align-items-center gap-12">
5+
<button mat-icon-button (click)="toggleDrawer()" [hidden]="(selectConnectionStringExists$ | async) === false">
6+
<mat-icon>menu</mat-icon>
7+
</button>
8+
<div *ngIf="headerSettingsModel.imageLinkVisible" class="d-flex">
9+
<div class="logo-container">
10+
<img height="30px" id="site-header-image" [src]="logoImage | authImage | async"
11+
*ngIf="headerSettingsModel.imageLinkVisible" alt="">
12+
</div>
813
</div>
914
</div>
10-
<button mat-icon-button (click)="toggleDrawer()" [hidden]="(selectConnectionStringExists$ | async) === false">
11-
<mat-icon>menu</mat-icon>
12-
</button>
15+
1316
<span class="spacer"></span>
1417
<div class="tag">
1518
<mat-icon>account_circle</mat-icon>
@@ -30,15 +33,15 @@
3033
</mat-menu>
3134
</div>
3235
</mat-toolbar>
33-
<mat-drawer-container autosize style="height: 100%;">
36+
<mat-drawer-container autosize style="height: 100%;" class="mat-app-background">
3437
<mat-drawer
3538
#drawer
3639
[mode]="sidenavMode"
3740
[opened]="(selectSideMenuOpened$ | async) === true">
3841
<app-navigation (clickOnLink)="onClickOnLink()"></app-navigation>
3942
<app-footer></app-footer>
4043
</mat-drawer>
41-
<div class="mb-auto p-4" *ngIf="selectIsAuth$ | async">
44+
<div class="mb-auto mat-app-background" *ngIf="selectIsAuth$ | async">
4245
<app-userback-widget></app-userback-widget>
4346
<router-outlet></router-outlet>
4447
</div>

eform-client/src/app/modules/eforms/components/eforms-page/eforms-page.component.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@
4545

4646
<!--Here you can choose approach as you like: container-row, or flex, or just element with required styles and markup-->
4747
<ng-template #toolbarTpl>
48-
<div class="d-flex flex-row justify-content-start flex-nowrap">
49-
<div class="d-flex flex-column mr-2 ml-2">
48+
<div class="d-flex flex-row justify-content-start flex-nowrap align-items-center gap-12">
49+
<div class="d-flex flex-column">
5050
<mat-form-field>
5151
<mat-label>{{ 'Search eForm' | translate }}</mat-label>
5252
<input
@@ -104,7 +104,7 @@
104104
actions: actionsTpl}"
105105
[showPaginator]="false"
106106
[pageOnFront]="false"
107-
[rowStriped]="true"
107+
[rowStriped]="false"
108108
[showToolbar]="true"
109109
[showColumnMenuButton]="false"
110110
[toolbarTemplate]="toolbarTpl"

eform-client/src/scss/styles.scss

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ body, .theme-light {
6868
--warning: #{$warning-light};
6969
--error: #{$error-light};
7070
--btn-delete-text: #{$text-header-dark};
71+
--text-body: #{$text-body-light};
72+
--card: #{$card-light};
7173
}
7274

7375
body, .theme-dark {
@@ -85,6 +87,8 @@ body, .theme-dark {
8587
--warning: #{$warning-dark};
8688
--error: #{$error-dark};
8789
--btn-delete-text: #{$text-header-light};
90+
--text-body: #{$text-body-dark};
91+
--card: #{$card-dark};
8892
}
8993

9094
a {
@@ -578,3 +582,119 @@ ngx-material-timepicker-container {
578582
}
579583

580584

585+
.eform-sub-header{
586+
background: var(--bg)!important;
587+
display: flex;
588+
justify-content: space-between;
589+
align-items: center;
590+
align-self: stretch;
591+
border: unset!important;
592+
box-shadow: unset!important;
593+
}
594+
595+
.mat-app-background{
596+
background: var(--bg)!important;
597+
}
598+
.nav-header{
599+
display: flex;
600+
width: 1920px;
601+
padding: var(--520-px, 20px);
602+
justify-content: space-between;
603+
align-items: center;
604+
border-bottom: 1px solid var(--border, #EBEFF2);
605+
background: var(--bg)!important;
606+
}
607+
608+
609+
.mat-mdc-form-field {
610+
611+
.mat-mdc-floating-label{
612+
color: var(--text-body) !important;
613+
}
614+
615+
.mat-mdc-form-field-focus-overlay {
616+
background: unset !important;
617+
}
618+
619+
.mdc-text-field {
620+
border: 1px solid var(--border);
621+
border-radius: 4px!important;
622+
623+
background-color: var(--bg) !important;
624+
625+
&__ripple{
626+
::before{
627+
background-color: var(--bg) !important;
628+
}
629+
::after{
630+
background-color: var(--bg) !important;
631+
}
632+
}
633+
634+
&__input {
635+
background-color: var(--bg) !important;
636+
}
637+
638+
&--filled:not(.mdc-text-field--disabled) {
639+
background-color: var(--bg) !important;
640+
.mdc-line-ripple{
641+
&::before {
642+
border-bottom: unset !important;
643+
}
644+
&::after {
645+
border-bottom-color: var(--bg) !important;
646+
}
647+
}
648+
649+
.mat-mdc-floating-label{
650+
color: var(--text-body) !important;
651+
}
652+
}
653+
}
654+
}
655+
656+
.mat-drawer-inner-container{
657+
background: var(--bg)!important;
658+
.mat-tree, .mat-expansion-panel{
659+
background: var(--bg)!important;
660+
661+
a{
662+
color: var(--text-header, #0F1316);
663+
font-family: var(--font-family, "Nunito Sans");
664+
font-size: var(--Text-size-sm, 14px);
665+
font-style: normal;
666+
//font-weight: 600;
667+
line-height: var(--Text-line-height-sm, 22px);
668+
}
669+
670+
.nav-link{
671+
color: var(--text-header, #0F1316);
672+
font-family: var(--font-family, "Nunito Sans");
673+
font-size: var(--Text-size-sm, 14px);
674+
font-style: normal;
675+
//font-weight: 600;
676+
line-height: var(--Text-line-height-sm, 22px);
677+
}
678+
}
679+
}
680+
.mat-drawer-side{
681+
background: var(--bg)!important;
682+
border-right-color: var(--border) !important;
683+
}
684+
685+
.mtx-grid{
686+
outline: unset !important;
687+
.mat-mdc-table{
688+
background: var(--bg)!important;
689+
.mat-mdc-header-row, thead{
690+
border-bottom: 1px solid var(--border);
691+
background: var(--card,);
692+
}
693+
694+
}
695+
thead{
696+
border-bottom: 1px solid var(--border);
697+
background: var(--card,);
698+
}
699+
700+
}

eform-client/src/scss/utilities/_colors.scss

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,9 @@ $text-header-dark: #F3F5F7;
4747

4848
$error-light: #F44336;
4949
$error-dark: #FF8282;
50+
51+
$text-body-light: #7F868D;
52+
$text-body-dark: #C1C5C9;
53+
54+
$card-light: #F7F9FA;
55+
$card-dark: #2D2F31;

0 commit comments

Comments
 (0)