feat: finalizado

This commit is contained in:
ThiagoDuutra 2022-11-08 15:02:06 -03:00
parent 74344e7fef
commit 3b0366a50c
4 changed files with 29 additions and 1 deletions

View File

@ -55,7 +55,7 @@ document.addEventListener("DOMContentLoaded", () => {
<li class="shopping-item"> <li class="shopping-item">
<span>${item.name}</span> <span>${item.name}</span>
<span>${item.quantity}</span> <span>${item.quantity}</span>
</li </li>
`; `;
}); });
items.innerHTML = itemsStructure; items.innerHTML = itemsStructure;

View File

@ -1,3 +1,7 @@
.shopping-form {
margin-bottom: 32px;
}
.shopping-form-inputs { .shopping-form-inputs {
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;

23
style/items.css Normal file
View File

@ -0,0 +1,23 @@
.shopping-result {
max-width: 416px;
}
.shopping-result-head,
.shopping-item {
display: grid;
grid-template-columns: 3fr 1fr;
padding: 8px 16px;
}
.shopping-result-head {
background: var(--gray-100);
}
.shopping-items {
list-style: none;
}
/*intercalar com os pares*/
.shopping-item:nth-child(even) {
background: var(--gray-100);
}

View File

@ -2,6 +2,7 @@
@import url("global.css"); @import url("global.css");
@import url("variables.css"); @import url("variables.css");
@import url("form.css"); @import url("form.css");
@import url("items.css");
.shopping-container { .shopping-container {
max-width: 1200px; max-width: 1200px;