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

View File

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

View File

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

View File

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