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

View File

@ -1,168 +1,197 @@
body .container-main.container-order-form .orderform-template.active {
.mini-cart {
border: 1px solid $color-gray5;
border-radius: 8px;
// padding: 25px 17px;
height: 397px;
width: 32.37%;
width: 32.3242%;
margin-left: unset;
margin-right: 0;
float: right;
.payment-confirmation-wrap {
#payment-data-submit {
font-family: $font-family;
color: $color-white-500;
font-size: 14px;
line-height: 19px;
font-weight: 700;
h2 {
text-align: start;
margin-bottom: 34px;
padding: 0;
font-family: $font-family-secundary;
font-size: 16px;
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;
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 {
border: 0;
padding: 0;
margin: 0;
li {
display: flex;
align-items: center;
.description {
.cart {
border: none;
padding: 0;
margin: 0;
}
height: auto !important;
.price {
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 {
ul li {
display: flex;
align-items: center;
.payment-group {
margin: 0;
.payment-group-list-btn {
width: unset;
.description {
margin-left: auto;
margin-top: 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 {
display: none;
}
.payment-data.span12 {
.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 {
margin-bottom: 5px;
.payment-data {
.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-cart {
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 {
color: $color-gray2;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
text-transform: capitalize;
@ -60,8 +58,6 @@
color: $color-gray2;
display: flex;
font-family: $font-family;
font-style: normal;
font-weight: normal;
font-size: 10px;
line-height: 12px;
text-decoration: none;

View File

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

View File

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