Compare commits

...

6 Commits

8 changed files with 1196 additions and 492 deletions

View File

@ -32,13 +32,12 @@ export default class CheckoutUI {
toggleFooterDropdown(event) { toggleFooterDropdown(event) {
event.target.classList.toggle("closed"); event.target.classList.toggle("closed");
event.target.nextElementSibling.classList.toggle( event.target.nextElementSibling.classList.toggle("dropdown__content--closed");
"dropdown__content--closed"
);
} }
init() { init() {
this.configThumb(); this.configThumb();
this.resetTitle();
waitForEl(".product-image img", this.resizeImages.bind(this)); waitForEl(".product-image img", this.resizeImages.bind(this));
$(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this)); $(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this));
} }
@ -56,14 +55,27 @@ export default class CheckoutUI {
resizeImages() { resizeImages() {
$(".product-image img").each((i, el) => { $(".product-image img").each((i, el) => {
const $el = $(el); const $el = $(el);
$el.attr( $el.attr("src", alterarTamanhoImagemSrcVtex($el.attr("src"), this.width, this.height));
"src",
alterarTamanhoImagemSrcVtex(
$el.attr("src"),
this.width,
this.height
)
);
}); });
} }
async resetTitle() {
const orderForm = await window.vtexjs.checkout.getOrderForm();
const itemsForm = orderForm.items.length;
const cartId = document.querySelector("#cart-title");
$(window).on("orderFormUpdated.vtex", (evt, oF) => {
if (oF.items.length <= 0) {
cartId.style.display = "none";
} else {
cartId.style.display = "block";
}
if (window.location.hash === "#/shipping" || window.location.hash === "#/payment") {
cartId.style.display = "none";
}
});
if (itemsForm === 0) {
cartId.style.display = "none";
}
}
} }

View File

