From 011c00679e9ef3e21d97ef366d4f19d8a09ebecc Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 10:56:33 +0300 Subject: [PATCH 01/19] refactor: add two spaces for one indentation to rule 1.1 in html-and-css.md and add formatting torule 2.1 in html-and-css.md in file index.html --- index.html | 70 ++++++++++++++++++++++++++++++++++++++++++------------ 1 file changed, 55 insertions(+), 15 deletions(-) diff --git a/index.html b/index.html index ef4aa1f60c..a5dfba252c 100644 --- a/index.html +++ b/index.html @@ -1,19 +1,59 @@ -Todo App - - + + + Todo App + + + -
Want more details?
-

-

Todo

-

Completed

-
- +
+ + Want more details? +
+
+

+ +

+ + +
+

+

Todo

+ +

Completed

+ +
+ - \ No newline at end of file + + From 7d737b4002d4f62c64b4bca18d9812bb787532fa Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:11:35 +0300 Subject: [PATCH 02/19] refactor: add two spaces for one indentation to rule 1.1 in html-and-css.md and add indents in blocks to rule 3.5 in html-and-css.md in file style.css --- style.css | 152 +++++++++++++++++++++++++++--------------------------- 1 file changed, 76 insertions(+), 76 deletions(-) diff --git a/style.css b/style.css index ab36227705..3c31d6f5b3 100644 --- a/style.css +++ b/style.css @@ -1,148 +1,148 @@ /* Basic Style */ body { - background-color: #f8f8f8; - color: #333; - font-family: Lato, sans-serif; + background-color: #f8f8f8; + color: #333; + font-family: Lato, sans-serif; } .aaa { - width: 500px; - margin: 0 auto; - display: block; - text-align: right; + width: 500px; + margin: 0 auto; + display: block; + text-align: right; } .aaa img { - width: 100%; + width: 100%; } .aaa .more_inf { - font-family: fantasy, cursive; + font-family: fantasy, cursive; } @media (max-width:768px) { -.aaa { text-align: center; -} + .aaa { text-align: center; + } } .centered-main-page-element { - display: block; - width: 500px; - margin: 0 auto 0; + display: block; + width: 500px; + margin: 0 auto 0; } .task { - width: 56%; - display: inline-block; - flex-grow: 1 + width: 56%; + display: inline-block; + flex-grow: 1 } .task-row-wrapper { - display: flex; + display: flex; } ul { - margin:0; - padding: 0px; + margin:0; + padding: 0px; } li, h3 { - list-style:none; + list-style:none; } input,button{ - outline:none; + outline:none; } button { - background: none; - border: 0px; - color: #888; - font-size: 15px; - width: 60px; - font-family: Lato, sans-serif; - cursor: pointer; + background: none; + border: 0px; + color: #888; + font-size: 15px; + width: 60px; + font-family: Lato, sans-serif; + cursor: pointer; } button:hover { - color: #3a3A3a; + color: #3a3A3a; } /* Heading */ h3, label[for='new-task'] { - color: #333; - font-weight: 700; - font-size: 15px; - border-bottom: 2px solid #333; - padding: 30px 0 10px; - margin: 0; - text-transform: uppercase; + color: #333; + font-weight: 700; + font-size: 15px; + border-bottom: 2px solid #333; + padding: 30px 0 10px; + margin: 0; + text-transform: uppercase; } input[type="text"] { - margin: 0; - font-size: 18px; - line-height: 18px; - height: 21px; - padding: 0 9px; - border: 1px solid #dDd; - background: #FFF; - border-radius: 6px; - font-family: Lato, sans-serif; - color: #888; + margin: 0; + font-size: 18px; + line-height: 18px; + height: 21px; + padding: 0 9px; + border: 1px solid #dDd; + background: #FFF; + border-radius: 6px; + font-family: Lato, sans-serif; + color: #888; } input[type="text"]:focus { - color: #333; + color: #333; } /* New Task */ label[for='new-task'] { - display: block; - margin: 0 0 20px; + display: block; + margin: 0 0 20px; } input#new-task { - width: 318px; + width: 318px; } /* Task list */ li { - overflow: hidden; - padding: 20px 0; - border-bottom: 1px solid #eee; + overflow: hidden; + padding: 20px 0; + border-bottom: 1px solid #eee; - display: flex; - justify-content: space-between; - align-items: center; + display: flex; + justify-content: space-between; + align-items: center; } li > * { - vertical-align: middle; + vertical-align: middle; } li > input[type="checkbox"] { - margin: 0 10px; + margin: 0 10px; } li > label { - padding-left: 10px; - box-sizing: border-box; - font-size: 18px; - width: 226px; + padding-left: 10px; + box-sizing: border-box; + font-size: 18px; + width: 226px; } -li > input[type="text"] { - width: 226px +li > input[type="text"] { + width: 226px } button.delete img { - height: 2em; - transform: rotateZ(45deg); - transition: transform 200ms ease-in; + height: 2em; + transform: rotateZ(45deg); + transition: transform 200ms ease-in; } button.delete img:hover { - transform: rotateZ(0); + transform: rotateZ(0); } /* Completed */ ul#completed-tasks label { - text-decoration: line-through - color: #888; + text-decoration: line-through + color: #888; } /* Edit Task */ ul li input[type=text] { - display:none + display:none } ul li.editMode input[type=text] { - display:inline-block; - width:224px + display:inline-block; + width:224px } ul li.editMode label { - display:none; -} \ No newline at end of file + display:none; +} From 927543939c61443c3de93e8e66de44cd69804eab Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:09:37 +0300 Subject: [PATCH 03/19] refactor: update values in lowercase to rule 1.2 in html-and-css.md in file index.html --- index.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index a5dfba252c..a2fa66a09e 100644 --- a/index.html +++ b/index.html @@ -1,10 +1,10 @@ - + Todo App - - + +
@@ -53,7 +53,7 @@

Completed

- + From 355c272a88fbd49744b99a6bbe8a51540d1f64f8 Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:13:39 +0300 Subject: [PATCH 04/19] refactor: update values in lowercase to rule 1.2 in html-and-css.md in file style.css --- style.css | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/style.css b/style.css index 3c31d6f5b3..75ea7d5a0f 100644 --- a/style.css +++ b/style.css @@ -54,7 +54,7 @@ button { cursor: pointer; } button:hover { - color: #3a3A3a; + color: #3a3a3a; } /* Heading */ h3, @@ -73,8 +73,8 @@ input[type="text"] { line-height: 18px; height: 21px; padding: 0 9px; - border: 1px solid #dDd; - background: #FFF; + border: 1px solid #ddd; + background: #fff; border-radius: 6px; font-family: Lato, sans-serif; color: #888; From 02e3086bcb18ff265a5bda4da62f00b8a2a492b8 Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 12:18:37 +0300 Subject: [PATCH 05/19] refactor: update quotes to rule 1.3 in html-and-css.md in file index.html --- index.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/index.html b/index.html index a2fa66a09e..acb41c4d9c 100644 --- a/index.html +++ b/index.html @@ -2,27 +2,27 @@ Todo App - +
- Want more details? + Want more details?
-

+

- +

Todo

-
- + From e70d49fc6a87414b6d9d98e5a42b045abfe2f883 Mon Sep 17 00:00:00 2001 From: Ilia Konev <122528494+bearBenjamin@users.noreply.github.com> Date: Fri, 17 Oct 2025 13:03:45 +0300 Subject: [PATCH 10/19] fix: name writting single style to rule 3.1 in html-and-css.md in files app.js, index.html, style.css --- app.js | 16 ++++++++-------- index.html | 8 ++++---- style.css | 6 +++--- 3 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app.js b/app.js index ab737a6002..9aa030002c 100644 --- a/app.js +++ b/app.js @@ -10,7 +10,7 @@ var taskInput=document.getElementById("new-task");//Add a new task. var addButton=document.getElementsByTagName("button")[0];//first button -var incompleteTaskHolder=document.getElementById("incompleteTasks");//ul of #incompleteTasks +var incompleteTaskHolder=document.getElementById("incomplete-tasks");//ul of #incomplete-tasks var completedTasksHolder=document.getElementById("completed-tasks");//completed-tasks @@ -85,11 +85,11 @@ var editTask=function(){ var editInput=listItem.querySelector('input[type=text]'); var label=listItem.querySelector("label"); var editBtn=listItem.querySelector(".edit"); - var containsClass=listItem.classList.contains("editMode"); - //If class of the parent is .editmode + var containsClass=listItem.classList.contains("edit-mode"); + //If class of the parent is .edit-mode if(containsClass){ - //switch to .editmode + //switch to .edit-mode //label becomes the inputs value. label.innerText=editInput.value; editBtn.innerText="Edit"; @@ -98,8 +98,8 @@ var editTask=function(){ editBtn.innerText="Save"; } - //toggle .editmode on the parent. - listItem.classList.toggle("editMode"); + //toggle .edit-mode on the parent. + listItem.classList.toggle("edit-mode"); }; @@ -131,7 +131,7 @@ var taskIncomplete=function(){ console.log("Incomplete Task..."); //Mark task as incomplete. //When the checkbox is unchecked - //Append the task list item to the #incompleteTasks. + //Append the task list item to the #incomplete-tasks. var listItem=this.parentNode; incompleteTaskHolder.appendChild(listItem); bindTaskEvents(listItem,taskCompleted); @@ -192,4 +192,4 @@ for (var i=0; i
- Want more details? + Want more details?
-

+

@@ -21,7 +21,7 @@

Todo

-