feature/m3-academy-template-checkout #1

Merged
EleonoraOtz merged 13 commits from feature/m3-academy-template-checkout into main 2022-12-18 23:54:09 +00:00
15 changed files with 2208 additions and 11817 deletions

10970
checkout/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -32,13 +32,12 @@ export default class CheckoutUI {
toggleFooterDropdown(event) { toggleFooterDropdown(event) {
event.target.classList.toggle("closed"); event.target.classList.toggle("closed");
event.target.nextElementSibling.classList.toggle( event.target.nextElementSibling.classList.toggle("dropdown__content--closed");
"dropdown__content--closed"
);
} }
init() { init() {
this.configThumb(); this.configThumb();
this.hideTitle();
waitForEl(".product-image img", this.resizeImages.bind(this)); waitForEl(".product-image img", this.resizeImages.bind(this));
$(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this)); $(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this));
} }
@ -56,14 +55,28 @@ export default class CheckoutUI {
resizeImages() { resizeImages() {
$(".product-image img").each((i, el) => { $(".product-image img").each((i, el) => {
const $el = $(el); const $el = $(el);
$el.attr( $el.attr("src", alterarTamanhoImagemSrcVtex($el.attr("src"), this.width, this.height));
"src",
alterarTamanhoImagemSrcVtex(
$el.attr("src"),
this.width,
this.height
)
);
}); });
} }
async hideTitle() {
const order = await window.vtexjs.checkout.getOrderForm();
const formItem = order.items.length;
const cartTitle = document.querySelector("#cart-title");
$(window).on("orderFormUpdated.vtex", (evento, orderForm) => {
if (orderForm.items.length <= 0) {
cartTitle.style.display = "none";
} else {
cartTitle.style.display = "block";
}
if (window.location.hash === "#/shipping" || window.location.hash === "#/payment") {
cartTitle.style.display = "none";
}
});
if (formItem === 0) {
cartTitle.style.display = "none";
}
}
} }

View File

@ -6,14 +6,26 @@ export default class Footer {
} }
async init() { async init() {
this.list = await this.fetchPrateleira();
await this.selectors(); await this.selectors();
// this.onUpdate(); // this.onUpdate();
this.createPrateleira();
this.prateleira = await waitElement(".footerCheckout__carrossel-itens");
this.itensPrateleira();
this.addCarrossel();
this.creditCardIconsHTML();
this.developedByIconsHTML();
} }
async selectors() { async selectors() {
//Para verificar se o carrinho está vazio e remover a prateleira de produtos: this.itensP = await waitElement(".footerCheckout__prateleira", {
// vocês devem olhar a doc fornecida no Desafio para aprender a usar o waitElement timeout: 5000,
this.checkoutVazio = await waitElement(".empty-cart-content"); interval: 1000,
});
this.creditCardIcons = await waitElement(".footerCheckout__stamps");
this.developedByIcons = await waitElement(".footerCheckout__developedBy");
} }
onUpdate() { onUpdate() {
@ -30,11 +42,110 @@ export default class Footer {
observer.observe(target, config); observer.observe(target, config);
} }
createPrateleira() {
if (this.itensP) {
this.itensP.innerHTML = `
<h2>Você também pode gostar:</h2>
<ul class="footerCheckout__carrossel-itens"></ul>
`;
}
}
async itensPrateleira() {
let structure = "";
this.list.forEach((response) => {
const tipo = response.skus.map((item) => `<li class= "variation">${item}</li>`);
structure += `
<li class= "product-info">
<figure><img src ="${response.img}"/></figure>
<figcaption>${response.name}</figcaption>
<div><ul>${tipo}</ul></div>
<button class= "show-product" type="button"><a href="${response.link}">Ver Produto</a></button>
</li>
`;
});
this.prateleira.innerHTML = structure;
}
async fetchPrateleira() {
const api =
"https://m3academy.myvtex.com/api/catalog_system/pub/products/search/?fq=productClusterIds:319";
return fetch(api)
.then((response) => response.json())
.then((data) => {
const prodInfo = data.map((response) => ({
name: response.productName,
skus: response.items.map((item) => item.name),
img: response.items[0].images[0].imageUrl,
link: response.link,
}));
return prodInfo;
});
}
async addCarrossel() { async addCarrossel() {
const elemento = await waitElement("#my-element"); const elemento = await waitElement(".footerCheckout__carrossel-itens");
if (window.innerWidth > 1024) {
$(elemento).slick({ $(elemento).slick({
slidesToShow: 4, slidesToShow: 4,
slidesToScroll: 1, slidesToScroll: 1,
arrows: true,
infinite: false,
});
} else if (window.innerWidth <= 1024 && window.innerWidth > 375) {
$(elemento).slick({
slidesToShow: 3,
slidesToScroll: 1,
arrows: true,
infinite: false,
});
} else if (window.innerWidth <= 375) {
$(elemento).slick({
slidesToShow: 2,
slidesToScroll: 1,
arrows: true,
infinite: false,
}); });
} }
} }
creditCardIconsHTML() {
this.creditCardIcons.innerHTML = `
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/masterCardM3Academy.png" alt="Mastercard"></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/visaM3Academy.png" alt=""></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/amexM3Academy.png" alt="American Express"></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/eloM3Academy.png" alt="Elo"></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/hiperCardM3Academy.png" alt="Hipercard"></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/payPalM3Academy.png" alt="PayPal"></li>
<li><img src="https://agenciamagma.vteximg.com.br/arquivos/boletoM3Academy.png" alt="Boleto"></li>
<li><span class="footerCheckout__stamps__divider"></span></li>
<li class="vtex-pci"><img src="https://agenciamagma.vteximg.com.br/arquivos/vtexPCIM3Academy.png" alt="PCI VTEX"></li>
`;
}
developedByIconsHTML() {
this.developedByIcons.innerHTML = `
<li>
<div class="by-vtex">
<a href="https://vtex.com.br-pt/">
<span>Powered By</span>
</a>
<img class="vtex-logo" src="https://agenciamagma.vteximg.com.br/arquivos/logoVTEXM3Academy.png" alt="VTEX" />
</div>
</li>
<li>
<div class="by-m3">
<a href="https://vtex.com.br-pt/">
<span>Developed By</span>
</a>
<img class="m3-logo" src="https://agenciamagma.vteximg.com.br/arquivos/logoM3M3Academy.png" alt="M3" />
</div>
</li>
`;
}
}

