-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_calendar-month-body.scss
115 lines (92 loc) · 3.19 KB
/
_calendar-month-body.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
// sass/components/calendar-month-body.scss
@import '../utils/_mixins.scss';
@import '../base/_variables.scss';
@import '../utils/_animations.scss';
.calendar {
&__week-days div {
&:hover {
color: var(--text-light);
transform: scale(1.2);
@include transition(all, 0.2s, ease-in-out);
}
}
&__days div {
animation: to-top 1s forwards;
&.calendar__day--todo-hover-created {
color: var(--text-dark) !important;
background-color: var(--background-calendar-days-hover) !important;
border: 1px solid var(--primary-color) !important;
box-shadow: 0px 0px 30px 0 rgba(227, 228, 237, 0.37) !important;
@include border-radius(20%);
@include transition(background-color, 0.3s, ease-in-out);
@include box-shadow(0px 0px 30px 0 rgba(227, 228, 237, 0.37));
}
&:hover {
color: var(--text-dark);
background-color: var(--background-calendar-days-hover);
border: 1px solid var(--primary-color);
@include border-radius(20%);
@include transition(width, 0.2s, ease-in-out);
@include transition(height, 0.2s, ease-in-out);
}
&.calendar__day--current-date {
color: var(--text-light);
background-color: var(--primary-color);
border: 1px solid var(--secondary-color);
@include border-radius(20%);
@include transition(background-color, 0.3s, ease-in-out);
@include box-shadow(0px 0px 30px 0 rgba(227, 228, 237, 0.37));
}
}
&__month-list {
position: relative;
top: -20px;
background-color: var(--light-btn);
color: var(--tertiary-color);
display: grid;
grid-template-columns: repeat(3, auto);
border-radius: 20px;
border: 2px solid var(--primary-color);
@include box-shadow(var(--shadow));
div {
display: grid;
place-items: center;
margin: 5px;
font-family: var(--font-family-secondary-black);
cursor: pointer;
@include border-radius(12px);
}
&.calendar__month-list--show {
display: grid;
animation: showtime 1s forwards;
backdrop-filter: blur(30px);
border: 2px solid rgba(255, 255, 255, 0.18);
padding: 10px;
top: -30px;
font-family: var(--font-family-primary);
@include box-shadow(0px 0px 30px 0 rgba(227, 228, 237, 0.37));
}
&:hover {
border: 2px solid var(--tertiary-color);
@include box-shadow(0px 0px 30px 0 rgba(227, 228, 237, 0.37));
}
}
&__month-list--hideonce {
visibility: hidden;
}
&__month-list--hide {
animation: to-right 1s forwards;
visibility: hidden;
pointer-events: none;
}
&__month-item--active {
background-color: var(--primary-color);
color: var(--text-muted);
}
&__month-item {
&:hover {
background-color: var(--primary-color);
color: var(--text-muted);
}
}
}