feat: adiciona css 375px

This commit is contained in:
Rafael Sampaio de Oliveira 2023-02-02 15:43:33 -03:00
parent 5ce7bb1ced
commit a08f527d28
11 changed files with 255 additions and 41 deletions

View File

@ -25,6 +25,24 @@
padding: 0 40px; padding: 0 40px;
} }
[class*="html--descriptionText"] { @media (max-width: 1024px) {
width: 100%; [class*="html--buy-button"] {
margin-bottom: 16px;
}
[class*="html--descriptionText"] {
width: 100%;
}
}
@media (max-width: 463px) {
[class*="html--buy-button"] {
flex-direction: column;
gap: 0;
}
[class*="html--buy-button"] :global(.vtex-button) {
height: 74px;
padding: 0 64px;
}
} }

View File

@ -112,5 +112,10 @@
"displayMode": "first-image", "displayMode": "first-image",
"zoomMode": "disabled" "zoomMode": "disabled"
} }
},
"product-description": {
"props": {
"collapseContent": false
}
} }
} }

View File

@ -252,11 +252,11 @@
] ]
}, },
"product-summary-image": { // "product-summary-image": {
"props": { // "props": {
"showBadge": false // "showBadge": false
} // }
}, // },
"list-context.product-list#shelfProducts": { "list-context.product-list#shelfProducts": {
"blocks": ["product-summary.shelf#shelfProducts"], "blocks": ["product-summary.shelf#shelfProducts"],

View File

@ -114,11 +114,29 @@
padding-bottom: 1rem; padding-bottom: 1rem;
} }
.flexRowContent {
gap: 32px;
}
.flexRowContent--product-container { .flexRowContent--product-container {
width: 94.973%; width: 94.445%;
}
.flexRow--product-container :global(.vtex-store-components-3-x-container) {
display: flex;
justify-content: center;
margin: 0;
padding: 0;
max-width: 100%;
}
.flexRow--product-container :global(.vtex-store-components-3-x-container) .stretchChildrenWidth {
padding: 0;
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
.flexRow--product-container :global(.vtex-store-components-3-x-container) {
padding: 0 40px;
}
.flexRowContent--product-container { .flexRowContent--product-container {
width: 100%; width: 100%;
} }

View File

@ -9,20 +9,45 @@
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap%27"); @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;500;600;700&display=swap%27");
/* Grid breakpoints */ /* Grid breakpoints */
.imageWrapper { .imageWrapper {
height: 314px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.image {
width: 314.4px;
height: 314.4px;
}
.brandName { .brandName {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 18px;
line-height: 25px; line-height: 25px;
text-align: center; text-align: center;
color: #000000; color: #000000;
} }
.nameContainer {
padding: 16px 0 0 0;
}
.containerNormal { .containerNormal {
max-width: 314px !important; max-width: 314px !important;
}
@media (max-width: 1024px) {
.brandName {
font-size: 14px;
}
.image {
width: 291.2px;
height: 291.2px;
}
}
@media (min-width: 375px) and (max-width: 768px) {
.image {
width: 124.8px;
height: 124.8px;
}
} }

View File

@ -27,6 +27,11 @@
background: transparent; background: transparent;
} }
.sliderTrack--shelf {
display: flex;
gap: 16px;
}
.sliderLayoutContainer--shelf { .sliderLayoutContainer--shelf {
padding-left: 40px !important; padding-left: 40px !important;
padding-right: 40px !important; padding-right: 40px !important;
@ -54,4 +59,21 @@
.sliderRightArrow--shelf::before { .sliderRightArrow--shelf::before {
visibility: visible; visibility: visible;
content: url("https://agenciamagma.vtexassets.com/arquivos/rafaelSampaioRightArrow.png"); content: url("https://agenciamagma.vtexassets.com/arquivos/rafaelSampaioRightArrow.png");
}
@media (max-width: 1024px) {
.sliderTrack--shelf {
gap: 12px !important;
}
}
@media (min-width: 375px) and (max-width: 755px) {
.sliderLeftArrow--shelf {
margin-left: 0;
}
.sliderRightArrow--shelf {
margin-right: 0;
}
.sliderTrack--shelf {
gap: 8px !important;
}
} }

View File

@ -13,11 +13,6 @@
background: red; background: red;
} }
.container {
display: flex;
justify-content: center;
}
.productBrand--quickview { .productBrand--quickview {
display: flex; display: flex;
justify-content: end; justify-content: end;
@ -30,6 +25,7 @@
.carouselGaleryThumbs { .carouselGaleryThumbs {
max-height: 90px; max-height: 90px;
width: 150%;
display: block; display: block;
} }
@ -195,6 +191,7 @@
.shippingTableRow { .shippingTableRow {
position: relative; position: relative;
width: 100%;
} }
.shippingTableHeadDeliveryName { .shippingTableHeadDeliveryName {
@ -215,7 +212,7 @@
font-size: 0; font-size: 0;
position: absolute; position: absolute;
top: 5%; top: 5%;
left: 342%; left: 61%;
} }
.shippingTableHeadDeliveryEstimate::after { .shippingTableHeadDeliveryEstimate::after {
@ -232,7 +229,7 @@
font-size: 0; font-size: 0;
position: absolute; position: absolute;
top: 5%; top: 5%;
left: 198%; left: 36%;
} }
.shippingTableHeadDeliveryPrice::after { .shippingTableHeadDeliveryPrice::after {
@ -263,7 +260,7 @@
.shippingTableCellDeliveryEstimate { .shippingTableCellDeliveryEstimate {
position: absolute; position: absolute;
left: 62%; left: 61%;
} }
.shippingTableCellDeliveryPrice { .shippingTableCellDeliveryPrice {
@ -275,6 +272,10 @@
margin: 0; margin: 0;
} }
.skuSelectorNameContainer {
margin-bottom: 0;
}
:global(.vtex-address-form-4-x-input)::placeholder { :global(.vtex-address-form-4-x-input)::placeholder {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -352,6 +353,10 @@
color: #fff; color: #fff;
} }
.inputGroup--pageProduct {
display: flex;
}
.inputGroup--pageProduct :global(.vtex-input-prefix__group) { .inputGroup--pageProduct :global(.vtex-input-prefix__group) {
border: none; border: none;
border-radius: 0; border-radius: 0;
@ -363,6 +368,10 @@
padding: 0; padding: 0;
} }
.inputGroup--pageProduct :global(.vtex-input__error) {
margin-top: 8px;
}
.subscriberContainer { .subscriberContainer {
margin-top: 43px; margin-top: 43px;
} }
@ -464,14 +473,19 @@
width: 100% !important; width: 100% !important;
} }
:global(.vtex-input__error) {
position: absolute;
margin: 0;
}
@media (max-width: 1024px) { @media (max-width: 1024px) {
.container {
padding: 0 40px;
}
.productBrand--quickview { .productBrand--quickview {
justify-content: flex-start; justify-content: flex-start;
margin-top: 32px; margin-top: 32px;
} }
.price_sellingPrice {
font-size: 18px;
}
.container--pageProduct { .container--pageProduct {
width: 96%; width: 96%;
} }
@ -479,4 +493,16 @@
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
} }
}
@media (max-width: 492px) {
.shippingContainer {
margin-bottom: 22px;
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) {
left: 170px;
top: 95%;
}
.shippingTable {
margin-top: 32px;
}
} }

View File

@ -106,20 +106,38 @@
padding-bottom: 1rem; padding-bottom: 1rem;
} }
.flexRowContent {
gap: 32px;
}
.flexRowContent--product-container { .flexRowContent--product-container {
width: 94.973%; width: 94.445%;
}
.flexRow--product-container :global(.vtex-store-components-3-x-container) {
display: flex;
justify-content: center;
margin: 0;
padding: 0;
max-width: 100%;
.stretchChildrenWidth {
padding: 0;
}
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
.flexRow--product-container :global(.vtex-store-components-3-x-container) {
padding: 0 40px;
}
.flexRowContent--product-container { .flexRowContent--product-container {
width: 100%; width: 100%;
.flexRowContent { }
flex-direction: column; .flexRowContent--product-container .flexRowContent {
} flex-direction: column;
}
.stretchChildrenWidth { .flexRowContent--product-container .stretchChildrenWidth {
width: 100% !important; width: 100% !important;
padding: 0; padding: 0;
}
} }
} }

