File tree Expand file tree Collapse file tree 2 files changed +15
-5
lines changed
src/app/modules/shared/components/month-picker Expand file tree Collapse file tree 2 files changed +15
-5
lines changed Original file line number Diff line number Diff line change 1- < div class ="container-month d-flex ">
1+ < div class ="d-flex ">
22 < div
3- class ="month w-100 text-center "
3+ class ="month w-100 text-center align-self-center d-flex flex-column "
44 *ngFor ="let month of months; let i = index "
55 (click) ="getMonth(i) "
66 [ngClass] ="{ active: activeMonth === i } "
77 >
8- < div > {{ month }}</ div >
8+ < div class =" p-2 " > {{ month }}</ div >
99 </ div >
1010</ div >
Original file line number Diff line number Diff line change 11@import ' ../../../../../styles/colors.scss' ;
22
3+ @mixin highlight {
4+ opacity : 0.7 ;
5+ line-height : 1.2em ;
6+ font-weight : bold ;
7+ }
8+
39.month {
410 background : $primary ;
511 color : white ;
612 cursor : pointer ;
13+ line-height : 1em ;
714
815 & :hover {
9- opacity : 0.7 ;
16+ @include highlight () ;
1017 }
1118}
1219
1320.active {
14- background-color : $primary ;
21+ @include highlight ();
22+ border-radius : 0.2em ;
23+ text-decoration : underline ;
24+
1525}
You can’t perform that action at this time.
0 commit comments