Skip to content

Commit 67cb18a

Browse files
author
Juan Gabriel Guzman
committed
feat: #315 Highlighting selected month on time entries
1 parent 65df2dd commit 67cb18a

File tree

2 files changed

+15
-5
lines changed

2 files changed

+15
-5
lines changed
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
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>
Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,25 @@
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
}

0 commit comments

Comments
 (0)