feat: Adiciona formatação nos itens do carrinho

This commit is contained in:
Cainã Milech 2022-12-11 22:27:20 -03:00
parent f42deb94f6
commit 5605513782
4 changed files with 54 additions and 25 deletions

View File

@ -0,0 +1,4 @@
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="8" cy="8" r="8" fill="#00C8FF"/>
<path d="M12.3182 7.09804H3.68182C3.30545 7.09804 3 7.40349 3 7.77986V8.23438C3 8.61074 3.30545 8.91619 3.68182 8.91619H12.3182C12.6945 8.91619 13 8.61074 13 8.23438V7.77986C13 7.40349 12.6945 7.09804 12.3182 7.09804Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 382 B

View File

@ -54,6 +54,7 @@
display: none;
}
.cart {
font-family: $font-family-secundary;
border: 1px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
@ -147,8 +148,9 @@
}
.cart-items {
.product-item {
padding: 16px 0;
td {
text-align: start;
padding: 0;
}
th {
@ -168,7 +170,7 @@
}
.product-image {
height: auto;
height: 60px;
padding: 0;
width: 60px;
@ -177,9 +179,10 @@
}
img {
max-width: 60px;
height: 60px;
max-width: 100%;
width: auto;
/*max-width: 100%;*/
width: 60px;
@include mq(sm, max) {
height: 72px;
@ -189,24 +192,25 @@
}
.product-name {
padding-right: 0;
padding: 0 0 0 16px;
@include mq(lg, max) {
width: 250px;
}
a {
color: $color-blue;
color: $color-black-500;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
pointer-events: none;
transition: ease-in 0.22s all;
&:hover {
/*&:hover {
color: darken($color-blue, 10);
text-decoration: none;
}
}*/
@media (max-width: 490px) {
margin-left: 23px;
@ -220,7 +224,7 @@
}
td.shipping-date {
color: $color-gray2;
color: $color-gray6;
font-size: 12px;
line-height: 14px;
@ -231,6 +235,8 @@
.product-price {
min-width: 100px;
/*padding-top: 13px;*/
@include mq(md, max) {
min-width: 78px;
}
@ -241,7 +247,6 @@
}
span.list-price {
color: $color-gray2;
font-size: 12px;
line-height: 14px;
text-decoration-line: line-through;
@ -251,22 +256,28 @@
}
.old-product-price-label {
color: $color-gray6;
text-transform: lowercase;
}
.muted {
color: $color-gray6;
}
}
}
td.quantity {
align-items: center;
border: 1px solid $color-gray3;
border-radius: 0;
border-radius: 8px;
box-sizing: border-box;
display: flex;
justify-content: center;
margin: 6px auto 0;
margin: 13px 0 0;
height: 34px;
max-height: 38px;
max-width: 118px;
padding: 0;
padding: 9px 0;
width: max-content !important;
@media (max-width: 490px) {
@ -275,15 +286,13 @@
input {
background-color: $color-white;
border: 1px solid $color-gray3;
border-radius: 0;
border-width: 0 1px;
border: 0;
display: block;
max-height: 38px;
margin: 0 !important;
padding: 8px 0;
padding: 0;
width: 38px;
color: $color-gray2;
color: $color-black-500;
box-shadow: none;
@include mq(lg, max) {
@ -294,24 +303,24 @@
.icon-plus-sign,
.icon-minus-sign {
&::before {
color: $color-black;
color: $color-blue2;
display: block;
font-weight: 500;
padding: 1px 12px;
padding: 1px 11px;
}
}
.icon-minus-sign {
&:before {
content: "-";
font-size: 16px;
padding-right: 0;
}
}
.icon-plus-sign {
&:before {
content: "+";
font-size: 14px;
padding-left: 0;
}
}
@ -349,6 +358,13 @@
@include mq(md, max) {
display: none;
}
.total-selling-price {
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
}
}
.item-remove {
@ -356,8 +372,10 @@
top: 0;
}
.icon::before {
color: $color-gray4;
color: $color-gray7;
font-size: 15px;
width: 10px;
height: 10px;
@include mq(md, max) {
font-size: 18px;
@ -745,6 +763,7 @@
.accordion-group {
tr {
border-color: #e5e5e5;
padding: 0;
td {
&.empty {

View File

@ -1,7 +1,10 @@
/* _header.scss */
.headerCheckout {
width: 100%;
border-bottom: 1px solid $color-black-500;
.container {
width: auto !important;
width: 79.53125% !important;
}
&__wrapper {
align-items: center;

View File

@ -15,8 +15,11 @@ $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #c4c4c4;
$color-blue: #4267b2;
$color-blue2: #00c8ff;
$color-green: #4caf50;