feat: adiciona css checkout email 1280px

This commit is contained in:
Rafael Sampaio de Oliveira 2022-12-15 15:54:53 -03:00
parent 79ea68e536
commit 0d471b7e95
4 changed files with 290 additions and 241 deletions

View File

@ -10,7 +10,9 @@ export default class Footer {
await this.selectors(); await this.selectors();
this.cartTitle = await waitElement("#cart-title"); this.cartTitle = await waitElement("#cart-title");
console.log(this.cartTitle); console.log(this.cartTitle);
await this.cartUpdate(); if (window.location.hash == "#/cart") {
await this.cartUpdate();
}
this.emptyTitle = await waitElement(".empty-cart-title"); this.emptyTitle = await waitElement(".empty-cart-title");
this.emptyButton = await waitElement(".link-choose-products"); this.emptyButton = await waitElement(".link-choose-products");
this.paymentsMethods = await waitElement(".footerCheckout__payments"); this.paymentsMethods = await waitElement(".footerCheckout__payments");
@ -52,7 +54,7 @@ export default class Footer {
console.log("target"); console.log("target");
let config = { childList: true, attributes: true }; let config = { childList: true, attributes: true };
console.log("config"); console.log("config");
let observer = await new MutationObserver((mutations) => { let observer = new MutationObserver((mutations) => {
console.log("observer"); console.log("observer");
mutations.map((mutation) => { mutations.map((mutation) => {
const cartStatus = mutation.target.attributes.style.nodeValue; const cartStatus = mutation.target.attributes.style.nodeValue;

View File

@ -1,289 +1,334 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-gray4;
font-family: $font-family; font-family: $font-family;
padding-top: 8px; padding-top: 8px;
border-top: 1px solid $color-black;
.link-cart { .link-cart {
a { a {
color: $color-black; color: $color-black;
font-size: 14px; font-family: "Tenor Sans";
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover { &:hover {
color: lighen($color-black, 10); color: lighen($color-black, 10);
} }
} }
} }
.pre-email { .pre-email {
flex-direction: column; flex-direction: column;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
h3 { h3 {
margin-bottom: 16px; margin-bottom: 16px;
span { span {
color: #303030; color: $color-black;
font-size: 24px; font-family: "Tenor Sans";
} font-weight: 400;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
}
small { small {
color: $color-gray4; color: $color-black;
} font-family: "Tenor Sans";
} font-weight: 400;
} font-size: 20px;
line-height: 23px;
text-transform: uppercase;
}
}
}
.client-email { .client-email {
margin: 0 0 16px; margin: 0 0 16px;
width: 54.883%;
input { input {
box-shadow: none; position: relative;
color: $color-black; height: 50px;
font-family: $font-family; box-shadow: none;
padding: 0 16px; color: $color-black;
border: 2px solid $color-gray3; font-family: $font-family;
box-sizing: border-box; padding: 0 18px;
border-radius: 5px; border: 1px solid $color-black;
box-sizing: border-box;
border-radius: 5px 8px 8px 5px;
@media (max-width: 490px) { &::placeholder {
width: auto; font-family: "Open Sans";
} font-weight: 400;
} font-size: 12px;
line-height: 16px;
color: $color-black;
position: absolute;
top: 32%;
}
button { @media (max-width: 490px) {
background-color: $color-black; width: auto;
border-radius: 5px; }
border: none; }
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
@media (max-width: 490px) { button {
height: 48px; background-color: $color-blue;
margin: 0; border-radius: 0 8px 8px 0px;
position: absolute; border: none;
} font-family: "Open Sans";
} font-weight: 700;
font-size: 14px;
line-height: 19px;
height: 52px;
text-transform: uppercase;
color: $color-black;
right: -0.1%;
top: -1.5%;
width: 22.555%;
span.help.error { @media (max-width: 490px) {
color: red; height: 48px;
} margin: 0;
} position: absolute;
}
}
.emailInfo { span.help.error {
padding: 16px; color: $color-red;
background-color: $color-white; font-weight: 700;
border: 1px solid $color-gray4; font-size: 12px;
border-radius: 0; line-height: 16px;
}
}
h3 { .emailInfo {
color: #303030; padding: 23.5px 16px;
margin: 0 0 8px 0; background-color: $color-white;
} border: 1px solid $color-black;
border-radius: 5px;
margin-top: 10px;
width: 35.743%;
ul { @media (min-width: 1025px) and (max-width: 1026px) {
margin: 0; margin-top: 0;
padding: 16px;
}
li { h3 {
span { color: $color-black;
color: $color-black; margin: 0 0 8px 0;
} }
i::before { ul {
color: $color-black; margin: 0;
font-size: 1rem;
opacity: 1;
}
}
}
i::before { li {
color: $color-black; span {
font-size: 6rem; color: $color-black;
opacity: 0.5; font-weight: 700;
} font-size: 12px;
} line-height: 16px;
} }
.shipping-data, i::before {
.payment-data, color: $color-blue;
.client-profile-data { font-size: 1rem;
.accordion-group { opacity: 1;
border-radius: 0; }
border: 1px solid $color-gray4; }
font-family: $font-family; }
padding: 16px;
.accordion-heading { i::before {
span { color: $color-black;
color: #303030; font-size: 6rem;
margin-bottom: 8px; opacity: 0.5;
padding: 0; }
}
}
i::before { .shipping-data,
fill: #303030; .payment-data,
} .client-profile-data {
} .accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
a { .accordion-heading {
align-items: center; span {
background-color: #303030; color: #303030;
border-radius: 8px; margin-bottom: 8px;
border: none; padding: 0;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-inner { i::before {
padding: 0; fill: #303030;
}
}
/* General configurations */ a {
align-items: center;
background-color: #303030;
border-radius: 8px;
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.client-notice { .accordion-inner {
color: $color-black; padding: 0;
}
p { /* General configurations */
label {
color: $color-black;
font-weight: 500;
}
select, .client-notice {
input { color: $color-black;
border-radius: 0; }
border: 1px solid $color-gray4;
box-shadow: none;
}
.help.error { p {
color: red; label {
} color: $color-black;
} font-weight: 500;
}
.box-client-info-pj { select,
.link a#is-corporate-client, input {
.link a#not-corporate-client { border-radius: 0;
color: $color-black; border: 1px solid $color-gray4;
font-weight: 500; box-shadow: none;
text-decoration: underline; }
}
}
.state-inscription-box span { .help.error {
font-weight: 500; color: red;
} }
}
button.submit { .box-client-info-pj {
border: none; .link a#is-corporate-client,
border-radius: 5px; .link a#not-corporate-client {
background: $color-black; color: $color-black;
margin-top: 8px; font-weight: 500;
outline: none; text-decoration: underline;
transition: all 0.2s linear; }
}
&:hover { .state-inscription-box span {
background: lighten($color-black, 5); font-weight: 500;
} }
&:active { button.submit {
background: darken($color-black, 5); border: none;
} border-radius: 5px;
} background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
/* Shipping configurations */ &:hover {
background: lighten($color-black, 5);
}
.ship-postalCode small a { &:active {
color: #303030; background: darken($color-black, 5);
font-weight: 500; }
text-decoration: underline; }
}
.vtex-omnishipping-1-x-deliveryGroup { /* Shipping configurations */
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-lean { .ship-postalCode small a {
border: 1px solid $color-gray4; color: #303030;
border-radius: 0; font-weight: 500;
text-decoration: underline;
}
label { .vtex-omnishipping-1-x-deliveryGroup {
background-color: $color-white; p {
box-shadow: none; color: #303030;
color: #303030; font-size: 14px;
padding: 8px 12px; font-weight: 500;
}
svg path { .shp-lean {
fill: #d8c8ac; border: 1px solid $color-gray4;
} border-radius: 0;
}
}
}
.delivery-address-title { label {
color: #303030; background-color: $color-white;
font-size: 14px; box-shadow: none;
font-weight: 500; color: #303030;
} padding: 8px 12px;
.shp-summary-group-info { svg path {
border-color: $color-gray4; fill: #d8c8ac;
} }
}
}
}
.address-summary { .delivery-address-title {
background: none; color: #303030;
border-color: $color-gray4; font-size: 14px;
border-radius: 0; font-weight: 500;
color: #303030; }
padding: 12px;
@include mq(md, max) { .shp-summary-group-info {
background-position: 8px 9px; border-color: $color-gray4;
} }
a { .address-summary {
color: #303030; background: none;
font-weight: 500; border-color: $color-gray4;
text-decoration: underline; border-radius: 0;
} color: #303030;
} padding: 12px;
.shp-summary-group-price, @include mq(md, max) {
.shp-summary-package { background-position: 8px 9px;
color: $color-gray4; }
}
.shp-summary-group-price { a {
padding-right: 16px; color: #303030;
} font-weight: 500;
text-decoration: underline;
}
}
.shp-summary-package { .shp-summary-group-price,
padding-left: 16px; .shp-summary-package {
} color: $color-gray4;
}
.vtex-omnishipping-1-x-summaryChange { .shp-summary-group-price {
border-color: #303030; padding-right: 16px;
color: #303030; }
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { .shp-summary-package {
background-color: #d8c8ac; padding-left: 16px;
border: 1px solid #d8c8ac; }
}
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-summaryChange {
text-shadow: 1.3px 1px lighten($color-black, 50); border-color: #303030;
} color: #303030;
} }
}
} .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
}
}
}
}
} }

View File

@ -69,8 +69,8 @@ body {
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: $color-black;
margin: 40px 0 30px; margin: 20px 0;
font-family: "Open Sans"; font-family: "Open Sans";
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;

View File

@ -24,6 +24,8 @@ $color-blue: #00c8ff;
$color-green: #4caf50; $color-green: #4caf50;
$color-red: #ff0000;
/* Grid breakpoints */ /* Grid breakpoints */
$grid-breakpoints: ( $grid-breakpoints: (
xs: 0, xs: 0,