159 lines
2.8 KiB
SCSS
159 lines
2.8 KiB
SCSS
.todo-container {
|
|
max-width: 600px;
|
|
margin: 2rem auto;
|
|
background: var(--surface-color);
|
|
border-radius: var(--border-radius);
|
|
box-shadow: var(--box-shadow);
|
|
padding: 2rem;
|
|
|
|
h1 {
|
|
text-align: center;
|
|
color: var(--primary-color);
|
|
margin-bottom: 1.5rem;
|
|
}
|
|
}
|
|
|
|
.todo-input-group {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 2rem;
|
|
|
|
input[type='text'] {
|
|
flex-grow: 1;
|
|
padding: 0.75rem;
|
|
font-size: 1rem;
|
|
border: 1px solid var(--border-color);
|
|
border-radius: var(--border-radius);
|
|
transition: border-color 0.2s, box-shadow 0.2s;
|
|
|
|
&:focus {
|
|
outline: none;
|
|
border-color: var(--primary-color);
|
|
box-shadow: 0 0 0 3px rgba(103, 58, 183, 0.2);
|
|
}
|
|
}
|
|
|
|
button {
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
color: var(--text-color-light);
|
|
background-color: var(--primary-color);
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
transition: background-color 0.2s;
|
|
|
|
&:hover:not(:disabled) {
|
|
background-color: var(--primary-color-dark);
|
|
}
|
|
|
|
&:disabled {
|
|
background-color: #ccc;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|
|
}
|
|
|
|
.todo-list {
|
|
list-style: none;
|
|
padding: 0;
|
|
margin: 0;
|
|
}
|
|
|
|
li {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
padding: 1rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
transition: background-color 0.2s;
|
|
|
|
&:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
&.completed .todo-title {
|
|
text-decoration: line-through;
|
|
color: #999;
|
|
}
|
|
}
|
|
|
|
.todo-title {
|
|
flex-grow: 1;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.btn-remove {
|
|
background-color: transparent;
|
|
border: none;
|
|
color: var(--error-color);
|
|
font-weight: bold;
|
|
font-size: 1.2rem;
|
|
cursor: pointer;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 50%;
|
|
line-height: 1;
|
|
width: 30px;
|
|
height: 30px;
|
|
transition: background-color 0.2s, color 0.2s;
|
|
|
|
&:hover {
|
|
background-color: rgba(244, 67, 54, 0.1);
|
|
}
|
|
}
|
|
|
|
footer {
|
|
margin-top: 1.5rem;
|
|
text-align: center;
|
|
color: #777;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 2rem;
|
|
color: #888;
|
|
font-style: italic;
|
|
}
|
|
|
|
.list-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 1.5rem;
|
|
padding-bottom: 1.5rem;
|
|
border-bottom: 1px solid var(--border-color);
|
|
|
|
h1 {
|
|
margin: 0;
|
|
}
|
|
}
|
|
|
|
.btn {
|
|
padding: 0.75rem 1.5rem;
|
|
font-size: 1rem;
|
|
font-weight: bold;
|
|
border: none;
|
|
border-radius: var(--border-radius);
|
|
cursor: pointer;
|
|
text-decoration: none;
|
|
display: inline-block;
|
|
text-align: center;
|
|
transition: background-color 0.2s, opacity 0.2s;
|
|
|
|
&:disabled {
|
|
cursor: not-allowed;
|
|
opacity: 0.6;
|
|
}
|
|
}
|
|
|
|
.btn-primary {
|
|
color: var(--text-color-light);
|
|
background-color: var(--primary-color);
|
|
|
|
&:hover:not(:disabled) {
|
|
background-color: var(--primary-color-dark);
|
|
}
|
|
}
|