View File

@ -1,18 +1,46 @@
.imageWrapper { .imageWrapper {
height: 314px; // height: 245px;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
} }
.image {
width: 314.4px;
height: 314.4px;
}
.brandName { .brandName {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
font-size: 18px;
line-height: 25px; line-height: 25px;
text-align: center; text-align: center;
color: $color-black; color: $color-black;
} }
.nameContainer {
padding: 16px 0 0 0;
}
.containerNormal { .containerNormal {
max-width: 314px !important; max-width: 314px !important;
} }
@media (max-width: 1024px) {
.brandName {
font-size: 14px;
}
.image {
width: 291.2px;
height: 291.2px;
}
}
@media (min-width: 375px) and (max-width: 768px) {
.image {
width: 124.8px;
height: 124.8px;
}
}

View File

@ -17,6 +17,11 @@
background: transparent; background: transparent;
} }
.sliderTrack--shelf {
display: flex;
gap: 16px;
}
.sliderLayoutContainer--shelf { .sliderLayoutContainer--shelf {
padding-left: 40px !important; padding-left: 40px !important;
padding-right: 40px !important; padding-right: 40px !important;
@ -47,3 +52,23 @@
content: url("https://agenciamagma.vtexassets.com/arquivos/rafaelSampaioRightArrow.png"); content: url("https://agenciamagma.vtexassets.com/arquivos/rafaelSampaioRightArrow.png");
} }
} }
@media (max-width: 1024px) {
.sliderTrack--shelf {
gap: 12px !important;
}
}
@media (min-width: 375px) and (max-width: 755px) {
.sliderLeftArrow--shelf {
margin-left: 0;
}
.sliderRightArrow--shelf {
margin-right: 0;
}
.sliderTrack--shelf {
gap: 8px !important;
}
}

