Merge pull request 'feature/alteracoes' (#2) from feature/alteracoes into main

Reviewed-on: #2
This commit is contained in:
Sabrina Miranda 2022-12-27 02:46:36 +00:00
commit ee8cbf2c82
8 changed files with 1421 additions and 75 deletions

View File

@ -7,19 +7,18 @@ export default class Footer {
async init() { async init() {
await this.selectors(); await this.selectors();
this.paymentsIconsHTML();
this.vtexPciIconHTML();
this.developedByLogoHTML();
/*if (window.location.hash === "#/cart") { /*if (window.location.hash === "#/cart") {
this.onUpdate(); this.onUpdate();
}*/ }*/
this.onUpdate();
this.requestAPI(); this.requestAPI();
this.prateleiraItem = await waitElement(".prateleira__ul"); this.prateleiraItem = await waitElement(".prateleira__ul");
this.events(); this.events();
this.onUpdate();
//await this.addCarrossel();
this.paymentsIconsHTML();
this.vtexPciIconHTML();
this.developedByLogoHTML();
} }
async selectors() { async selectors() {
@ -179,7 +178,7 @@ export default class Footer {
arrows: true, arrows: true,
responsive: [ responsive: [
{ {
breakpoint: 1170, breakpoint: 1024,
settings: { settings: {
slidesToShow: 3, slidesToShow: 3,
slidesToScroll: 1, slidesToScroll: 1,
@ -188,7 +187,7 @@ export default class Footer {
} }
}, },
{ {
breakpoint: 925, breakpoint: 800,
settings: { settings: {
slidesToShow: 2, slidesToShow: 2,
slidesToScroll: 1, slidesToScroll: 1,
@ -197,7 +196,7 @@ export default class Footer {
} }
}, },
{ {
breakpoint: 635, breakpoint: 350,
settings: { settings: {
slidesToShow: 1, slidesToShow: 1,
slidesToScroll: 1, slidesToScroll: 1,

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,15 @@
.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;
} }
.item-unit-label { .item-unit-label {
display: none; display: none;
} }
.cart { .cart {
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
@ -27,6 +30,10 @@
padding: 16px 31px; padding: 16px 31px;
} }
@media (max-width: 1024px) {
height: 91px;
}
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
border-left: none; border-left: none;
@ -34,12 +41,22 @@
border-radius: 0; border-radius: 0;
} }
} }
.cart-fixed.affix { .cart-fixed.affix {
position: relative !important; position: relative !important;
} }
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
border: 1px solid $color-gray5;
border-radius: 8px;
height: 330px !important;
@include mq(xg, min) {
height: 480px !important;
}
h2 { h2 {
background: $color-white; background: $color-white;
border: none; border: none;
@ -49,6 +66,15 @@
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
line-height: 19px; line-height: 19px;
text-align: left;
margin: 24px 0 18px 0;
padding: 0 16px;
@include mq(xg, min) {
font-size: 32px;
line-height: 37px;
padding: 0 34px;
}
} }
.item-unavailable { .item-unavailable {
@ -60,7 +86,7 @@
} }
.cart { .cart {
border: 1px solid $color-gray4; border: 1px solid $color-gray5;
ul li { ul li {
border-top: none; border-top: none;
@ -83,11 +109,13 @@
.summary-template-holder { .summary-template-holder {
border-top: none; border-top: none;
background: $color-white; background: $color-white;
padding: 0 16px;
} }
#go-to-cart-button a { #go-to-cart-button a {
color: #303030; color: $color-black;
text-decoration: underline; text-decoration: underline;
padding-right: 16px;
} }
.summary-totalizers { .summary-totalizers {
@ -111,6 +139,15 @@
text-align: center; text-align: center;
letter-spacing: 0.05em; letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
padding: 12px 91px;
white-space: nowrap;
margin-top: 20px;
@include mq(xg, min) {
font-size: 28px;
line-height: 38px;
padding: 12px 173px;
}
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($color-black, 5);
@ -120,6 +157,17 @@
background: darken($color-black, 5); background: darken($color-black, 5);
} }
} }
.icon-lock:before {
display: none;
}
.summary-cart-template-holder {
.cart {
margin-bottom: 0;
border: none;
}
}
} }
.lookatme { .lookatme {
@ -129,6 +177,11 @@
.cart-items { .cart-items {
.product-item { .product-item {
padding: 16px 0; padding: 16px 0;
@media (max-width: 1024px) {
display: flex;
flex-direction: column;
}
} }
th { th {
@ -146,6 +199,10 @@
line-height: 33px; line-height: 33px;
} }
@media (max-width: 1024px) {
display: none;
}
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
&.shipping-date { &.shipping-date {
@ -189,6 +246,14 @@
height: 146px; height: 146px;
} }
@media (max-width: 1024px) {
margin-top: -17px;
}
@media (max-width: 490px) {
margin-top: -27px;
}
img { img {
height: 60px; height: 60px;
max-width: 60px; max-width: 60px;
@ -203,6 +268,11 @@
} }
} }
.fn {
width: 200px;
white-space: break-spaces;
}
.product-name { .product-name {
padding: 0; padding: 0;
font-family: $font-family-secundary; font-family: $font-family-secundary;
@ -211,9 +281,12 @@
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black2; color: $color-black2;
width: auto;
@include mq(xg, min) { @include mq(xg, min) {
width: 600px; width: 600px;
font-size: 24px;
line-height: 28px;
} }
@include mq(lg, max) { @include mq(lg, max) {
@ -236,16 +309,26 @@
margin-left: 31px; margin-left: 31px;
} }
&:hover { @media (max-width: 1024px) {
color: darken($color-blue, 10); display: flex;
text-decoration: none; margin-left: 76px;
margin-top: -60px;
} }
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 23px; margin-left: 23px;
} margin-top: -26px;
} }
@media (max-width: 310px) {
margin-left: 12px;
}
&:hover {
color: darken($color-blue, 10);
text-decoration: none;
}
}
.brand, .brand,
.seller { .seller {
display: none !important; display: none !important;
@ -265,6 +348,10 @@
line-height: 28px; line-height: 28px;
} }
@media (max-width: 1024px) {
display: none;
}
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
@ -274,13 +361,18 @@
min-width: 100px; min-width: 100px;
text-align: left; text-align: left;
@media (max-width: 1024px) {
text-align: right;
bottom: 40px;
}
@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: 5px;
right: 0; right: 0;
} }
@ -353,8 +445,19 @@
padding: 21px 62px; padding: 21px 62px;
} }
@media (max-width: 1024px) {
display: flex;
margin-left: 76px;
margin-top: -100px;
}
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
margin-top: -10px;
}
@media (max-width: 310px) {
margin-left: 75px !important;
} }
input { input {
@ -443,6 +546,11 @@
} }
.quantity-price { .quantity-price {
@media (max-width: 1024px) {
display: none;
}
.total-selling-price { .total-selling-price {
font-family: $font-family; font-family: $font-family;
font-weight: 700; font-weight: 700;
@ -460,9 +568,17 @@
} }
.item-remove { .item-remove {
@media (max-width: 1024px) {
text-align: right;
margin-top: -92px;
width: auto;
}
@media (max-width: 490px) { @media (max-width: 490px) {
top: 0; top: 0;
margin-top: -25px;
} }
.icon::before { .icon::before {
color: $color-gray6; color: $color-gray6;
font-size: 15px; font-size: 15px;
@ -474,6 +590,11 @@
@include mq(md, max) { @include mq(md, max) {
font-size: 18px; font-size: 18px;
} }
@media (max-width: 490px) {
font-size: 13.5px;
}
} }
} }
@ -492,14 +613,24 @@
} }
.summary { .summary {
@media (max-width: 1024px) {
display: flex;
flex-direction: column;
}
.cart-more-options { .cart-more-options {
margin: 0; margin: 0;
width: max-content; width: max-content;
@media (max-width: 1024px) {
margin-bottom: 48px;
}
.srp-container { .srp-container {
padding: 0 0 0 10px; padding: 0 0 0 10px;
@include mq(md, max) { @media (max-width: 1024px) {
padding: 0 16px; padding: 0 16px;
} }
@ -539,6 +670,17 @@
max-width: none; max-width: none;
margin-bottom: 11px; margin-bottom: 11px;
} }
@media (max-width: 310px) {
max-width: 17rem;
}
}
.onda-v1 .relative,
.vtex-shipping-preview-0-x-pc .ship-country {
@media (max-width: 375px) {
width: 100%;
}
} }
button.shp-open-options { button.shp-open-options {
@ -584,6 +726,10 @@
margin-bottom: 40px; margin-bottom: 40px;
} }
@media (max-width: 1024px) {
margin-bottom: 0;
}
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-blue2; background-color: $color-blue2;
border: none; border: none;
@ -609,6 +755,10 @@
padding: 11px 63px; padding: 11px 63px;
} }
@media (max-width: 311px) {
padding: 11px 18px;
}
&:hover { &:hover {
background-color: $color-blue3; background-color: $color-blue3;
} }
@ -683,6 +833,11 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
.ship-postalCode {
@media (max-width: 375px) {
width: 63%;
}
}
.ship-postalCode, .ship-postalCode,
.ship-country { .ship-country {
@ -717,6 +872,10 @@
font-size: 24px; font-size: 24px;
line-height: 28px; line-height: 28px;
} }
@media (max-width: 375px) {
width: 100%;
}
} }
input { input {
@ -741,6 +900,10 @@
padding: 13px 16px; padding: 13px 16px;
margin-bottom: 5px; margin-bottom: 5px;
} }
@media (max-width: 375px) {
width: 100%;
}
} }
& ~ button { & ~ button {
@ -777,6 +940,16 @@
top: 136px; top: 136px;
} }
@media (max-width: 375px) {
width: 35%;
right: 0;
}
@media (max-width: 320px) {
font-size: 12px;
padding: 8px 5px;
}
&:hover { &:hover {
background-color: $color-blue3; background-color: $color-blue3;
} }
@ -895,6 +1068,10 @@
width: 692px; width: 692px;
} }
@media (max-width: 1024px) {
width: 100%;
}
.coupon-data { .coupon-data {
margin-bottom: 0 0 10px 0; margin-bottom: 0 0 10px 0;
@ -949,12 +1126,26 @@
line-height: 28px; line-height: 28px;
} }
@media (max-width: 1024px) {
padding: 0 16px;
}
} }
.coupon-fields { .coupon-fields {
margin-bottom: 54px; margin-bottom: 54px;
display: flex; display: flex;
span {
@media (max-width: 1024px) {
width: 100%;
}
@media (max-width: 767px) {
padding: 0 16px;
}
}
input { input {
background-color: $color-white; background-color: $color-white;
border: 2px solid $color-gray5; border: 2px solid $color-gray5;
@ -978,6 +1169,22 @@
width: 398px; width: 398px;
} }
@media (max-width: 1024px) {
width: 84.4%;
}
@media (max-width: 767px) {
width: 80.5%;
}
@media (max-width: 573px) {
width: 58.6%;
}
@media (max-width: 370px) {
width: 58%;
}
&::placeholder { &::placeholder {
padding: 1px 1px; padding: 1px 1px;
} }
@ -1013,6 +1220,25 @@
padding: 8px 50px; padding: 8px 50px;
} }
@media (max-width: 1024px) {
margin-left: 5px;
width: 14.5%;
}
@media (max-width: 767px) {
padding: 8px 10px;
width: 18%;
}
@media (max-width: 573px) {
width: 39%;
}
@media (max-width: 370px) {
width: 38%;
padding: 8px 5px;
}
&:hover { &:hover {
background-color: $color-blue3; background-color: $color-blue3;
} }
@ -1025,6 +1251,12 @@
} }
.accordion-group { .accordion-group {
@media (max-width: 1024px) {
width: 96.8%;
margin: auto;
padding: 0 4px;
}
tr { tr {
border-color: #e5e5e5; border-color: #e5e5e5;
@ -1057,6 +1289,11 @@
text-align: right; text-align: right;
} }
} }
.customTax {
margin: 25px 0;
}
} }
tfoot { tfoot {
@ -1073,6 +1310,11 @@
@include mq(xg, min) { @include mq(xg, min) {
font-size: 36px; font-size: 36px;
line-height: 49px; line-height: 49px;
}
}
td.monetary {
@include mq(xg, min) {
width: 250px; width: 250px;
} }
} }
@ -1093,9 +1335,9 @@
width: 688px; width: 688px;
} }
@include mq(md, max) { @media (max-width: 1024px) {
width: 100%;
padding: 0 16px; padding: 0 16px;
width: calc(100% - 32px);
float: none; float: none;
} }
@ -1146,6 +1388,14 @@
padding: 12px 175px; padding: 12px 175px;
} }
@media (max-width: 384px) {
padding: 12px 95px;
}
@media (max-width: 370px) {
padding: 12px 45px;
}
&:hover { &:hover {
background: $color-blue3; background: $color-blue3;
} }

