-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
117 lines (103 loc) · 1.98 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Nunito&display=swap");
/* CSS Reset */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
font-family: "Nunito", sans-serif;
height: 100vh;
display: flex;
align-items: center;
flex-direction: column;
background-color: #eec0c6;
background-image: linear-gradient(315deg, #eec0c6 0%, #7ee8fa 74%);
}
.container {
max-width: 500px;
margin-top: 50px;
}
.todo-title {
text-align: center;
font-size: 30px;
text-transform: capitalize;
}
.todo-header {
margin: 30px 0 20px;
display: flex;
}
.todo-header input {
height: 42px;
padding: 10px;
font-size: 18px;
outline: none;
border: none;
text-transform: capitalize;
}
.todo-header button {
font-size: 18px;
height: 42px;
padding: 0 20px;
text-transform: capitalize;
cursor: pointer;
font-family: "Nunito", sans-serif;
background-color: black;
color: white;
border: none;
outline: none;
transition: 0.3s;
}
.todo-header button:hover {
background-color: rgba(0, 0, 0, 0.8);
}
.todo-item-list {
text-align: left;
list-style: none;
perspective: 1000px;
text-transform: capitalize;
}
.todo-item-list li {
display: flex;
align-items: center;
justify-content: space-between;
background-color: #ffac81;
background-image: linear-gradient(315deg, #ffac81 0%, #ff928b 74%);
padding: 10px 15px;
margin: 4px 0;
font-size: 18px;
font-weight: 700;
color: black;
animation: 0.3s ease-in-out;
}
.fa-trash,
.fa-edit {
cursor: pointer;
background-color: white;
padding: 6px 10px;
border-radius: 7px;
text-align: center;
margin-top: 3px;
color: #332d2d;
}
.fa-trash {
margin-left: auto;
margin-right: 15px;
}
/* Animate in */
@keyframes slideIn {
from {
opacity: 0;
transform: rotateX(60deg) translateY(-10px);
}
to {
opacity: 1;
transform: rotateX(0deg) translateY(0px);
}
}
/* Animate out */
.slideOut {
transform: rotateX(60deg) translateY(-10px);
opacity: 0;
transition: 0.5s;
}