View File

@ -1,4 +1,4 @@
// import waitForEl from "../helpers/waitForEl"; import waitForEl from "../helpers/waitForEl";
import { waitElement } from "m3-utils"; import { waitElement } from "m3-utils";
export default class Header { export default class Header {
@ -8,14 +8,136 @@ export default class Header {
async init() { async init() {
await this.selectors(); await this.selectors();
console.log(this.item); this.progressBarHTML();
await this.progressBarProgress();
} }
async selectors() { async selectors() {
this.item = await waitElement("#my-element", { this.header = await waitElement(".headerCheckout");
//#my-element pode ser a class ou o id do elemento html qeu vocÊ quer pegar this.progressBar = await waitElement("#progressBar");
timeout: 5000, // vai esperar 5 segundos antes de rejeitar a promise }
interval: 1000, // vai verificar a cada 1 segundo se o elemento existe
progressBarHTML() {
if (this.progressBar && window.innerWidth > 1024){
this.progressBar.innerHTML = `
<ul>
<li><div class="container-list"><div><p class="progress-bar-text">Meu Carrinho</p><p id="progress-bar-circle-1" class="progress-bar-circle-1 active"></p><p class="progress-bar-line-1"></p></div></div></li>
<li class="central"><div class="container-list"><div><p class="progress-bar-text">Dados Pessoais</p><p id="progress-bar-circle-2" class="progress-bar-circle-2 active"></p></div></div></li>
<li><div class="container-list"><div><p class="progress-bar-text">Pagamento</p><p id="progress-bar-circle-3" class="progress-bar-circle-3 active"></p><p class="progress-bar-line-2"></p></div></div></li>
</ul>
`;
}
if (this.progressBar && window.innerWidth <= 1024) {
this.progressBar.innerHTML = ``;
}
}
async progressBarProgress() {
if (this.progressBar && window.innerWidth > 1024) {
const progressBarLista = document.querySelectorAll("#progressBar ul li");
progressBarLista.forEach((li) => {
if (window.location.href === "https://m3academy.myvtex.com/checkout/#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (li.children[0].children[0].children["progress-bar-circle-2"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (li.children[0].children[0].children["progress-bar-circle-3"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.remove("active");
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/email" ||
window.location.href === "https://m3academy.myvtex.com/checkout/#/profile" ||
window.location.href === "https://m3academy.myvtex.com/checkout/#/shipping"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (li.children[0].children[0].children["progress-bar-circle-1"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.add("active")
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (li.children[0].children[0].children["progress-bar-circle-3"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.remove("active");
}
}
} else if (
window.location.href === "https://m3academy.myvtex.com/checkout/#/payment") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (li.children[0].children[0].children["progress-bar-circle-1"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (li.children[0].children[0].children["progress-bar-circle-2"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.add("active");
}
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (li.children[0].children[0].children["progress-bar-circle-2"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.remove("active");
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (li.children[0].children[0].children["progress-bar-circle-3"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.remove("active");
}
}
} else if (
window.location.hash === "#/email" ||
window.location.hash === "#/profile" ||
window.location.hash === "#/shipping"
) {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (li.children[0].children[0].children["progress-bar-circle-1"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.remove("active")
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.add("active");
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
if (li.children[0].children[0].children["progress-bar-circle-3"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.remove("active");
}
}
} else if (window.location.hash == "#/payment") {
if (li.children[0].children[0].children["progress-bar-circle-1"]) {
if (li.children[0].children[0].children["progress-bar-circle-1"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-1"].classList.remove("active")
}
}
if (li.children[0].children[0].children["progress-bar-circle-2"]) {
if (li.children[0].children[0].children["progress-bar-circle-2"].classList.contains("active")) {
li.children[0].children[0].children["progress-bar-circle-2"].classList.remove("active")
}
}
if (li.children[0].children[0].children["progress-bar-circle-3"]) {
li.children[0].children[0].children["progress-bar-circle-3"].classList.add("active");
}
}
});
}); });
} }
} }
}

View File

@ -3,3 +3,4 @@
@import "./partials/header"; @import "./partials/header";
@import "./partials/footer"; @import "./partials/footer";
@import "./checkout/checkout.scss"; @import "./checkout/checkout.scss";
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;700&family=Tenor+Sans&display=swap');

View File

@ -1,16 +1,33 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $black-500;
font-family: $font-family;
padding-top: 8px; padding-top: 8px;
@media (max-width: 375px) {
width: 91.47%;
}
label {
font-family: $font-family-secundary;
text-transform: uppercase;
color: $black-500;
}
.link-cart { .link-cart {
a { a {
color: $color-black; color: $black-500;
font-family: $font-family-secundary;
font-size: 14px; font-size: 14px;
line-height: 16px;
text-transform: uppercase;
@media (max-width: 375px) {
font-size: 10px;
line-height: 12px;
}
&:hover { &:hover {
color: lighen($color-black, 10); color: $black-400;
} }
} }
} }
@ -25,12 +42,17 @@
margin-bottom: 16px; margin-bottom: 16px;
span { span {
color: #303030; color: $black-500;
font-size: 24px; font-size: 20px;
@media (max-width: 375px) {
font-size: 12px;
line-height: 14px;
}
} }
small { small {
color: $color-gray4; color: $black-500;
} }
} }
} }
@ -39,30 +61,48 @@
margin: 0 0 16px; margin: 0 0 16px;
input { input {
height: 50px;
box-shadow: none; box-shadow: none;
color: $color-black; color: $black-500;
font-family: $font-family; font-family: $font-family;
font-size: 12px;
line-height: 16px;
padding: 0 16px; padding: 0 16px;
border: 2px solid $color-gray3; border: 1px solid $black-500;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
&::placeholder {
color: $black-500;
}
@media (max-width: 490px) { @media (max-width: 490px) {
width: auto; width: auto;
} }
} }
button { button {
background-color: $color-black; background: $vivid-blue;
border-radius: 5px; border-radius: 0 8px 8px 0;
border: none; border: none;
font-family: $font-family; font-family: $font-family;
height: 54px; color: $black-500;
right: 0; letter-spacing: 0.05em;
height: 50px;
right: -4px;
top: 0; top: 0;
transition: all 0.2s linear;
@media (max-width: 490px) { &:hover {
height: 48px; background-color: $vivid-blue-lighten;
}
&:active {
background-color: $vivid-blue-darker;
}
@media (max-width: 375px) {
right: -3px;
margin: 0; margin: 0;
position: absolute; position: absolute;
} }
@ -70,17 +110,23 @@
span.help.error { span.help.error {
color: red; color: red;
font-family: $font-family;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
} }
.emailInfo { .emailInfo {
padding: 16px; padding: 16px;
background-color: $color-white; background-color: #fff;
border: 1px solid $color-gray4; border: 1px solid $black-500;
border-radius: 0; border-radius: 5px;
margin-top: 47px;
h3 { h3 {
color: #303030; font-family: $font-family;
font-weight: 700;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
@ -89,11 +135,15 @@
li { li {
span { span {
color: $color-black; color: $black-500;
font-family: $font-family;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
i::before { i::before {
color: $color-black; color: $vivid-blue;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} }
@ -101,7 +151,7 @@
} }
i::before { i::before {
color: $color-black; color: #292929;
font-size: 6rem; font-size: 6rem;
opacity: 0.5; opacity: 0.5;
} }
@ -112,67 +162,111 @@
.payment-data, .payment-data,
.client-profile-data { .client-profile-data {
.accordion-group { .accordion-group {
border-radius: 0; border-radius: 8px;
border: 1px solid $color-gray4; border: 1px solid $gray-300;
font-family: $font-family; font-family: $font-family;
padding: 16px; font-size: 14px;
padding: 24px 17px 38px 17px;
margin-bottom: 17px;
.accordion-heading { .accordion-heading {
span { span {
color: #303030; font-family: $font-family-secundary;
margin-bottom: 8px; font-size: 16px;
line-height: 19px;
color: $black-400;
margin-bottom: 25px;
padding: 0; padding: 0;
i::before { i::before {
fill: #303030; display: none;
} }
} }
a { a {
align-items: center; display: block !important;
background-color: #303030; background: transparent;
border-radius: 8px;
border: none; border: none;
color: $color-white; box-shadow: none;
display: flex; width: 6.11%;
justify-content: center; cursor: pointer;
padding: 6px 5px 6px 8px;
.icon-edit {
content: url("https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png");
width: 100%;
}
} }
} }
.accordion-inner { .accordion-inner {
padding: 0; padding: 0;
tr {
td.info {
border-bottom: 1px solid $gray-700;
}
}
/* General configurations */ /* General configurations */
.box-step {
.link-gift-card {
display: none;
}
}
.box-info {
font-size: 12px;
line-height: 16px;
color: $gray-700;
}
.client-notice { .client-notice {
color: $color-black; display: none;
} }
p { p {
position: relative;
margin-bottom: 6px;
color: $gray-700;
label { label {
color: $color-black; // color: $gray-800;
font-weight: 500; font-size: 14px;
font-weight: 700;
margin-bottom: 1px;
} }
select, select,
input { input {
border-radius: 0; // padding: 13px 7px;
border: 1px solid $color-gray4; border-radius: 5px;
border: 1px solid $gray-50;
color: $black-500;
box-shadow: none; box-shadow: none;
// margin-bottom: 16px;
// max-width: 77%;
} }
.help.error { .help.error {
color: red; color: red;
font-size: 9px;
margin: 0;
} }
} }
.box-client-info-pj { .box-client-info-pj {
display: none;
.link a#is-corporate-client, .link a#is-corporate-client,
.link a#not-corporate-client { .link a#not-corporate-client {
color: $color-black; display: none;
font-weight: 500; // color: #292929;
text-decoration: underline; // font-weight: 500;
// text-decoration: underline;
}
.link {
display: none;
} }
} }
@ -181,109 +275,256 @@
} }
button.submit { button.submit {
width: 100%;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
background: $color-black;
margin-top: 8px;
outline: none; outline: none;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
background: $vivid-blue;
color: $white;
margin-top: 36px;
text-shadow: none;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
background: lighten($color-black, 5); background: $vivid-blue-lighten;
} }
&:active { &:active {
background: darken($color-black, 5); background: $vivid-blue-darker;
} }
} }
/* Shipping configurations */ /* Shipping configurations */
.ship-postalCode small a { .ship-country {
color: #303030; display: none;
font-weight: 500; }
.ship-postalCode {
display: flex;
flex-direction: column;
label {
font-size: 12px;
line-height: 16px;
&::after {
content: ":";
}
}
input {
width: 100%;
}
small a {
color: $black-400;
font-size: 12px;
line-height: 16px;
font-weight: 400;
text-decoration: underline; text-decoration: underline;
} }
}
.vtex-omnishipping-1-x-SummaryItemContent {
display: block;
}
.vtex-omnishipping-1-x-deliveryGroup { .vtex-omnishipping-1-x-deliveryGroup {
p { p {
color: #303030; color: $gray-700;
font-size: 14px; font-size: 14px;
font-weight: 500; line-height: 19px;
font-weight: 700;
} }
.shp-lean { .shp-lean {
border: 1px solid $color-gray4; border: 1px solid $gray-50;
border-radius: 0; border-radius: 8px;
label { label {
background-color: $color-white; background-color: $white;
box-shadow: none; box-shadow: none;
color: #303030; color: $gray-700;
font-family: $font-family;
font-size: 14px;
line-height: 19px;
padding: 8px 12px; padding: 8px 12px;
svg path { &::after {
fill: #d8c8ac; background-color: $gray-25;
}
}
.shp-lean-option {
&::before {
position: relative;
content: "";
border: 1px solid $gray-900;
border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
.vtex-omnishipping-1-x-leanShippingOptionActive {
&::after {
content: "";
width: 12px;
display: block;
position: absolute;
// right: 94.5%;
left: 37.1%;
border-radius: 3px;
height: 12px;
background-color: $vivid-blue;
}
}
// .vtex-omnishipping-1-x-addressSummaryActive {
// .address-summary {
// .line1-delimiter {
// border: 1px solid $gray-50;
// }
// }
// }
.vtex-omnishipping-1-x-leanShippingText,
.vtex-omnishipping-1-x-leanShippingTextLabel {
color: $gray-700;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
}
.vtex-omnishipping-1-x-svg {
display: none;
opacity: 0;
&::before {
border: 1px solid $gray-800;
width: 16px;
height: 16px;
} }
} }
} }
} }
.delivery-address-title { .delivery-address-title {
color: #303030; color: $gray-700;
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 700;
} }
.shp-summary-group-info { .shp-summary-group-info {
border-color: $color-gray4; border-style: none;
// border-color: #8d8d8d;
} }
.address-summary { .address-summary {
background: none; background: none;
border-color: $color-gray4; color: $gray-700;
border-radius: 0; // border: 1px solid $gray-50;
color: #303030; border-radius: 8px;
padding: 12px; font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
padding: 0;
a {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-transform: lowercase;
color: $vivid-blue;
// text-align: end;
}
// div {
// display: flex !important;
// flex-direction: column;
// }
@include mq(md, max) { @include mq(md, max) {
background-position: 8px 9px; background-position: 8px 9px;
} }
a { // a {
color: #303030; // color: #303030;
font-weight: 500; // font-weight: 500;
text-decoration: underline; // text-decoration: underline;
} // }
} }
.shp-summary-group-price, .shp-summary-group-price,
.shp-summary-package { .shp-summary-package {
color: $color-gray4; padding: 0;
color: $gray-700;
} }
.shp-summary-group-price { // .shp-summary-group-price {
padding-right: 16px; // padding-right: 16px;
} // }
.shp-summary-package { .shp-summary-package {
padding-left: 16px; margin-top: 25px;
} }
.vtex-omnishipping-1-x-summaryChange { .vtex-omnishipping-1-x-summaryChange {
border-color: #303030; display: none;
color: #303030; }
.vtex-omnishipping-1-x-SummaryItemGroup {
padding: 0;
margin: 0;
} }
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac; background-color: $white;
border: 1px solid #d8c8ac; border: 1px solid $black-400;
}
.vtex-omnishipping-1-x-deliveryChannelsOption {
color: $gray-400;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
} }
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50); color: $black-400;
font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
} }
} }
} }
} }
.payment-data {
.box-step {
.link-gift-card {
display: none;
}
}
}
} }

View File

@ -5,7 +5,11 @@
} }
.cart-template { .cart-template {
font-family: $font-family; font-family: $font-family-secundary;
font-weight: 400;
font-size: 14px;
line-height: 16px;
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
} }
@ -13,10 +17,11 @@
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; border: 1px solid $gray-200;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
padding: 16px; padding: 16px 29px 16px 16px;
margin-bottom: 48px;
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -31,12 +36,34 @@
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
border: 1px solid $gray-200;
box-sizing: border-box;
border-radius: 8px;
padding: 24px 17px 36px;
height: auto !important;
h2 { h2 {
background: $color-white; padding: 0;
text-align: left;
background: $white;
border: none; border: none;
color: #303030; color: $black-400;
font-size: 14px; font-family: $font-family-secundary;
font-weight: 500; font-size: 16px;
font-weight: 400;
margin-bottom: 34px;
}
.product-name {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
white-space: normal;
overflow: initial;
text-align: left;
padding: 0 56px 0 7px;
} }
.item-unavailable { .item-unavailable {
@ -48,61 +75,99 @@
} }
.cart { .cart {
border: 1px solid $color-gray4; border: 0;
padding: 0;
margin: 0;
ul li { ul li {
display: flex;
align-items: center;
border-top: none; border-top: none;
margin-top: 0; margin-top: 0;
padding-top: 0; padding-top: 0;
&:not(:first-child) { &:not(:first-child) {
margin-top: 8px; margin-top: 8px;
padding-top: 8px; padding-top: 0;
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
} }
.shipping-date, .shipping-date {
display: none;
}
.price { .price {
color: #7d7d7d; margin: 0;
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-align: right;
color: $black-400;
} }
} }
} }
.summary-template-holder { .summary-template-holder {
border-top: none; border-top: none;
background: $color-white; background: #fff;
} }
#go-to-cart-button a { #go-to-cart-button {
color: #303030; margin: 19px 0 10px !important;
a {
font-family: $font-family;
font-size: 12px;
line-height: 16px;
text-align: right;
text-decoration: underline; text-decoration: underline;
color: $black-500;
}
} }
.summary-totalizers { .summary-totalizers {
padding: 0;
td.info { td.info {
width: 100%; width: 100%;
} }
} }
#payment-data-submit { #payment-data-submit {
background: $color-black; 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;
background: $green;
border-radius: 8px;
border: none; border: none;
border-radius: 0; background: $green;
color: $color-white; color: $white;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
.icon-lock {
display: none;
}
&:hover { &:hover {
background: lighten($color-black, 5); background: $green-lighten;
} }
&:active { &:active {
background: darken($color-black, 5); background: $green-darker;
} }
} }
} }
.lookatme { .lookatme {
background-color: $color-white; background-color: #fff;
} }
.cart-items { .cart-items {
@ -111,12 +176,13 @@
} }
th { th {
color: $color-black; color: #292929;
padding: 0 0 16px; padding: 0 0 2px;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: left;
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
@ -127,18 +193,21 @@
} }
.product-image { .product-image {
height: auto;
padding: 0; padding: 0;
width: 60px;
@include mq(sm, max) {
width: 72px;
}
img { img {
height: 60px; height: 75px;
max-width: 100%; max-width: 60px;
width: auto; width: 60px;
}
}
a {
margin: 0;
width: 20.2%;
img {
width: 100%;
@include mq(sm, max) { @include mq(sm, max) {
height: 72px; height: 72px;
@ -146,24 +215,37 @@
} }
} }
} }
}
.quantity {
box-shadow: none;
}
// td.product-name {
// }
.product-name { .product-name {
padding-right: 0; width: 180px;
padding: 0 90px 0 16px;
color: $black-500;
white-space: normal;
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue; width: 17.58%;
color: $black-500;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
&:hover { &:hover {
color: darken($color-blue, 10); color: darken(#00c8ff, 10);
text-decoration: none; text-decoration: none;
} }
@ -179,9 +261,13 @@
} }
td.shipping-date { td.shipping-date {
color: $color-gray2; color: $gray-500;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-align: left;
padding: 0 91px 0 0;
text-transform: lowercase;
// margin-right: 91px;
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
@ -189,7 +275,12 @@
} }
.product-price { .product-price {
// visibility: hidden;
text-align: left;
// padding: 0;
min-width: 100px; min-width: 100px;
@include mq(md, max) { @include mq(md, max) {
min-width: 78px; min-width: 78px;
} }
@ -200,7 +291,7 @@
} }
span.list-price { span.list-price {
color: $color-gray2; color: $gray-500;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-decoration-line: line-through; text-decoration-line: line-through;
@ -214,36 +305,40 @@
} }
} }
} }
td.product-price {
padding: 0 49px 0 0;
}
td.quantity { td.quantity {
align-items: center;
border: 1px solid $color-gray3;
border-radius: 0;
box-sizing: border-box;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
margin: 6px auto 0; margin: 11px 79px 0 0;
max-height: 38px;
max-width: 118px;
padding: 0; padding: 0;
width: max-content !important; height: 34px;
width: 99px;
// width: max-content !important;
box-sizing: border-box;
border: 1px solid $gray-300;
border-radius: 8px;
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
} }
input { input {
background-color: $color-white; background-color: $white;
border: 1px solid $color-gray3; border: 0 none;
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: 8px 0;
width: 38px; width: 38px;
color: $color-gray2; color: $black-500;
box-shadow: none; box-shadow: none;
font-family: $font-family-secundary;
font-size: 14px;
line-height: 16px;
@include mq(lg, max) { @include mq(lg, max) {
width: 24px !important; width: 24px !important;
@ -253,24 +348,31 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black; color: $white;
background: $vivid-blue;
display: block; display: block;
font-weight: 500; font-family: $font-family;
padding: 1px 12px; font-size: 20px;
font-weight: 700;
line-height: 10px;
border-radius: 50%;
padding: 3px 0;
width: 16px;
// padding: 1px 12px;
} }
} }
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-"; content: "-";
font-size: 16px; // width: 10px;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; content: "+";
font-size: 14px;
} }
} }
@ -290,18 +392,21 @@
} }
} }
.quantity-price, td.quantity-price {
.best-price { text-align: left;
padding: 0;
.icon-question-sign { .icon-question-sign {
display: none; display: none;
} }
span { span {
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $black-400;
}
} }
.quantity-price { .quantity-price {
@ -309,13 +414,38 @@
display: none; display: none;
} }
} }
}
.best-price {
.icon-question-sign {
display: none;
}
span {
font-style: $font-family-secundary;
font-weight: 400;
font-size: 14px;
line-height: 16px;
color: $black-400;
// padding: 0 49px 0 0;
word-spacing: -5px;
}
.new-product-price-label {
text-transform: lowercase;
}
}
.item-remove { .item-remove {
padding: 0;
a {
padding: 0;
}
@media (max-width: 490px) { @media (max-width: 490px) {
top: 0; top: 0;
} }
.icon::before { .icon::before {
color: $color-gray4; color: $gray-400;
font-size: 15px; font-size: 15px;
@include mq(md, max) { @include mq(md, max) {
@ -326,7 +456,7 @@
.item-unavailable-message { .item-unavailable-message {
background-color: #d8c8ac; background-color: #d8c8ac;
color: $color-white; color: #fff;
.icon-warning-sign { .icon-warning-sign {
color: #bb4f4f; color: #bb4f4f;
@ -352,11 +482,12 @@
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 32px 0 12px;
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 24px; font-size: 24px;
line-height: 28px; line-height: 33px;
color: $color-gray2; color: $black-500;
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -364,18 +495,20 @@
} }
.srp-description { .srp-description {
color: $color-gray2; color: $gray-700;
font-family: $font-family;
font-size: 12px; font-size: 12px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 12px;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; background-color: $gray-100;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-gray2; color: $black-500;
font-size: 16px; font-family: $font-family;
font-size: 14px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
line-height: 19px; line-height: 19px;
font-weight: 500; font-weight: 500;
@ -384,11 +517,11 @@
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
background-color: lighten($color-gray5, 5); background-color: lighten(#e5e5e5, 5);
} }
&:active { &:active {
background-color: darken($color-gray5, 5); background-color: darken(#e5e5e5, 5);
} }
} }
} }
@ -405,51 +538,54 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: $vivid-blue;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $white;
outline: none; outline: none;
width: 100%; width: 100%;
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
text-transform: uppercase;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: $vivid-blue-lighten;
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: $vivid-blue-darker;
} }
} }
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 20px;
padding: 0;
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $white;
border-radius: 100px; border-radius: 100px;
width: 100%; width: 100%;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
text-transform: uppercase; text-transform: uppercase;
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid $black-500;
border-radius: 100px; border-radius: 100px;
} }
.blue { .blue {
color: $color-blue; color: $black-500;
} }
label { label {
@ -462,22 +598,27 @@
} }
.srp-postal-code { .srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode { .ship-postalCode {
label { label {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black; color: $black-500;
margin-bottom: 12px; margin-bottom: 2px;
} }
input { input {
border: 1px solid $color-gray3; border: 1px solid f0f0f0;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3; outline: none;
color: f0f0f0;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
padding: 12px 8px; padding: 12px 8px;
@ -485,47 +626,58 @@
} }
& ~ button { & ~ button {
background-color: $color-black; background-color: $vivid-blue;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $white;
font-size: 12px; font-family: $font-family;
height: 36px; font-size: 14px;
letter-spacing: 1px; line-height: 19px;
letter-spacing: 0.05px;
outline: none; outline: none;
position: absolute; // position: absolute;
right: -150px; // right: -150px;
top: 36px; // top: 36px;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 96px; width: 96px;
text-transform: uppercase; text-transform: uppercase;
margin-left: 50px;
// padding: 8px 11px 9px;
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: $vivid-blue-lighten;
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: $vivid-blue-darker;
} }
} }
small a { small a {
font-family: $font-family; font-size: 0;
padding: 0;
margin: 0;
&:after {
content: "Não sei meu código postal";
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
color: $color-blue; color: $black-500;
margin-top: 7px; margin-top: 4px;
text-decoration: underline;
}
} }
span.help.error { span.help.error {
color: red; color: red;
font-size: 12px; font-size: 10px;
position: absolute; position: absolute;
left: 0; left: 78px;
width: 100%; width: 100%;
top: 17px; top: 5px;
} }
} }
} }
@ -549,7 +701,7 @@
} }
.srp-shipping-current-single { .srp-shipping-current-single {
border: 1px solid $color-gray4; border: 1px solid #8d8d8d;
border-radius: 0; border-radius: 0;
color: #303030; color: #303030;
margin: 16px 0 0; margin: 16px 0 0;
@ -561,29 +713,29 @@
} }
.srp-delivery-select { .srp-delivery-select {
border: 1px solid $color-gray4; border: 1px solid $gray-300;
} }
.srp-delivery-select-container { .srp-delivery-select-container {
border: 1px solid $color-gray4; border: 1px solid $gray-300;
border-radius: 0; border-radius: 5px;
.srp-shipping-current-many { .srp-shipping-current-many {
&__name { &__name {
color: #303030; color: $black-400;
} }
&__sla { &__sla {
color: #7d7d7d; color: $gray-700;
} }
&__price { &__price {
color: #7d7d7d; color: $gray-700;
font-weight: 500; font-weight: 500;
} }
&__arrow svg { &__arrow svg {
fill: $color-gray4; fill: #8d8d8d;
} }
} }
} }
@ -599,17 +751,17 @@
text-decoration: none; text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: underline;
cursor: pointer;
} }
} }
span { span {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $black-500;
text-decoration: none; text-decoration: none;
cursor: pointer;
} }
} }
@ -635,8 +787,9 @@
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
text-align: left;
line-height: 14px; line-height: 14px;
color: $color-gray2; color: $gray-700;
cursor: none; cursor: none;
} }
@ -648,6 +801,7 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
i { i {
position: absolute; position: absolute;
right: 91px; right: 91px;
@ -657,15 +811,22 @@
} }
input { input {
border: 2px solid $color-gray3; font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 14px;
border: 1px solid $gray-200;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray4;
font-size: 12px;
height: 34px; height: 34px;
padding: 0 12px; padding: 0 12px;
max-width: 160px; max-width: 160px;
&::placeholder {
color: $gray-400;
}
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
@ -673,13 +834,16 @@
} }
button { button {
background: $color-black; background: $vivid-blue;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $black-500;
font-family: $font-family;
font-size: 12px; font-size: 12px;
line-height: 19px;
font-weight: 400;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 0.05em;
margin-left: 6px; margin-left: 6px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
@ -691,11 +855,11 @@
} }
&:hover { &:hover {
background-color: lighten($color-black, 5); background-color: $vivid-blue-lighten;
} }
&:active { &:active {
background-color: darken($color-black, 5); background-color: $vivid-blue-darker;
} }
} }
} }
@ -703,7 +867,8 @@
.accordion-group { .accordion-group {
tr { tr {
border-color: #e5e5e5; width: 100%;
border-bottom: 1px solid $gray-50;
td { td {
&.empty { &.empty {
@ -712,12 +877,13 @@
&.info, &.info,
&.monetary { &.monetary {
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
color: $color-black; color: $black-400;
padding: 12px 0; padding: 10px 0;
} }
&.info { &.info {
@ -733,11 +899,12 @@
tfoot { tfoot {
td.info, td.info,
td.monetary { td.monetary {
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 25px;
color: $color-black; color: $black-400;
} }
} }
} }
@ -747,7 +914,8 @@
.cart-links-bottom { .cart-links-bottom {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 343px; align-items: center;
width: 36%;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
@ -758,7 +926,7 @@
@include mq(md, min) { @include mq(md, min) {
margin: 0; margin: 0;
padding-bottom: 50px; // padding-bottom: 0;
} }
.link-choose-more-products-wrapper { .link-choose-more-products-wrapper {
@ -776,13 +944,15 @@
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $black-500;
} }
} }
.btn-place-order-wrapper { .btn-place-order-wrapper {
width: 100%;
a { a {
background: $color-green; background: $vivid-blue;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
@ -791,16 +961,16 @@
padding: 12px 19px; padding: 12px 19px;
&:hover { &:hover {
background-color: darken($color-green, 5); background-color: $vivid-blue-lighten;
} }
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 13px; font-size: 14px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: $black-500;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px; line-height: 19px;
@ -809,4 +979,3 @@
} }
} }
} }
}

View File

@ -4,8 +4,21 @@ 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%;
}
.quantity {
background-color: $vivid-blue;
color: $white;
}
} }
.orderform-template-holder { .orderform-template-holder {
width: 66.1132%; width: 66.1132%;
@media (max-width: 1024px) {
width: 100%;
}
} }
} }

