-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalendar.css
98 lines (84 loc) · 1.71 KB
/
calendar.css
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
:root {
--blue: #01C2F9;
}
.calendar {
height: max-content;
width: max-content;
border-radius: 30px;
padding: 1px;
position: relative;
overflow: hidden;
transform: scale(0.75);
}
.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 25px;
font-weight: 600;
padding: 5px;
}
.calendar-body {
padding: 5px;
}
.calendar-week-day {
height: 50px;
display: grid;
grid-template-columns: repeat(7, 1fr);
font-weight: 600;
}
.calendar-week-day div {
display: grid;
place-items: center;
}
.calendar-days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 2px;
}
.calendar-days div {
width: 50px;
height: 50px;
display: flex;
align-items: center;
justify-content: center;
padding: 5px;
position: relative;
cursor: pointer;
animation: to-top 1s forwards;
}
.calendar-days div span {
position: absolute;
}
.calendar-days div.curr-date,
.calendar-days div.curr-date:hover {
background-color: var(--blue);
border-radius: 50%;
}
.calendar-days div.curr-date span {
display: none;
}
.year-picker {
display: flex;
align-items: center;
}
.month-list {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
padding: 20px;
grid-template-columns: repeat(3, auto);
gap: 10px;
display: grid;
transform: scale(1.5);
visibility: hidden;
pointer-events: none;
}
.month-list.show {
transform: scale(1);
visibility: visible;
pointer-events: visible;
transition: all 0.2s ease-in-out;
}