File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717 < h1 > My ToDo List</ h1 >
1818
1919 < div class ="todo-input ">
20+ < label for ="new-task-input " class ="visually-hidden "> Task</ label >
2021 < input
2122 type ="text "
2223 id ="new-task-input "
2324 placeholder ="Enter a new task... "
2425 />
26+ < label for ="new-task-deadline " class ="visually-hidden "
27+ > Deadline (optional)</ label
28+ >
2529 < input type ="date " id ="new-task-deadline " />
2630 < button id ="add-task-btn "> Add</ button >
2731 </ div >
2832
2933 < ul id ="todo-list " class ="todo-list "> </ ul >
3034 < button id ="delete-completed-btn "> Delete completed tasks</ button >
3135
32- <!--
33- This is a template for the To-do list item.
34- It can simplify the creation of list item node in JS script.
35- -->
3636 < template id ="todo-item-template ">
3737 < li class ="todo-item ">
38- <!-- include class "completed" if the task completed state is true -->
3938 < span class ="description "> Task description</ span >
4039 < span class ="deadline "> </ span >
4140 < div class ="actions ">
Original file line number Diff line number Diff line change 3030 margin-bottom : 20px ;
3131}
3232
33+ . visually-hidden {
34+ position : absolute;
35+ width : 1px ;
36+ height : 1px ;
37+ margin : -1px ;
38+ padding : 0 ;
39+ overflow : hidden;
40+ white-space : nowrap;
41+ border : 0 ;
42+ }
43+
3344. todo-input input {
3445 flex : 1 ;
3546 padding : 10px ;
4152. todo-input button {
4253 padding : 10px 20px ;
4354 font-size : 16px ;
44- background-color : # 4CAF50 ;
55+ background-color : # 4caf50 ;
4556 color : white;
4657 border : none;
4758 border-radius : 6px ;
You can’t perform that action at this time.
0 commit comments