feat: adiciona responsividade meu carrinho

This commit is contained in:
Vitor Soares 2022-12-19 05:11:45 -03:00
parent d08b6b6f9a
commit 9eda1d37b2
7 changed files with 795 additions and 795 deletions

View File

@ -8,6 +8,7 @@
a { a {
color: $color-black-500; color: $color-black-500;
font-size: 14px; font-size: 14px;
font-weight: 400;
line-height: 16px; line-height: 16px;
text-transform: uppercase; text-transform: uppercase;
@ -30,6 +31,7 @@
span { span {
font-family: $font-family-secundary; font-family: $font-family-secundary;
font-size: 20px; font-size: 20px;
font-weight: 400;
line-height: 23px; line-height: 23px;
text-transform: uppercase; text-transform: uppercase;
color: $color-black-500; color: $color-black-500;
@ -179,12 +181,10 @@
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
font-family: $font-family; font-family: $font-family;
padding: 16px; padding: 16px;
width: 90.06%; // width: 90.06%;
.accordion-heading { .accordion-heading {
.accordion-toggle-active { .accordion-toggle-active {
i::after { i::after {
display: none; display: none;
} }
@ -201,7 +201,6 @@
i::before { i::before {
content: ""; content: "";
} }
i::after { i::after {
@ -233,8 +232,15 @@
.accordion-inner { .accordion-inner {
padding: 0; padding: 0;
.box-step { p {
input {
box-sizing: border-box;
width: 100%;
max-width: 100%;
}
}
.box-step {
.shipping-summary-info { .shipping-summary-info {
font-family: $font-family; font-family: $font-family;
font-size: 14px; font-size: 14px;
@ -302,7 +308,6 @@
padding: 0; padding: 0;
label { label {
// input { // input {
// display: none; // display: none;
// } // }
@ -345,12 +350,12 @@
select, select,
input { input {
font-family: $font-family; font-family: $font-family;
color: $color-gray9; color: $color-black-100;
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
font-weight: 400; font-weight: 400;
border-radius: 5px; border-radius: 5px;
border: 1px solid $color-gray10; border: 1px solid $color-gray8;
box-shadow: none; box-shadow: none;
padding: 0 12px; padding: 0 12px;
} }
@ -394,30 +399,25 @@
} }
.input-xlarge { .input-xlarge {
width: 91.24%;
height: 40px; height: 40px;
margin-bottom: 16px; margin-bottom: 16px;
} }
.input-small { .input-small {
max-width: 115px;
width: 100%;
height: 40px; height: 40px;
margin-bottom: 16px; margin-bottom: 16px;
} }
#client-first-name, p.client-first-name,
#client-document { p.client-document {
width: calc(50% - 15px);
margin-right: 15px; margin-right: 15px;
} }
// [type="checkbox"] { p.client-last-name,
// width: 18px; p.client-phone {
// height: 18px; width: 50%;
// border: 1px solid $color-gray11; }
// padding-right: 8px;
// margin-top: 0px;
// }
.help.error { .help.error {
display: none !important; display: none !important;
@ -432,10 +432,9 @@
} }
.newsletter { .newsletter {
.newsletter-text { .newsletter-text {
font-family: $font-family; font-family: $font-family;
color: $color-gray9; color: $color-gray10;
font-size: 12px; font-size: 12px;
line-height: 16px; line-height: 16px;
} }
@ -493,32 +492,6 @@
font-weight: 700; font-weight: 700;
padding-bottom: 10px; padding-bottom: 10px;
} }
.shp-lean {
border: 1px solid $color-gray10;
border-radius: 8px;
span {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
font-weight: 400;
}
label {
font-family: $font-family;
color: $color-gray2;
font-size: 12px;
line-height: 16px;
box-shadow: none;
padding: 14px 12px;
svg path {
fill: #d8c8ac;
}
}
}
} }
.delivery-address-title { .delivery-address-title {
@ -552,7 +525,7 @@
.vtex-omnishipping-1-x-addressSummaryActive { .vtex-omnishipping-1-x-addressSummaryActive {
.address-summary { .address-summary {
background: none; background: none;
border: 1px solid $color-gray10; border: 1px solid $color-gray8;
border-radius: 8px; border-radius: 8px;
padding: 12px; padding: 12px;
@ -580,9 +553,9 @@
font-weight: 400; font-weight: 400;
text-transform: lowercase; text-transform: lowercase;
text-decoration: none; text-decoration: none;
float: right;
} }
} }
} }
.shp-summary-group-price, .shp-summary-group-price,
@ -599,7 +572,7 @@
} }
.vtex-omnishipping-1-x-leanShippingText { .vtex-omnishipping-1-x-leanShippingText {
border-right: 1px solid $color-gray10; border-right: 1px solid $color-gray8;
} }
.vtex-omnishipping-1-x-leanShippingTextLabel { .vtex-omnishipping-1-x-leanShippingTextLabel {
@ -611,11 +584,20 @@
letter-spacing: 0.05px; letter-spacing: 0.05px;
} }
.shp-lean { .vtex-omnishipping-1-x-option:hover,
.shp-lean-option { .vtex-omnishipping-1-x-leanShippingOptionActive {
background: #f2f2f2;
}
.shp-option-icon {
position: relative;
svg {
display: none;
}
&::before { &::before {
position: relative; display: block;
content: ""; content: "";
border: 1px solid #828282; border: 1px solid #828282;
border-radius: 3px; border-radius: 3px;
@ -626,28 +608,19 @@
} }
} }
// .shp-lean-option-active { .shp-lean-option-active .shp-option-icon {
// &::after { &::after {
// content: ""; display: block;
// width: 12px; content: "";
// display: block; width: 12px;
// position: absolute; display: block;
// left: 36.6%; position: absolute;
// border-radius: 3px; left: 50%;
// height: 12px; top: 50%;
// background-color: $color-blue-100; transform: translate(-50%, -50%);
// } 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;
}
} }
} }
@ -671,7 +644,7 @@
} }
.input-large { .input-large {
border: 1px solid $color-gray10; border: 1px solid $color-gray8;
border-radius: 8px; border-radius: 8px;
max-width: 294px; max-width: 294px;
width: 100%; width: 100%;
@ -690,6 +663,12 @@
.btn-ask-for-geolocation-cta { .btn-ask-for-geolocation-cta {
color: $color-white-500; color: $color-white-500;
background: $color-blue-100; background: $color-blue-100;
font-family: $font-family;
font-weight: 700;
font-size: 14px;
line-height: 19px;
letter-spacing: 0.05em;
text-transform: uppercase;
} }
.vtex-omnishipping-1-x-summaryChange { .vtex-omnishipping-1-x-summaryChange {
@ -709,7 +688,7 @@
.vtex-omnishipping-1-x-deliveryChannelsToggle { .vtex-omnishipping-1-x-deliveryChannelsToggle {
background-color: $color-white-500; background-color: $color-white-500;
border: 1px solid $color-gray12; border: 1px solid $color-black-100;
box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
} }
@ -732,7 +711,8 @@
// text-shadow: 1.3px 1px lighten($color-black-100, 50); // text-shadow: 1.3px 1px lighten($color-black-100, 50);
} }
.vtex-omnishipping-1-x-addressFormPart1 {} .vtex-omnishipping-1-x-addressFormPart1 {
}
.ship-number { .ship-number {
.input-mini { .input-mini {
@ -763,11 +743,9 @@
} }
} }
} }
} }
.hproduct { .hproduct {
.badge { .badge {
display: none; display: none;
} }

View File

@ -35,6 +35,8 @@
font-family: $font-family; font-family: $font-family;
width: 100%; width: 100%;
height: 397px !important; height: 397px !important;
padding: 24px 16px;
box-sizing: border-box;
h2 { h2 {
background: $color-white-500; background: $color-white-500;
@ -66,8 +68,7 @@
border-top: 1px solid #e5e5e5; border-top: 1px solid #e5e5e5;
} }
.shipping-date, .shipping-date {
.price {
display: none; display: none;
} }
} }
@ -76,6 +77,10 @@
.summary-template-holder { .summary-template-holder {
border-top: none; border-top: none;
background: $color-white-500; background: $color-white-500;
.summary-totalizers {
max-width: unset;
}
} }
#go-to-cart-button a { #go-to-cart-button a {
@ -94,18 +99,28 @@
} }
#payment-data-submit { #payment-data-submit {
background: $color-black-100; font-family: $font-family;
background: $color-green2;
border: none; border: none;
border-radius: 0; border-radius: 8px;
color: $color-white-500; color: $color-white;
outline: none; outline: none;
transition: all 0.2s linear; transition: all 0.2s linear;
font-weight: 700;
font-size: 14px;
line-height: 19px;
text-transform: uppercase;
letter-spacing: 0.05em;
&:hover { &:hover {
background: lighten($color-black-100, 5); background: lighten($color-green2, 5);
} }
&:active { &:active {
background: darken($color-black-100, 5); background: darken($color-green2, 5);
}
.icon-lock {
display: none;
} }
} }
} }
@ -177,21 +192,21 @@
height: auto; height: auto;
padding: 0; padding: 0;
width: 60px; width: 60px;
background: none;
a {
@include mq(sm, max) { @include mq(sm, max) {
width: 72px; display: block;
margin-right: 16px;
}
} }
img { img {
height: 60px; height: 60px;
max-width: 60px; max-width: unset;
width: 100%; width: 60px;
transform: rotateY(180deg); transform: rotateY(180deg);
object-fit: cover;
@include mq(sm, max) {
height: 72px;
width: auto;
}
} }
} }
@ -201,8 +216,6 @@
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
white-space: unset; white-space: unset;
// padding-left: 16px;
// width: 321px;
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
@ -219,8 +232,8 @@
text-decoration: none; text-decoration: none;
} }
@media (max-width: 490px) { @include mq(md, max) {
margin-left: 23px; margin: 0;
} }
} }
@ -278,91 +291,12 @@
} }
} }
td.quantity {
align-items: center;
border: 1px solid $color-gray7;
border-radius: 8px;
box-sizing: border-box;
display: flex;
justify-content: center;
margin: 10px 0 0 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-500;
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-100;
display: block;
font-weight: 500;
padding: 1px 12px;
}
}
.icon-minus-sign {
&:before {
width: 16px;
height: 16px;
color: $color-blue-100;
}
}
.icon-plus-sign {
&:before {
width: 16px;
height: 16px;
color: $color-blue-100;
}
}
.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;
}
}
}
.quantity-price, .quantity-price,
.best-price { .best-price {
.icon-question-sign { .icon-question-sign {
display: none; display: none;
} }
span { span {
font-style: normal;
font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black-100; color: $color-black-100;
@ -418,6 +352,52 @@
padding: 0; padding: 0;
} }
td.quantity {
text-align: start;
border: 1px solid #f0f0f0;
border-radius: 8px;
box-sizing: border-box;
display: flex;
align-items: center;
max-width: 99px;
padding: 9px 11px;
height: 34px;
margin-top: 13px;
@include mq(md, max) {
width: 99px !important;
// margin-left: calc(60px + 16px) !important;
display: flex !important;
padding: 9px 11px !important;
}
.item-quantity-change {
@include mq(lg, max) {
position: unset !important;
width: unset !important;
height: unset !important;
}
}
.icon-minus-sign,
.icon-plus-sign {
color: $color-blue-100;
}
input {
border: none;
outline: none;
box-shadow: none;
margin: 0;
padding: 0;
flex: 1;
&:focus {
box-shadow: none;
}
}
}
.summary { .summary {
.cart-more-options { .cart-more-options {
margin: 0; margin: 0;
@ -448,10 +428,11 @@
font-size: 14px; font-size: 14px;
line-height: 18px; line-height: 18px;
margin: 0 0 10px; margin: 0 0 10px;
max-width: 276px;
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray6; background-color: $color-gray1;
font-family: $font-family; font-family: $font-family;
border: none; border: none;
border-radius: 8px; border-radius: 8px;
@ -535,7 +516,6 @@
} }
.srp-postal-code { .srp-postal-code {
.ship-country { .ship-country {
display: none; display: none;
} }
@ -543,8 +523,6 @@
.ship-postalCode { .ship-postalCode {
label { label {
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black-100; color: $color-black-100;
@ -681,6 +659,13 @@
max-width: 354px; max-width: 354px;
width: 100%; width: 100%;
@include mq(md, max) {
float: none;
margin: 0;
width: 100%;
max-width: unset;
}
.coupon-data { .coupon-data {
display: block !important; display: block !important;
margin: 0 0 10px; margin: 0 0 10px;
@ -698,8 +683,6 @@
} }
span { span {
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-black-500; color: $color-black-500;
@ -735,16 +718,19 @@
.coupon-fields { .coupon-fields {
margin-bottom: 20px; margin-bottom: 20px;
span {
display: flex;
i.loading-coupon {
display: none;
}
}
@include mq(sm, max) { @include mq(sm, max) {
span { span {
display: flex; display: flex;
flex-direction: row; flex-direction: row;
justify-content: space-between; justify-content: space-between;
i {
position: absolute;
right: 91px;
opacity: 1;
}
} }
} }
@ -759,10 +745,8 @@
max-width: 204px; max-width: 204px;
width: 100%; width: 100%;
float: left; float: left;
&::placeholder {
padding: 0 16px; padding: 0 16px;
} box-sizing: border-box;
@include mq(sm, max) { @include mq(sm, max) {
max-width: 100%; max-width: 100%;
@ -785,17 +769,18 @@
max-width: 133px; max-width: 133px;
width: 100%; width: 100%;
text-transform: uppercase; text-transform: uppercase;
text-shadow: none;
@include mq(md, max) { @include mq(md, max) {
width: 138px; width: 138px;
} }
&:hover { &:hover {
background-color: lighten($color-black-100, 5); background-color: lighten($color-blue-100, 5);
} }
&:active { &:active {
background-color: darken($color-black-100, 5); background-color: darken($color-blue-100, 5);
} }
} }
} }
@ -813,10 +798,11 @@
&.info, &.info,
&.monetary { &.monetary {
font-family: $font-family; font-family: $font-family;
color: $color-gray2; color: $color-black-100;
font-size: 14px; font-size: 14px;
line-height: 19px; line-height: 19px;
margin: 25px 0; margin: 25px 0;
padding: 10px 0;
} }
&.info { &.info {
@ -842,9 +828,7 @@
line-height: 25px; line-height: 25px;
font-weight: 700; font-weight: 700;
color: $color-black-100; color: $color-black-100;
padding: 0; padding: 14px 0;
margin-top: 12px;
margin-bottom: 0;
} }
td.monetary { td.monetary {
@ -853,6 +837,7 @@
line-height: 25px; line-height: 25px;
font-weight: 700; font-weight: 700;
color: $color-black-100; color: $color-black-100;
padding: 14px 0;
} }
} }
} }
@ -870,6 +855,7 @@
width: calc(100% - 32px); width: calc(100% - 32px);
float: none; float: none;
margin-bottom: 50px; margin-bottom: 50px;
max-width: unset;
} }
@include mq(md, min) { @include mq(md, min) {
@ -895,7 +881,6 @@
&:hover { &:hover {
text-decoration: none; text-decoration: none;
cursor: auto;
} }
} }
} }

View File

@ -1,104 +1,149 @@
body .container-main.container-order-form .orderform-template.active { body .container-main.container-order-form .orderform-template.active {
.mini-cart { .mini-cart {
border: 1px solid $color-gray5; width: 32.3242%;
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 { h2 {
#payment-data-submit { text-align: start;
font-family: $font-family; margin-bottom: 34px;
color: $color-white-500; padding: 0;
font-size: 14px; font-family: $font-family-secundary;
font-size: 16px;
line-height: 19px; line-height: 19px;
font-weight: 700; }
.cart-fixed {
position: relative;
border: 1px solid #e5e5e5;
border-radius: 8px;
box-sizing: border-box;
max-height: 397px;
padding: 24px 16px;
.summary-cart-template-holder {
height: auto !important;
.cart .cart-items .product-name {
max-width: 115px;
}
}
.summary-template-holder {
.totalizers-list {
tr {
position: relative;
&:first-of-type {
&::before {
content: "";
width: calc(100% + 32px);
position: absolute;
height: 1px;
background: $color-gray8;
top: 0;
left: -16px;
}
}
&::after {
content: "";
width: calc(100% + 32px);
position: absolute;
height: 1px;
background: $color-gray8;
bottom: 0;
left: -16px;
}
}
}
td.info,
td.monetary {
padding: 0;
}
tfoot {
td.info,
td.monetary {
margin: 0;
padding: 30px 0 22px 0;
}
}
}
.payment-confirmation-wrap {
position: absolute;
top: calc(100% + 20px);
left: 0;
background: $color-green2; background: $color-green2;
border-radius: 8px; border-radius: 8px;
} }
}
}
.span4 {
padding: 24px 17px 22px;
}
h2 {
font-family: $font-family-secundary;
color: $color-black-100;
font-size: 16px;
line-height: 19px;
text-align: initial;
padding: 0;
margin-bottom: 34px;
}
.ask-for-geolocation-title {
padding: 0;
margin: 0;
}
.cart { .cart {
border: 0; border: none;
padding: 0; padding: 0;
margin: 0; margin: 0;
height: auto !important;
li { ul li {
display: flex; display: flex;
align-items: center; align-items: center;
.description { .description {
margin: 0; margin-left: auto;
} margin-top: unset;
font-size: 12px;
color: $color-black-100;
.price { .price {
font-family: $font-family;
color: $color-black-100;
font-weight: 400; font-weight: 400;
font-size: 12px; }
line-height: 16px; }
margin: 0; }
// padding-right: 17px;
} }
} }
} }
tr { .payment-data.span12 {
border-top: 1px solid $color-gray10; .accordion-heading {
&::after {
content: "Solicitamos apenas informações necessárias para realização da sua compra, sem compromenter seus dados";
font-family: $font-family;
font-weight: 400;
font-size: 14px;
line-height: 24px;
letter-spacing: -0.01em;
color: $color-gray2;
display: block;
margin: 12px 0 16px 0;
}
} }
.orderform-template-holder {
width: 66.1132%;
} }
.payment-data { .payment-data {
.active { .box-step form.form-step {
width: unset; display: flex;
padding: 14.5px;
.steps-view {
flex: 1;
} }
} }
.payment-group {
margin-top: 0;
width: 209px;
margin-right: 40px;
}
}
.payment-body {
.link-gift-card { .link-gift-card {
#show-gift-card-group { #show-gift-card-group {
display: none; 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-deposito,
.pg-transferencia-bancaria, .pg-transferencia-bancaria,
.pg-money, .pg-money,
@ -114,7 +159,6 @@ body .container-main.container-order-form .orderform-template.active {
} }
.payment-group-list-btn { .payment-group-list-btn {
span { span {
background-image: none !important; background-image: none !important;
font-family: $font-family; font-family: $font-family;
@ -147,22 +191,7 @@ body .container-main.container-order-form .orderform-template.active {
} }
} }
} }
.orderform-template-holder {
.steps-view { width: 66.1132%;
// width: 363px;
width: 100%;
margin-left: 40px;
}
}
}
}
} }
} }
.PaymentCardHolderDocument {
display: none;
}
.SecurityEnvironmentIcon {
margin-bottom: 5px;
}

