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 { }
color: red;
}
}
.emailInfo { span.help.error {
padding: 16px; font-style: normal;
background-color: $color-white; font-weight: 700;
border: 1px solid $color-gray4; font-size: 12px;
border-radius: 0; line-height: 16px;
color: $color-red;
}
}
h3 { .emailInfo {
color: #303030; padding: 16px;
margin: 0 0 8px 0; background-color: $color-white;
} border: 1px solid $color-black2;
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;
}
}
ul { ul {
margin: 0; margin: 0;
li { li {
span { span {
color: $color-black; 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;
}
}
i::before { i::before {
color: $color-black; color: $color-blue2;
font-size: 1rem; font-size: 1rem;
opacity: 1; opacity: 1;
} @media (min-width: $checkout2500px) {
} font-size: 33px;
} }
}
}
}
i::before { i::before {
color: $color-black; color: $color-black;
font-size: 6rem; font-size: 6rem;
opacity: 0.5; opacity: 0.5;
} }
} }
} }
.shipping-data, a#orderform-to-cart {
.payment-data, margin-right: 16px;
.client-profile-data { }
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
.accordion-heading { input#client-pre-email::placeholder {
span { font-family: "Open Sans";
color: #303030; font-style: normal;
margin-bottom: 8px; font-weight: 400;
padding: 0; font-size: 12px;
line-height: 16px;
color: $color-black2;
@media (min-width: $checkout2500px) {
font-size: 24px;
line-height: 33px;
}
}
i::before { .shipping-data,
fill: #303030; .payment-data,
} .client-profile-data {
} .accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
a { .accordion-heading {
align-items: center; span {
background-color: #303030; color: #303030;
border-radius: 8px; margin-bottom: 8px;
border: none; padding: 0;
color: $color-white;
display: flex;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.accordion-inner { i::before {
padding: 0; fill: #303030;
}
}
/* General configurations */ 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;
}
}
.client-notice { .accordion-inner {
color: $color-black; padding: 0;
}
p { /* General configurations */
label {
color: $color-black;
font-weight: 500;
}
select, .client-notice {
input { color: $color-black;
border-radius: 0; }
border: 1px solid $color-gray4;
box-shadow: none;
}
.help.error { p {
color: red; label {
} color: $color-black;
} font-weight: 500;
}
.box-client-info-pj { select,
.link a#is-corporate-client, input {
.link a#not-corporate-client { border-radius: 0;
color: $color-black; border: 1px solid $color-gray4;
font-weight: 500; box-shadow: none;
text-decoration: underline; }
}
}
.state-inscription-box span { .help.error {
font-weight: 500; color: red;
} }
}
button.submit { .box-client-info-pj {
border: none; .link a#is-corporate-client,
border-radius: 5px; .link a#not-corporate-client {
background: $color-black; color: $color-black;
margin-top: 8px; font-weight: 500;
outline: none; text-decoration: underline;
transition: all 0.2s linear; }
}
&:hover { .state-inscription-box span {
background: lighten($color-black, 5); font-weight: 500;
} }
&:active { button.submit {
background: darken($color-black, 5); border: none;
} border-radius: 5px;
} background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
/* Shipping configurations */ &:hover {
background: lighten($color-black, 5);
}
.ship-postalCode small a { &:active {
color: #303030; background: darken($color-black, 5);
font-weight: 500; }
text-decoration: underline; }
}
.vtex-omnishipping-1-x-deliveryGroup { /* Shipping configurations */
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
.shp-lean { .ship-postalCode small a {
border: 1px solid $color-gray4; color: #303030;
border-radius: 0; font-weight: 500;
text-decoration: underline;
}
label { .vtex-omnishipping-1-x-deliveryGroup {
background-color: $color-white; p {
box-shadow: none; color: #303030;
color: #303030; font-size: 14px;
padding: 8px 12px; font-weight: 500;
}
svg path { .shp-lean {
fill: #d8c8ac; border: 1px solid $color-gray4;
} border-radius: 0;
}
}
}
.delivery-address-title { label {
color: #303030; background-color: $color-white;
font-size: 14px; box-shadow: none;
font-weight: 500; color: #303030;
} padding: 8px 12px;
.shp-summary-group-info { svg path {
border-color: $color-gray4; fill: #d8c8ac;
} }
}
}
}
.address-summary { .delivery-address-title {
background: none; color: #303030;
border-color: $color-gray4; font-size: 14px;
border-radius: 0; font-weight: 500;
color: #303030; }
padding: 12px;
@include mq(md, max) { .shp-summary-group-info {
background-position: 8px 9px; border-color: $color-gray4;
} }
a { .address-summary {
color: #303030; background: none;
font-weight: 500; border-color: $color-gray4;
text-decoration: underline; border-radius: 0;
} color: #303030;
} padding: 12px;
.shp-summary-group-price, @include mq(md, max) {
.shp-summary-package { background-position: 8px 9px;
color: $color-gray4; }
}
.shp-summary-group-price { a {
padding-right: 16px; color: #303030;
} font-weight: 500;
text-decoration: underline;
}
}
.shp-summary-package { .shp-summary-group-price,
padding-left: 16px; .shp-summary-package {
} color: $color-gray4;
}
.vtex-omnishipping-1-x-summaryChange { .shp-summary-group-price {
border-color: #303030; padding-right: 16px;
color: #303030; }
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { .shp-summary-package {
background-color: #d8c8ac; padding-left: 16px;
border: 1px solid #d8c8ac; }
}
.vtex-omnishipping-1-x-deliveryOptionActive { .vtex-omnishipping-1-x-summaryChange {
text-shadow: 1.3px 1px lighten($color-black, 50); border-color: #303030;
} color: #303030;
} }
}
} .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);
}
}
}
}
}
.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,