Skip to content

Commit

Permalink
Add default color for today's tile
Browse files Browse the repository at this point in the history
Closes #112
  • Loading branch information
wojtekmaj committed Sep 26, 2019
1 parent 74f8c21 commit 0fff2fd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
11 changes: 11 additions & 0 deletions src/Calendar.less
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,17 @@
}
}

&--now {
@bgcolor: lighten(rgb(220, 220, 0), 30%);
background: @bgcolor;

&:enabled {
&:hover, &:focus {
background: lighten(@bgcolor, 10%);
}
}
}

&--hasActive {
@bgcolor: lighten(rgb(0, 110, 220), 30%);
background: @bgcolor;
Expand Down
13 changes: 1 addition & 12 deletions test/Test.less
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,6 @@ body {
&__tile {
min-height: 70px; // Custom content used

&--now {
@bgcolor: lighten(rgb(25, 150, 25), 30%);
background: @bgcolor;

button&:enabled {
&:hover, &:focus {
background: lighten(@bgcolor, 10%);
}
}
}

p {
margin: 0;
line-height: 0.75;
Expand Down Expand Up @@ -138,7 +127,7 @@ body {
@bgcolor: rgb(0, 110, 220);

&.react-calendar__tile--now {
background-color: mix(@bgcolor, lighten(rgb(25, 150, 25), 30%));
background-color: mix(@bgcolor, lighten(rgb(220, 220, 0), 30%));
}

&.red {
Expand Down

0 comments on commit 0fff2fd

Please sign in to comment.