feature/page-checkout #2

Merged
Vitor_soares merged 6 commits from feature/page-checkout into main 2022-12-19 08:26:55 +00:00
6 changed files with 368 additions and 130 deletions
Showing only changes of commit 160bc43766 - Show all commits

View File

@ -1,15 +1,18 @@
.checkout-container {
.client-pre-email {
border-color: $color-gray4;
border-color: $color-black-500;
font-family: $font-family;
padding-top: 8px;
.link-cart {
a {
color: $color-black-100;
color: $color-black-500;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover {
cursor: default;
color: lighen($color-black-100, 10);
}
}
@ -22,30 +25,47 @@
justify-content: center;
h3 {
margin-bottom: 16px;
margin: 0 0 20px 0;
span {
color: #303030;
font-size: 24px;
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black-500;
}
small {
color: $color-gray4;
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black-500;
padding: 0;
}
}
}
.client-email {
margin: 0 0 16px;
display: flex;
flex-direction: column;
margin: 0 0 24px;
max-width: 562px;
width: 100%;
input {
box-shadow: none;
color: $color-black-100;
color: $color-black-500;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
font-size: 12px;
line-height: 16px;
padding: 0 14px;
height: 50px;
border: 1px solid $color-black-500;
box-sizing: border-box;
border-radius: 5px;
border-radius: 5px 0 0 5px;
max-width: 443px;
width: 100%;
@media (max-width: 490px) {
width: auto;
@ -53,12 +73,17 @@
}
button {
background-color: $color-black-100;
border-radius: 5px;
background-color: $color-blue-100;
border-radius: 0 8px 8px 0;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
font-size: 14px;
line-height: 19px;
font-weight: 700;
color: $color-black-500;
width: 126px;
height: 50px;
right: -6px;
top: 0;
@media (max-width: 490px) {
@ -69,19 +94,27 @@
}
span.help.error {
font-family: $font-family;
font-size: 12px;
line-height: 16px;
font-weight: 700;
color: red;
margin-top: 3px;
}
}
.emailInfo {
padding: 16px;
padding: 16px 16px 27px;
background-color: $color-white-500;
border: 1px solid $color-gray4;
border-radius: 0;
border: 1px solid $color-black-500;
border-radius: 5px;
max-width: 366px;
width: 100%;
h3 {
color: #303030;
margin: 0 0 8px 0;
font-family: $font-family;
color: $color-black-500;
margin: 0 0 10px 0;
}
ul {
@ -89,11 +122,15 @@
li {
span {
color: $color-black-100;
font-family: $font-family;
font-size: 12px;
line-height: 16px;
color: $color-black-500;
font-weight: 700;
}
i::before {
color: $color-black-100;
color: $color-blue-100;
font-size: 1rem;
opacity: 1;
}
@ -112,18 +149,23 @@
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
border-radius: 8px;
border: 1px solid $color-gray3;
font-family: $font-family;
padding: 16px;
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
font-family: $font-family-secundary;
font-size: 16px;
line-height: 18px;
color: $color-black-100;
margin-top: 7px;
margin-bottom: 25px;
padding: 0;
i::before {
display: none;
fill: #303030;
}
}
@ -146,19 +188,23 @@
/* General configurations */
.client-notice {
display: none;
color: $color-black-100;
}
p {
label {
color: $color-black-100;
font-weight: 500;
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 700;
}
select,
input {
border-radius: 0;
border: 1px solid $color-gray4;
border-radius: 5px;
border: 1px solid $color-gray10;
box-shadow: none;
}
@ -167,7 +213,19 @@
}
}
.newsletter {
.newsletter-text {
font-family: $font-family;
color: $color-gray9;
font-size: 12px;
line-height: 16px;
}
}
.box-client-info-pj {
display: none;
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black-100;
@ -180,21 +238,24 @@
font-weight: 500;
}
.btn-submit-wrapper {
margin: 0;
}
button.submit {
border: none;
border-radius: 5px;
background: $color-black-100;
margin-top: 8px;
font-family: $font-family;
color: $color-white-500;
letter-spacing: 0.05px;
font-size: 14px;
line-height: 19px;
font-weight: 700;
width: 100%;
border-radius: 8px;
background: $color-blue-100;
margin: 45px 0 29px 0 !important;
text-transform: uppercase;
outline: none;
transition: all 0.2s linear;
&:hover {
background: lighten($color-black-100, 5);
}
&:active {
background: darken($color-black-100, 5);
}
border: none;
}
/* Shipping configurations */
@ -276,14 +337,75 @@
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
background-color: $color-white-500;
border: 1px solid $color-gray12;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black-100, 50);
font-family: $font-family;
color: $color-black-100;
text-transform: uppercase;
font-size: 14px;
line-height: 19px;
// text-shadow: 1.3px 1px lighten($color-black-100, 50);
}
.vtex-omnishipping-1-x-addressFormPart1 {
.ship-country {
display: none;
}
}
}
}
}
}
.hproduct {
.badge {
display: none;
}
img {
transform: rotateY(180deg);
}
span {
font-family: $font-family-secundary;
color: $color-black-500;
font-size: 12px;
line-height: 14px;
}
}
.vtex-omnishipping-1-x-address {
div {
display: flex;
flex-direction: column;
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 700;
letter-spacing: 0.05px;
margin-bottom: 3px;
}
.input-mini {
width: 100%;
border: 1px solid $color-gray10;
border-radius: 8px;
}
input {
width: 96.42%;
&::placeholder {
display: none;
}
}
}
}

