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

File diff suppressed because it is too large Load Diff

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;
@include mq(sm, max) { a {
width: 72px; @include mq(sm, max) {
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;
padding: 0 16px;
&::placeholder { box-sizing: border-box;
padding: 0 16px;
}
@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,168 +1,197 @@
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;
line-height: 19px; font-size: 16px;
font-weight: 700; line-height: 19px;
}
.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 { .cart {
padding: 24px 17px 22px; border: none;
} padding: 0;
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 {
border: 0;
padding: 0;
margin: 0;
li {
display: flex;
align-items: center;
.description {
margin: 0; margin: 0;
} height: auto !important;
.price { ul li {
font-family: $font-family;
color: $color-black-100;
font-weight: 400;
font-size: 12px;
line-height: 16px;
margin: 0;
// padding-right: 17px;
}
}
}
tr {
border-top: 1px solid $color-gray10;
}
.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; display: flex;
align-items: center;
.payment-group { .description {
margin: 0; margin-left: auto;
.payment-group-list-btn { margin-top: unset;
width: unset; font-size: 12px;
color: $color-black-100;
.price {
font-weight: 400;
} }
.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-black-200;
font-size: 14px;
line-height: 24px;
text-align: center;
padding: 13px;
}
a {
background: $color-gray3;
border: 1px solid $color-black-500;
border-radius: 6px;
margin-bottom: 12px;
padding: 0;
width: 209px;
text-decoration: none;
margin-left: 0;
}
.active {
border: 1px solid $color-red-100;
background: rgba(220, 221, 227, 0.3);
margin-left: 0px;
span {
color: $color-red-100;
}
}
}
}
.steps-view {
// width: 363px;
width: 100%;
margin-left: 40px;
} }
} }
} }
} }
} }
}
.PaymentCardHolderDocument { .payment-data.span12 {
display: none; .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;
}
}
}
.SecurityEnvironmentIcon { .payment-data {
margin-bottom: 5px; .box-step form.form-step {
display: flex;
.steps-view {
flex: 1;
}
}
.payment-group {
margin-top: 0;
width: 209px;
margin-right: 40px;
}
}
.payment-body {
.link-gift-card {
#show-gift-card-group {
display: none;
}
}
.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-black-200;
font-size: 14px;
line-height: 24px;
text-align: center;
padding: 13px;
}
a {
background: $color-gray3;
border: 1px solid $color-black-500;
border-radius: 6px;
margin-bottom: 12px;
padding: 0;
width: 209px;
text-decoration: none;
margin-left: 0;
}
.active {
border: 1px solid $color-red-100;
background: rgba(220, 221, 227, 0.3);
margin-left: 0px;
span {
color: $color-red-100;
}
}
}
}
.orderform-template-holder {
width: 66.1132%;
}
} }

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;