File tree Expand file tree Collapse file tree
apps/localStorage-and-event-delegation Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ const createElement = item => `
2525 <input class="list__item__checkbox" name="item" type="checkbox" ${
2626 item . done ? 'checked' : ''
2727 } />
28- <label for="item">${ item . text } </label>
28+ <label class="list__item__label" for="item">${ item . text } </label>
2929 </li>
3030 ` ;
3131
Original file line number Diff line number Diff line change @@ -72,6 +72,11 @@ body {
7272 display : inline-block;
7373}
7474
75+ .list__item__checkbox : checked + .list__item__label {
76+ color : # 9c1f33 ;
77+ font-weight : 500 ;
78+ }
79+
7580.form {
7681 margin : 20px 0 ;
7782 display : flex;
@@ -90,9 +95,10 @@ body {
9095
9196.form__submite {
9297 text-transform : uppercase;
93- background : # f7f7f7 ;
94- color : # 9c9c9c ;
98+ background : # 9c1f33 ;
99+ color : # f7f7f7 ;
95100 font-size : 0.8em ;
96101 padding : 10px ;
97102 border-radius : 0 5px 5px 0 ;
103+ border : 0.5px solid rgba (0 , 0 , 0 , 0.2 );
98104}
Original file line number Diff line number Diff line change @@ -68,11 +68,11 @@ <h1 class="content__title">Fancy foods</h1>
6868 < ul class ="list ">
6969 < li class ="list__item ">
7070 < input class ="list__item__checkbox " name ="item " type ="checkbox " />
71- < label for ="item "> Beef Bourguignon</ label >
71+ < label class =" list__item__label " for ="item "> Beef Bourguignon</ label >
7272 </ li >
7373 < li class ="list__item ">
7474 < input class ="list__item__checkbox " name ="item " type ="checkbox " />
75- < label for ="item "> Salad Nicoise</ label >
75+ < label class =" list__item__label " for ="item "> Salad Nicoise</ label >
7676 </ li >
7777 </ ul >
7878
You can’t perform that action at this time.
0 commit comments