Skip to content

Commit 94af92a

Browse files
committed
add has-events class default background color
1 parent fd7ac7b commit 94af92a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/angular-material-calendar.scss

+8
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ $calendar-md-background-active: rgba(0, 0, 0, .02) !default;
22
$calendar-md-shadow-active: 0 1px 3px 0 rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 2px 1px -1px rgba(0,0,0,.12) !default;
33
$calendar-md-border: 1px solid rgba(0, 0, 0, .12) !default;
44
$calendar-md-background-hover: rgba(0, 0, 0, .04) !default;
5+
$calendar-md-event-background: rgba(150, 202, 45, 1) !default;
56

67
calendar-md {
78

@@ -35,6 +36,9 @@ calendar-md {
3536
pointer-events: none;
3637
cursor: auto;
3738
}
39+
&.has-events {
40+
background-color: $calendar-md-event-background;
41+
}
3842
border-bottom: $calendar-md-border;
3943
// Date label.
4044
:first-child {
@@ -97,6 +101,10 @@ calendar-md {
97101
background: $calendar-md-background-active;
98102
}
99103

104+
&.has-events {
105+
background-color: $calendar-md-event-background;
106+
}
107+
100108
// Day number label.
101109
:first-child {
102110
padding: 0;

0 commit comments

Comments
 (0)