Skip to content

Commit cba4f90

Browse files
authored
Merge pull request #7335 from masudul-tikweb/master
menu changes
2 parents 9588223 + dee25ab commit cba4f90

File tree

3 files changed

+104
-8
lines changed

3 files changed

+104
-8
lines changed

eform-client/src/app/components/navigation/navigation.component.scss

Lines changed: 35 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2+
:root {
3+
--rounded-full: 9999px;;
4+
--font-family: Nunito Sans, Roboto, "Helvetica Neue", sans-serif;
5+
}
6+
17
mat-tree {
28
mat-tree-node {
39
display: inline-flex;
@@ -14,15 +20,21 @@ mat-tree {
1420
white-space: initial;
1521
line-height: 1.4em;
1622
}
23+
24+
&:hover{
25+
border-radius: var(--rounded-full)!important;
26+
background-color: var(--mdc-theme-primary-dark, #00695C) !important;
27+
color: var(--mdc-theme-on-primary) !important;
28+
}
29+
//&:focus {
30+
// background-color: var(--mdc-theme-primary-dark, #00695C) !important;
31+
// border-radius: var(--rounded-full) !important;
32+
// color: var(--mdc-theme-on-primary) !important;
33+
//}
1734
}
1835

1936

20-
&:hover{
21-
border-radius: var(--rounded-full)!important;
22-
}
23-
&:focus{
24-
border-radius: var(--rounded-full)!important;
25-
}
37+
2638

2739
.selected-node {
2840
background-color: var(--mdc-theme-primary) !important;
@@ -31,6 +43,7 @@ mat-tree {
3143

3244
&:hover{
3345
background-color: var(--mdc-theme-primary-dark) !important;
46+
color: var(--mdc-theme-on-primary) !important;
3447
}
3548
}
3649

@@ -61,16 +74,25 @@ mat-tree {
6174
}
6275

6376
mat-tree-node {
77+
.nav-link{
78+
&:hover{
79+
width: calc(100% - 20px)!important;
80+
border-radius: var(--rounded-full)!important;
81+
background-color: var(--mdc-theme-primary-dark, #00695C) !important;
82+
color: var(--mdc-theme-on-primary) !important;
83+
}
84+
}
6485
span {
6586
white-space: initial;
66-
//line-height: 1.4em;
6787
}
6888
}
6989
}
7090
}
7191
.selected-node {
7292
width: calc(100% - 20px)!important;
7393
}
94+
95+
7496
}
7597
}
7698

@@ -87,3 +109,9 @@ mat-tree {
87109
vertical-align: middle;
88110
font-size: 18px;
89111
}
112+
113+
114+
mat-tree-node a.mat-mdc-button-base.nav-link {
115+
border-radius: var(--rounded-full) !important;
116+
overflow: hidden !important;
117+
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
(click)="openNewEformModal()"
2727
class="btn-secondary btn-secondary--icon-rounded-border"
2828
>
29-
<mat-icon class="icon-secondary">text_snippet</mat-icon>
29+
<!-- <mat-icon class="icon-secondary">text_snippet</mat-icon>-->
30+
<app-icon name="xmlFile" size="20"></app-icon>
3031
</button>
3132

3233
<div class="line-vert"></div>

eform-client/src/scss/styles.scss

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -687,6 +687,9 @@ ngx-material-timepicker-container {
687687

688688
.mat-drawer-inner-container{
689689
background: var(--bg)!important;
690+
.mat-tree{
691+
background-color: var(--bg)!important;
692+
}
690693
.mat-tree, .mat-expansion-panel{
691694
background: var(--bg)!important;
692695

@@ -797,8 +800,72 @@ ngx-material-timepicker-container {
797800
gap: var(--624-px, 24px);
798801
}
799802

803+
eform-new-subheader{
804+
.mat-mdc-card{
805+
box-shadow: unset !important;
806+
border: none !important;
807+
}
808+
}
809+
800810
.mat-mdc-card{
801811
box-shadow: unset !important;
802812
border: 1px solid var(--border) !important;
803813
//border-color: var(--border) !important;
804814
}
815+
816+
.mat-mdc-menu-panel{
817+
display: inline-flex;
818+
flex-direction: column;
819+
align-items: flex-start;
820+
border-radius: var(--rounded-8, 8px);
821+
border: 1px solid var(--border, #EBEFF2)!important;
822+
background: var(--bg, #FFF)!important;
823+
box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.10);
824+
825+
.mat-mdc-menu-content{
826+
display: inline-flex;
827+
padding: var(--28-px, 8px);
828+
flex-direction: column;
829+
align-items: flex-start;
830+
gap: var(--14-px, 4px);
831+
button{
832+
display: flex;
833+
height: 40px;
834+
padding: var(--28-px, 8px) var(--416-px, 16px);
835+
align-items: center;
836+
gap: var(--28-px, 8px);
837+
align-self: stretch;
838+
.mat-icon{
839+
margin: 0!important;
840+
}
841+
span{
842+
color: var(--text-header, #0F1316)!important;
843+
font-family: var(--font-family, "Nunito Sans");
844+
font-size: var(--Text-size-sm, 14px);
845+
font-style: normal;
846+
font-weight: 600;
847+
line-height: var(--Text-line-height-sm, 22px);
848+
}
849+
}
850+
851+
.mat-mdc-menu-item {
852+
display: flex;
853+
height: 40px;
854+
padding: var(--28-px, 8px) var(--416-px, 16px);
855+
align-items: flex-start;
856+
gap: var(--28-px, 8px);
857+
align-self: stretch;
858+
min-height: unset!important;
859+
.mat-mdc-menu-item-text {
860+
color: var(--text-header, #0F1316) !important;
861+
font-family: var(--font-family, "Nunito Sans");
862+
font-size: var(--Text-size-sm, 14px) !important;
863+
font-style: normal !important;
864+
font-weight: 600 !important;
865+
line-height: var(--Text-line-height-sm, 22px) !important;
866+
}
867+
}
868+
}
869+
870+
871+
}

0 commit comments

Comments
 (0)