feat: adiciona css checkout com produto 1024px

This commit is contained in:
Rafael Sampaio de Oliveira 2022-12-20 07:33:13 -03:00
parent 0f4ac96f58
commit c942b3f5a6
6 changed files with 197 additions and 28 deletions

View File

@ -214,12 +214,12 @@
p { p {
label { label {
color: $color-gray9; color: $color-gray9;
font-weight: 500;
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 700;
font-size: 14px; font-size: 12px;
line-height: 19px; line-height: 16px;
letter-spacing: 0.05em;
#opt-in-newsletter { #opt-in-newsletter {
width: 18px; width: 18px;
@ -262,9 +262,8 @@
button.submit { button.submit {
border: none; border: none;
border-radius: 5px; border-radius: 8px;
background: $color-blue; background: $color-blue;
margin-top: 8px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 100%; width: 100%;
@ -306,6 +305,15 @@
font-weight: 500; font-weight: 500;
} }
.vtex-omnishipping-1-x-shippingSectionTitle {
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
color: $color-gray9;
}
.shp-lean { .shp-lean {
border: 1px solid $color-gray11; border: 1px solid $color-gray11;
border-radius: 0; border-radius: 0;
@ -325,9 +333,13 @@
} }
.delivery-address-title { .delivery-address-title {
color: #303030; font-family: "Open Sans";
font-size: 14px; font-style: normal;
font-weight: 500; font-weight: 700;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
color: $color-gray9;
} }
.shp-summary-group-info { .shp-summary-group-info {
@ -341,13 +353,13 @@
color: #303030; color: #303030;
padding: 12px; padding: 12px;
&:first-child::before { // &:first-child::before {
content: ""; // content: "";
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png"); // background-image: url("https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png");
background-size: 21px 20px; // background-size: 21px 20px;
width: 21px; // width: 21px;
height: 20px; // height: 20px;
} // }
@include mq(md, max) { @include mq(md, max) {
background-position: 8px 9px; background-position: 8px 9px;
@ -358,10 +370,6 @@
font-weight: 500; font-weight: 500;
text-decoration: underline; text-decoration: underline;
} }
.ship-street {
display: none !important;
}
} }
.shp-summary-group-price, .shp-summary-group-price,
@ -424,6 +432,33 @@
max-width: 280px; max-width: 280px;
} }
} }
.vtex-omnishipping-1-x-address {
.ship-street,
.ship-neighborhood,
.ship-city,
.ship-state {
display: none;
}
.ship-number {
input {
width: 155%;
height: 25px;
border-radius: 8px;
margin-bottom: 20px;
}
}
.ship-receiverName {
input {
width: 95%;
border-radius: 8px;
height: 25px;
margin: 0;
}
}
}
} }
} }
} }

View File

