-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabc.css
96 lines (93 loc) · 1.7 KB
/
abc.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
@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;
justify-content: center;
min-height: 100vh;
background: #9B59B6;
}
.wrapper{
width: 450px;
background: #fff;
border-radius: 10px;
}
.wrapper header{
display: flex;
align-items: center;
padding: 25px 30px 10px;
justify-content: space-between;
}
header .current-date{
font-size: 1.45rem;
font-weight: 500;
}
header .icons span{
height: 38px;
width: 38px;
color:#878787;
font-size: 1.9rem;
margin: 0 1px;
cursor:pointer;
text-align: center;
line-height: 38px;
border-radius: 50%;
}
header .icons span:hover{
background: #f2f2f2;
}
header .icons span:last-child{
margin-right: -10px;
}
.calendar{
padding: 20px;
}
.calendar ul{
display: flex;
list-style: none;
flex-wrap: wrap;
text-align: center;
}
.calendar .days{
margin-bottom: 20px;
}
.calendar .weeks li{
font-weight: 500;
}
.calendar ul li{
position: relative;
width: calc(100%/7);
}
.calendar .days li{
z-index: 1;
cursor:pointer;
margin-top: 30px;
}
.days li.inactive{
color:#aaa;
}
.days li.active{
color:#fff;
}
.calendar .days li::before{
position: absolute;
content: "";
height: 40px;
width: 40px;
top:50%;
left:50%;
z-index: -1;
border-radius: 50%;
transform: translate(-50%, -50%);
}
.days li:hover::before{
background: #f2f2f2;
}
.days li.active::before{
background: #9B59B6;
}