-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalender.css
More file actions
46 lines (40 loc) · 797 Bytes
/
Copy pathcalender.css
File metadata and controls
46 lines (40 loc) · 797 Bytes
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
body {
font-family: Arial, sans-serif;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
margin: 0;
}
.calendar {
border: 1px solid #ccc;
border-radius: 8px;
overflow: hidden;
}
.month {
background-color: #3498db;
color: #fff;
text-align: center;
padding: 10px;
}
.days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 1px;
}
.day {
text-align: center;
padding: 10px;
border: 1px solid #ccc;
background-color: #f9f9f9;
}
/* Highlight the weekend days */
.day:nth-child(1), .day:nth-child(7) {
background-color: #e74c3c;
color: #fff;
}
.day:hover {
background-color: #3498db;
color: #fff;
cursor: pointer;
}