Skip to content

Commit

Permalink
fix: botão de check task
Browse files Browse the repository at this point in the history
  • Loading branch information
0Carvalh0 committed Sep 29, 2024
1 parent 460528c commit 7c4f29c
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 7 deletions.
3 changes: 3 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,5 +72,8 @@ <h1 class="todoapp__title">Quick<strong>Task</strong></h1>
</button>
</form>
</main>
<footer class="footer">
<p>© 2024 QuickTask. Todos os direitos reservados - João Victor Carvalho de Souza</p>
</footer>
</body>
</html>
3 changes: 2 additions & 1 deletion src/scripts/toDoListScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,10 @@ document.addEventListener("click", (e) => {
}

if (targetEl.classList.contains("todoapp__button--editTask")) {
oldInputValue = taskTitle; // Definindo o valor aqui
oldInputValue = taskTitle;
toggleForms();
textBoxEdit.value = taskTitle;
textBoxEdit.focus();
}
});

Expand Down
61 changes: 55 additions & 6 deletions src/styles/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ body {
}

.todoapp {
max-height: 90vh;
max-height: 80vh;
width: 90vw;
max-width: 600px;
overflow: hidden;

padding: 2rem;
Expand All @@ -47,19 +49,24 @@ body {
}

.todoapp__input-container {
display: flex;

margin-bottom: 1rem;
}

#todoapp-addTask,
#todoapp-editTask {
width: 100%;

padding: 8px;
margin-right: 1rem;

border-bottom: 2px solid var(--color01);
border-bottom: 3px solid var(--color01);
}

#button-Add,
#button-Edit {
padding: 8px;
padding: 12px;

border-radius: 30% 70% 63% 37% / 27% 32% 68% 73%;

Expand All @@ -68,7 +75,7 @@ body {
}

.todoapp__tasks-list {
max-height: calc(90vh - 50px);
max-height: calc(80vh - 200px);
overflow-y: auto;

display: flex;
Expand All @@ -85,15 +92,35 @@ body {
align-items: center;

padding: 8px;
border: 2px solid var(--color01);
border: 3px solid var(--color01);
border-radius: 8px;
}

.task-LeftSide {
display: flex;
align-items: center;

gap: 8px;
}

.todoapp__task-check {
width: 24px;
height: 24px;

display: grid;
place-items: center;

border-radius: 50%;
border: 3px solid var(--color01);

font-size: 1.2rem;
}

.todoapp__task-check i {
pointer-events: none;
}

.todoapp__task--done {
.done {
color: #9b9b98;
text-decoration: line-through;
}
Expand All @@ -112,3 +139,25 @@ body {
.hide {
display: none !important;
}

.footer {
width: 100%;
padding: 1rem;
background-color: var(--color01);
color: var(--colorwhite);
text-align: center;
position: absolute;
bottom: 0;
left: 0;
font-size: 0.875rem;
}

.footer p {
margin: 0;
}

@media screen and (min-width: 700px) {
* {
font-size: 1.3rem;
}
}

0 comments on commit 7c4f29c

Please sign in to comment.