-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
111 lines (111 loc) · 1.94 KB
/
style.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
109
110
111
/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Poppins", sans-serif;
}
body {
display: flex;
align-items: center;
padding: 0 10px;
justify-content: center;
min-height: 100vh;
background: #111;
}
.wrapper {
width: 450px;
background: #fff;
/* for black */
/* background: #222; */
/* color: #fff; */
/* border: 2px solid #fff; */
border-radius: 10px;
box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}
.wrapper header {
display: flex;
align-items: center;
padding: 25px 30px 10px;
justify-content: space-between;
}
header .icons {
display: flex;
}
header .icons span {
height: 38px;
width: 38px;
margin: 0 1px;
cursor: pointer;
color: #878787;
text-align: center;
line-height: 38px;
font-size: 1.9rem;
user-select: none;
border-radius: 50%;
}
.icons span:last-child {
margin-right: -10px;
}
header .icons span:hover {
background: #f2f2f2;
}
header .current-date {
font-size: 1.45rem;
font-weight: 500;
}
.calendar {
padding: 20px;
}
.calendar ul {
display: flex;
flex-wrap: wrap;
list-style: none;
text-align: center;
}
.calendar .days {
margin-bottom: 20px;
}
.calendar li {
color: #333;
/* for black */
/* color: #fff; */
width: calc(100% / 7);
font-size: 1.07rem;
}
.calendar .weeks li {
font-weight: 500;
cursor: default;
}
.calendar .days li {
z-index: 1;
cursor: pointer;
position: relative;
margin-top: 30px;
}
.days li.inactive {
color: #aaa;
}
.days li.active {
color: #fff;
}
.days li::before {
position: absolute;
content: "";
left: 50%;
top: 50%;
height: 40px;
width: 40px;
z-index: -1;
border-radius: 50%;
transform: translate(-50%, -50%);
}
.days li.active::before {
background: #3cafcf;
}
.days li:not(.active):hover::before {
background: #f2f2f2;
/* for black */
/* background: #333; */
}