@ -1,289 +1,750 @@
.checkout-container { .checkout-container {
.client-pre-email { .client-pre-email {
border-color: $color-gray4; border-color: $color-black1;
font-family: $font-family; font-family: $font-family;
padding-top: 8px; padding-top: 8px;
.link-cart { .link-cart {
a { a {
color: $color-black; color: $color-black1;
font-size: 14px; font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover { &:hover {
color: lighen($color-black, 10); cursor: default;
} 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: 0 0 20px 0;
span { span {
color: #303030; font-family: $font-family-secundary;
font-size: 24px; font-size: 20px;
} line-height: 23px;
text-transform: uppercase;
color: $color-black1;
}
small { small {
color: $color-gray4; font-family: $font-family-secundary;
} font-size: 20px;
} line-height: 23px;
} text-transform: uppercase;
color: $color-black1;
padding: 0;
}
}
}
.client-email { .client-email {
margin: 0 0 16px; display: flex;
flex-direction: column;
margin: 0 0 24px;
max-width: 562px;
width: 100%;
input { input {
box-shadow: none; box-shadow: none;
color: $color-black; color: $color-black1;
font-family: $font-family; font-family: $font-family;
padding: 0 16px; font-size: 12px;
border: 2px solid $color-gray3; line-height: 16px;
box-sizing: border-box; padding: 0 14px;
border-radius: 5px; height: 50px;
border: 1px solid $color-black1;
box-sizing: border-box;
border-radius: 5px 0 0 5px;
max-width: 443px;
width: 100%;
@media (max-width: 490px) { @media (max-width: 490px) {
width: auto; width: auto;
} }
}
button { &::placeholder {
background-color: $color-black; color: $color-black1;
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 8px 8px 0;
position: absolute; border: none;
} font-family: $font-family;
} font-size: 14px;
line-height: 19px;
font-weight: 700;
color: $color-black1;
width: 126px;
height: 50px;
right: 0px;
top: 0;
span.help.error { @media (max-width: 490px) {
color: red; height: 48px;
} margin: 0;
} position: absolute;
}
}
.emailInfo { span.help.error {
padding: 16px; font-family: $font-family;
background-color: $color-white; font-size: 12px;
border: 1px solid $color-gray4; line-height: 16px;
border-radius: 0; font-weight: 700;
color: red;
margin-top: 3px;
}
}
h3 { .emailInfo {
color: #303030; padding: 16px 16px 27px;
margin: 0 0 8px 0; background-color: $color-white;
} border: 1px solid $color-black1;
border-radius: 5px;
max-width: 366px;
width: 100%;
ul { h3 {
margin: 0; font-family: $font-family;
color: $color-black1;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0 0 10px 0;
}
li { ul {
span { margin: 0;
color: $color-black;
}
i::before { li {
color: $color-black; span {
font-size: 1rem; font-family: $font-family;
opacity: 1; font-size: 12px;
} line-height: 16px;
} color: $color-black1;
} font-weight: 700;
}
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 { .client-profile-data {
span { .accordion-heading {
color: #303030; .accordion-toggle {
margin-bottom: 8px; span {
padding: 0; font-size: 0 !important;
i::before { &::after {
fill: #303030; font-family: $font-family-secundary;
} color: $color-black;
} content: "Identificação";
font-size: 16px;
line-height: 19px;
float: left;
}
}
}
}
}
a { .shipping-data,
align-items: center; .payment-data,
background-color: #303030; .client-profile-data {
border-radius: 8px; .accordion-group {
border: none; border-radius: 8px;
color: $color-white; border: 1px solid $color-gray5;
display: flex; font-family: $font-family;
justify-content: center; padding: 16px;
padding: 6px 5px 6px 8px; width: 90.06%;
}
}
.accordion-inner { .accordion-heading {
padding: 0; .accordion-toggle-active {
i::after {
display: none;
}
}
/* General configurations */ span {
font-family: $font-family-secundary;
font-size: 16px;
line-height: 18px;
color: $color-black;
margin-top: 7px;
margin-bottom: 25px;
padding: 0;
.client-notice { i::before {
color: $color-black; content: "";
} }
p { i::after {
label { content: "";
color: $color-black; display: block;
font-weight: 500; background-image: url("https://agenciamagma.vteximg.com.br/arquivos/lapisM3Academy.png");
} background-size: 100% 100%;
background-repeat: no-repeat;
width: 20px;
height: 20px;
float: right;
cursor: pointer;
}
}
select, a {
input { display: flex;
border-radius: 0; opacity: 0;
border: 1px solid $color-gray4; align-items: center;
box-shadow: none; background-color: #303030;
} border-radius: 8px;
border: none;
color: $color-white;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.help.error { .accordion-inner {
color: red; padding: 0;
}
}
.box-client-info-pj { .box-step {
.link a#is-corporate-client, .shipping-summary-info {
.link a#not-corporate-client { font-family: $font-family;
color: $color-black; font-size: 14px;
font-weight: 500; line-height: 19px;
text-decoration: underline; color: $color-gray2;
} }
} }
.state-inscription-box span { /* General configurations */
font-weight: 500;
}
button.submit { .client-notice {
border: none; display: none;
border-radius: 5px; }
background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
&:hover { .ship-country {
background: lighten($color-black, 5); display: none;
} }
&:active { .ship-postalCode {
background: darken($color-black, 5); display: flex;
} flex-direction: column;
}
/* Shipping configurations */ label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 700;
}
.ship-postalCode small a { input {
color: #303030; border: 1px solid $color-gray8;
font-weight: 500; border-radius: 8px;
text-decoration: underline; width: 100%;
} max-width: 90%;
margin-bottom: 10px;
}
.vtex-omnishipping-1-x-deliveryGroup { small {
p { font-family: $font-family;
color: #303030; color: $color-black;
font-size: 14px; font-size: 12px;
font-weight: 500; line-height: 16px;
} text-decoration: underline;
margin: 0;
}
}
.shp-lean { p {
border: 1px solid $color-gray4; font-size: 14px;
border-radius: 0; line-height: 19px;
font-family: $font-family;
color: $color-gray2;
margin: 0;
padding: 0;
label { label {
background-color: $color-white; font-family: $font-family;
box-shadow: none; color: $color-gray2;
color: #303030; font-size: 14px;
padding: 8px 12px; line-height: 19px;
font-weight: 400;
}
svg path { .btn-go-to-payment {
fill: #d8c8ac; margin-top: 0;
} }
} }
}
}
.delivery-address-title { select,
color: #303030; input {
font-size: 14px; font-family: $font-family;
font-weight: 500; color: $color-gray8;
} font-size: 14px;
line-height: 19px;
font-weight: 400;
border-radius: 5px;
border: 1px solid $color-gray2;
box-shadow: none;
padding: 0 12px;
}
.shp-summary-group-info { p {
border-color: $color-gray4; [type="checkbox"] {
} display: none;
.address-summary { &:checked + .newsletter-text::after {
background: none; content: "";
border-color: $color-gray4; width: 12px;
border-radius: 0; display: block;
color: #303030; position: absolute;
padding: 12px; top: 3px;
border-radius: 3px;
left: 3px;
height: 12px;
background-color: $color-blue-100;
}
}
}
@include mq(md, max) { label {
background-position: 8px 9px; &.checkbox {
} position: relative;
padding-left: 26px;
a { .newsletter-text {
color: #303030; &::before {
font-weight: 500; position: absolute;
text-decoration: underline; content: "";
} border: 1px solid #828282;
} border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
}
}
.shp-summary-group-price, .input-xlarge {
.shp-summary-package { width: 91.24%;
color: $color-gray4; height: 40px;
} margin-bottom: 16px;
}
.shp-summary-group-price { .input-small {
padding-right: 16px; max-width: 115px;
} width: 100%;
height: 40px;
margin-bottom: 16px;
}
.shp-summary-package { #client-first-name,
padding-left: 16px; #client-document {
} margin-right: 15px;
}
.vtex-omnishipping-1-x-summaryChange { [type="checkbox"] {
border-color: #303030; width: 18px;
color: #303030; height: 18px;
} border: 1px solid $color-gray;
padding-right: 8px;
margin-top: 0px;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle { .help.error {
background-color: #d8c8ac; display: none !important;
border: 1px solid #d8c8ac; font-family: $font-family;
} color: red;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0;
padding: 0;
}
}
.vtex-omnishipping-1-x-deliveryOptionActive { .newsletter {
text-shadow: 1.3px 1px lighten($color-black, 50); .newsletter-text {
} font-family: $font-family;
} color: $color-gray8;
} 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;
font-weight: 500;
text-decoration: underline;
}
}
.state-inscription-box span {
font-weight: 500;
}
.btn-submit-wrapper {
margin: 0;
}
button.submit {
font-family: $font-family;
color: $color-white;
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;
text-transform: uppercase;
outline: none;
border: none;
}
/* Shipping configurations */
.ship-postalCode small a {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
line-height: 19px;
font-weight: 700;
padding-bottom: 10px;
}
}
.delivery-address-title {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05px;
font-weight: 700;
padding-bottom: 10px;
}
.vtex-omnishipping-1-x-SummaryItemContent {
align-items: flex-end;
}
.shp-summary-package {
padding-left: 0 !important;
}
.shp-summary-group-info {
border-right: none;
}
.shipping-summary-placeholder {
.link-change-shipping {
display: none;
}
}
.vtex-omnishipping-1-x-addressSummaryActive {
.address-summary {
background: none;
border: 1px solid $color-gray2;
border-radius: 8px;
padding: 12px;
&::before {
content: "";
display: block;
background-image: url("https://agenciamagma.vteximg.com.br/arquivos/homeM3Academy.png");
background-size: 100% 100%;
background-repeat: no-repeat;
width: 20px;
height: 20px;
float: left;
margin: 8px 9.4px 0 0;
}
@include mq(md, max) {
background-position: 8px 9px;
}
a {
font-family: $font-family;
color: $color-blue-100;
font-size: 12px;
line-height: 16px;
font-weight: 400;
text-transform: lowercase;
text-decoration: none;
float: right;
}
}
}
.shp-summary-group-price,
.shp-summary-package {
color: $color-gray4;
}
.shp-summary-group-price {
padding-right: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
.vtex-omnishipping-1-x-leanShippingText {
border-right: 1px solid $color-gray2;
}
.vtex-omnishipping-1-x-leanShippingTextLabel {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 400;
letter-spacing: 0.05px;
}
.shp-lean {
.shp-lean-option {
&::before {
position: relative;
content: "";
border: 1px solid #828282;
border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
.shp-lean-option-active {
&::after {
content: "";
width: 12px;
display: block;
position: absolute;
left: 37.1%;
border-radius: 3px;
height: 12px;
background-color: $color-blue-100;
}
}
.vtex-omnishipping-1-x-svg {
display: none;
opacity: 0;
&::before {
border: 1px solid $color-gray8;
width: 16px;
height: 16px;
}
}
}
.vtex-omnishipping-1-x-addressSummary {
span {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
}
}
.vtex-omnishipping-1-x-address {
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
letter-spacing: 0.05em;
font-weight: 700;
}
.input-large {
border: 1px solid $color-gray2;
border-radius: 8px;
max-width: 294px;
width: 100%;
height: 33px;
padding: 0;
}
.input-xlarge {
max-width: 294px;
width: 100%;
height: 33px;
margin-bottom: 16px;
}
}
.btn-ask-for-geolocation-cta {
color: $color-white;
background: $color-blue-100;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
.vtex-omnishipping-1-x-warning {
border-color: $color-gray2;
.onda-v1 {
font-family: $font-family;
color: $color-black1;
font-size: 12px;
line-height: 16px;
}
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: $color-white;
border: 1px solid $color-gray5;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}
.vtex-omnishipping-1-x-deliveryOptionActive {
font-family: $font-family;
color: $color-black;
text-transform: uppercase;
font-size: 14px;
line-height: 19px;
border-radius: 100px;
}
.vtex-omnishipping-1-x-deliveryOptionInactive {
font-family: $font-family;
color: $color-gray8;
text-transform: uppercase;
font-size: 14px;
line-height: 19px;
border-radius: 100px;
// text-shadow: 1.3px 1px lighten($color-black, 50);
}
// .vtex-omnishipping-1-x-addressFormPart1 {
// display: ;
// }
.ship-number {
.input-mini {
max-width: unset;
width: 90.91%;
height: 33px;
margin-bottom: 15px;
}
}
.ship-complement {
.input-large {
max-width: unset;
width: 90.91%;
height: 33px;
padding: 0 12px;
margin-bottom: 15px;
}
}
.ship-receiverName {
.input-xlarge {
max-width: unset;
width: 90.91%;
height: 33px;
margin-bottom: 15px;
}
}
}
}
}
.hproduct {
.badge {
display: none;
}
img {
transform: rotateY(180deg);
max-width: 60px;
width: 60px;
height: 60px;
object-fit: cover;
}
span {
font-family: $font-family-secundary;
color: $color-black1;
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-gray2;
border-radius: 8px;
}
input {
width: 96.42%;
&::placeholder {
display: none;
}
}
}
} }

View File

@ -5,7 +5,7 @@
} }
.cart-template { .cart-template {
font-family: $font-family; font-family: $font-family-secundary;
@include mq(md, max) { @include mq(md, max) {
padding: 0 0; padding: 0 0;
} }
@ -13,10 +13,11 @@
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 29px 16px 16px;
margin: 0 0 48px 0;
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -25,12 +26,16 @@
border-radius: 0; border-radius: 0;
} }
} }
.cart-fixed.affix { .cart-fixed.affix {
position: relative !important; position: relative !important;
} }
.cart-fixed { .cart-fixed {
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
height: 397px !important;
h2 { h2 {
background: $color-white; background: $color-white;
border: none; border: none;
@ -61,9 +66,18 @@
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
} }
.shipping-date, .shipping-date {
display: none;
}
.price { .price {
color: #7d7d7d; font-family: "Open Sans";
font-style: normal;
font-weight: 400;
font-size: 12px;
line-height: 16px;
text-align: right;
color: #292929;
} }
} }
} }
@ -74,8 +88,12 @@
} }
#go-to-cart-button a { #go-to-cart-button a {
color: #303030; font-family: $font-family;
color: $color-black1;
font-size: 12px;
line-height: 16px;
text-decoration: underline; text-decoration: underline;
// padding-right: 17px;
} }
.summary-totalizers { .summary-totalizers {
@ -91,6 +109,8 @@
color: $color-white; color: $color-white;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
margin-top: 20%;
&:hover { &:hover {
background: lighten($color-black, 5); background: lighten($color-black, 5);
} }
@ -111,12 +131,50 @@
} }
th { th {
font-family: $font-family-secundary;
color: $color-black; color: $color-black;
padding: 0 0 16px; padding: 0 0 16px;
font-style: normal; font-weight: 400;
font-weight: bold;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: unset;
vertical-align: unset;
&.product {
width: 40.64%;
}
&.shipping-date {
font-size: 0;
width: 15.05%;
&::after {
content: "Frete";
font-family: $font-family-secundary;
color: $color-black;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
}
&.product-price {
font-size: 0;
width: 15.15%;
&::after {
content: "Unidade";
font-family: $font-family-secundary;
color: $color-black;
font-weight: 400;
font-size: 14px;
line-height: 16px;
}
}
&.quantity {
width: 18.53%;
}
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
@ -137,8 +195,10 @@
img { img {
height: 60px; height: 60px;
max-width: 100%; max-width: 60px;
width: auto; width: 100%;
transform: rotateY(180deg);
object-fit: cover;
@include mq(sm, max) { @include mq(sm, max) {
height: 72px; height: 72px;
@ -148,22 +208,26 @@
} }
.product-name { .product-name {
padding-right: 0; font-family: $font-family-secundary;
color: $color-black1;
font-size: 12px;
line-height: 14px;
white-space: unset;
width: 100%;
max-width: 175px;
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue; color: $color-black1;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; text-decoration: none;
padding-left: 16px;
&:hover { &:hover {
color: darken($color-blue, 10);
text-decoration: none; text-decoration: none;
} }
@ -179,9 +243,12 @@
} }
td.shipping-date { td.shipping-date {
width: 147px;
color: $color-gray2; color: $color-gray2;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-align: unset;
padding: 0;
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
@ -189,7 +256,11 @@
} }
.product-price { .product-price {
text-align: unset;
min-width: 100px; min-width: 100px;
width: 148px;
padding: 0;
@include mq(md, max) { @include mq(md, max) {
min-width: 78px; min-width: 78px;
} }
@ -213,80 +284,9 @@
text-transform: lowercase; text-transform: lowercase;
} }
} }
}
td.quantity { .price-details {
align-items: center; display: none;
border: 1px solid $color-gray3;
border-radius: 0;
box-sizing: border-box;
display: flex;
justify-content: center;
margin: 6px auto 0;
max-height: 38px;
max-width: 118px;
padding: 0;
width: max-content !important;
@media (max-width: 490px) {
margin-left: 84px !important;
}
input {
background-color: $color-white;
border: 1px solid $color-gray3;
border-radius: 0;
border-width: 0 1px;
display: block;
max-height: 38px;
margin: 0 !important;
padding: 8px 0;
width: 38px;
color: $color-gray2;
box-shadow: none;
@include mq(lg, max) {
width: 24px !important;
}
}
.icon-plus-sign,
.icon-minus-sign {
&::before {
color: $color-black;
display: block;
font-weight: 500;
padding: 1px 12px;
}
}
.icon-minus-sign {
&:before {
content: "-";
font-size: 16px;
}
}
.icon-plus-sign {
&:before {
content: "+";
font-size: 14px;
}
}
.item-quantity-change {
@media (max-width: 979px) and (min-width: 768px) {
position: inherit;
bottom: inherit;
left: inherit;
height: inherit;
width: inherit;
top: inherit;
}
@media (max-width: 490px) {
padding: 0;
}
} }
} }
@ -305,9 +305,20 @@
} }
.quantity-price { .quantity-price {
text-align: unset;
padding: 0;
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
.total-selling-price {
text-align: unset;
font-size: 14px;
line-height: 19px;
font-weight: 700;
font-family: $font-family;
}
} }
.item-remove { .item-remove {
@ -338,6 +349,17 @@
} }
} }
.table td {
padding: 0;
}
td.quantity {
padding-right: 90px;
.item-quantity-change {
color: $color-blue-100;
}
}
.summary { .summary {
.cart-more-options { .cart-more-options {
margin: 0; margin: 0;
@ -351,12 +373,11 @@
} }
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 0 0 12px;
font-style: normal;
font-weight: normal;
font-size: 24px; font-size: 24px;
line-height: 28px; line-height: 32px;
color: $color-gray2; color: $color-black1;
font-family: $font-family;
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -364,23 +385,26 @@
} }
.srp-description { .srp-description {
font-family: $font-family;
color: $color-gray2; color: $color-gray2;
font-size: 12px; font-size: 14px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 10px;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; background-color: $color-gray9;
font-family: $font-family;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-gray2; color: $color-black1;
font-size: 16px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
font-size: 14px;
line-height: 19px; line-height: 19px;
font-weight: 500; font-weight: 500;
outline: none; outline: none;
padding: 12px 40px; padding: 12px 41px;
margin: 0;
transition: all 0.2s linear; transition: all 0.2s linear;
&:hover { &:hover {
@ -405,51 +429,42 @@
} }
.srp-pickup-my-location__button { .srp-pickup-my-location__button {
background-color: $color-black; background-color: $color-blue-100;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
outline: none; outline: none;
width: 100%; width: 100%;
font-style: normal; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
} }
.srp-toggle { .srp-toggle {
margin: 0 0 34px; margin: 0 0 20px;
&__wrapper { &__wrapper {
background-color: $color-white; background-color: $color-white;
border-radius: 100px; border-radius: 100px;
width: 100%; width: 100%;
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
text-transform: uppercase; text-transform: uppercase;
} }
&__current { &__current {
border: 1px solid $color-blue; border: 1px solid $color-black1;
border-radius: 100px; border-radius: 100px;
box-shadow: 2px 2px 4px rgba($color-black1, 0.2);
} }
.blue { .blue {
color: $color-blue; color: $color-black1;
} }
label { label {
@ -462,6 +477,10 @@
} }
.srp-postal-code { .srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode { .ship-postalCode {
label { label {
font-family: $font-family; font-family: $font-family;
@ -474,58 +493,65 @@
} }
input { input {
border: 1px solid $color-gray3; border: 1px solid $color-gray8;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray3; color: $color-black1;
font-size: 12px; font-size: 14px;
line-height: 16px;
height: 36px; height: 36px;
padding: 12px 8px; padding: 12px 8px;
width: 172px; width: 172px;
} }
& ~ button { & ~ button {
background-color: $color-black; background-color: $color-blue-100;
position: absolute;
right: calc(-138px - 9px);
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-white;
font-size: 12px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
outline: none; outline: none;
position: absolute;
right: -150px;
top: 36px; top: 36px;
transition: all 0.2s linear; 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; text-transform: uppercase;
&:hover {
background-color: lighten($color-black, 5);
}
&:active {
background-color: darken($color-black, 5);
}
} }
small a { small a {
font-family: $font-family; font-family: $font-family;
font-style: normal; font-size: 0px;
font-weight: normal;
font-size: 10px;
line-height: 12px; line-height: 12px;
color: $color-blue; color: $color-black1;
margin-top: 7px;
&::after {
content: "Não sei meu código postal";
font-family: $font-family-secundary;
color: $color-black1;
font-size: 10px;
line-height: 12px;
text-decoration: underline;
}
} }
span.help.error { span.help.error {
font-family: $font-family;
color: red; color: red;
font-size: 12px; font-size: 12px;
line-height: 16px;
font-weight: 700;
position: absolute; position: absolute;
left: 0; left: 0;
width: 100%; width: 100%;
top: 17px; top: 15px;
} }
} }
} }
@ -591,14 +617,23 @@
} }
&-totalizers { &-totalizers {
margin: 0;
padding: 0; padding: 0;
width: 346px; max-width: 354px;
width: 100%;
.coupon-data { .coupon-data {
display: block !important;
margin: 0 0 10px;
#cart-link-coupon-add { #cart-link-coupon-add {
font-family: $font-family-secundary;
color: $color-black1;
font-size: 12px;
line-height: 14px;
text-decoration: none; text-decoration: none;
&:hover { &:hover {
text-decoration: underline; text-decoration: none;
cursor: pointer; cursor: pointer;
} }
} }
@ -608,7 +643,7 @@
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $color-black1;
text-decoration: none; text-decoration: none;
} }
} }
@ -630,18 +665,16 @@
} }
.coupon-label label { .coupon-label label {
margin-bottom: 12px; margin: 0;
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-gray2; color: $color-gray2;
cursor: none; text-align: start;
} }
.coupon-fields { .coupon-fields {
margin-bottom: 32px; margin-bottom: 20px;
@include mq(sm, max) { @include mq(sm, max) {
span { span {
@ -657,14 +690,20 @@
} }
input { input {
border: 2px solid $color-gray3; border: 1px solid $color-gray5;
border-radius: 5px; border-radius: 5px;
box-shadow: none; box-shadow: none;
color: $color-gray4; color: $color-gray4;
font-size: 12px; font-size: 12px;
height: 34px; height: 36px;
padding: 0 12px; padding: 0;
max-width: 160px; max-width: 204px;
width: 100%;
float: left;
&::placeholder {
padding: 0 16px;
}
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
@ -673,17 +712,19 @@
} }
button { button {
background: $color-black; background: $color-blue-100;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-white; color: $color-black1;
font-size: 12px; font-size: 14px;
line-height: 19px;
height: 36px; height: 36px;
letter-spacing: 1px; letter-spacing: 1px;
margin-left: 6px; margin-left: 14px;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
width: 94px; max-width: 133px;
width: 100%;
text-transform: uppercase; text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {
@ -703,7 +744,7 @@
.accordion-group { .accordion-group {
tr { tr {
border-color: #e5e5e5; border-color: $color-gray5;
td { td {
&.empty { &.empty {
@ -712,12 +753,11 @@
&.info, &.info,
&.monetary { &.monetary {
font-style: normal; font-family: $font-family;
font-weight: normal; color: $color-gray2;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 19px;
color: $color-black; margin: 25px 0;
padding: 12px 0;
} }
&.info { &.info {
@ -731,12 +771,28 @@
} }
tfoot { tfoot {
td.info, font-family: $font-family;
td.monetary { font-size: 18px;
font-style: normal; line-height: 25px;
font-weight: normal; font-weight: 700;
color: $color-black;
td.info {
font-family: $font-family;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 25px;
font-weight: 700;
color: $color-black;
padding: 0;
margin-top: 12px;
margin-bottom: 0;
}
td.monetary {
font-family: $font-family;
font-size: 18px;
line-height: 25px;
font-weight: 700;
color: $color-black; color: $color-black;
} }
} }
@ -747,7 +803,8 @@
.cart-links-bottom { .cart-links-bottom {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 343px; max-width: 354px;
width: 100%;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
@ -764,25 +821,29 @@
.link-choose-more-products-wrapper { .link-choose-more-products-wrapper {
display: block; display: block;
text-align: center; text-align: center;
margin-bottom: 16px; margin-bottom: 15px;
text-decoration: none;
@include mq(md, max) { @include mq(md, max) {
margin-bottom: 0px; margin-bottom: 0px;
} }
a { a {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $color-black1;
&:hover {
text-decoration: none;
cursor: auto;
}
} }
} }
.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;
@ -790,17 +851,13 @@
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
padding: 12px 19px; padding: 12px 19px;
&:hover {
background-color: darken($color-green, 5);
}
&:after { &:after {
content: "finalizar compra"; content: "finalizar compra";
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 13px; font-size: 14px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: $color-black1;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px; line-height: 19px;

View File

@ -1,11 +1,167 @@
body .container-main.container-order-form .orderform-template.active { body .container-main.container-order-form .orderform-template.active {
.mini-cart { .mini-cart {
width: 32.3242%; border: 1px solid $color-gray5;
border-radius: 8px;
// padding: 25px 17px;
height: 397px;
width: 32.37%;
margin-left: unset; margin-left: unset;
margin-right: 0; margin-right: 0;
float: right; float: right;
.payment-confirmation-wrap {
#payment-data-submit {
font-family: $font-family;
color: $color-white;
font-size: 14px;
line-height: 19px;
font-weight: 700;
background: $color-green;
border-radius: 8px;
}
}
}
.span4 {
padding: 24px 17px 22px;
}
h2 {
font-family: $font-family-secundary;
color: $color-black;
font-size: 16px;
line-height: 19px;
text-align: initial;
padding: 0;
margin-bottom: 34px;
}
.ask-for-geolocation-title {
padding: 0;
margin: 0;
}
.cart {
border: 0;
padding: 0;
margin: 0;
li {
display: flex;
align-items: center;
.description {
margin: 0;
}
.price {
font-family: $font-family;
color: $color-black;
font-weight: 400;
font-size: 12px;
line-height: 16px;
margin: 0;
// padding-right: 17px;
}
}
}
tr {
border-top: 1px solid $color-gray;
} }
.orderform-template-holder { .orderform-template-holder {
width: 66.1132%; width: 66.1132%;
} }
.payment-data {
.active {
width: unset;
padding: 14.5px;
}
}
.link-gift-card {
#show-gift-card-group {
display: none;
}
}
.payment-body {
.accordion-inner {
.box-step {
display: flex;
.form-step {
display: flex;
.payment-group {
margin: 0;
.payment-group-list-btn {
width: unset;
}
.pg-deposito,
.pg-transferencia-bancaria,
.pg-money,
.pg-promisory---monica,
.pg-desconto-em-folha,
#payment-group-creditControlPaymentGroup,
#payment-group-creditDirectSalePaymentGroup,
#payment-group-promissoryPaymentGroup,
#payment-group-PSEPaymentGroup,
#payment-group-SPEIPaymentGroup,
[data-name="Bancolombia Transfer"] {
display: none;
}
.payment-group-list-btn {
span {
background-image: none !important;
font-family: $font-family;
color: $color-black1;
font-size: 14px;
line-height: 24px;
text-align: center;
padding: 13px;
}
a {
background: $color-gray3;
border: 1px solid $color-white;
border-radius: 6px;
margin-bottom: 12px;
padding: 0;
width: 209px;
text-decoration: none;
margin-left: 0;
}
.active {
border: 1px solid $color-red;
background: rgba(220, 221, 227, 0.3);
margin-left: 0px;
span {
color: $color-red;
}
}
}
}
.steps-view {
// width: 363px;
width: 100%;
margin-left: 40px;
}
}
}
}
}
}
.PaymentCardHolderDocument {
display: none;
}
.SecurityEnvironmentIcon {
margin-bottom: 5px;
} }

View File

@ -1,38 +1,49 @@
.empty-cart { .empty-cart {
font-family: $font-family; font-family: $font-family;
&-content { &-content {
color: $color-black; color: $color-black1;
text-align: center; text-align: center;
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
} }
} }
&-title { &-title {
font-size: 20px; font-size: 24px;
} line-height: 32px;
font-weight: 700;
text-transform: uppercase;
margin: 0;
margin-bottom: 32px;
margin-top: 170px;
padding: 0;
}
&-links { &-message {
.link-choose-products { display: none;
background: $color-black; }
border: none;
border-radius: 5px;
transition: ease-in 0.22s all;
outline: none;
font-family: $font-family;
font-style: normal;
font-weight: 500;
font-size: 14px;
line-height: 16px;
text-align: center;
letter-spacing: 0.05em;
color: $color-white;
text-transform: uppercase;
&:hover { &-links {
background: lighten($color-black, 5); .link-choose-products {
} background: $color-white;
} border: 1px solid $color-black1;
} border-radius: 0;
transition: ease-in-out 0.2s all;
font-size: 0px;
padding: 15px 65px 17px;
margin: 0;
line-height: 0;
&::after {
content: "Continuar comprando";
font-size: 14px;
line-height: 16px;
text-align: center;
font-family: $font-family-secundary;
color: $color-black1;
text-transform: uppercase;
}
}
}
} }

View File

@ -14,8 +14,7 @@ footer .footerCheckout__wrapper {
} }
footer .footerCheckout__prateleira, footer .footerCheckout__prateleira,
header { header {
width: 79.53125%; width: 100%;
margin: 0 auto;
} }
body { body {
@ -56,10 +55,6 @@ body {
.btn-success { .btn-success {
background: $color-black; background: $color-black;
text-shadow: none; text-shadow: none;
&:hover {
background: lighten($color-black, 15%);
}
} }
.emailInfo h3 { .emailInfo h3 {
@ -68,13 +63,13 @@ body {
#cart-title, #cart-title,
#orderform-title { #orderform-title {
color: $color-gray2; color: $color-black;
font-family: $font-family; font-family: $font-family;
font-weight: 500; font-weight: 700;
font-size: 36px; font-size: 24px;
line-height: 42px; line-height: 33px;
margin: 40px 0 30px; margin: 16px 0;
letter-spacing: 0.1em; letter-spacing: 0.05em;
text-transform: uppercase; text-transform: uppercase;
@include mq(md, max) { @include mq(md, max) {

View File

@ -1,5 +1,7 @@
/* _footer.scss */ /* _footer.scss */
.footerCheckout { .footerCheckout {
bottom: 0;
text-align: center;
border-top: none; border-top: none;
color: $color-gray2; color: $color-gray2;

View File

@ -2,37 +2,47 @@
@import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Tenor+Sans&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap"); @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif; $font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif; $font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */ /* Colors */
$color-black: #292929; $color-black: #292929;
$color-black1: #000000;
$color-white: #fff; $color-white: #fff;
$color-gray: #6c6c6c; $color-gray: #6c6c6c;
$color-gray1: #c4c4c4;
$color-gray2: #7d7d7d; $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0; $color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5; $color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #e0e0e0;
$color-gray8: #828282;
$color-gray9: #ededed;
$color-blue-100: #00c8ff;
$color-blue: #4267b2; $color-blue: #4267b2;
$color-green: #4caf50; $color-green: #4caf50;
$color-red: #ff0000;
/* Grid breakpoints */ /* Grid breakpoints */
$grid-breakpoints: ( $grid-breakpoints: (
xs: 0, xs: 0,
cstm: 400, cstm: 400,
sm: 576px, sm: 576px,
md: 768px, md: 768px,
lg: 992px, lg: 992px,
xl: 1200px xl: 1025px,
2xl: 2500px,
) !default; ) !default;
$z-index: ( $z-index: (
level1: 5, level1: 5,
level2: 10, level2: 10,
level3: 15, level3: 15,
level4: 20, level4: 20,
level5: 25 level5: 25,
) !default; ) !default;