Skip to content

Commit bbbed6c

Browse files
committed
First version
I am happy with the functionality and the look of the todo list.
1 parent 17a2f88 commit bbbed6c

File tree

2 files changed

+20
-21
lines changed

2 files changed

+20
-21
lines changed

todo-app-ts/src/App.css

+19-20
Original file line numberDiff line numberDiff line change
@@ -96,33 +96,31 @@
9696
margin: 0 50px 0 25px;
9797

9898
}
99-
.todo-list-complete::before{
99+
.todo-list-complete:before{
100100
content: "";
101-
display: block;
102-
width: 16px;
103-
height: 16px;
104-
top: 0;
105-
left: 0;
106-
border: 2px solid #555555;
107-
border-radius: 3px;
108-
background-color: white;
101+
display: block;
102+
width: 16px;
103+
height: 16px;
104+
top: 0;
105+
left: 0;
106+
border: 2px solid #555555;
107+
border-radius: 3px;
108+
background-color: white;
109109
}
110110

111-
.todo-list-delete::before{
111+
.todo-list-delete:before{
112112
content: "";
113-
display: block;
114-
width: 16px;
115-
height: 16px;
116-
top: 0;
117-
left: 0;
118-
border: 2px solid #555555;
119-
border-radius: 3px;
120-
background-color: white;
113+
display: block;
114+
width: 16px;
115+
height: 16px;
116+
top: 0;
117+
left: 0;
118+
border: 2px solid darkred;
119+
border-radius: 3px;
120+
background-color: white;
121121
}
122122

123123

124-
125-
126124
body{
127125
background: #FFFFE0;
128126
}
@@ -159,6 +157,7 @@ hr, form{
159157
/* MAIN */
160158
.todo-list-container{
161159
margin-top: 130px;
160+
margin-bottom: 130px;
162161
position: relative;
163162
}
164163

todo-app-ts/src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ function App(): JSX.Element {
9090
onClick ={() => completeTodo(index)}
9191
className = "todo-list-complete" >
9292
</input>
93-
<div style={{ textDecoration: todo.complete ? 'line-through' : '' }} className = "todo-list-item">
93+
<div style={{ textDecoration: todo.complete ? 'line-through' : ''}} className = "todo-list-item">
9494
{todo.text}
9595
</div>
9696
<input

0 commit comments

Comments
 (0)