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

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@ -2,13 +2,17 @@
margin-bottom: 0;
}
.row-fluid [class*="span"]:first-child {
margin-bottom: 20px;
}
.empty-cart {
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
@include mq(md, max) {
@include mq(md, max) {
padding: 0 16px;
}
}

View File

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

View File

@ -5,8 +5,8 @@
border-top: 1px solid $color-black2;
align-items: center;
display: flex;
padding: 22px 0;
padding: 22px 0 !important;
@include mq(xg, min) {
padding: 30px 0;
}
@ -40,12 +40,12 @@
text-transform: capitalize;
grid-area: 2;
margin: 16px 0 16px 0;
@include mq(xg, min) {
font-size: 20px;
line-height: 27px;
}
@include mq(xm, min) {
margin-right: auto;
@ -58,7 +58,7 @@
list-style: none;
margin: 0;
grid-area: 1;
@include mq(xm, min) {
justify-self: center;
}
@ -74,15 +74,15 @@
@include mq(xppp, max) {
gap: 1px;
}
&__img {
width: auto;
height: 20px;
@include mq(xg, min) {
height: 39px;
}
@include mq(xppp, max) {
height: 17px;
}
@ -96,7 +96,7 @@
margin: 0 8px;
width: 1px;
margin: 0 10px 0 4px;
@include mq(xm, min) {
margin: 0 10px 0 13px;
}
@ -128,7 +128,7 @@
list-style-type: none;
margin: 0;
grid: 3;
@include mq(xm, min) {
margin-left: auto;
}
@ -180,7 +180,7 @@
}
}
}
.desativado {
display: none !important;
}

View File

@ -7,6 +7,10 @@
width: 79.76%;
}
@media (max-width: 1024px) {
width: 96.97%;
}
.prateleira {
&__title {
font-family: $font-family-secundary;
@ -36,15 +40,15 @@
&__li {
width: 242px;
display: flex;
display: flex !important;
flex-direction: column;
align-items: center;
@include mq(xg, min) {
width: 485px;
}
}
&__image {
width: 242px;
height: auto;
@ -52,10 +56,47 @@
margin-inline-start: 0px;
margin-inline-end: 0px;
@media (min-width: 3500px) {
width: 500px !important;
padding: 12px 0;
}
@include mq(xg, min) {
width: 485px;
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 {
@ -79,7 +120,7 @@
line-height: 35px;
}
}
a {
background-color: $color-blue2;
border-radius: 8px;
@ -99,6 +140,11 @@
cursor: pointer;
margin-bottom: 56px;
@media (min-width: 3500px) {
width: 500px !important;
padding: 12px 0;
}
@include mq(xg, min) {
width: 485px;
height: 59px;
@ -106,14 +152,58 @@
line-height: 35px;
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 {
display: flex;
width: fit-content;
gap: 10px;
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 {
background-color: $color-blue2;
border-radius: 8px;