feat: Cria checkout style #6

Merged
ThiagoDutraSampaioLeite merged 1 commits from feature/checkout into main 2022-12-16 21:33:57 +00:00
5 changed files with 292 additions and 284 deletions

View File

@ -4,4 +4,5 @@
@import "./partials/footer"; @import "./partials/footer";
@import "./checkout/checkout.scss"; @import "./checkout/checkout.scss";
@import "./partials/prateleira.scss"; @import "./partials/prateleira.scss";
@import "./partials/body.scss";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Tenor+Sans&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Tenor+Sans&display=swap");

View File

@ -1,289 +1,311 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-black-500;
font-family: $font-family; font-family: $font-family;
padding-top: 8px; padding-top: 8px;
input {
// color: $color-black-500;
font-size: 12px;
}
.link-cart { #client-pre-email::placeholder {
a { color: $color-black-500;
color: $color-black; }
font-size: 14px;
&:hover { .link-cart {
color: lighen($color-black, 10); a {
} color: $color-black-500;
} font-size: 14px;
} font-family: $font-family-secundary;
line-height: 16px;
text-transform: uppercase;
.pre-email { &:hover {
flex-direction: column; color: lighen($color-black, 10);
display: flex; }
align-items: center; }
justify-content: center; }
h3 { .pre-email {
margin-bottom: 16px; flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
span { h3 {
color: #303030; margin-bottom: 16px;
font-size: 24px;
}
small { span {
color: $color-gray4; color: $color-black-500;
} font-size: 20px;
} font-family: $font-family-secundary;
} text-transform: uppercase;
}
.client-email { small {
margin: 0 0 16px; color: $color-black-500;
font-weight: 20px;
font-family: $font-family-secundary;
text-transform: uppercase;
}
}
}
input { .client-email {
box-shadow: none; margin: 0 0 16px;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
@media (max-width: 490px) { input {
width: auto; box-shadow: none;
} color: $color-black;
} font-family: $font-family;
padding: 0 16px;
border: 1px solid $color-black-500;
box-sizing: border-box;
border-radius: 5px;
button { @media (max-width: 490px) {
background-color: $color-black; width: auto;
border-radius: 5px; }
border: none; }
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
@media (max-width: 490px) { button {
height: 48px; background-color: $color-blue-100;
margin: 0; border-radius: 0 5px 5px 0;
position: absolute; border: none;
} font-family: $font-family;
} height: 54px;
right: 0;
top: 0;
color: $color-black-500;
font-weight: bold;
span.help.error { @media (max-width: 490px) {
color: red; height: 48px;
} margin: 0;
} position: absolute;
}
}
.emailInfo { span.help.error {
padding: 16px; color: red;
background-color: $color-white; font-weight: 700;
border: 1px solid $color-gray4; font-size: 12px;
border-radius: 0; }
}
h3 { .emailInfo {
color: #303030; padding: 16px;
margin: 0 0 8px 0; background-color: $color-white;
} border: 1px solid $color-black-500;
border-radius: 5px;
ul { h3 {
margin: 0; color: #303030;
margin: 0 0 8px 0;
}
li { ul {
span { margin: 0;
color: $color-black;
}
i::before { li {
color: $color-black; span {
font-size: 1rem; color: $color-black;
opacity: 1; font-weight: 700;
} font-size: 12px;
} }
}
i::before { i::before {
color: $color-black; color: $color-blue-100;
font-size: 6rem; font-size: 1rem;
opacity: 0.5; opacity: 1;
} }
} }
} }
.shipping-data, i::before {
.payment-data, color: $color-black;
.client-profile-data { font-size: 6rem;
.accordion-group { opacity: 0.5;
border-radius: 0; }
border: 1px solid $color-gray4; }
font-family: $font-family; }
padding: 16px;
.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);
}
}
}
}
} }

View File

