Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: #315 Highlighting selected month on time entries
  • Loading branch information
Juan Gabriel Guzman committed Jul 1, 2020
commit 67cb18a8bd6be6711b198668b594e6d67a2abb7a
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<div class="container-month d-flex">
<div class="d-flex">
<div
class="month w-100 text-center"
class="month w-100 text-center align-self-center d-flex flex-column"
*ngFor="let month of months; let i = index"
(click)="getMonth(i)"
[ngClass]="{ active: activeMonth === i }"
>
<div>{{ month }}</div>
<div class="p-2">{{ month }}</div>
</div>
</div>
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
@import '../../../../../styles/colors.scss';

@mixin highlight {
opacity: 0.7;
line-height: 1.2em;
font-weight: bold;
}

.month {
background: $primary;
color: white;
cursor: pointer;
line-height: 1em;

&:hover {
opacity: 0.7;
@include highlight();
}
}

.active {
background-color: $primary;
@include highlight();
border-radius: 0.2em;
text-decoration: underline;

}