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) {
event.target.classList.toggle("closed");
event.target.nextElementSibling.classList.toggle(
"dropdown__content--closed"
);
event.target.nextElementSibling.classList.toggle("dropdown__content--closed");
}
init() {
this.configThumb();
this.resetTitle();
waitForEl(".product-image img", this.resizeImages.bind(this));
$(window).on("orderFormUpdated.vtex", this.resizeImages.bind(this));
}
@ -56,14 +55,27 @@ export default class CheckoutUI {
resizeImages() {
$(".product-image img").each((i, el) => {
const $el = $(el);
$el.attr(
"src",
alterarTamanhoImagemSrcVtex(
$el.attr("src"),
this.width,
this.height
)
);
$el.attr("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 {
.client-pre-email {
border-color: $color-gray4;
font-family: $font-family;
padding-top: 8px;
.client-pre-email {
border-color: $color-black1;
font-family: $font-family;
padding-top: 8px;
.link-cart {
a {
color: $color-black;
font-size: 14px;
.link-cart {
a {
color: $color-black1;
font-size: 14px;
line-height: 16px;
text-transform: uppercase;
&:hover {
color: lighen($color-black, 10);
}
}
}
&:hover {
cursor: default;
color: lighen($color-black, 10);
}
}
}
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
.pre-email {
flex-direction: column;
display: flex;
align-items: center;
justify-content: center;
h3 {
margin-bottom: 16px;
h3 {
margin: 0 0 20px 0;
span {
color: #303030;
font-size: 24px;
}
span {
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black1;
}
small {
color: $color-gray4;
}
}
}
small {
font-family: $font-family-secundary;
font-size: 20px;
line-height: 23px;
text-transform: uppercase;
color: $color-black1;
padding: 0;
}
}
}
.client-email {
margin: 0 0 16px;
.client-email {
display: flex;
flex-direction: column;
margin: 0 0 24px;
max-width: 562px;
width: 100%;
input {
box-shadow: none;
color: $color-black;
font-family: $font-family;
padding: 0 16px;
border: 2px solid $color-gray3;
box-sizing: border-box;
border-radius: 5px;
input {
box-shadow: none;
color: $color-black1;
font-family: $font-family;
font-size: 12px;
line-height: 16px;
padding: 0 14px;
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) {
width: auto;
}
}
@media (max-width: 490px) {
width: auto;
}
button {
background-color: $color-black;
border-radius: 5px;
border: none;
font-family: $font-family;
height: 54px;
right: 0;
top: 0;
&::placeholder {
color: $color-black1;
}
}
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
button {
background-color: $color-blue-100;
border-radius: 0 8px 8px 0;
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 {
color: red;
}
}
@media (max-width: 490px) {
height: 48px;
margin: 0;
position: absolute;
}
}
.emailInfo {
padding: 16px;
background-color: $color-white;
border: 1px solid $color-gray4;
border-radius: 0;
span.help.error {
font-family: $font-family;
font-size: 12px;
line-height: 16px;
font-weight: 700;
color: red;
margin-top: 3px;
}
}
h3 {
color: #303030;
margin: 0 0 8px 0;
}
.emailInfo {
padding: 16px 16px 27px;
background-color: $color-white;
border: 1px solid $color-black1;
border-radius: 5px;
max-width: 366px;
width: 100%;
ul {
margin: 0;
h3 {
font-family: $font-family;
color: $color-black1;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0 0 10px 0;
}
li {
span {
color: $color-black;
}
ul {
margin: 0;
i::before {
color: $color-black;
font-size: 1rem;
opacity: 1;
}
}
}
li {
span {
font-family: $font-family;
font-size: 12px;
line-height: 16px;
color: $color-black1;
font-weight: 700;
}
i::before {
color: $color-black;
font-size: 6rem;
opacity: 0.5;
}
}
}
i::before {
color: $color-blue-100;
font-size: 1rem;
opacity: 1;
}
}
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 0;
border: 1px solid $color-gray4;
font-family: $font-family;
padding: 16px;
i::before {
color: $color-black;
font-size: 6rem;
opacity: 0.5;
}
}
}
.accordion-heading {
span {
color: #303030;
margin-bottom: 8px;
padding: 0;
.client-profile-data {
.accordion-heading {
.accordion-toggle {
span {
font-size: 0 !important;
i::before {
fill: #303030;
}
}
&::after {
font-family: $font-family-secundary;
color: $color-black;
content: "Identificação";
font-size: 16px;
line-height: 19px;
float: left;
}
}
}
}
}
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;
}
}
.shipping-data,
.payment-data,
.client-profile-data {
.accordion-group {
border-radius: 8px;
border: 1px solid $color-gray5;
font-family: $font-family;
padding: 16px;
width: 90.06%;
.accordion-inner {
padding: 0;
.accordion-heading {
.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 {
color: $color-black;
}
i::before {
content: "";
}
p {
label {
color: $color-black;
font-weight: 500;
}
i::after {
content: "";
display: block;
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,
input {
border-radius: 0;
border: 1px solid $color-gray4;
box-shadow: none;
}
a {
display: flex;
opacity: 0;
align-items: center;
background-color: #303030;
border-radius: 8px;
border: none;
color: $color-white;
justify-content: center;
padding: 6px 5px 6px 8px;
}
}
.help.error {
color: red;
}
}
.accordion-inner {
padding: 0;
.box-client-info-pj {
.link a#is-corporate-client,
.link a#not-corporate-client {
color: $color-black;
font-weight: 500;
text-decoration: underline;
}
}
.box-step {
.shipping-summary-info {
font-family: $font-family;
font-size: 14px;
line-height: 19px;
color: $color-gray2;
}
}
.state-inscription-box span {
font-weight: 500;
}
/* General configurations */
button.submit {
border: none;
border-radius: 5px;
background: $color-black;
margin-top: 8px;
outline: none;
transition: all 0.2s linear;
.client-notice {
display: none;
}
&:hover {
background: lighten($color-black, 5);
}
.ship-country {
display: none;
}
&:active {
background: darken($color-black, 5);
}
}
.ship-postalCode {
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 {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
input {
border: 1px solid $color-gray8;
border-radius: 8px;
width: 100%;
max-width: 90%;
margin-bottom: 10px;
}
.vtex-omnishipping-1-x-deliveryGroup {
p {
color: #303030;
font-size: 14px;
font-weight: 500;
}
small {
font-family: $font-family;
color: $color-black;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
margin: 0;
}
}
.shp-lean {
border: 1px solid $color-gray4;
border-radius: 0;
p {
font-size: 14px;
line-height: 19px;
font-family: $font-family;
color: $color-gray2;
margin: 0;
padding: 0;
label {
background-color: $color-white;
box-shadow: none;
color: #303030;
padding: 8px 12px;
label {
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
line-height: 19px;
font-weight: 400;
}
svg path {
fill: #d8c8ac;
}
}
}
}
.btn-go-to-payment {
margin-top: 0;
}
}
.delivery-address-title {
color: #303030;
font-size: 14px;
font-weight: 500;
}
select,
input {
font-family: $font-family;
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 {
border-color: $color-gray4;
}
p {
[type="checkbox"] {
display: none;
.address-summary {
background: none;
border-color: $color-gray4;
border-radius: 0;
color: #303030;
padding: 12px;
&:checked + .newsletter-text::after {
content: "";
width: 12px;
display: block;
position: absolute;
top: 3px;
border-radius: 3px;
left: 3px;
height: 12px;
background-color: $color-blue-100;
}
}
}
@include mq(md, max) {
background-position: 8px 9px;
}
label {
&.checkbox {
position: relative;
padding-left: 26px;
a {
color: #303030;
font-weight: 500;
text-decoration: underline;
}
}
.newsletter-text {
&::before {
position: absolute;
content: "";
border: 1px solid #828282;
border-radius: 3px;
width: 16px;
height: 16px;
top: 0;
left: 0;
}
}
}
}
.shp-summary-group-price,
.shp-summary-package {
color: $color-gray4;
}
.input-xlarge {
width: 91.24%;
height: 40px;
margin-bottom: 16px;
}
.shp-summary-group-price {
padding-right: 16px;
}
.input-small {
max-width: 115px;
width: 100%;
height: 40px;
margin-bottom: 16px;
}
.shp-summary-package {
padding-left: 16px;
}
#client-first-name,
#client-document {
margin-right: 15px;
}
.vtex-omnishipping-1-x-summaryChange {
border-color: #303030;
color: #303030;
}
[type="checkbox"] {
width: 18px;
height: 18px;
border: 1px solid $color-gray;
padding-right: 8px;
margin-top: 0px;
}
.vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: #d8c8ac;
border: 1px solid #d8c8ac;
}
.help.error {
display: none !important;
font-family: $font-family;
color: red;
font-size: 12px;
line-height: 16px;
font-weight: 700;
margin: 0;
padding: 0;
}
}
.vtex-omnishipping-1-x-deliveryOptionActive {
text-shadow: 1.3px 1px lighten($color-black, 50);
}
}
}
}
.newsletter {
.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 {
font-family: $font-family;
font-family: $font-family-secundary;
@include mq(md, max) {
padding: 0 0;
}
@ -13,10 +13,11 @@
display: none;
}
.cart {
border: 3px solid $color-gray3;
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) {
margin: 0px 0 25px 0;
@ -25,12 +26,16 @@
border-radius: 0;
}
}
.cart-fixed.affix {
position: relative !important;
}
.cart-fixed {
font-family: $font-family;
width: 100%;
height: 397px !important;
h2 {
background: $color-white;
border: none;
@ -61,9 +66,18 @@
border-top: 1px solid #e5e5e5;
}
.shipping-date,
.shipping-date {
display: none;
}
.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 {
color: #303030;
font-family: $font-family;
color: $color-black1;
font-size: 12px;
line-height: 16px;
text-decoration: underline;
// padding-right: 17px;
}
.summary-totalizers {
@ -91,6 +109,8 @@
color: $color-white;
outline: none;
transition: all 0.2s linear;
margin-top: 20%;
&:hover {
background: lighten($color-black, 5);
}
@ -111,12 +131,50 @@
}
th {
font-family: $font-family-secundary;
color: $color-black;
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;
&.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) {
&.quantity-price,
@ -137,8 +195,10 @@
img {
height: 60px;
max-width: 100%;
width: auto;
max-width: 60px;
width: 100%;
transform: rotateY(180deg);
object-fit: cover;
@include mq(sm, max) {
height: 72px;
@ -148,22 +208,26 @@
}
.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) {
width: 250px;
}
a {
color: $color-blue;
font-style: normal;
font-weight: normal;
color: $color-black1;
font-size: 12px;
line-height: 14px;
transition: ease-in 0.22s all;
text-decoration: none;
padding-left: 16px;
&:hover {
color: darken($color-blue, 10);
text-decoration: none;
}
@ -179,9 +243,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;
@ -189,7 +256,11 @@
}
.product-price {
text-align: unset;
min-width: 100px;
width: 148px;
padding: 0;
@include mq(md, max) {
min-width: 78px;
}
@ -213,80 +284,9 @@
text-transform: lowercase;
}
}
}
td.quantity {
align-items: center;
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;
}
.price-details {
display: none;
}
}
@ -305,9 +305,20 @@
}
.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;
font-family: $font-family;
}
}
.item-remove {
@ -338,6 +349,17 @@
}
}
.table td {
padding: 0;
}
td.quantity {
padding-right: 90px;
.item-quantity-change {
color: $color-blue-100;
}
}
.summary {
.cart-more-options {
margin: 0;
@ -351,12 +373,11 @@
}
.srp-main-title {
margin: 32px 0 12px;
font-style: normal;
font-weight: normal;
margin: 0 0 12px;
font-size: 24px;
line-height: 28px;
color: $color-gray2;
line-height: 32px;
color: $color-black1;
font-family: $font-family;
@include mq(md, max) {
margin-top: 0;
@ -364,23 +385,26 @@
}
.srp-description {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
font-size: 14px;
line-height: 18px;
margin: 0 0 12px;
margin: 0 0 10px;
}
button.shp-open-options {
background-color: $color-gray5;
background-color: $color-gray9;
font-family: $font-family;
border: none;
border-radius: 5px;
color: $color-gray2;
font-size: 16px;
border-radius: 8px;
color: $color-black1;
letter-spacing: 0.05em;
font-size: 14px;
line-height: 19px;
font-weight: 500;
outline: none;
padding: 12px 40px;
padding: 12px 41px;
margin: 0;
transition: all 0.2s linear;
&:hover {
@ -405,51 +429,42 @@
}
.srp-pickup-my-location__button {
background-color: $color-black;
background-color: $color-blue-100;
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white;
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, 5);
}
&:active {
background-color: darken($color-black, 5);
}
}
}
.srp-toggle {
margin: 0 0 34px;
margin: 0 0 20px;
&__wrapper {
background-color: $color-white;
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-black1;
border-radius: 100px;
box-shadow: 2px 2px 4px rgba($color-black1, 0.2);
}
.blue {
color: $color-blue;
color: $color-black1;
}
label {
@ -462,6 +477,10 @@
}
.srp-postal-code {
.ship-country {
display: none;
}
.ship-postalCode {
label {
font-family: $font-family;
@ -474,58 +493,65 @@
}
input {
border: 1px solid $color-gray3;
border: 1px solid $color-gray8;
border-radius: 5px;
box-shadow: none;
color: $color-gray3;
font-size: 12px;
color: $color-black1;
font-size: 14px;
line-height: 16px;
height: 36px;
padding: 12px 8px;
width: 172px;
}
& ~ button {
background-color: $color-black;
background-color: $color-blue-100;
position: absolute;
right: calc(-138px - 9px);
border: none;
border-radius: 5px;
border-radius: 8px;
color: $color-white;
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, 5);
}
&:active {
background-color: darken($color-black, 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-black1;
&::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 {
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;
}
}
}
@ -591,14 +617,23 @@
}
&-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-black1;
font-size: 12px;
line-height: 14px;
text-decoration: none;
&:hover {
text-decoration: underline;
text-decoration: none;
cursor: pointer;
}
}
@ -608,7 +643,7 @@
font-weight: normal;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $color-black1;
text-decoration: none;
}
}
@ -630,18 +665,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 {
@ -657,14 +690,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%;
@ -673,17 +712,19 @@
}
button {
background: $color-black;
background: $color-blue-100;
border: none;
border-radius: 5px;
color: $color-white;
font-size: 12px;
border-radius: 8px;
color: $color-black1;
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) {
@ -703,7 +744,7 @@
.accordion-group {
tr {
border-color: #e5e5e5;
border-color: $color-gray5;
td {
&.empty {
@ -712,12 +753,11 @@
&.info,
&.monetary {
font-style: normal;
font-weight: normal;
font-family: $font-family;
color: $color-gray2;
font-size: 14px;
line-height: 16px;
color: $color-black;
padding: 12px 0;
line-height: 19px;
margin: 25px 0;
}
&.info {
@ -731,12 +771,28 @@
}
tfoot {
td.info,
td.monetary {
font-style: normal;
font-weight: normal;
font-family: $font-family;
font-size: 18px;
line-height: 25px;
font-weight: 700;
color: $color-black;
td.info {
font-family: $font-family;
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;
}
}
@ -747,7 +803,8 @@
.cart-links-bottom {
display: flex;
flex-direction: column;
width: 343px;
max-width: 354px;
width: 100%;
@include mq(md, max) {
padding: 0 16px;
@ -764,25 +821,29 @@
.link-choose-more-products-wrapper {
display: block;
text-align: center;
margin-bottom: 16px;
margin-bottom: 15px;
text-decoration: none;
@include mq(md, max) {
margin-bottom: 0px;
}
a {
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-family: $font-family-secundary;
font-size: 12px;
line-height: 14px;
color: $color-blue;
color: $color-black1;
&:hover {
text-decoration: none;
cursor: auto;
}
}
}
.btn-place-order-wrapper {
a {
background: $color-green;
background: $color-blue-100;
border: none;
border-radius: 5px;
display: block;
@ -790,17 +851,13 @@
transition: ease-in 0.22s all;
padding: 12px 19px;
&:hover {
background-color: darken($color-green, 5);
}
&:after {
content: "finalizar compra";
font-family: $font-family;
font-weight: 500;
font-size: 13px;
font-weight: 700;
font-size: 14px;
letter-spacing: 0.05em;
color: $color-white;
color: $color-black1;
text-transform: uppercase;
vertical-align: middle;
line-height: 19px;

View File

@ -1,11 +1,167 @@
body .container-main.container-order-form .orderform-template.active {
.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-right: 0;
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 {
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 {
font-family: $font-family;
&-content {
color: $color-black;
text-align: center;
font-family: $font-family;
&-content {
color: $color-black1;
text-align: center;
@include mq(md, max) {
padding: 0 16px;
}
}
@include mq(md, max) {
padding: 0 16px;
}
}
&-title {
font-size: 20px;
}
&-title {
font-size: 24px;
line-height: 32px;
font-weight: 700;
text-transform: uppercase;
margin: 0;
margin-bottom: 32px;
margin-top: 170px;
padding: 0;
}
&-links {
.link-choose-products {
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;
&-message {
display: none;
}
&:hover {
background: lighten($color-black, 5);
}
}
}
&-links {
.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,
header {
width: 79.53125%;
margin: 0 auto;
width: 100%;
}
body {
@ -56,10 +55,6 @@ body {
.btn-success {
background: $color-black;
text-shadow: none;
&:hover {
background: lighten($color-black, 15%);
}
}
.emailInfo h3 {
@ -68,13 +63,13 @@ body {
#cart-title,
#orderform-title {
color: $color-gray2;
color: $color-black;
font-family: $font-family;
font-weight: 500;
font-size: 36px;
line-height: 42px;
margin: 40px 0 30px;
letter-spacing: 0.1em;
font-weight: 700;
font-size: 24px;
line-height: 33px;
margin: 16px 0;
letter-spacing: 0.05em;
text-transform: uppercase;
@include mq(md, max) {

View File

@ -1,5 +1,7 @@
/* _footer.scss */
.footerCheckout {
bottom: 0;
text-align: center;
border-top: none;
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=Open+Sans:wght@300;400;500;600;700;800&display=swap");
$font-family: "Open Sans", sans-serif;
$font-family-secundary:"Tenor Sans", sans-serif;
$font-family-secundary: "Tenor Sans", sans-serif;
/* Colors */
$color-black: #292929;
$color-black1: #000000;
$color-white: #fff;
$color-gray: #6c6c6c;
$color-gray1: #c4c4c4;
$color-gray2: #7d7d7d;
$color-gray3: #f0f0f0;
$color-gray4: #8d8d8d;
$color-gray5: #e5e5e5;
$color-gray6: #989898;
$color-gray7: #e0e0e0;
$color-gray8: #828282;
$color-gray9: #ededed;
$color-blue-100: #00c8ff;
$color-blue: #4267b2;
$color-green: #4caf50;
$color-red: #ff0000;
/* Grid breakpoints */
$grid-breakpoints: (
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1200px
xs: 0,
cstm: 400,
sm: 576px,
md: 768px,
lg: 992px,
xl: 1025px,
2xl: 2500px,
) !default;
$z-index: (
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25
level1: 5,
level2: 10,
level3: 15,
level4: 20,
level5: 25,
) !default;