feat(checkout-email): Adapta tela de cadastro de email para o layout figma

This commit is contained in:
Manuela Luana Schumacker Tavares 2022-12-17 16:54:05 -03:00
parent 1227061b0e
commit 0c0bfea0ae
2 changed files with 275 additions and 237 deletions

View File

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

@ -8,6 +8,8 @@ $font-family-secundary: "Tenor Sans", sans-serif;
$color-black: #292929;
$color-black2: #000000;
$color-red: #ff0000;
$color-white: #fff;
$color-gray: #6c6c6c;