View File

@ -16,7 +16,7 @@
border: 1px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
padding: 16px;
padding: 16px 29px 16px 16px;
margin: 0 0 48px 0;
@include mq(md, max) {
@ -75,8 +75,12 @@
}
#go-to-cart-button a {
color: #303030;
font-family: $font-family;
color: $color-black-500;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
padding-right: 17px;
}
.summary-totalizers {
@ -112,12 +116,14 @@
}
th {
font-family: $font-family-secundary;
color: $color-black-100;
padding: 0 0 16px;
font-style: normal;
font-weight: bold;
font-weight: 400;
font-size: 14px;
line-height: 16px;
text-align: unset;
vertical-align: unset;
@include mq(md, max) {
&.quantity-price,
@ -125,6 +131,36 @@
display: none;
}
}
&.shipping-date {
font-size: 0;
&::after {
content: "Frete";
font-family: $font-family-secundary;
color: $color-black-100;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
}
&.product-price {
font-size: 0;
&::after {
content: "Unidade";
font-family: $font-family-secundary;
color: $color-black-100;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
}
&.quantity {
width: 181px;
}
}
.product-image {
@ -138,8 +174,9 @@
img {
height: 60px;
max-width: 100%;
width: auto;
max-width: 60px;
width: 100%;
transform: rotateY(180deg);
@include mq(sm, max) {
height: 72px;
@ -149,7 +186,8 @@
}
.product-name {
padding-right: 0;
padding-left: 16px;
width: 321px;
@include mq(lg, max) {
width: 250px;
@ -177,9 +215,12 @@
}
td.shipping-date {
width: 147px;
color: $color-gray2;
font-size: 12px;
line-height: 14px;
text-align: unset;
padding: 0;
@include mq(md, max) {
display: none;
@ -187,7 +228,11 @@
}
.product-price {
text-align: unset;
min-width: 100px;
width: 148px;
padding: 0;
@include mq(md, max) {
min-width: 78px;
}
@ -211,6 +256,10 @@
text-transform: lowercase;
}
}
.price-details {
display: none;
}
}
td.quantity {
@ -220,7 +269,7 @@
box-sizing: border-box;
display: flex;
justify-content: center;
margin: 15px auto 0;
margin: 10px 0 0 0;
max-height: 38px;
max-width: 118px;
padding: 0;
@ -305,11 +354,15 @@
}
.quantity-price {
text-align: unset;
padding: 0;
@include mq(md, max) {
display: none;
}
.total-selling-price {
text-align: unset;
font-size: 14px;
line-height: 19px;
font-weight: 700;
@ -345,6 +398,10 @@
}
}
.table td {
padding: 0;
}
.summary {
.cart-more-options {
margin: 0;
@ -414,51 +471,42 @@
}
.srp-pickup-my-location__button {
background-color: $color-black-100;
background-color: $color-blue-100;
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white-500;
outline: none;
width: 100%;
font-style: normal;
font-weight: 500;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 16px;
line-height: 19px;
letter-spacing: 0.05em;
&:hover {
background-color: lighten($color-black-100, 5);
}
&:active {
background-color: darken($color-black-100, 5);
}
}
}
.srp-toggle {
margin: 0 0 34px;
margin: 0 0 20px;
&__wrapper {
background-color: $color-white-500;
border-radius: 100px;
width: 100%;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 14px;
line-height: 16px;
line-height: 19px;
text-transform: uppercase;
}
&__current {
border: 1px solid $color-blue;
border: 1px solid $color-black-500;
border-radius: 100px;
box-shadow: 2px 2px 4px rgba($color-black-500, 0.2);
}
.blue {
color: $color-blue;
color: $color-black-500;
}
label {
@ -471,6 +519,11 @@
}
.srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode {
label {
font-family: $font-family;
@ -483,7 +536,7 @@
}
input {
border: 1px solid $color-gray3;
border: 1px solid $color-gray8;
border-radius: 5px;
box-shadow: none;
color: $color-black-500;
@ -495,47 +548,53 @@
}
& ~ button {
background-color: $color-black-100;
background-color: $color-blue-100;
position: absolute;
right: calc(-138px - 9px);
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white-500;
font-size: 12px;
height: 36px;
letter-spacing: 1px;
outline: none;
position: absolute;
right: -150px;
top: 36px;
transition: all 0.2s linear;
width: 96px;
width: 100px;
font-size: 14px;
line-height: 19px;
font-weight: 700;
letter-spacing: 0.05px;
font-family: $font-family;
text-transform: uppercase;
&:hover {
background-color: lighten($color-black-100, 5);
}
&:active {
background-color: darken($color-black-100, 5);
}
}
small a {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
font-size: 0px;
line-height: 12px;
color: $color-blue;
margin-top: 7px;
color: $color-black-500;
&::after {
content: "Não sei meu código postal";
font-family: $font-family-secundary;
color: $color-black-500;
font-size: 10px;
line-height: 12px;
text-decoration: underline;
}
}
span.help.error {
font-family: $font-family;
color: red;
font-size: 12px;
line-height: 16px;
font-weight: 700;
position: absolute;
left: 0;
width: 100%;
top: 17px;
top: 15px;
}
}
}
@ -603,11 +662,18 @@
&-totalizers {
margin: 0;
padding: 0;
width: 346px;
max-width: 354px;
width: 100%;
.coupon-data {
display: block !important;
margin: 0 0 10px;
#cart-link-coupon-add {
font-family: $font-family-secundary;
color: $color-black-500;
font-size: 12px;
line-height: 14px;
text-decoration: none;
&:hover {
text-decoration: none;
@ -642,18 +708,16 @@
}
.coupon-label label {
margin-bottom: 12px;
font-family: $font-family;
font-style: normal;
font-weight: normal;
margin: 0;
font-family: $font-family-secundary;
font-size: 12px;
line-height: 14px;
color: $color-gray2;
cursor: none;
text-align: start;
}
.coupon-fields {
margin-bottom: 32px;
margin-bottom: 20px;
@include mq(sm, max) {
span {
@ -669,14 +733,20 @@
}
input {
border: 2px solid $color-gray3;
border: 1px solid $color-gray5;
border-radius: 5px;
box-shadow: none;
color: $color-gray4;
font-size: 12px;
height: 34px;
padding: 0 12px;
max-width: 160px;
height: 36px;
padding: 0;
max-width: 204px;
width: 100%;
float: left;
&::placeholder {
padding: 0 16px;
}
@include mq(sm, max) {
max-width: 100%;
@ -685,17 +755,19 @@
}
button {
background: $color-black-100;
background: $color-blue-100;
border: none;
border-radius: 5px;
color: $color-white-500;
font-size: 12px;
border-radius: 8px;
color: $color-black-500;
font-size: 14px;
line-height: 19px;
height: 36px;
letter-spacing: 1px;
margin-left: 6px;
margin-left: 14px;
outline: none;
transition: all 0.2s linear;
width: 94px;
max-width: 133px;
width: 100%;
text-transform: uppercase;
@include mq(md, max) {
@ -715,7 +787,7 @@
.accordion-group {
tr {
border-color: #e5e5e5;
border-color: $color-gray5;
td {
&.empty {
@ -724,11 +796,10 @@
&.info,
&.monetary {
font-style: normal;
font-weight: normal;
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
line-height: 16px;
color: $color-black-100;
line-height: 19px;
padding: 10px 0;
}
@ -777,7 +848,7 @@
.link-choose-more-products-wrapper {
display: block;
text-align: center;
margin-bottom: 10px;
margin-bottom: 15px;
text-decoration: none;
@include mq(md, max) {

View File

@ -1,10 +1,52 @@
body .container-main.container-order-form .orderform-template.active {
.mini-cart {
border: 1px solid $color-gray5;
border-radius: 8px;
// padding: 25px 17px;
width: 32.3242%;
margin-left: unset;
margin-right: 0;
float: right;
}
h2 {
font-family: $font-family-secundary;
color: $color-black-100;
font-size: 16px;
line-height: 19px;
padding: 25px 0 0 17px !important;
text-align: initial;
padding: 0;
margin-bottom: 34px;
}
.cart {
border: 0;
padding: 0;
margin: 0;
li {
display: flex;
align-items: center;
.description {
margin: 0;
}
.price {
font-family: $font-family;
color: $color-black-100;
font-size: 12px;
line-height: 16px;
margin: 0;
padding-right: 17px;
}
}
}
tr {
border-top: 1px solid $color-gray10;
}
.orderform-template-holder {
width: 66.1132%;
}

View File

@ -31,18 +31,20 @@
border: 1px solid $color-black-500;
border-radius: 0;
transition: ease-in-out 0.2s all;
font-family: $font-family;
font-size: 14px;
line-height: 16px;
text-align: center;
color: $color-black-500;
text-transform: uppercase;
font-size: 0px;
padding: 15px 65px 17px;
margin: 0;
line-height: 0;
&:hover {
background: $color-gray6;
}
&::after {
content: "Continuar comprando";
font-size: 14px;
line-height: 16px;
text-align: center;
font-family: $font-family-secundary;
color: $color-black-500;
text-transform: uppercase;
}
}
}
}

View File

@ -55,10 +55,6 @@ body {
.btn-success {
background: $color-black-100;
text-shadow: none;
&:hover {
background: lighten($color-black-100, 15%);
}
}
.emailInfo h3 {

View File

@ -17,6 +17,11 @@ $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #ededed;
$color-gray7: #F0F0F0;
$color-gray8: #c4c4c4;
$color-gray9: #808080;
$color-gray10: #e0e0e0;
$color-gray11: #828282;
$color-gray12: #292929;
$color-blue: #4267b2;
$color-blue-100: #00c8ff;