View File

@ -2,11 +2,6 @@
background: red; background: red;
} }
.container {
display: flex;
justify-content: center;
}
.productBrand--quickview { .productBrand--quickview {
display: flex; display: flex;
justify-content: end; justify-content: end;
@ -19,6 +14,7 @@
.carouselGaleryThumbs { .carouselGaleryThumbs {
max-height: 90px; max-height: 90px;
width: 150%;
display: block; display: block;
} }
@ -190,6 +186,7 @@
.shippingTableRow { .shippingTableRow {
position: relative; position: relative;
width: 100%;
} }
.shippingTableHeadDeliveryName { .shippingTableHeadDeliveryName {
@ -210,7 +207,7 @@
font-size: 0; font-size: 0;
position: absolute; position: absolute;
top: 5%; top: 5%;
left: 342%; left: 61%;
} }
.shippingTableHeadDeliveryEstimate::after { .shippingTableHeadDeliveryEstimate::after {
@ -227,7 +224,7 @@
font-size: 0; font-size: 0;
position: absolute; position: absolute;
top: 5%; top: 5%;
left: 198%; left: 36%;
} }
.shippingTableHeadDeliveryPrice::after { .shippingTableHeadDeliveryPrice::after {
@ -258,7 +255,7 @@
.shippingTableCellDeliveryEstimate { .shippingTableCellDeliveryEstimate {
position: absolute; position: absolute;
left: 62%; left: 61%;
} }
.shippingTableCellDeliveryPrice { .shippingTableCellDeliveryPrice {
@ -270,6 +267,10 @@
margin: 0; margin: 0;
} }
.skuSelectorNameContainer {
margin-bottom: 0;
}
:global(.vtex-address-form-4-x-input)::placeholder { :global(.vtex-address-form-4-x-input)::placeholder {
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
@ -347,6 +348,10 @@
color: $color-white; color: $color-white;
} }
.inputGroup--pageProduct {
display: flex;
}
.inputGroup--pageProduct :global(.vtex-input-prefix__group) { .inputGroup--pageProduct :global(.vtex-input-prefix__group) {
border: none; border: none;
border-radius: 0; border-radius: 0;
@ -358,6 +363,10 @@
padding: 0; padding: 0;
} }
.inputGroup--pageProduct :global(.vtex-input__error) {
margin-top: 8px;
}
.subscriberContainer { .subscriberContainer {
margin-top: 43px; margin-top: 43px;
@ -476,15 +485,21 @@
width: 100% !important; width: 100% !important;
} }
:global(.vtex-input__error) {
position: absolute;
margin: 0;
}
@media (max-width: 1024px) { @media (max-width: 1024px) {
.container {
padding: 0 40px;
}
.productBrand--quickview { .productBrand--quickview {
justify-content: flex-start; justify-content: flex-start;
margin-top: 32px; margin-top: 32px;
} }
.price_sellingPrice {
font-size: 18px;
}
.container--pageProduct { .container--pageProduct {
width: 96%; width: 96%;
} }
@ -496,3 +511,17 @@
} }
} }
} }
@media (max-width: 492px) {
.shippingContainer {
margin-bottom: 22px;
}
.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) {
left: 170px;
top: 95%;
}
.shippingTable {
margin-top: 32px;
}
}