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);
if (window.location.hash == "#/cart") {
await this.cartUpdate(); 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

@ -3,11 +3,15 @@
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-family: "Tenor Sans";
font-size: 14px; font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover { &:hover {
color: lighen($color-black, 10); color: lighen($color-black, 10);
@ -25,27 +29,49 @@
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 {
position: relative;
height: 50px;
box-shadow: none; box-shadow: none;
color: $color-black; color: $color-black;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; padding: 0 18px;
border: 2px solid $color-gray3; border: 1px solid $color-black;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px 8px 8px 5px;
&::placeholder {
font-family: "Open Sans";
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-black;
position: absolute;
top: 32%;
}
@media (max-width: 490px) { @media (max-width: 490px) {
width: auto; width: auto;
@ -53,13 +79,19 @@
} }
button { button {
background-color: $color-black; background-color: $color-blue;
border-radius: 5px; border-radius: 0 8px 8px 0px;
border: none; border: none;
font-family: $font-family; font-family: "Open Sans";
height: 54px; font-weight: 700;
right: 0; font-size: 14px;
top: 0; line-height: 19px;
height: 52px;
text-transform: uppercase;
color: $color-black;
right: -0.1%;
top: -1.5%;
width: 22.555%;
@media (max-width: 490px) { @media (max-width: 490px) {
height: 48px; height: 48px;
@ -69,18 +101,28 @@
} }
span.help.error { span.help.error {
color: red; color: $color-red;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
} }
.emailInfo { .emailInfo {
padding: 16px; padding: 23.5px 16px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray4; border: 1px solid $color-black;
border-radius: 0; border-radius: 5px;
margin-top: 10px;
width: 35.743%;
@media (min-width: 1025px) and (max-width: 1026px) {
margin-top: 0;
padding: 16px;
}
h3 { h3 {
color: #303030; color: $color-black;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
@ -90,10 +132,13 @@
li { li {
span { span {
color: $color-black; color: $color-black;
font-weight: 700;
font-size: 12px;
line-height: 16px;
} }
i::before { i::before {
color: $color-black; color: $color-blue;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} }

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,