feat: checkout do protudo estilizado somente 1280

This commit is contained in:
Matheus Mariosa 2022-12-26 19:45:16 -03:00
parent 5460b231d3
commit ee41da335d
2 changed files with 229 additions and 99 deletions

View File

@ -6,17 +6,29 @@
.cart-template { .cart-template {
font-family: $font-family; font-family: $font-family;
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
} };
.item-unit-label { .item-unit-label {
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; border: 1px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
padding: 0 16px 16px; padding: 0 16px 16px;
height: 127px;
@media only screen and (max-width: 1024px){
border-radius: 0;
border-left: 0;
border-right: 0;
padding: 16px 16px 15px;
height: 93px;
};
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -108,6 +120,16 @@
.cart-items { .cart-items {
.product-item { .product-item {
padding: 16px 0; padding: 16px 0;
@media only screen and (max-width: 1024px){
display: grid;
grid-template:
"image name remove" 25px
"image quantity price" 34px
/ 76px 498.5px 417.5px;
height: 60px;
padding: 0;
}
} }
th { th {
@ -127,9 +149,17 @@
} }
} }
@media only screen and (max-width: 1024px){
display: none;
}
} }
td { td {
padding: 0; padding: 0;
.total-selling-price{
font-weight: 700;
}
} }
.shipping-date{ .shipping-date{
@ -151,17 +181,26 @@
width: 72px; width: 72px;
} }
@media only screen and (max-width: 1024px){
grid-area: image;
}
img { img {
transform: scaleX(-1); transform: scaleX(-1);
height: 60px; height: 60px;
min-width: 60px; min-width: 60px;
max-width: 60px; max-width: 60px;
width: auto; width: auto;
margin-top: 10px;
@include mq(sm, max) { @include mq(sm, max) {
height: 72px; height: 72px;
width: auto; width: auto;
} }
@media only screen and (max-width: 1024px){
margin-top: 0;
}
} }
} }
@ -169,6 +208,11 @@
width: 300px; width: 300px;
padding: 0 0 0 16px; padding: 0 0 0 16px;
@media only screen and (max-width: 1024px){
grid-area: name;
padding: 0;
}
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
@ -208,9 +252,13 @@
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
@media only screen and (max-width: 1024px){
display: none;
}
} }
.product-price { th.product-price {
font-size: 0; font-size: 0;
min-width: 100px; min-width: 100px;
@ -245,15 +293,40 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
td.product-price{
padding-top: 8px;
td.product-price{
font-size: initial;
top: 11.5px;
@media only screen and (max-width: 1024px){
grid-area: price;
justify-self: end;
top: 0;
}
.list-price{
height: 22px;
font-family: 'Tenor Sans';
font-weight: 400;
font-size: 12px;
line-height: 14px;
.old-product-price-label{
text-transform: lowercase;
color: #989898;
}
}
.best-price{
.new-product-price-label{
text-transform: lowercase;
}
}
} }
td.quantity { td.quantity {
align-items: center; align-items: center;
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
border-radius: 0; border-radius: 8px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
justify-content: center; justify-content: center;
@ -263,22 +336,25 @@
padding: 0; padding: 0;
width: max-content !important; width: max-content !important;
height: 34px; height: 34px;
border-radius: 8px;
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
};
@media only screen and (max-width: 1024px){
grid-area: quantity;
margin: 0;
} }
input { input {
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray3; border: 0;
border-radius: 0; border-radius: 0;
border-width: 0 1px;
display: block; display: block;
max-height: 38px; max-height: 38px;
margin: 0 !important; margin: 0 !important;
padding: 8px 0; padding: 0;
width: 38px; width: 25px;
color: $color-gray2; color: $color-gray2;
box-shadow: none; box-shadow: none;
@ -290,24 +366,16 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black; color: #00C8FF;
display: block; display: block;
font-weight: 500; font-weight: 500;
padding: 1px 12px; padding: 1px 12px;
} width: 16px;
} height: 16px;
border-radius: 100px;
.icon-minus-sign { padding: 0;
&:before { margin: 1px 10px;
content: "-"; cursor: pointer;
font-size: 16px;
}
}
.icon-plus-sign {
&:before {
content: "+";
font-size: 14px;
} }
} }
@ -333,16 +401,17 @@
display: none; display: none;
} }
span { span {
text-transform: lowercase;
font-style: normal; font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: black;
} }
} }
.quantity-price { .quantity-price {
@media only screen and (max-width: 1024px){
display: none;
}
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
@ -354,11 +423,27 @@
} }
.icon::before { .icon::before {
color: $color-gray4; color: $color-gray4;
font-size: 15px; font-size: 13px;
height: 10px;
@include mq(md, max) { @include mq(md, max) {
font-size: 18px; font-size: 18px;
} }
}
@media only screen and (max-width: 1024px){
grid-area: remove;
justify-self: end;
height: 11px;
width: 10px;
}
.item-link-remove{
@media only screen and (max-width: 1024px){
font-size: 0;
padding: 0;
}
} }
} }
@ -389,7 +474,7 @@
} }
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 32px 0 11px;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 24px; font-size: 24px;
@ -406,7 +491,7 @@
color: $color-gray2; color: $color-gray2;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0;
} }
button.shp-open-options { button.shp-open-options {
@ -421,8 +506,15 @@
outline: none; outline: none;
padding: 12px 40px; padding: 12px 40px;
transition: all 0.2s linear; transition: all 0.2s linear;
margin-top: 10px;
cursor: pointer; cursor: pointer;
@media only screen and (max-width: 1024px){
width: 157px;
font-size: 14px;
line-height: 19px;
}
&:hover { &:hover {
background-color: lighten($color-gray5, 5); background-color: lighten($color-gray5, 5);
} }
@ -436,6 +528,10 @@
.srp-data { .srp-data {
width: 280px; width: 280px;
@media only screen and (max-width: 1024px){
margin-top: 0;
}
@include mq(cstm, max) { @include mq(cstm, max) {
width: calc(100vw - 32px); width: calc(100vw - 32px);
} }
@ -445,9 +541,9 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: #00C8FF;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
outline: none; outline: none;
width: 100%; width: 100%;
@ -455,7 +551,7 @@
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
&:hover { &:hover {
@ -469,7 +565,8 @@
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 20px;
padding-bottom: 0;
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $color-white;
@ -502,7 +599,15 @@
} }
} }
.srp-postal-code { .srp-postal-code {
.ship-country {
display: none;
}
.vtex-shipping-preview-0-x-postalCodeForgotten{
margin-top: 0;
.ship-postalCode { .ship-postalCode {
label { label {
font-family: $font-family; font-family: $font-family;
@ -511,7 +616,7 @@
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black; color: $color-black;
margin-bottom: 12px; margin-bottom: 2px;
} }
input { input {
@ -526,20 +631,23 @@
} }
& ~ button { & ~ button {
background-color: $color-black; background-color: #00c8fe;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $color-white;
font-size: 12px; font-weight: 700;
font-size: 14px;
line-height: 19px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
outline: none; outline: none;
position: absolute; position: absolute;
right: -150px; right: -150px;
top: 36px; top: 16px;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 96px; width: 96px;
text-transform: uppercase; text-transform: uppercase;
padding: 8px 8px 9px;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($color-black, 5);
@ -550,14 +658,24 @@
} }
} }
small a { small{
font-family: $font-family; a {
font-family: 'Tenor Sans';
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 0px;
line-height: 12px;
color: black;
margin-top: 7px;
cursor: pointer;
};
a::before {
content: 'Não sei meu código postal';
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
color: $color-blue; text-decoration-line: underline;
margin-top: 7px; }
} }
span.help.error { span.help.error {
@ -571,6 +689,8 @@
} }
} }
}
.srp-result { .srp-result {
strong, strong,
.srp-items { .srp-items {
@ -636,6 +756,11 @@
width: 356px; width: 356px;
margin-top: 33px; margin-top: 33px;
@media only screen and (max-width: 1024px){
margin: 48px 16px 7px;
width: 96.875%;
}
.coupon-data { .coupon-data {
#cart-link-coupon-add { #cart-link-coupon-add {
text-decoration: none; text-decoration: none;
@ -673,7 +798,7 @@
} }
.coupon-label{ .coupon-label{
margin-bottom: 0; margin-bottom: 4px;
label { label {
font-family: $font-family; font-family: $font-family;
@ -789,7 +914,7 @@
td.monetary { td.monetary {
font-family: 'Open Sans'; font-family: 'Open Sans';
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 25px; line-height: 25px;
color: $color-black; color: $color-black;
@ -849,10 +974,6 @@
padding: 10.5px 19px; padding: 10.5px 19px;
cursor: pointer; cursor: pointer;
&:hover {
background-color: darken($color-green, 5);
}
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family; font-family: $font-family;
@ -868,4 +989,12 @@
} }
} }
} }
.summary-template-holder{
.row-fluid{
@media only screen and (max-width: 1024px){
display: flex;
flex-direction: column;
}
}
}
} }

View File

@ -4,6 +4,7 @@
}; };
.footerCheckout { .footerCheckout {
margin-top: 37px;
color: $color-gray2; color: $color-gray2;
.footerCheckout__prateleira{ .footerCheckout__prateleira{