Compare commits

..

2 Commits

Author SHA1 Message Date
93447e3b7a feat: Criação CSS do footer 2022-12-10 08:15:01 -03:00
f4acc320a3 feat: Criação do JS do Footer 2022-12-10 08:12:53 -03:00
15 changed files with 11531 additions and 13603 deletions

10970
checkout/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,28 @@
import { waitElement } from "m3-utils";
export default class Content {
constructor() {
this.init();
}
async selectors() {
this.h2CartEmpty = await waitElement(".empty-cart-title", {
timeout: 5000,
interval: 1000,
});
this.btnCartEmpty = await waitElement("#cart-choose-products", {
timeout: 5000,
interval: 1000,
});
}
async init() {
await this.selectors();
await this.insertHTML();
}
async insertHTML() {
this.h2CartEmpty.innerHTML = `Seu carrinho está vazio`;
this.btnCartEmpty.innerHTML = `Continuar Comprando`;
}
}

View File

@ -1,3 +1,5 @@
import { waitElement } from "m3-utils";
export default class Footer {
constructor() {
this.init();
@ -5,127 +7,42 @@ export default class Footer {
async init() {
await this.selectors();
await this.addHTMLFooter();
await this.onUpdate();
await this.addImagesFooter();
// this.onUpdate();
}
async selectors() {
//Para verificar se o carrinho está vazio e remover a prateleira de produtos:
// vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement
this.checkoutVazio = document.querySelector(".empty-cart-content");
this.checkoutPayments = document.querySelector(".footerCheckout__stamps");
this.developBy = document.querySelector(".footerCheckout__developedBy");
this.titleMyCart = document.querySelector("#cart-title");
this.pratileira = document.querySelector(".footerCheckout__prateleira");
this.checkoutVazio = await waitElement(".empty-cart-content");
this.checkoutPayments = await waitElement(".footerCheckout__stamps");
this.developBy = await waitElement(".footerCheckout__developedBy");
console.log(this.developBy);
}
async onUpdate() {
onUpdate() {
//Função qeu fará a verificação se o carrinho está vazio para remover a prateleira de produtos:
// vocês devem olhar a doc fornecida no Desafio para aprender a usar a MutationObserver
// sempre que o carrinho estiver vazio o elemento chcekoutVazio fica display: none e isso pode ser usado como atributo para a MutationObserver
let target = this.checkoutVazio;
let titleCart = this.titleMyCart;
let pratileira = this.pratileira;
let config = { attributes: true };
if (window.location.href != "https://m3academy.myvtex.com/checkout/#/cart") {
pratileira.classList.add("elementInvisible");
} else {
pratileira.classList.remove("elementInvisible");
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart" && target.style.display === "block") {
this.pratileira.classList.add("elementInvisible");
titleCart.classList.add("elementInvisible");
this.api();
} else if (window.location.hash != "#/cart") {
pratileira.classList.add("elementInvisible");
} else {
pratileira.classList.remove("elementInvisible");
}
});
let config = { childList: true, attributes: true };
let observer = new MutationObserver((mutations) => {
mutations.forEach((mutation) => {
if (
target.style.display === "block" ||
window.location.href != "https://m3academy.myvtex.com/checkout/#/cart"
) {
titleCart.classList.add("elementInvisible");
pratileira.classList.add("elementInvisible");
} else {
titleCart.classList.remove("elementInvisible");
pratileira.classList.remove("elementInvisible");
this.api();
}
mutations.forEach(function (mutation) {
console.log(mutation.type);
});
});
observer.observe(target, config);
}
async addCarrossel() {
const elemento = document.querySelector(".sliderPratileira");
const elemento = await waitElement("#my-element");
$(elemento).slick({
slidesToShow: 4,
slidesToScroll: 1,
infinite: true,
arrows: true,
responsive: [
{
breakpoint: 1025,
settings: {
slidesToShow: 3,
slidesToScroll: 1,
},
},
{
breakpoint: 641,
settings: {
slidesToShow: 2,
slidesToScroll: 1,
},
},
],
});
}
async api() {
const url =
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319";
const dados = await fetch(url);
const dataApi = await dados.json();
this.pratileira.innerHTML = `
<p class="titlePratileira">Você também pode gostar</p>
<ul class="sliderPratileira">
${dataApi.map((dataItem) => {
return `<li class="card-list-pratileira">
<figure>
<img class="image-card-pratileira" src="${
dataItem.items[0].images[0].imageUrl
}" alt="${dataItem.productName}" />
<h4 class="title-item-pratileira">${dataItem.productName}</h4>
</figure>
<ol class="wrapper-list-variables">
${dataItem.items
.map((variableItem) => {
return `<li class="variable-pratileira">${variableItem.name}</li>`;
})
.join("")}
</ol>
<button class="btn-pratileira">Ver Produto</button>
</li>`;
})}
</ul>
`;
this.addCarrossel();
}
async addHTMLFooter() {
async addImagesFooter() {
this.checkoutPayments.children[0].innerHTML = `
<div class="footerCheckout__payments">
<img class="paymentFooter" src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="Logo Master Card" />

View File

@ -38,6 +38,7 @@ export default class Header {
async progressBarDots() {
if (this.progressBar && window.screen.width > 1024) {
const progressBarList = document.querySelectorAll("#progressBar ol li");
console.log(progressBarList);
progressBarList.forEach((li) => {
if (window.location.href === "https://m3academy.myvtex.com/checkout/#/cart") {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -4,147 +4,8 @@ body .container-main.container-order-form .orderform-template.active {
margin-left: unset;
margin-right: 0;
float: right;
@media (max-width: 1024px) {
width: 100%;
.cart-fixed {
margin: 0 16px 0;
width: auto;
height: auto !important;
margin-bottom: 100px;
}
.cart-fixed.cart-fixed-transition.affix-top {
margin: 0 16px 0;
height: auto !important;
margin-bottom: 100px;
}
}
}
.orderform-template-holder {
width: 66.1132%;
margin-top: 0;
@media (max-width: 1024px) {
width: 100%;
.row-fluid .span6 {
width: 100%;
}
}
@media (min-width: 2500px) {
margin-bottom: 92px;
}
}
}
.cart-template.mini-cart.span4
.cart-fixed
.summary-template-holder
.row-fluid
.summary-totalizers
div
.accordion-group
.accordion-body
.accordion-inner
table {
.totalizers-list tr {
border-top: 1px solid #e0e0e0;
.monetary,
.info {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
color: $color-gray2;
padding: 25px 0;
box-sizing: border-box;
@media (min-width: 2500px) {
font-size: 28px;
line-height: 38px;
}
}
.monetary {
padding-right: 17px;
}
.info {
padding-left: 17px;
}
}
tfoot tr {
border-top: 1px solid #e0e0e0;
td {
padding: 30px 0 22px;
}
.info,
.monetary {
font-family: $font-family;
font-style: normal;
font-weight: 700;
color: $color-black;
box-sizing: border-box;
}
.info {
font-size: 18px;
line-height: 25px;
padding-left: 17px;
}
.monetary {
font-size: 14px;
line-height: 19px;
padding-right: 17px;
}
@media screen and (min-width: 2500px) {
.info {
font-size: 36px;
line-height: 49px;
}
.monetary {
font-size: 28px;
line-height: 38px;
}
}
}
}
.cart-template.mini-cart.span4 .cart-fixed .payment-confirmation-wrap {
padding: 0;
border-top: none;
.payment-submit-wrap {
margin: 0;
#payment-data-submit {
margin-top: 20px;
padding: 12px 0 11px;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-white;
border-radius: 8px;
background: #298541;
i {
display: none;
}
@media screen and (min-width: 2500px) {
font-size: 28px;
line-height: 38px;
}
}
}
}

View File

@ -1,105 +1,38 @@
.empty-cart {
&-content {
color: $color-black-neutra;
text-align: center;
margin: 170px 0 264px 0;
width: 100%;
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
@include mq(md, max) {
padding: 0 16px 262px;
margin-bottom: 0;
}
}
@include mq(md, max) {
padding: 0 16px;
}
}
&-title {
font-size: 0;
margin: 0;
line-height: 0;
&::before {
content: "Seu carrinho está vazio.";
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-transform: uppercase;
&-title {
font-size: 20px;
}
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 65px;
}
}
&-links {
.link-choose-products {
background: $color-black;
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
@media (max-width: 1024px) {
&::before {
font-size: 18px;
line-height: 25px;
}
}
}
&-links {
.link-choose-products {
font-size: 0;
background: $color-white;
border: 1px solid $color-black-neutra;
transition: ease-in 0.22s all;
border-radius: 0;
box-sizing: border-box;
height: 48px;
margin: 32px 0 0 0;
padding: 16px 64px;
&::before {
content: "Continuar comprando";
font-family: "Tenor Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
color: $color-black-neutra;
}
&:hover {
background: $color-white;
}
@media (max-width: 1024px) {
width: max-content;
padding: 16px 26px;
margin-top: 22px;
}
@media screen and (min-width: 2500px) {
height: 66px;
padding: 16px 121px;
&::before {
font-size: 28px;
line-height: 33px;
}
}
}
}
}
.empty-cart-message,
.transactions-container {
display: none !important;
}
.cart-template {
margin: 0 !important;
}
.elementInvisible {
display: none !important;
}
@media screen and (max-width: 1024px) {
.link-choose-products .link-choose-products {
padding: 16px 26px;
width: max-content;
}
&:hover {
background: lighten($color-black, 5);
}
}
}
}

View File

@ -3,25 +3,19 @@
@import "./checkout-pagamento";
@import "./checkout-autenticacao";
* {
box-sizing: border-box;
margin: 0;
padding: 0;
outline: 0;
}
html {
height: 100%;
min-height: 100%;
}
footer .footerCheckout__wrapper {
border-top: 1px solid #000000;
width: 94.9734%;
margin: auto auto 0 auto;
}
footer .footerCheckout__prateleira,
header {
width: 100%;
border-bottom: 1px solid #000000;
width: 79.53125%;
margin: 0 auto;
}
body {
@ -30,23 +24,32 @@ body {
min-height: 100% !important;
padding-top: 0 !important;
@include mq(md, max) {
padding-left: 0;
}
&.body-cart {
font-family: $font-family;
}
&.body-cart,
&.body-order-form {
@include mq(xl, min) {
padding-top: 0;
}
@include mq(lg, max) {
padding-bottom: 0 !important;
}
@include mq(md, max) {
padding-right: 0;
padding-left: 0;
}
}
.container-order-form,
.container-cart {
width: 80%;
@media screen and (max-width: 1024px) {
width: 100%;
}
}
@media screen and (max-width: 1024px) {
width: 100%;
padding: 0;
margin: 0;
}
}
@ -60,31 +63,22 @@ body {
}
.emailInfo h3 {
color: $color-black;
color: $color-black !important;
}
#cart-title,
#orderform-title {
color: $color-black;
color: $color-gray2;
font-family: $font-family;
font-weight: 700;
font-size: 24px;
line-height: 33px;
margin: 17px 0 17px;
letter-spacing: 0.05em;
font-weight: 500;
font-size: 36px;
line-height: 42px;
margin: 40px 0 30px;
letter-spacing: 0.1em;
text-transform: uppercase;
@media screen and (max-width: 1024px) {
padding: 0 16px;
}
@media screen and (max-width: 300px) {
font-size: 22px;
}
@media screen and (min-width: 2500px) {
font-size: 48px;
line-height: 65px;
@include mq(md, max) {
margin-left: 30px;
}
}

View File

@ -99,39 +99,16 @@
.slick-arrow {
font-size: 0;
position: absolute;
border: 0;
width: 13.64px;
height: 29.47px;
}
.slick-prev {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
left: 20px;
left: 10px;
}
.slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
z-index: 4;
right: 20px;
}
@media (max-width: 1024px) {
.slick-next {
right: 27px;
}
.slick-prev {
left: 29px;
}
}
@media (max-width: 480px) {
.slick-next {
right: 14px;
}
.slick-prev {
left: 21px;
}
right: 10px;
}
.slick-arrow.slick-hidden {
display: none;
@ -157,18 +134,3 @@
}
}
}
@media screen and (min-width: 2500px) {
.slick-arrow {
width: 26px;
height: 58px;
}
.slick-prev {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-M3Academy.svg")
no-repeat center center;
}
.slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-M3Academy.svg")
no-repeat center center;
}
}

View File

@ -1,5 +1,6 @@
/* _footer.scss */
.footerCheckout {
border-top: none;
color: $color-gray2;
&__wrapper {
@ -7,34 +8,6 @@
display: flex;
justify-content: space-between;
margin: 0;
.container {
display: flex;
justify-content: space-between;
align-items: center;
width: 94.9734%;
margin: auto auto 0 auto;
padding: 16px 0 !important;
&::before,
&::after {
display: none;
}
@media (max-width: 1024px) {
display: grid;
grid-template-areas:
"stamps"
"address"
"develop";
width: 100%;
gap: 16px;
}
@media (max-width: 360px) {
padding-right: 16px !important;
}
}
}
&__address {
@ -47,14 +20,9 @@
text-transform: capitalize;
max-width: 40%;
@media (max-width: 1024px) {
@include mq(md, max) {
margin-bottom: 24px;
max-width: 100%;
margin-left: 16px;
}
@media screen and (min-width: 2500px) {
font-size: 20px;
line-height: 27px;
}
}
@ -63,110 +31,10 @@
display: flex;
justify-self: center;
list-style: none;
margin: 0;
width: 33.2329%;
li:first-child {
width: 80.067%;
div.footerCheckout__payments {
display: flex;
height: auto;
gap: 4.0154%;
img.paymentFooter {
min-width: 10.4683%;
height: auto;
}
}
}
li:nth-child(2) {
margin: 0 10px;
}
li:last-child {
width: 13.12%;
div.footerCheckout__payments {
display: flex;
width: 100%;
justify-content: flex-start;
img.vtexIcon {
min-width: 74.8814%;
height: auto;
}
}
}
@media (max-width: 1024px) {
grid-area: stamps;
margin: 0 0 0 8px;
justify-self: auto;
width: max-content;
li:first-child {
width: auto;
div.footerCheckout__payments {
gap: 10px;
img.paymentFooter {
min-width: 35px;
height: 20px;
}
}
}
li:last-child {
width: auto;
div.footerCheckout__payments {
img.vtexIcon {
width: 53px;
height: 33px;
}
}
}
}
@media (max-width: 640px) {
li:first-child {
width: max-content;
div.footerCheckout__payments {
gap: 4px;
}
}
li:nth-child(2) {
margin: 0 10px 0 4px;
}
li:last-child {
width: max-content;
}
}
@media (max-width: 350px) {
display: block;
li:first-child {
width: max-content;
div.footerCheckout__payments {
gap: 4px;
}
}
li:nth-child(2) {
display: none;
}
li:last-child {
margin-top: 16px;
width: max-content;
}
@include mq(md, max) {
align-self: center;
margin-bottom: 12px;
}
&__divider {
@ -175,10 +43,20 @@
align-items: center;
height: 24px;
width: 1px;
}
}
@media (min-width: 2500px) {
height: 43px;
}
&__payments {
.paymentFooter {
width: 35.65px;
height: 20px;
margin-right: 13.35px;
}
.vtexIcon {
width: 53px;
height: 33px;
margin-left: 10px;
}
}
@ -187,33 +65,9 @@
display: flex;
list-style-type: none;
margin: 0;
width: 17.8513%;
gap: 11px;
li:first-child {
width: 48.6151%;
display: flex;
a {
.logoVtexFooter {
max-width: 87.73px;
width: 42.599%;
height: auto;
}
}
}
li:last-child {
display: flex;
width: 45.4541%;
a {
.logoM3Footer {
max-width: 55.98px;
width: 29.7184%;
height: auto;
}
}
margin-left: 16px;
}
a {
@ -232,334 +86,14 @@
}
}
@media screen and (min-width: 2500px) {
width: 16.3437%;
white-space: nowrap;
li:first-child {
width: 50.6151%;
display: flex;
a {
.logoVtexFooter {
width: 100%;
height: auto;
}
}
}
li:last-child {
display: flex;
width: 46.4541%;
a {
.logoM3Footer {
width: 100%;
height: auto;
}
}
}
a {
font-size: 18px;
line-height: 24px;
}
.logoVtexFooter {
width: 44.92px;
height: 16px;
}
@media (max-width: 1024px) {
margin-left: 16px;
width: max-content;
li:first-child {
width: max-content;
a {
.logoVtexFooter {
min-width: 45px;
height: 16px;
}
}
}
li:last-child {
width: max-content;
margin-left: 11px;
a {
.logoM3Footer {
min-width: 29px;
height: 16px;
}
}
}
}
}
&__prateleira {
padding-bottom: 56px;
.titlePratileira {
font-family: $font-family-secundary;
font-weight: 400;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: $color-black-neutra;
margin-bottom: 20px;
@media (max-width: 440px) {
font-size: 14px;
line-height: 28px;
}
}
.sliderPratileira {
width: 80%;
display: flex;
align-items: center;
justify-content: center;
margin: 0 auto;
.card-list-pratileira {
list-style-type: none;
width: 242px;
height: max-content;
display: flex;
align-items: center;
flex-direction: column;
@media (min-width: 1280px) and (max-width: 1281px) {
width: 242px !important;
}
figure {
width: 100%;
margin: 0;
.image-card-pratileira {
width: 100%;
height: 242px;
}
.title-item-pratileira {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
height: 18px;
text-align: center;
color: $color-black-neutra;
margin: 20px 0;
overflow-y: scroll;
word-wrap: break-word;
&::-webkit-scrollbar {
display: none;
}
@media (max-width: 640px) {
height: 36px;
word-wrap: normal;
}
}
}
.wrapper-list-variables {
list-style-type: none;
display: flex;
justify-content: center;
margin: 0;
margin-bottom: 20px;
.variable-pratileira {
padding: 5px;
margin-right: 5px;
background: $color-blue-light;
border-radius: 8px;
color: $color-white;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
letter-spacing: 0.05em;
text-transform: uppercase;
overflow-y: scroll;
word-wrap: break-word;
max-height: 28px;
min-width: 2.2ch;
&::-webkit-scrollbar {
display: none;
}
}
}
.btn-pratileira {
width: 100%;
background: $color-blue-light;
border: 0;
border-radius: 8px;
padding: 12px 0;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-white;
}
}
font-size: 0;
@media (min-width: 1025px) and (max-width: 1220px) {
.card-list-pratileira {
.wrapper-list-variables {
width: 100%;
height: 61px;
display: inline-block;
text-align: center;
.variable-pratileira {
display: inherit;
word-wrap: normal;
max-height: auto;
min-width: max-content;
}
}
}
}
@media (max-width: 1024px) {
width: 100%;
padding: 0 8px;
.slick-track {
gap: 15px;
}
.card-list-pratileira {
figure {
.image-card-pratileira {
width: 100%;
height: 320px;
}
}
}
}
@media (max-width: 640px) {
.slick-track {
gap: 16px;
}
.card-list-pratileira {
.wrapper-list-variables {
width: 100%;
height: 61px;
display: inline-block;
text-align: center;
@media (max-width: 300px) {
height: 100px;
}
.variable-pratileira {
display: inherit;
word-wrap: normal;
max-height: auto;
min-width: max-content;
}
}
figure {
.image-card-pratileira {
height: 295px;
}
}
}
}
@media (max-width: 480px) {
padding: 0 16px;
.card-list-pratileira {
@media (min-width: 375px) and (max-width: 376px) {
width: 164px !important;
}
figure {
.image-card-pratileira {
height: 164px;
@media (max-width: 300px) {
height: 100px;
}
}
}
}
}
@media (max-width: 340px) {
padding: 0 8px;
}
}
.slick-track {
display: flex;
gap: 16px;
justify-content: center;
left: -0.2%;
@media (min-width: 375px) and (max-width: 376px) {
left: 7%;
}
}
@media screen and (min-width: 2500px) {
.titlePratileira {
font-size: 48px;
line-height: 76px;
}
.sliderPratileira {
.card-list-pratileira {
@media (min-width: 2500px) and (max-width: 2501px) {
width: 485px !important;
}
figure {
.image-card-pratileira {
height: 485px;
}
.title-item-pratileira {
font-size: 26px;
line-height: 35px;
height: 35px;
}
}
.wrapper-list-variables {
.variable-pratileira {
font-size: 26px;
line-height: 35px;
max-height: 45px;
}
}
.btn-pratileira {
font-size: 26px;
line-height: 35px;
}
}
}
.logoM3Footer {
width: 28.66px;
height: 15.65px;
}
}
}

View File

@ -1,100 +1,22 @@
/* _header.scss */
.headerCheckout {
.container {
width: 79.53125%;
display: flex;
align-items: center;
width: auto !important;
}
&__wrapper {
width: 100%;
align-items: center;
display: flex;
justify-content: space-between;
padding: 29px 0;
#progressBar {
width: 439px;
position: relative;
}
.ProgressBar {
width: 100%;
display: grid;
grid-template-columns: 1fr max-content 1fr;
margin: 0;
&::after {
content: "";
position: absolute;
width: 81%;
height: 1px;
background-color: #000000;
top: 29px;
left: 51%;
transform: translate(-50%, -50%);
z-index: -1;
}
.ProgressBar-step {
list-style: none;
position: relative;
&:first-child::after {
content: none;
}
span {
display: grid;
grid-template-areas:
"texto"
"dot";
width: max-content;
white-space: nowrap;
font-family: "Tenor Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
&::before {
grid-area: dot;
justify-self: center;
content: "";
width: 12px;
height: 12px;
border: 1px solid #000000;
border-radius: 100%;
display: block;
background-color: #ffffff;
margin-top: 9px;
box-sizing: border-box;
}
}
.active {
&::before {
background-color: #000000;
}
}
}
.stepThree {
justify-self: end;
}
}
}
&__logo {
width: 15.2829%;
img {
width: 100%;
height: 52px;
width: auto;
}
}
&__safeBuy {
display: flex;
align-items: center;
width: 11.6899%;
min-height: 17px;
span {
align-items: center;
display: flex;
@ -103,107 +25,12 @@
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 16px;
color: $color-black;
white-space: nowrap;
line-height: 14px;
color: $color-gray;
}
img {
width: 10.1694%;
i {
margin-right: 8px;
}
}
}
@media screen and (max-width: 1024px) {
.headerCheckout {
box-sizing: border-box;
.container {
width: 100%;
padding: 0 16px !important;
box-sizing: border-box;
}
.headerCheckout__safeBuy {
white-space: nowrap;
img {
width: 12px;
height: 13.33px;
}
}
&__wrapper {
padding: 16px 0;
#progressBar {
display: none;
}
}
&__logo {
width: 155.58px;
img {
width: 100%;
}
}
}
}
@media screen and (min-width: 2500px) {
.headerCheckout {
&__wrapper {
#progressBar {
width: 1078px;
}
}
&__logo {
width: 19.2152%;
img {
width: 100%;
}
}
.ProgressBar {
&::after {
width: 86%;
height: 1px;
top: 49px;
left: 51%;
}
.ProgressBar-step {
span {
width: max-content;
font-size: 24px;
line-height: 28px;
&::before {
width: 24px;
height: 24px;
border: 1px solid #000000;
margin-top: 9px;
}
}
}
}
&__safeBuy {
span {
font-size: 24px;
line-height: 32px;
white-space: nowrap;
}
img {
min-width: 12.6637%;
margin-right: 8px;
@media screen and (min-width: 2500px) and (max-width: 2501px) {
height: 41px;
}
}
}
}
}

View File

@ -2,38 +2,37 @@
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$color-black-neutra: #000000;
$color-white: #ffffff;
$color-white: #fff;
$color-gray: #6c6c6c;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #c4c4c4;
$color-blue: #4267b2;
$color-blue-light: #00c8ff;
$color-green: #4caf50;
/* Grid breakpoints */
$grid-breakpoints: (
sm: 375px,
md: 1024px,
// lg: 992px,
// xl: 1200px,,
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
) !default;
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25,
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
) !default;

20
package-lock.json generated
View File

@ -45,7 +45,6 @@
"jquery": "^3.6.0",
"m3-utils": "^0.1.0",
"sass": "^1.38.1",
"slick-carousel": "^1.8.1",
"terser-webpack-plugin": "^5.1.4"
},
"devDependencies": {
@ -3485,8 +3484,6 @@
},
"checkout/node_modules/core-util-is": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==",
"license": "MIT"
},
"checkout/node_modules/cosmiconfig": {
@ -4847,8 +4844,6 @@
},
"checkout/node_modules/get-intrinsic": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz",
"integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==",
"license": "MIT",
"dependencies": {
"function-bind": "^1.1.1",
@ -6299,8 +6294,6 @@
},
"checkout/node_modules/micromatch": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"license": "MIT",
"dependencies": {
"braces": "^3.0.2",
@ -6312,8 +6305,6 @@
},
"checkout/node_modules/micromatch/node_modules/braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"license": "MIT",
"dependencies": {
"fill-range": "^7.0.1"
@ -19354,7 +19345,6 @@
"m3-utils": "^0.1.0",
"prettier": "^2.3.2",
"sass": "^1.38.1",
"slick-carousel": "^1.8.1",
"terser-webpack-plugin": "^5.1.4",
"webpack": "^5.51.1",
"webpack-merge": "^5.8.0"
@ -21682,9 +21672,7 @@
}
},
"core-util-is": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz",
"integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ=="
"version": "1.0.3"
},
"cosmiconfig": {
"version": "7.1.0",
@ -22657,8 +22645,6 @@
},
"get-intrinsic": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.1.3.tgz",
"integrity": "sha512-QJVz1Tj7MS099PevUG5jvnt9tSkXN8K14dxQlikJuPt4uD9hHAHjLyLBiLR5zELelBdD9QNRAXZzsJx0WaDL9A==",
"requires": {
"function-bind": "^1.1.1",
"has": "^1.0.3",
@ -23693,8 +23679,6 @@
},
"micromatch": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.5.tgz",
"integrity": "sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA==",
"requires": {
"braces": "^3.0.2",
"picomatch": "^2.3.1"
@ -23702,8 +23686,6 @@
"dependencies": {
"braces": {
"version": "3.0.2",
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz",
"integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==",
"requires": {
"fill-range": "^7.0.1"
}

9828
yarn.lock

File diff suppressed because it is too large Load Diff