View File

@ -1,37 +1,74 @@
.empty-cart { .empty-cart {
font-family: $font-family; font-family: $font-family;
&-content { &-content {
color: $color-black; color: #292929;
text-align: center; text-align: center;
align-items: center;
margin: 170px 0 264px 0;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
} }
@media (max-width: 1024px) {
margin-bottom: 262px;
}
} }
&-title { &-title {
font-size: 20px; align-items: center;
font-family: $font-family;
font-weight: 700;
font-size: 24px;
line-height: 33px;
text-transform: uppercase;
margin-bottom: 35px;
@media (max-width: 1024px) {
font-size: 18px;
line-height: 25px;
margin: 235px 0 22px;
}
}
&-message {
display: none;
} }
&-links { &-links {
.link-choose-products { .link-choose-products {
background: $color-black; font-size: 0;
border: none; padding: 0;
border-radius: 5px; // &:before {
// padding: 0;
// }
&:after {
content: "Continuar comprando";
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16.38px;
text-align: center;
text-transform: uppercase;
background-color: $white;
border-style: border-box;
border: 1px solid $black-500;
border-radius: 0;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
outline: none; 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; letter-spacing: 0.05em;
color: $color-white; padding: 15px 65px;
text-transform: uppercase; color: $black-500;
@media (max-width: 1024px) {
padding: 16px 26px;
}
}
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten(#292929, 5);
} }
} }
} }

