-
Notifications
You must be signed in to change notification settings - Fork 1
/
calendar.css
108 lines (96 loc) · 1.49 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
99
100
101
102
103
104
105
106
107
108
* {
margin: 0;
padding: 0;
font-family: sans-serif;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.calendar {
width: fit-content;
margin: 50px;
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
}
.year-month {
font-size: 35px;
}
.nav {
display: flex;
border: 1px solid #333333;
border-radius: 5px;
}
.nav-btn {
width: 28px;
height: 30px;
border: none;
font-size: 16px;
line-height: 34px;
background-color: transparent;
cursor: pointer;
}
.go-today {
width: 75px;
border-left: 1px solid #333333;
border-right: 1px solid #333333;
}
.days {
display: flex;
margin: 25px 0 10px;
}
.day {
width: calc(95% / 7);
text-align: center;
}
.dates {
width:fit-content;
display: flex;
flex-flow: row wrap;
height: 500px;
padding-right:-30px;
/* border-top: 1px solid #333333;
border-right: 1px solid #333333; */
}
.date {
border:1px solid #333333;
width: calc(92% / 7);
padding: 10px;
text-align: right;
/* border-bottom: 1px solid #333333;
border-left: 1px solid #333333; */
}
.day:nth-child(7n + 1),
.date:nth-child(7n + 1) {
color: #D13E3E;
}
.day:nth-child(7n),
.date:nth-child(7n) {
color: #396EE2;
}
.other {
opacity: .3;
}
.today {
position: relative;
color: #FFFFFF;
}
.today::before {
position: absolute;
top: 50%;
left: 50%;
z-index: -1;
display: block;
width: 30px;
height: 30px;
background-color: #FF0000;
border-radius: 50%;
transform: translate(-50%, -50%);
content: '';
}