-
Notifications
You must be signed in to change notification settings - Fork 0
/
to.css
128 lines (117 loc) · 2.23 KB
/
to.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap");
* {
margin: 0;
padding: 0;
font-family: "Poppins", sans-serif;
box-sizing: border-box;
}
body {
background: #78c1f3;
min-height: 100vh;
display: flex;
align-items: center;
justify-content: center;
}
.container {
background: #ffffff;
padding: 25px;
width: 550px;
border-radius: 10px;
}
.todo-header {
display: flex;
align-items: center;
margin-bottom: 20px;
padding-left: 5px;
justify-content: center;
}
.todo-body {
display: flex;
align-items: center;
justify-content: space-between;
background: #edeef0;
border-radius: 30px;
padding-left: 20px;
margin-bottom: 25px;
}
.todo-body input {
flex: 1;
border: none;
outline: none;
background: transparent;
padding: 15px 0;
font-size: 20px;
}
.todo-body img {
cursor: pointer;
border-radius: 40px;
height: 55px;
width: 55px;
padding: 15px;
background: limegreen;
}
ul li {
list-style: none;
font-size: 18px;
cursor: pointer;
padding: 10px;
}
li {
display: flex;
align-items: center;
justify-content: space-between;
background: #edeef0;
margin-bottom: 10px;
border-radius: 5px;
}
h5 {
text-align: center;
margin-bottom: 10px;
color: green;
}
.todo-controls {
width: 25px;
height: 25px;
padding: 3px;
margin-right: 5px;
}
li {
opacity: 0;
animation: new-item-animation 0.3s linear forwards;
}
@keyframes new-item-animation {
from {
opacity: 0;
transform: translateY(-400px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
li.deleted-item {
animation: removed-item-animation 1s cubic-bezier(0.55, -0.04, 0.91, 0.94)
forwards;
transform-origin: 0% 100%;
}
@keyframes removed-item-animation {
0% {
opacity: 1;
transform: rotateZ(0);
}
100% {
opacity: 0;
transform: translateY(600px) rotateZ(90deg);
}
}
.toggleMe {
animation: hideMe 5s forwards;
}
@keyframes hideMe {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}