feat: Criação CSS pagina email

This commit is contained in:
José Carlos Lins 2022-12-11 19:21:08 -03:00
parent 5f98446bfa
commit 6dd7121881
4 changed files with 350 additions and 271 deletions

View File

@ -34,9 +34,24 @@ export default class Footer {
let config = { childList: true, attributes: true };
let observer = new MutationObserver(mCallback);
if (window.location.href != "https://m3academy.myvtex.com/checkout/#/cart") {
pratileira.classList.add("elementInvisible");
}
window.addEventListener("hashchange", () => {
if (window.location.hash == "#/cart") {
this.pratileira.classList.remove("elementInvisible");
} else {
pratileira.classList.add("elementInvisible");
}
});
function mCallback(mutations) {
mutations.forEach((mutation) => {
if (target.style.display === "block") {
if (
target.style.display === "block" ||
window.location.href != "https://m3academy.myvtex.com/checkout/#/cart"
) {
titleCart.classList.add("elementInvisible");
pratileira.classList.add("elementInvisible");
sliderVisible = false;

View File

@ -1,9 +1,19 @@
.checkout-container {
.client-pre-email {
border-color: $color-gray4;
border-color: $color-black-neutra;
font-family: $font-family;
padding-top: 8px;
small {
font-family: $color-black-neutra;
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: center;
text-transform: uppercase;
}
.link-cart {
a {
color: $color-black;
@ -22,30 +32,57 @@
justify-content: center;
h3 {
margin-bottom: 16px;
margin-bottom: 21px;
span {
color: #303030;
font-size: 24px;
font-size: 0;
&::before {
content: "Para finalizar a compra, informe seu e-mail. RÁPIDO. FÁCIL. SEGURO.";
font-family: $font-family-secundary;
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-align: center;
text-transform: uppercase;
color: $color-black-neutra;
}
}
small {
color: $color-gray4;
display: none;
}
}
}
.client-email {
margin: 0 0 16px;
margin: 0 auto;
border: 0;
display: flex;
justify-content: center;
width: 59.2827%;
margin-bottom: 25px;
input {
box-shadow: none;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
padding: 0 14px;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid $color-black-neutra;
border-radius: 5px 0px 0px 5px;
width: 90%;
margin: 0;
font-size: 12px;
&::placeholder {
font-family: $font-family;
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
color: $color-black-neutra;
}
@media (max-width: 490px) {
width: auto;
@ -53,13 +90,20 @@
}
button {
background-color: $color-black;
border-radius: 5px;
background-color: $color-blue-light;
border-radius: 0px 8px 8px 0px;
border: none;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
padding: 0 14px;
height: 54px;
right: 0;
top: 0;
color: $color-black-neutra;
@media (max-width: 490px) {
height: 48px;
@ -74,14 +118,22 @@
}
.emailInfo {
padding: 16px;
padding: 16px 0px 28px 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
width: 37.306%;
margin-bottom: 94px;
h3 {
color: #303030;
margin: 0 0 8px 0;
color: $color-black-neutra;
margin: 0 0 9px 0;
font-family: $font-family;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
}
ul {
@ -89,11 +141,16 @@
li {
span {
color: $color-black;
color: $color-black-neutra;
font-family: $color-black-neutra;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
}
i::before {
color: $color-black;
color: $color-blue-light;
font-size: 1rem;
opacity: 1;
}
@ -287,3 +344,7 @@
}
}
}
.row-fluid .orderform-template {
margin-bottom: 94px;
}

View File

@ -452,18 +452,20 @@
}
.srp-pickup-my-location__button {
background-color: $color-black;
background-color: $color-blue-light;
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white;
outline: none;
width: 100%;
font-style: normal;
font-weight: 500;
font-weight: 700;
font-size: 14px;
line-height: 16px;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
padding: 12px 0;
&:hover {
background-color: lighten($color-black, 5);
@ -476,7 +478,7 @@
}
.srp-toggle {
margin: 0 0 34px;
margin: 0 0 20px;
&__wrapper {
background-color: $color-white;
@ -486,17 +488,21 @@
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 16px;
line-height: 19px !important;
text-transform: uppercase;
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
color: $color-gray7;
}
&__current {
border: 1px solid $color-blue;
border: 1px solid $color-black-neutra;
border-radius: 100px;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.blue {
color: $color-blue;
color: $color-black-neutra;
}
label {
@ -509,22 +515,25 @@
}
.srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode {
label {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-black;
line-height: 16px;
color: $color-black-neutra;
margin-bottom: 12px;
}
input {
border: 1px solid $color-gray3;
border: 1px solid $color-gray7;
border-radius: 5px;
box-shadow: none;
color: $color-gray3;
color: $color-black-neutra;
font-size: 12px;
height: 36px;
padding: 12px 8px;
@ -532,38 +541,32 @@
}
& ~ button {
background-color: $color-black;
background-color: $color-blue-light;
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white;
font-size: 12px;
font-size: 14px;
height: 36px;
letter-spacing: 1px;
letter-spacing: 0.05em;
text-transform: uppercase;
outline: none;
position: absolute;
right: -150px;
top: 36px;
right: -147px;
top: 38px;
transition: all 0.2s linear;
width: 96px;
text-transform: uppercase;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
padding: 0 11px;
margin: 0;
vertical-align: middle;
}
small a {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
color: $color-blue;
margin-top: 7px;
font-size: 12px;
line-height: 16px;
color: $color-black-neutra;
margin-top: 4px;
}
span.help.error {

View File

@ -62,7 +62,7 @@ body {
}
.emailInfo h3 {
color: $color-black !important;
color: $color-black;
}
#cart-title,