feat: adicionando estilo a página (finalizar compra)

This commit is contained in:
Ana Carolina Duarte Cavalcante 2022-12-17 22:04:26 -03:00
parent fed1e56e31
commit 904eeabd59
3 changed files with 388 additions and 237 deletions

View File

@ -1,289 +1,435 @@
.checkout-container { .checkout-container {
.client-pre-email { @media (min-width: $checkout2500px) {
border-color: $color-gray4; overflow: visible;
font-family: $font-family; }
padding-top: 8px; @media (max-width: $checkout375px) {
overflow: hidden;
}
.client-pre-email {
border-color: $color-black2;
font-family: $font-family;
padding-top: 8px;
.link-cart { .link-cart {
a { a {
color: $color-black; color: $color-black2;
font-size: 14px; font-size: 14px;
font-family: "Tenor Sans";
font-style: normal;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
@media (min-width: $checkout2500px) {
font-size: 28px;
line-height: 33px;
}
@media (max-width: $checkout1024px) {
font-size: 10px;
line-height: 12px;
}
&: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 {
font-family: "Tenor Sans";
font-style: normal;
font-weight: 400;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black2;
@media (min-width: $checkout2500px) {
font-size: 40px;
line-height: 47px;
}
@media (max-width: $checkout1024px) {
font-size: 14px;
line-height: 16px;
}
@media (max-width: $checkout375px) {
font-size: 10px;
line-height: 12px;
margin-top: 100px;
}
}
span { small {
color: #303030; font-family: "Tenor Sans";
font-size: 24px; font-style: normal;
} font-weight: 400;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black2;
@media (min-width: $checkout2500px) {
font-size: 40px;
line-height: 47px;
}
@media (max-width: $checkout1024px) {
font-size: 14px;
line-height: 16px;
}
@media (max-width: $checkout375px) {
font-size: 10px;
line-height: 12px;
}
}
}
}
small { .client-email {
color: $color-gray4; margin: 0 0 16px;
}
}
}
.client-email { input {
margin: 0 0 16px; box-shadow: none;
color: $color-gray2;
font-family: $font-family;
padding: 15.28px 14.09px;
box-sizing: border-box;
border: 1px solid #000000;
border-radius: 5px 0px 0px 5px;
width: 443px;
height: 50px;
left: 8px;
position: relative;
@media (max-width: 490px) {
width: auto;
}
@media (min-width: $checkout2500px) {
width: 765.37px;
height: 50px;
padding: 15.28px 14.35px;
}
input { @media (max-width: $checkout375px) {
box-shadow: none; width: 216px !important;
color: $color-black; position: relative;
font-family: $font-family; left: 1px;
padding: 0 16px; }
border: 2px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
@media (max-width: 490px) { }
width: auto;
}
}
button { button {
background-color: $color-black; border: none;
border-radius: 5px; font-family: $font-family;
border: none; width: 126.76px;
font-family: $font-family; height: 52px;
height: 54px; right: 0;
right: 0; top: 0;
top: 0; background: $color-blue2;
border-radius: 0px 8px 8px 0px;
font-style: normal;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-align: center;
letter-spacing: 0.05em;
text-transform: uppercase;
color: $color-black2;
cursor: pointer;
position: relative;
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
@media (min-width: $checkout2500px) {
width: 219px;
height: 52px;
font-size: 28px;
}
@media (max-width: 490px) { @media (max-width: $checkout375px) {
height: 48px; width: 127px !important;
margin: 0; position: relative;
position: absolute; right: 2px;
} }
}
}
span.help.error { span.help.error {
color: red; font-style: normal;
} font-weight: 700;
} font-size: 12px;
line-height: 16px;
color: $color-red;
}
}
.emailInfo { .emailInfo {
padding: 16px; padding: 16px;
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray4; border: 1px solid $color-black2;
border-radius: 0; border-radius: 5px;
width: 366.1px;
height: 116.1px;
@media (min-width: $checkout2500px) {
width: 742.1px;
height: 204.59px;
}
@media (max-width: $checkout375px) {
width: 313px;
}
h3 {
margin: 0 0 8px 0;
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
color: $color-black2 !important;
@media (min-width: $checkout2500px) {
font-size: 24px;
line-height: 33px;
}
}
h3 { ul {
color: #303030; margin: 0;
margin: 0 0 8px 0;
}
ul { li {
margin: 0; span {
font-style: normal;
font-weight: 700;
font-size: 12px;
line-height: 16px;
color: $color-black2;
@media (min-width: $checkout2500px) {
font-size: 24px;
line-height: 33px;
}
}
li { i::before {
span { color: $color-blue2;
color: $color-black; font-size: 1rem;
} opacity: 1;
@media (min-width: $checkout2500px) {
font-size: 33px;
}
}
}
}
i::before { i::before {
color: $color-black; color: $color-black;
font-size: 1rem; font-size: 6rem;
opacity: 1; opacity: 0.5;
} }
} }
} }
i::before { a#orderform-to-cart {
color: $color-black; margin-right: 16px;
font-size: 6rem; }
opacity: 0.5;
}
}
}
.shipping-data, input#client-pre-email::placeholder {
.payment-data, font-family: "Open Sans";
.client-profile-data { font-style: normal;
.accordion-group { font-weight: 400;
border-radius: 0; font-size: 12px;
border: 1px solid $color-gray4; line-height: 16px;
font-family: $font-family; color: $color-black2;
padding: 16px; @media (min-width: $checkout2500px) {
font-size: 24px;
line-height: 33px;
}
}
.accordion-heading { .shipping-data,
span { .payment-data,
color: #303030; .client-profile-data {
margin-bottom: 8px; .accordion-group {
padding: 0; border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
i::before { .accordion-heading {
fill: #303030; span {
} color: #303030;
} margin-bottom: 8px;
padding: 0;
a { i::before {
align-items: center; fill: #303030;
background-color: #303030; }
border-radius: 8px; }
border: none;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-inner { a {
padding: 0; 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 { /* General configurations */
color: $color-black;
}
p { .client-notice {
label { color: $color-black;
color: $color-black; }
font-weight: 500;
}
select, p {
input { label {
border-radius: 0; color: $color-black;
border: 1px solid $color-gray4; font-weight: 500;
box-shadow: none; }
}
.help.error { select,
color: red; input {
} border-radius: 0;
} border: 1px solid $color-gray4;
box-shadow: none;
}
.box-client-info-pj { .help.error {
.link a#is-corporate-client, color: red;
.link a#not-corporate-client { }
color: $color-black; }
font-weight: 500;
text-decoration: underline;
}
}
.state-inscription-box span { .box-client-info-pj {
font-weight: 500; .link a#is-corporate-client,
} .link a#not-corporate-client {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
}
button.submit { .state-inscription-box span {
border: none; font-weight: 500;
border-radius: 5px; }
background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
&:hover { button.submit {
background: lighten($color-black, 5); border: none;
} border-radius: 5px;
background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
&:active { &:hover {
background: darken($color-black, 5); background: lighten($color-black, 5);
} }
}
/* Shipping configurations */ &:active {
background: darken($color-black, 5);
}
}
.ship-postalCode small a { /* Shipping configurations */
color: #303030;
font-weight: 500;
text-decoration: underline;
}
.vtex-omnishipping-1-x-deliveryGroup { .ship-postalCode small a {
p { color: #303030;
color: #303030; font-weight: 500;
font-size: 14px; text-decoration: underline;
font-weight: 500; }
}
.shp-lean { .vtex-omnishipping-1-x-deliveryGroup {
border: 1px solid $color-gray4; p {
border-radius: 0; color: #303030;
font-size: 14px;
font-weight: 500;
}
label { .shp-lean {
background-color: $color-white; border: 1px solid $color-gray4;
box-shadow: none; border-radius: 0;
color: #303030;
padding: 8px 12px;
svg path { label {
fill: #d8c8ac; background-color: $color-white;
} box-shadow: none;
} color: #303030;
} padding: 8px 12px;
}
.delivery-address-title { svg path {
color: #303030; fill: #d8c8ac;
font-size: 14px; }
font-weight: 500; }
} }
}
.shp-summary-group-info { .delivery-address-title {
border-color: $color-gray4; color: #303030;
} font-size: 14px;
font-weight: 500;
}
.address-summary { .shp-summary-group-info {
background: none; border-color: $color-gray4;
border-color: $color-gray4; }
border-radius: 0;
color: #303030;
padding: 12px;
@include mq(md, max) { .address-summary {
background-position: 8px 9px; background: none;
} border-color: $color-gray4;
border-radius: 0;
color: #303030;
padding: 12px;
a { @include mq(md, max) {
color: #303030; background-position: 8px 9px;
font-weight: 500; }
text-decoration: underline;
}
}
.shp-summary-group-price, a {
.shp-summary-package { color: #303030;
color: $color-gray4; font-weight: 500;
} text-decoration: underline;
}
}
.shp-summary-group-price { .shp-summary-group-price,
padding-right: 16px; .shp-summary-package {
} color: $color-gray4;
}
.shp-summary-package { .shp-summary-group-price {
padding-left: 16px; padding-right: 16px;
} }
.vtex-omnishipping-1-x-summaryChange { .shp-summary-package {
border-color: #303030; padding-left: 16px;
color: #303030; }
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-summaryChange {
background-color: #d8c8ac; border-color: #303030;
border: 1px solid #d8c8ac; color: #303030;
} }
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-deliveryChannelsToggle {
text-shadow: 1.3px 1px lighten($color-black, 50); background-color: #d8c8ac;
} border: 1px solid #d8c8ac;
} }
}
} .vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
}
}
}
}
}
.client-pre-email .emailInfo .icon-lock {
@media (max-width: $checkout375px) {
display: none;
}
} }

View File

@ -103,6 +103,9 @@ body {
@include mq(md, max) { @include mq(md, max) {
margin-left: 30px; margin-left: 30px;
@media (max-width: $checkout1024px) {
margin-left: 16px;
}
} }
} }

View File

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