feat(checkout com produto): Aplica css desktop

This commit is contained in:
Sabrina Miranda 2022-12-17 01:42:35 -03:00
parent a5030d653b
commit 658c84d02b
2 changed files with 285 additions and 72 deletions

View File

@ -13,10 +13,15 @@
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;
margin-bottom: 48px;
@include mq(xg, min) {
padding: 16px 31px;
}
@include mq(md, max) { @include mq(md, max) {
margin: 0px 0 25px 0; margin: 0px 0 25px 0;
@ -111,12 +116,19 @@
} }
th { th {
font-family: $font-family-secundary;
color: $color-black; color: $color-black;
padding: 0 0 16px; padding: 0 0 17px;
font-style: normal; font-style: normal;
font-weight: bold; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
text-align: left;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
}
@include mq(md, max) { @include mq(md, max) {
&.quantity-price, &.quantity-price,
@ -124,43 +136,82 @@
display: none; display: none;
} }
} }
.product-price {
font-size: 0;
}
}
th.shipping-date {
font-size: 0;
&::after {
content: "Frete";
font-family: $font-family-secundary;
color: $color-black;
font-weight: normal;
font-style: normal;
font-size: 14px;
line-height: 16px;
padding: 0 0 17px;
vertical-align: bottom;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
}
}
} }
.product-image { .product-image {
height: auto; height: 60px;
padding: 0; padding: 0;
width: 60px; width: 60px;
@include mq(sm, max) { @include mq(xg, min) {
width: 72px; width: 146px;
height: 146px;
} }
img { img {
height: 60px; height: 60px;
max-width: 100%; max-width: 60px;
width: auto; width: 60px;
object-fit: cover;
@include mq(sm, max) { @include mq(xg, min) {
height: 72px; width: 146px;
width: auto; max-width: 146px;
height: 146px;
} }
} }
} }
.product-name { .product-name {
padding-right: 0; padding: 0;
@include mq(xg, min) {
width: 600px;
}
@include mq(lg, max) { @include mq(lg, max) {
width: 250px; width: 250px;
} }
a { a {
color: $color-blue; font-family: $font-family-secundary;
color: $color-black2;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
margin-left: 16px;
@include mq(xg, min) {
font-size: 24px;
line-height: 28px;
margin-left: 31px;
}
&:hover { &:hover {
color: darken($color-blue, 10); color: darken($color-blue, 10);
@ -179,9 +230,17 @@
} }
td.shipping-date { td.shipping-date {
color: $color-gray2; color: $color-gray7;
font-family: $font-family-secundary;
font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
text-align: left;
@include mq(xg, min) {
font-size: 24px;
line-height: 28px;
}
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
@ -190,6 +249,8 @@
.product-price { .product-price {
min-width: 100px; min-width: 100px;
text-align: left;
@include mq(md, max) { @include mq(md, max) {
min-width: 78px; min-width: 78px;
} }
@ -200,10 +261,19 @@
} }
span.list-price { span.list-price {
color: $color-gray2; color: $color-gray7;
font-family: $font-family-secundary;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
font-weight: normal;
font-style: normal;
text-decoration-line: line-through; text-decoration-line: line-through;
@include mq(xg, min) {
font-size: 24px;
line-height: 28px;
}
@include mq(sm, max) { @include mq(sm, max) {
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
@ -212,21 +282,52 @@
.old-product-price-label { .old-product-price-label {
text-transform: lowercase; text-transform: lowercase;
} }
.muted {
color: $color-gray7;
}
}
}
th.product-price {
font-size: 0;
&::after {
content: "Unidade";
font-family: $font-family-secundary;
color: $color-black;
font-weight: normal;
font-style: normal;
font-size: 14px;
line-height: 16px;
padding: 0 0 17px;
vertical-align: bottom;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
}
} }
} }
td.quantity { td.quantity {
align-items: center; align-items: center;
border: 1px solid $color-gray3; border: 1px solid $color-gray3;
border-radius: 0; border-radius: 8px;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
justify-content: center; justify-content: center;
margin: 6px auto 0; margin: 13px 0;
max-height: 38px; max-height: 34px;
max-width: 118px; max-width: 99px;
padding: 0; padding: 9px 11px;
width: max-content !important; width: max-content !important;
text-align: left;
@include mq(xg, min) {
margin: 48px 0px;
padding: 21px 62px;
}
@media (max-width: 490px) { @media (max-width: 490px) {
margin-left: 84px !important; margin-left: 84px !important;
@ -234,16 +335,27 @@
input { input {
background-color: $color-white; background-color: $color-white;
border: 1px solid $color-gray3; border: none;
border-radius: 0; border-radius: 0;
border-width: 0 1px; border-width: 0 1px;
display: block; display: block;
max-height: 38px; max-height: 38px;
margin: 0 !important; margin: 0 !important;
padding: 8px 0; padding: 8px 0;
width: 38px; width: 40px;
color: $color-gray2; color: $color-black2;
box-shadow: none; box-shadow: none;
font-family: $font-family-secundary;
font-weight: normal;
font-size: 14px;
line-height: 16px;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
max-height: 50px;
width: 52px;
}
@include mq(lg, max) { @include mq(lg, max) {
width: 24px !important; width: 24px !important;
@ -253,24 +365,15 @@
.icon-plus-sign, .icon-plus-sign,
.icon-minus-sign { .icon-minus-sign {
&::before { &::before {
color: $color-black;
display: block; display: block;
font-weight: 500; font-weight: 500;
padding: 1px 12px; font-size: 17px;
} color: $color-blue2;
} cursor: pointer;
.icon-minus-sign { @include mq(xg, min) {
&:before { font-size: 32px;
content: "-"; }
font-size: 16px;
}
}
.icon-plus-sign {
&:before {
content: "+";
font-size: 14px;
} }
} }
@ -292,19 +395,41 @@
.quantity-price, .quantity-price,
.best-price { .best-price {
text-align: left;
@include mq(xg, min) {
width: 200px;
}
.icon-question-sign { .icon-question-sign {
display: none; display: none;
} }
span { span {
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $color-black;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
}
} }
} }
.quantity-price { .quantity-price {
.total-selling-price {
font-family: $font-family;
font-weight: 700;
line-height: 19px;
@include mq(xg, min) {
font-size: 28px;
line-height: 38px;
}
}
@include mq(md, max) { @include mq(md, max) {
display: none; display: none;
} }
@ -315,9 +440,13 @@
top: 0; top: 0;
} }
.icon::before { .icon::before {
color: $color-gray4; color: $color-gray6;
font-size: 15px; font-size: 15px;
@include mq(xg, min) {
font-size: 26px;
}
@include mq(md, max) { @include mq(md, max) {
font-size: 18px; font-size: 18px;
} }
@ -351,12 +480,18 @@
} }
.srp-main-title { .srp-main-title {
margin: 32px 0 12px; margin: 0 0 11px 0;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-family: $font-family;
font-size: 24px; font-size: 24px;
line-height: 28px; line-height: 33px;
color: $color-gray2; color: $color-black2;
@include mq(xg, min) {
font-size: 48px;
line-height: 65px;
}
@include mq(md, max) { @include mq(md, max) {
margin-top: 0; margin-top: 0;
@ -365,23 +500,44 @@
.srp-description { .srp-description {
color: $color-gray2; color: $color-gray2;
font-size: 12px; font-style: normal;
font-weight: normal;
font-family: $font-family;
font-size: 14px;
line-height: 18px; line-height: 18px;
margin: 0 0 12px; margin: 0 0 10px;
max-width: 18rem;
@include mq(xg, min) {
font-size: 28px;
line-height: 36px;
width: 552px;
max-width: none;
margin-bottom: 11px;
}
} }
button.shp-open-options { button.shp-open-options {
background-color: $color-gray5; background-color: $color-gray8;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
color: $color-gray2; color: $color-black2;
font-size: 16px; font-family: $font-family;
font-size: 14px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
line-height: 19px; line-height: 19px;
font-weight: 500; font-weight: normal;
outline: none; outline: none;
padding: 12px 40px; padding: 12px 41px;
transition: all 0.2s linear; transition: all 0.2s linear;
margin: 0;
text-transform: uppercase;
cursor: pointer;
@include mq(xg, min) {
font-size: 28px;
line-height: 38px;
}
&:hover { &:hover {
background-color: lighten($color-gray5, 5); background-color: lighten($color-gray5, 5);
@ -593,8 +749,15 @@
&-totalizers { &-totalizers {
padding: 0; padding: 0;
width: 346px; width: 346px;
margin: 0;
@include mq(xg, min) {
width: 688px;
}
.coupon-data { .coupon-data {
margin-bottom: 0 0 10px 0;
#cart-link-coupon-add { #cart-link-coupon-add {
text-decoration: none; text-decoration: none;
&:hover { &:hover {
@ -603,13 +766,19 @@
} }
} }
span { span {
font-family: $font-family; font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $color-black2;
text-decoration: none; text-decoration: none;
cursor: pointer;
@include mq(xg, min) {
font-size: 24px;
line-height: 28px;
}
} }
} }
@ -712,12 +881,18 @@
&.info, &.info,
&.monetary { &.monetary {
font-family: $font-family-secundary;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: normal;
font-size: 14px; font-size: 14px;
line-height: 16px; line-height: 16px;
color: $color-black; color: $color-black;
padding: 12px 0; padding: 10px 0;
@include mq(xg, min) {
font-size: 28px;
line-height: 33px;
}
} }
&.info { &.info {
@ -733,11 +908,19 @@
tfoot { tfoot {
td.info, td.info,
td.monetary { td.monetary {
font-family: $font-family;
font-style: normal; font-style: normal;
font-weight: normal; font-weight: 700;
font-size: 18px; font-size: 18px;
line-height: 21px; line-height: 25px;
color: $color-black; color: $color-black;
padding: 14px 0 17px 0;
@include mq(xg, min) {
font-size: 36px;
line-height: 49px;
width: 250px;
}
} }
} }
} }
@ -747,64 +930,89 @@
.cart-links-bottom { .cart-links-bottom {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
width: 343px; width: 354px;
margin-bottom: 43px !important;
padding: 0;
@include mq(xg, min) {
margin-bottom: 44px !important;
width: 688px;
}
@include mq(md, max) { @include mq(md, max) {
padding: 0 16px; padding: 0 16px;
width: calc(100% - 32px); width: calc(100% - 32px);
float: none; float: none;
margin-bottom: 50px;
}
@include mq(md, min) {
margin: 0;
padding-bottom: 50px;
} }
.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: 14px;
@include mq(xg, min) {
margin-bottom: 13px;
}
@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-style: normal;
font-weight: normal; font-weight: normal;
font-size: 12px; font-size: 12px;
line-height: 14px; line-height: 14px;
color: $color-blue; color: $color-black2;
@include mq(xg, min) {
font-size: 24px;
line-height: 28px;
}
} }
} }
.link-choose-more-products{
margin-right: 0;
}
.btn-place-order-wrapper { .btn-place-order-wrapper {
a { a {
background: $color-green; background: $color-blue2;
border: none; border: none;
border-radius: 5px; border-radius: 8px;
display: block; display: block;
font-size: 0; font-size: 0;
transition: ease-in 0.22s all; transition: ease-in 0.22s all;
padding: 12px 19px; padding: 12px 102px;
cursor: pointer;
@include mq(xg, min) {
padding: 12px 175px;
}
&:hover { &:hover {
background-color: darken($color-green, 5); background: $color-blue3;
} }
&: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;
line-height: 19px;
letter-spacing: 0.05em; letter-spacing: 0.05em;
color: $color-white; color: $color-white;
text-transform: uppercase; text-transform: uppercase;
vertical-align: middle; vertical-align: middle;
line-height: 19px;
text-shadow: none; text-shadow: none;
color: $color-black2;
@include mq(xg, min) {
font-size: 28px;
line-height: 38px;
}
} }
} }
} }

View File

@ -16,8 +16,13 @@ $color-gray3: #f0f0f0;
$color-gray4: #8d8d8d; $color-gray4: #8d8d8d;
$color-gray5: #e5e5e5; $color-gray5: #e5e5e5;
$color-gray6: #C4C4C4; $color-gray6: #C4C4C4;
$color-gray7: #989898;
$color-gray8: #EDEDED;
$color-blue: #4267b2; $color-blue: #4267b2;
$color-blue2: #00C8FF;
$color-blue3: #3fd4fd; //hover
$color-green: #495e49; $color-green: #495e49;