You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
93 lines
1.4 KiB
93 lines
1.4 KiB
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');
|
|
|
|
* {
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
body {
|
|
font-family: 'Poppins', sans-serif;
|
|
background: linear-gradient(135deg, #c3cfe2, #f5f7fa);
|
|
min-height: 100vh;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
}
|
|
|
|
.app {
|
|
background: #fff;
|
|
width: 380px;
|
|
border-radius: 12px;
|
|
box-shadow: 0 10px 30px rgba(0,0,0,0.15);
|
|
padding: 20px;
|
|
}
|
|
|
|
h1 {
|
|
text-align: center;
|
|
margin-bottom: 15px;
|
|
color: #6a5acd;
|
|
}
|
|
|
|
#input {
|
|
width: 100%;
|
|
padding: 12px 15px;
|
|
font-size: 1rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
#input:focus {
|
|
outline: none;
|
|
border-color: #6a5acd;
|
|
}
|
|
|
|
#todos {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
#todos li {
|
|
padding: 12px;
|
|
background: #f8f8f8;
|
|
margin-bottom: 8px;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
transition: 0.3s;
|
|
}
|
|
|
|
#todos li:hover {
|
|
background: #ececff;
|
|
}
|
|
|
|
#todos li.completed {
|
|
text-decoration: line-through;
|
|
color: #999;
|
|
background: #e0e0e0;
|
|
}
|
|
|
|
.footer {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-top: 15px;
|
|
}
|
|
|
|
.footer span {
|
|
font-size: 0.9rem;
|
|
color: #555;
|
|
}
|
|
|
|
.footer button {
|
|
border: none;
|
|
background: #ff6b6b;
|
|
color: #fff;
|
|
padding: 6px 12px;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.footer button:hover {
|
|
background: #ff4c4c;
|
|
}
|