View File

@ -49,6 +49,18 @@ body {
.container-order-form, .container-order-form,
.container-cart { .container-cart {
width: 80%; width: 80%;
@include mq(md, max) {
width: 100%;
}
.orderform-template {
@include mq(md, max) {
display: flex;
flex-direction: column;
}
}
} }
} }

View File

@ -12,8 +12,6 @@
&__address { &__address {
color: $color-gray2; color: $color-gray2;
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
text-transform: capitalize; text-transform: capitalize;
@ -60,8 +58,6 @@
color: $color-gray2; color: $color-gray2;
display: flex; display: flex;
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px; font-size: 10px;
line-height: 12px; line-height: 12px;
text-decoration: none; text-decoration: none;

View File

@ -47,8 +47,6 @@
display: flex; display: flex;
text-transform: uppercase; text-transform: uppercase;
font-family: $font-family; font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 16px; line-height: 16px;
color: $color-black-100; color: $color-black-100;

View File

@ -11,8 +11,10 @@ $color-black-500: #000000;
$color-white-500: #fff; $color-white-500: #fff;
$color-white-100: #f5f5f5; $color-white-100: #f5f5f5;
$color-white: #ffffff;
$color-gray: #6c6c6c; $color-gray: #6c6c6c;
$color-gray1: #ededed;
$color-gray2: #7d7d7d; $color-gray2: #7d7d7d;
$color-gray3: #f0f0f0; $color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;