View File

@ -8,14 +8,30 @@ html {
min-height: 100%; min-height: 100%;
} }
footer .footerCheckout__wrapper { footer .footerCheckout__wrapper {
width: 94.9734%; width: 100%;
margin: auto auto 0 auto;
} }
footer .footerCheckout__prateleira,
footer .footerCheckout__wrapper .container {
display: flex;
align-items: center;
justify-content: space-between;
}
header { header {
border-bottom: 1px solid $black-500;
}
footer .footerCheckout__prateleira,
.headerCheckout .container {
width: 79.53125%; width: 79.53125%;
margin: 0 auto; margin: 0 auto;
@media (max-width: 1024px) {
width: 91.47%;
}
} }
body { body {
@ -50,35 +66,49 @@ body {
.container-order-form, .container-order-form,
.container-cart { .container-cart {
width: 80%; width: 80%;
@media (max-width: 1024px) {
width: 100%;
}
} }
} }
.btn-success { .btn-success {
background: $color-black; border: none;
text-shadow: none; border-radius: 8px;
color: $white;
outline: none;
font-family: "Open Sans",sans-serif;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 16px;
letter-spacing: .05em;
text-transform: uppercase;
&:hover { &:hover {
background: lighten($color-black, 15%); background: lighten(#292929, 15%);
} }
} }
.emailInfo h3 { .emailInfo h3 {
color: $color-black !important; color: #292929 !important;
} }
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: $black-400;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 36px; font-size: 24px;
line-height: 42px; line-height: 33px;
margin: 40px 0 30px; margin: 17px 0 16px;
letter-spacing: 0.1em; letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
@include mq(md, max) { @media (max-width: 1024px) {
margin-left: 30px; text-align: left;
margin-left: 16px;
} }
} }
@ -96,7 +126,7 @@ body {
&::before, &::before,
&::after { &::after {
content: ""; content: "";
background: $color-gray2; background: #7d7d7d;
display: block; display: block;
float: right; float: right;
height: 2px; height: 2px;

View File

@ -66,11 +66,22 @@
height: 100%; height: 100%;
min-height: 1px; min-height: 1px;
outline: none; outline: none;
// width: 258px !important;
// .slick-active {
// gap: 16px;
// }
[dir="rtl"] & { [dir="rtl"] & {
float: right; float: right;
} }
// ul #text {
// font-size: 0;
// }
img { img {
display: block; display: block;
} }
&.slick-loading img { &.slick-loading img {
display: none; display: none;
@ -104,11 +115,15 @@
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg") background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-left-mini-M3Academy.svg")
no-repeat center center; no-repeat center center;
z-index: 4; z-index: 4;
left: 10px; border: none;
left: 20px;
} }
.slick-next { .slick-next {
background: url("https://agenciamagma.vteximg.com.br/arquivos/arrow-right-mini-M3Academy.svg")
no-repeat center center;
z-index: 4; z-index: 4;
right: 10px; border: none;
right: 20px;
} }
.slick-arrow.slick-hidden { .slick-arrow.slick-hidden {
display: none; display: none;

View File

@ -1,47 +1,202 @@
/* _footer.scss */ /* _footer.scss */
.footerCheckout { .footerCheckout {
border-top: none; border-top: none;
color: $color-gray2; color: $black-400;
.container {
width: 100%;
border-top: 1px solid $black-500;
@media (max-width: 1024px) {
flex-direction: column;
align-items: flex-start !important;
}
}
&__prateleira {
width: 1016px;
h2 {
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 24px;
line-height: 38px;
text-align: center;
color: $black-500;
}
.product-info {
display: flex !important;
flex-direction: column;
align-items: center;
padding-right: 16px;
width: auto !important;
}
figure {
width: 100%;
margin: 0;
}
figcaption {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 13px;
line-height: 18px;
text-align: center;
color: $black-500;
margin-top: 20px;
}
ul {
font-size: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 2.5px;
margin: 0;
.variation {
list-style: none;
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: $white;
background: $vivid-blue;
border: none;
border-radius: 8px;
padding: 5px 4px;
margin: 20px 0 20px 0;
}
}
.show-product {
background-color: $vivid-blue;
border: none;
border-radius: 8px;
font-family: "Open Sans";
font-style: normal;
font-weight: 700;
font-size: 13px;
line-height: 18px;
letter-spacing: 0.05em;
text-transform: uppercase;
width: 100%;
padding: 12px 0;
@media (max-width: 1024px) {
margin-bottom: 56px;
}
margin-bottom: 56px;
&:hover {
background-color: $vivid-blue-lighten;
}
&:active {
background-color: $vivid-blue-darker;
}
a {
color: $white;
text-decoration: none;
}
}
}
&__wrapper { &__wrapper {
align-items: center; align-items: center;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
position: relative;
margin-top: 56px;
@media (max-width: 1024px) {
}
.container {
border-top: 1px solid #000;
position: absolute;
}
} }
&__address { &__address {
color: $color-gray2; color: $black-400;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 14px;
text-transform: capitalize; text-transform: capitalize;
max-width: 40%; max-width: 40%;
@include mq(md, max) { @include mq(md, max) {
margin-bottom: 24px;
max-width: 100%; max-width: 100%;
} }
@media (min-width: 2500px) {
font-size: 20px;
line-height: 27px;
}
@media (max-width: 1024px) {
order: 2;
margin: 0 0 16px 16px;
}
} }
&__stamps { &__stamps {
margin: 0;
width: 32%;
align-items: center; align-items: center;
display: flex; display: flex;
justify-self: center; justify-self: center;
list-style: none; list-style: none;
gap: 13px;
@media (min-width: 2500px) {
width: 27.6%;
margin-top: 13px;
}
@media (max-width: 1024px) {
width: 90%;
margin: 22px 0 40px 16px;
}
@media (max-width: 375px) {
width: 91.2%;
order: 1;
gap: 4px;
// margin: 23px 0;
}
@include mq(md, max) { @include mq(md, max) {
align-self: center; align-self: center;
margin-bottom: 12px; // margin-bottom: 12px;
} }
&__divider { &__divider {
background-color: $color-gray4; content: "";
background-color: $gray-400;
display: inline-block; display: inline-block;
height: 24px; height: 24px;
margin: 0 8px; // margin: 0 8px;
width: 1px; width: 1px;
@media (min-width: 2500px) {
height: 42px;
}
} }
} }
@ -49,7 +204,42 @@
align-items: center; align-items: center;
display: flex; display: flex;
list-style-type: none; list-style-type: none;
color: $black-400;
margin: 27px 0 22px;
@media (max-width: 1024px) {
order: 3;
margin: 0; margin: 0;
margin: 0 0 19px 16px;
}
div {
display: flex;
}
.vtex-logo {
width: 44.92px;
@media (min-width: 2500px) {
width: 87.73px;
}
}
.m3-logo {
width: 28.66px;
@media (min-width: 2500px) {
width: 55.98px;
}
}
li .by-vtex {
gap: 12px;
}
li .by-m3 {
gap: 10.93px;
}
li:last-child { li:last-child {
margin-left: 16px; margin-left: 16px;
@ -57,17 +247,24 @@
a { a {
align-items: center; align-items: center;
color: $color-gray2; color: $black-400;
display: flex; display: flex;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 10px; font-size: 9px;
line-height: 12px; line-height: 12px;
text-decoration: none; text-decoration: none;
span { span {
margin-right: 8px; font-size: 10px;
line-height: 14px;
// margin-right: 8px;
@media (min-width: 2500px) {
font-size: 18px;
line-height: 25px;
}
} }
} }
} }

View File

@ -1,32 +1,185 @@
/* _header.scss */ /* _header.scss */
.headerCheckout { .headerCheckout {
.container { .container {
width: auto !important; #progressBar {
width: 446px;
@media (max-width: 1024px) {
width: 0px;
} }
&__wrapper {
align-items: center; ul {
list-style-type: none;
display: flex; display: flex;
align-items: center;
justify-content: space-between; justify-content: space-between;
margin: 0 !important;
}
li .container-list {
width: 100%;
position: relative;
display: flex;
flex-direction: column;
align-items: flex-start;
justify-content: center;
}
li.central .container-list {
align-items: center;
margin-left: 7px;
}
li:last-child .container-list {
align-items: flex-end;
}
li .container-list div {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
li {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: $font-family-secundary;
font-size: 12px;
font-weight: 400;
line-height: 28px;
color: $black-500;
width: 39.9103%;
@media (min-width: 2500px) {
font-size: 24px;
}
}
@media (min-width: 2500px) {
width: 1078.86px;
}
}
li.central {
width: auto;
}
li #progress-bar-circle-1,
li #progress-bar-circle-2,
li #progress-bar-circle-3 {
width: 12px;
height: 12px;
border: 1px solid $black-500;
border-radius: 50%;
@media (min-width: 2500px) {
width: 24px;
height: 24px;
}
}
li #progress-bar-circle-1.active,
li #progress-bar-circle-2.active,
li #progress-bar-circle-3.active {
border: none;
background-color: $black-500;
}
li .progress-bar-line-1 {
position: absolute;
left: 31%;
transform: translateY(-50%);
bottom: 5px;
width: 174px;
height: 1px;
border-top: 1px solid $black-500;
@media (min-width: 2500px) {
left: 23%;
bottom: 11px;
width: 448px;
}
}
li .progress-bar-line-2 {
position: absolute;
right: 26%;
transform: translateY(-50%);
bottom: 5px;
width: 174px;
height: 1px;
border-top: 1px solid $black-500;
@media (min-width: 2500px) {
right: 21%;
bottom: 11px;
width: 448px;
}
}
}
&__wrapper {
display: flex;
align-items: center;
justify-content: space-between;
padding: 29px 0 29.86px;
} }
&__logo { &__logo {
width: 15.283%;
img { img {
height: 52px; height: auto;
width: auto; width: 100%;
}
@media (min-width: 2500px) {
width: 19.213%;
}
@media screen and (min-width: 376px) and (max-width: 1024px) {
width: 16.59%;
}
@media (max-width: 375px) {
width: 41.49%;
} }
} }
&__safeBuy { &__safeBuy {
span {
align-items: center;
display: flex; display: flex;
justify-content: center;
span {
display: flex;
align-items: center;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-gray; padding: 0 0 0 8px;
color: $black-400;
@media (max-width: 1024px) {
}
@media (min-width: 2500px) {
font-size: 24px;
line-height: 33px;
}
}
img {
width: 12px;
@media (min-width: 2500px) {
width: 29.47px;
}
} }
i { i {

View File

@ -1 +1,76 @@
/* _prateleira.scss */ // /* _prateleira.scss */
// .slick-slider .slick-list {
// }
// // .footerCheckout {
// // &__prateleira {
// // h2 {
// // font-family: $font-family-secundary;
// // font-style: normal;
// // font-weight: 400;
// // font-size: 24px;
// // line-height: 38px;
// // text-align: center;
// // color: $black-500;
// // }
// &__carrossel-itens {
// .product-name {
// font-style: normal;
// font-weight: 400;
// font-size: 13px;
// line-height: 18px;
// text-align: center;
// color: $black-500;
// }
// .product-variation {
// display: flex;
// align-items: center;
// &__variation {
// font-family: "Open Sans";
// font-style: normal;
// font-weight: 700;
// font-size: 13px;
// line-height: 18px;
// text-align: center;
// letter-spacing: 0.05em;
// text-transform: uppercase;
// color: $white;
// background: $vivid-blue;
// border: none;
// border-radius: 8px;
// padding: 5px 4px;
// margin: 20px 0 20px 0;
// gap: 5px;
// }
// .show-product {
// background-color: $vivid-blue;
// color: $white;
// border: none;
// border-radius: 8px;
// font-family: "Open Sans";
// font-style: normal;
// font-weight: 700;
// font-size: 13px;
// line-height: 18px;
// letter-spacing: 0.05em;
// text-transform: uppercase;
// padding: 12px 72px;
// &:hover {
// background-color: $vivid-blue-lighten;
// }
// &:active {
// background-color: $vivid-blue-darker;
// }
// }
// }
// }
// // }
// // }

View File

@ -5,19 +5,31 @@ $font-family: "Open Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif; $font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */ /* Colors */
$color-black: #292929;
$color-white: #fff; $white: #ffffff;
$color-gray: #6c6c6c; $gray-25: #f2f2f2;
$color-gray2: #7d7d7d; $gray-50: #e0e0e0;
$color-gray3: #f0f0f0; $gray-100: #ededed;
$color-gray4: #8d8d8d; $gray-200: #e5e5e5;
$color-gray5: #e5e5e5; $gray-300: #f0f0f0;
$gray-400: #c4c4c4;
$gray-500: #989898;
$gray-600: #858585;
$gray-700: #7d7d7d;
$gray-800: #808080;
$gray-900: #828282;
$color-blue: #4267b2; $black-400: #292929;
$black-500: #000000;
$color-green: #4caf50; $vivid-blue: #00C8FF;
$vivid-blue-lighten: #57dbff;
$vivid-blue-darker: #00b0e0;
$green: #298541;
$green-lighten: #2fa34e;
$green-darker: #185428;
/* Grid breakpoints */ /* Grid breakpoints */
$grid-breakpoints: ( $grid-breakpoints: (
@ -26,7 +38,7 @@ $grid-breakpoints: (
sm: 576px, sm: 576px,
md: 768px, md: 768px,
lg: 992px, lg: 992px,
xl: 1200px xl: 1200px,
) !default; ) !default;
$z-index: ( $z-index: (
@ -34,5 +46,5 @@ $z-index: (
level2: 10, level2: 10,
level3: 15, level3: 15,
level4: 20, level4: 20,
level5: 25 level5: 25,
) !default; ) !default;