@ -17,12 +17,16 @@
display: none; display: none;
} }
.cart { .cart {
// border: 1px solid $color-gray3; border: 1px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
padding: 16px 16px; padding: 16px 16px;
margin-bottom: 0 !important; margin-bottom: 0 !important;
@media (max-width: 1024px) {
padding: 7px 16px;
}
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
border-left: none; border-left: none;
@ -150,6 +154,11 @@
} }
.cart-items { .cart-items {
@media (max-width: 1024px) {
thead {
display: none;
}
}
.shipping-date { .shipping-date {
font-size: 0; font-size: 0;
@ -164,6 +173,10 @@
.product-item { .product-item {
padding: 16px 0; padding: 16px 0;
@media (max-width: 1024px) {
position: relative;
}
.shipping-estimate-date { .shipping-estimate-date {
color: $color-gray6; color: $color-gray6;
@ -218,6 +231,11 @@
padding-right: 0; padding-right: 0;
white-space: normal; white-space: normal;
@media (max-width: 1024px) {
position: absolute;
top: 0;
}
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
@ -231,6 +249,10 @@
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
margin-left: 11px; margin-left: 11px;
@media (max-width: 1024px) {
margin-left: 16px;
}
&:hover { &:hover {
color: darken($color-blue, 10); color: darken($color-blue, 10);
text-decoration: none; text-decoration: none;
@ -263,6 +285,10 @@
width: 7%; width: 7%;
} }
@media (max-width: 1024px) {
display: none;
}
&::before { &::before {
content: ""; content: "";
} }
@ -285,6 +311,13 @@
.product-price { .product-price {
font-size: 0; font-size: 0;
@media (max-width: 1024px) {
min-width: 130px;
position: absolute;
left: 87.5%;
top: 25%;
}
&::before { &::before {
content: "Unidade"; content: "Unidade";
font-size: 14px; font-size: 14px;
@ -293,9 +326,9 @@
margin-left: 35px; margin-left: 35px;
} }
min-width: 100px; min-width: 100px;
@include mq(md, max) { // @include mq(md, max) {
min-width: 78px; // min-width: 78px;
} // }
@media (max-width: 490px) { @media (max-width: 490px) {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
@ -310,6 +343,11 @@
position: absolute; position: absolute;
margin: 8px 0 0 35px; margin: 8px 0 0 35px;
left: 2.5%; left: 2.5%;
@media (max-width: 1024px) {
margin: 8px 0 0 47px;
}
@include mq(sm, max) { @include mq(sm, max) {
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
@ -339,6 +377,10 @@
width: 64.91% !important; width: 64.91% !important;
position: relative; position: relative;
@media (max-width: 1024px) {
margin: 28px 0 0 16px;
}
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
} }
@ -404,6 +446,10 @@
.quantity-price { .quantity-price {
text-align: left; text-align: left;
@media (max-width: 1024px) {
display: none;
}
.icon-question-sign { .icon-question-sign {
display: none; display: none;
} }
@ -466,6 +512,11 @@
color: $color-gray8; color: $color-gray8;
font-size: 15px; font-size: 15px;
@media (max-width: 1024px) {
position: absolute;
top: 0;
}
@include mq(md, max) { @include mq(md, max) {
font-size: 18px; font-size: 18px;
} }
@ -492,7 +543,7 @@
width: max-content; width: max-content;
.srp-container { .srp-container {
padding: 0 0 0 10px; padding: 0 0 0 16px;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
@ -544,6 +595,10 @@
.srp-data { .srp-data {
width: 280px; width: 280px;
@media (max-width: 1024px) {
margin-bottom: 48px;
}
.ship-country { .ship-country {
display: none; display: none;
} }
@ -570,6 +625,10 @@
line-height: 16px; line-height: 16px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
@media (max-width: 1024px) {
width: 122.5%;
}
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: lighten($color-black, 5);
} }
@ -583,6 +642,10 @@
.srp-toggle { .srp-toggle {
margin: 0 0 20px; margin: 0 0 20px;
@media (max-width: 1024px) {
width: 122.5%;
}
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $color-white;
border-radius: 100px; border-radius: 100px;
@ -634,6 +697,10 @@
height: 36px; height: 36px;
padding: 12px 8px; padding: 12px 8px;
width: 132.31%; width: 132.31%;
@media (max-width: 1024px) {
width: 165.39%;
}
} }
& ~ button { & ~ button {
@ -653,6 +720,11 @@
width: 76.93%; width: 76.93%;
text-transform: uppercase; text-transform: uppercase;
@media (max-width: 1024px) {
width: 92.31%;
right: -213px;
}
// &:hover { // &:hover {
// background-color: lighten($color-black, 5); // background-color: lighten($color-black, 5);
// } // }
@ -753,6 +825,11 @@
margin-top: 49px; margin-top: 49px;
width: 353px; width: 353px;
@media (max-width: 1024px) {
width: 100%;
margin: 0;
padding: 0 16px;
}
.coupon-data { .coupon-data {
#cart-link-coupon-add { #cart-link-coupon-add {
text-decoration: none; text-decoration: none;
@ -825,6 +902,10 @@
padding: 0 12px; padding: 0 12px;
width: 50.52%; width: 50.52%;
@media (max-width: 1024px) {
width: 83.1%;
}
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
@ -843,6 +924,11 @@
width: 37.824%; width: 37.824%;
margin-left: 12px; margin-left: 12px;
@media (max-width: 1024px) {
width: 13.46%;
margin-left: 5px;
}
@include mq(md, max) { @include mq(md, max) {
width: 138px; width: 138px;
} }
@ -899,6 +985,11 @@
} }
} }
} }
@media (max-width: 1024px) {
display: flex;
flex-direction: column;
}
} }
.cart-links-bottom { .cart-links-bottom {
@ -906,6 +997,11 @@
flex-direction: column; flex-direction: column;
width: 354px; width: 354px;
@media (max-width: 1024px) {
width: 97%;
padding: 0 16px;
}
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
width: calc(100% - 32px); width: calc(100% - 32px);

View File

@ -16,6 +16,10 @@ footer .footerCheckout__prateleira,
header { header {
width: 79.53125%; width: 79.53125%;
margin: 0 auto; margin: 0 auto;
@media (max-width: 1024px) {
width: 100%;
}
} }
body { body {
@ -51,6 +55,10 @@ body {
.container-order-form, .container-order-form,
.container-cart { .container-cart {
width: 80%; width: 80%;
@media (max-width: 1024px) {
width: 100%;
}
} }
} }

View File

@ -78,6 +78,16 @@
margin: 0 2px 0 8px; margin: 0 2px 0 8px;
} }
@media (max-width: 1024px) {
&:first-child {
margin: 0 8px 0 16px;
}
&:last-child {
margin: 0 16px 0 8px;
}
}
[dir="rtl"] & { [dir="rtl"] & {
float: right; float: right;
} }
@ -119,6 +129,10 @@
width: 14px; width: 14px;
height: 30px; height: 30px;
color: $color-gray6; color: $color-gray6;
@media (max-width: 1024px) {
left: 2.5%;
}
} }
.slick-next { .slick-next {
// z-index: 4; // z-index: 4;
@ -130,6 +144,10 @@
width: 14px; width: 14px;
height: 30px; height: 30px;
color: $color-gray6; color: $color-gray6;
@media (max-width: 1024px) {
left: 96.5%;
}
} }
.slick-arrow.slick-hidden { .slick-arrow.slick-hidden {
display: none; display: none;

View File

@ -150,8 +150,8 @@
height: 65px; height: 65px;
@media (max-width: 1024px) { @media (max-width: 1024px) {
flex-direction: column; display: grid;
align-items: flex-start; padding-top: 16px;
} }
&::before, &::before,
@ -169,10 +169,11 @@
font-size: 10px; font-size: 10px;
line-height: 14px; line-height: 14px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%; max-width: auto;
@media (max-width: 1024px) { @media (max-width: 1024px) {
margin: 15px 0; margin: 15px 0;
order: 2;
} }
@include mq(md, max) { @include mq(md, max) {
@ -189,6 +190,11 @@
width: 33.224%; width: 33.224%;
max-width: 404px; max-width: 404px;
@media (max-width: 1024px) {
width: auto;
order: 1;
}
span { span {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
@ -228,6 +234,7 @@
@media (max-width: 1024px) { @media (max-width: 1024px) {
margin-top: 10px !important; margin-top: 10px !important;
order: 3;
} }
li:first-child { li:first-child {

View File

@ -5,6 +5,11 @@
width: 100%; width: 100%;
height: 95px; height: 95px;
border-bottom: 1px solid $color-black; border-bottom: 1px solid $color-black;
@media (max-width: 1024px) {
height: 70px;
}
.container { .container {
display: flex; display: flex;
justify-content: center; justify-content: center;