@ -2,6 +2,12 @@
@include mq(md, max) { @include mq(md, max) {
width: 100%; width: 100%;
} }
#cart-title {
font-size: 24px;
color: $color-black;
letter-spacing: 5%;
}
} }
.cart-template { .cart-template {
@ -13,7 +19,7 @@
display: none; display: none;
} }
.cart { .cart {
border: 3px solid $color-gray3; border: 1px solid $color-gray3;
box-sizing: border-box; box-sizing: border-box;
border-radius: 5px; border-radius: 5px;
padding: 16px; padding: 16px;
@ -114,7 +120,7 @@
color: $color-black; color: $color-black;
padding: 0 0 16px; padding: 0 0 16px;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: 400;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
@ -227,6 +233,7 @@
max-width: 118px; max-width: 118px;
padding: 0; padding: 0;
width: max-content !important; width: max-content !important;
border-radius: 8px;
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
@ -262,15 +269,15 @@
.icon-minus-sign { .icon-minus-sign {
&:before { &:before {
content: "-";
font-size: 16px; font-size: 16px;
color: $color-blue-100;
} }
} }
.icon-plus-sign { .icon-plus-sign {
&:before { &:before {
content: "+"; color: $color-blue-100;
font-size: 14px; font-size: 16px;
} }
} }
@ -295,12 +302,15 @@
.icon-question-sign { .icon-question-sign {
display: none; display: none;
} }
.total-selling-price {
font-weight: bold;
}
span { span {
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $color-black-500;
} }
} }
@ -315,7 +325,7 @@
top: 0; top: 0;
} }
.icon::before { .icon::before {
color: $color-gray4; color: $color-gray6;
font-size: 15px; font-size: 15px;
@include mq(md, max) { @include mq(md, max) {
@ -630,6 +640,7 @@
} }
.coupon-label label { .coupon-label label {
display: flex;
margin-bottom: 12px; margin-bottom: 12px;
font-family: $font-family; font-family: $font-family;
font-style: normal; font-style: normal;
@ -641,6 +652,7 @@
} }
.coupon-fields { .coupon-fields {
display: flex;
margin-bottom: 32px; margin-bottom: 32px;
@include mq(sm, max) { @include mq(sm, max) {
@ -673,14 +685,14 @@
} }
button { button {
background: $color-black; background: $color-blue-100;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
color: $color-white; color: $color-black-500;
font-size: 12px; font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
margin-left: 6px; margin-left: 15px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 94px; width: 94px;
@ -738,6 +750,7 @@
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 21px;
color: $color-black; color: $color-black;
font-weight: bold;
} }
} }
} }
@ -782,7 +795,7 @@
.btn-place-order-wrapper { .btn-place-order-wrapper {
a { a {
background: $color-green; background: $color-blue-100;
border: none; border: none;
border-radius: 5px; border-radius: 5px;
display: block; display: block;
@ -791,7 +804,7 @@
padding: 12px 19px; padding: 12px 19px;
&:hover { &:hover {
background-color: darken($color-green, 5); background-color: darken($color-blue-100, 5);
} }
&:after { &:after {
@ -805,6 +818,9 @@
vertical-align: middle; vertical-align: middle;
line-height: 19px; line-height: 19px;
text-shadow: none; text-shadow: none;
font-weight: bold;
color: $color-black-500;
letter-spacing: 5%;
} }
} }
} }

View File

@ -68,13 +68,13 @@ body {
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: $color-black-500;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: bold;
font-size: 36px; font-size: 24px;
line-height: 42px; line-height: 42px;
margin: 40px 0 30px; margin: 40px 0 30px;
letter-spacing: 0.1em; letter-spacing: 0%;
text-transform: uppercase; text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {

View File

@ -146,34 +146,3 @@
} }
} }
} }
.container-main {
// background-color: burlywood;
#cart-title {
// display: none !important;
}
.empty-cart-content {
.empty-cart-title {
font-size: 24px;
font-family: $font-family;
}
.empty-cart-message {
display: none;
}
.empty-cart-links {
.btn {
width: 327px;
background-color: transparent;
border: 1px solid $color-black;
border-radius: 0;
color: $color-black;
}
// .btn::after {
// content: "continuar comprando";
// color: $color-black;
// }
}
}
}