View File

@ -4,6 +4,18 @@ body .container-main.container-order-form .orderform-template.active {
margin-left: unset; margin-left: unset;
margin-right: 0; margin-right: 0;
float: right; float: right;
@media (max-width: 1024px) {
width: 100%;
}
.description {
margin-top: 0;
@media (max-width: 1024px) {
width: 100%;
}
}
} }
.orderform-template-holder { .orderform-template-holder {
width: 66.1132%; width: 66.1132%;

View File

@ -2,6 +2,10 @@
margin-bottom: 0; margin-bottom: 0;
} }
.row-fluid [class*="span"]:first-child {
margin-bottom: 20px;
}
.empty-cart { .empty-cart {
font-family: $font-family; font-family: $font-family;
&-content { &-content {

View File

@ -5,6 +5,7 @@
* { * {
box-sizing: border-box; box-sizing: border-box;
outline: none;
} }
html { html {
@ -51,10 +52,19 @@ body {
padding-left: 0; padding-left: 0;
} }
} }
.transactions-container {
display: none;
}
.container-order-form, .container-order-form,
.container-cart { .container-cart {
width: 96.875%; width: 96.875%;
@media (max-width: 1024px) {
width: 100%;
}
@include mq(xm, min) { @include mq(xm, min) {
width: 80%; width: 80%;
} }
@ -62,6 +72,10 @@ body {
@include mq(xpp, max) { @include mq(xpp, max) {
width: 91.4666%; width: 91.4666%;
} }
@media (max-width: 767px) {
width: 100%;
}
} }
} }
@ -98,6 +112,10 @@ body {
@include mq(xm, min) { @include mq(xm, min) {
margin: 17px 0 16px; margin: 17px 0 16px;
} }
@media (max-width: 1024px) {
padding: 0 16px;
}
} }
#orderform-title { #orderform-title {

View File

@ -5,7 +5,7 @@
border-top: 1px solid $color-black2; border-top: 1px solid $color-black2;
align-items: center; align-items: center;
display: flex; display: flex;
padding: 22px 0; padding: 22px 0 !important;
@include mq(xg, min) { @include mq(xg, min) {
padding: 30px 0; padding: 30px 0;

View File

@ -7,6 +7,10 @@
width: 79.76%; width: 79.76%;
} }
@media (max-width: 1024px) {
width: 96.97%;
}
.prateleira { .prateleira {
&__title { &__title {
font-family: $font-family-secundary; font-family: $font-family-secundary;
@ -36,7 +40,7 @@
&__li { &__li {
width: 242px; width: 242px;
display: flex; display: flex !important;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -52,10 +56,47 @@
margin-inline-start: 0px; margin-inline-start: 0px;
margin-inline-end: 0px; margin-inline-end: 0px;
@media (min-width: 3500px) {
width: 500px !important;
padding: 12px 0;
}
@include mq(xg, min) { @include mq(xg, min) {
width: 485px; width: 485px;
margin-bottom: 21px; margin-bottom: 21px;
} }
@media (max-width: 1279px) {
width: 200px !important;
}
@media (max-width: 1024px) {
width: 320px;
}
@media (max-width: 999px) {
width: 270px;
}
@media (max-width: 847px) {
width: 230px;
}
@media (max-width: 799px) {
width: 320px;
}
@media (min-width: 535px) {
width: 250px;
}
@media (max-width: 534px) {
width: 220px;
}
@media (max-width: 469px) {
width: 164px !important;
}
} }
&__text { &__text {
@ -99,6 +140,11 @@
cursor: pointer; cursor: pointer;
margin-bottom: 56px; margin-bottom: 56px;
@media (min-width: 3500px) {
width: 500px !important;
padding: 12px 0;
}
@include mq(xg, min) { @include mq(xg, min) {
width: 485px; width: 485px;
height: 59px; height: 59px;
@ -106,6 +152,40 @@
line-height: 35px; line-height: 35px;
padding: 12px 0 12px 0; padding: 12px 0 12px 0;
} }
@media (max-width: 1279px) {
width: 200px !important;
padding: 12px 0;
}
@media (max-width: 1024px) {
width: 320px;
}
@media (max-width: 999px) {
width: 270px;
}
@media (max-width: 847px) {
width: 230px;
}
@media (max-width: 799px) {
width: 320px;
}
@media (min-width: 535px) {
width: 250px;
}
@media (max-width: 534px) {
width: 220px;
}
@media (max-width: 469px) {
width: 164px !important;
padding: 12px 0;
}
} }
ul { ul {
@ -114,6 +194,16 @@
gap: 10px; gap: 10px;
margin: 20px 0 20px 0; margin: 20px 0 20px 0;
@media (max-width: 1279px) {
flex-wrap: wrap;
justify-content: center;
}
@media (max-width: 469px) {
flex-wrap: wrap;
justify-content: center;
}
li { li {
background-color: $color-blue2; background-color: $color-blue2;
border-radius: 8px; border-radius: 8px;