diff --git a/assets/iconPix.svg b/assets/iconPix.svg new file mode 100644 index 0000000..af826b6 --- /dev/null +++ b/assets/iconPix.svg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/manifest.json b/manifest.json index 9ee3cc5..a2cde0d 100644 --- a/manifest.json +++ b/manifest.json @@ -15,7 +15,6 @@ "postreleasy": "vtex publish --verbose" }, "dependencies": { - "agenciamagma.store-theme": "5.x", "vtex.store": "2.x", "vtex.store-header": "2.x", "vtex.product-summary": "2.x", diff --git a/react/PayWithPix.tsx b/react/PayWithPix.tsx new file mode 100644 index 0000000..13fe3a0 --- /dev/null +++ b/react/PayWithPix.tsx @@ -0,0 +1,3 @@ +import { PayWithPix } from "./components/PayWithPix/PayWithPix"; + +export default PayWithPix; diff --git a/react/ProductContext.tsx b/react/ProductContext.tsx new file mode 100644 index 0000000..fbdca5f --- /dev/null +++ b/react/ProductContext.tsx @@ -0,0 +1,36 @@ +import React, { useEffect, useState } from "react"; +import { useProduct } from "vtex.product-context"; + +const ProductContext = () => { + const productContext = useProduct(); + const [simulation, setSimulation] = useState(); + useEffect(() => { + fetch("/api/checkout/pub/orderForms/simulation?sc=1", { + headers: { + Accept: "application/json", + "Content-Type": "application/json", + }, + method: "POST", + body: JSON.stringify({ + paymentData: { + payments: [{ paymentSystem: "125", installments: 1 }], + }, + items: [ + { + id: productContext?.selectedItem?.itemId, + quantity: 1, + seller: "1", + }, + ], + country: "BRA", + }), + }).then(async (res) => { + setSimulation(await res.json()); + }); + }, [productContext?.selectedItem]); + + console.log("productContext", productContext); + return <> {simulation?.paymentData?.payments[0]?.value}; +}; + +export default ProductContext; diff --git a/react/components/Html/index.tsx b/react/components/Html/index.tsx index d60d7f5..847f910 100644 --- a/react/components/Html/index.tsx +++ b/react/components/Html/index.tsx @@ -4,38 +4,49 @@ import { useCssHandles } from "vtex.css-handles"; const CSS_HANDLES = ["html"] as const; type HtmlProps = { - children?: ReactNode, - /** - * Qual tag Html que deseja que seja usar - * - * @default div - */ - tag?: keyof React.ReactHTML - /** - * Classes CSS extras que deseja adicionar. - * Feito para uso de [classes do tachyons](https://tachyons.io/) - */ - tachyonsClasses?: string - /** - * Se caso quiser usar esse componente - * para adicinar um texto simples - */ - text?: string - /** - * Tag ID para - */ - testId?: string -} - -export const Html = ({ children = null, tag = "div", text = "", tachyonsClasses: classes = "", testId }: HtmlProps) => { - const { handles } = useCssHandles(CSS_HANDLES); - - const props = { - className: `${handles.html} ${classes}`, - "data-testid": testId - }; - const Children = <>{children}{text}; - const Element = React.createElement(tag, props, Children); - - return <>{Element}; + children?: ReactNode; + /** + * Qual tag Html que deseja que seja usar + * + * @default div + */ + tag?: keyof React.ReactHTML; + /** + * Classes CSS extras que deseja adicionar. + * Feito para uso de [classes do tachyons](https://tachyons.io/) + */ + tachyonsClasses?: string; + /** + * Se caso quiser usar esse componente + * para adicinar um texto simples + */ + text?: string; + /** + * Tag ID para + */ + testId?: string; +}; + +export const Html = ({ + children = null, + tag = "div", + text = "", + tachyonsClasses: classes = "", + testId, +}: HtmlProps) => { + const { handles } = useCssHandles(CSS_HANDLES); + + const props = { + className: `${handles.html} ${classes}`, + "data-testid": testId, + }; + const Children = ( + <> + {children} + {text} + + ); + const Element = React.createElement(tag, props, Children); + + return <>{Element}; }; diff --git a/react/components/PayWithPix/PayWithPix.css b/react/components/PayWithPix/PayWithPix.css new file mode 100644 index 0000000..cef306a --- /dev/null +++ b/react/components/PayWithPix/PayWithPix.css @@ -0,0 +1,33 @@ +.PayWithPix { + display: flex; + column-gap: 26px; + align-items: center; + margin: 16px 0 24px; +} + +.PayWithPix__pixIcon { + width: 66px; + height: 24px; + display: block; +} + +.PayWithPix__wrapper { + display: flex; + flex-direction: column; +} + +.PayWithPix__price { + font-family: "Open Sans", sans-serif; + font-weight: 700; + font-size: 18px; + line-height: 25px; + color: rgba(0, 0, 0, 0.58); + margin: 0; +} + +.PayWithPix__discount { + font-family: "Open Sans", sans-serif; + font-weight: 300; + font-size: 13px; + color: #929292; +} diff --git a/react/components/PayWithPix/PayWithPix.tsx b/react/components/PayWithPix/PayWithPix.tsx new file mode 100644 index 0000000..2f54ace --- /dev/null +++ b/react/components/PayWithPix/PayWithPix.tsx @@ -0,0 +1,24 @@ +import React from "react"; +import { useProduct } from "vtex.product-context"; + +import style from "./PayWithPix.css"; + +const PayWithPix = () => { + const productContextValue = useProduct(); + + const discount = + (productContextValue?.product?.priceRange?.sellingPrice?.highPrice ?? 0) * + 0.9; + const priceFormatted = discount?.toFixed(2).toString().replace(".", ","); + + return ( +
+
+

R$ {priceFormatted}

+ 10 % de desconto +
+
+ ); +}; + +export { PayWithPix }; diff --git a/react/placeholder.tsx b/react/placeholder.tsx new file mode 100644 index 0000000..c58ba8c --- /dev/null +++ b/react/placeholder.tsx @@ -0,0 +1,16 @@ +import React, { useEffect } from "react"; + +const placeholder = () => { + useEffect(() => { + setTimeout(() => { + const selectorInput = document.querySelector( + ".vtex-address-form-4-x-input" + ); + selectorInput?.setAttribute("placeholder", "Digite seu CEP"); + }, 1000); + }, []); + + return <>; +}; + +export default placeholder; diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 6a916dc..96417fd 100644 --- a/store/blocks/pdp/product.jsonc +++ b/store/blocks/pdp/product.jsonc @@ -1,13 +1,11 @@ { "store.product": { "children": [ - "html#breadcrumb", "condition-layout.product#availability", - "flex-layout.row#description", - "flex-layout.row#specifications-title", - "product-specification-group#table", - "shelf.relatedProducts", - "product-questions-and-answers" + "rich-text#prateleira", + "flex-layout.row#shelf", + "product-questions-and-answers", + "newsletter" ] }, "html#breadcrumb": { @@ -18,20 +16,247 @@ }, "children": ["breadcrumb"] }, - "flex-layout.row#specifications-title": { - "children": ["rich-text#specifications"] - }, - "rich-text#specifications": { + + "html#imagens": { "props": { - "text": "##### Product Specifications" + "testId": "product-images" + }, + "children": ["flex-layout.row#product-image"] + }, + + "html#product-name": { + "props": { + "testId": "product-name" + }, + "children": ["flex-layout.row#product-name"] + }, + + "html#codigo": { + "props": { + "testId": "product-code" + }, + "children": ["product-identifier.product"] + }, + + "html#selling-price": { + "props": { + "testId": "product-price" + }, + "children": ["product-selling-price"] + }, + + "html#product-installments": { + "props": { + "testId": "product-installments" + }, + "children": ["product-installments"] + }, + + "html#pixzap": { + "props": { + "testId": "pix-price" + }, + "children": ["flex-layout.row#pix"] + }, + + "html#sku-selector": { + "props": { + "testId": "sku-selector" + }, + "children": ["sku-selector"] + }, + + "html#product-quantity": { + "props": { + "testId": "product-quantity" + }, + "children": ["flex-layout.row#product-quantity"] + }, + + "html#add-to-cart-button": { + "props": { + "testId": "add-to-cart-button" + }, + "children": ["add-to-cart-button"] + }, + + "html#shipping-simulator": { + "props": { + "testId": "shipping-simulator" + }, + "children": ["shipping-simulator"] + }, + + "html#product-description": { + "props": { + "testId": "product-description" + }, + "children": ["tab-layout#description"] + }, + + "html#slider": { + "props": { + "testId": "product-summary-list" + }, + "children": ["list-context.product-list#teste"] + }, + + "html#prateleira": { + "props": { + "blockClass": "prateleira", + "testId": "vtex-product-summary" + }, + "children": [ + "product-summary-image#shelf", + "product-summary-name", + "product-summary-space", + "product-list-price#summary", + "html#selling-price" + ] + }, + + "tab-layout#description": { + "children": ["tab-list#description", "tab-content#description"], + "props": { + "blockClass": "description", + "defaultActiveTabId": "description1" } }, - "flex-layout.row#description": { - "props": { - "marginBottom": 7 - }, - "children": ["product-description"] + + "tab-list#description": { + "children": [ + "tab-list.item#description1", + "tab-list.item#description2", + "tab-list.item#description3", + "tab-list.item#description4", + "tab-list.item#description5" + ] }, + + "tab-list.item#description1": { + "props": { + "tabId": "description1", + "label": "Descrição", + "defaultActiveTab": true + } + }, + + "tab-list.item#description2": { + "props": { + "tabId": "description2", + "label": "Descrição", + "defaultActiveTab": false + } + }, + + "tab-list.item#description3": { + "props": { + "tabId": "description3", + "label": "Descrição", + "defaultActiveTab": false + } + }, + + "tab-list.item#description4": { + "props": { + "tabId": "description4", + "label": "Descrição", + "defaultActiveTab": false + } + }, + + "tab-list.item#description5": { + "props": { + "tabId": "description5", + "label": "Descrição", + "defaultActiveTab": false + } + }, + + "tab-content#description": { + "children": [ + "tab-content.item#description1", + "tab-content.item#description2", + "tab-content.item#description3", + "tab-content.item#description4", + "tab-content.item#description5" + ] + }, + + "tab-content.item#description1": { + "children": ["image#description", "product-description"], + "props": { + "tabId": "description1" + } + }, + + "tab-content.item#description2": { + "children": ["image#description", "product-description"], + "props": { + "tabId": "description2" + } + }, + + "tab-content.item#description3": { + "children": ["image#description", "product-description"], + "props": { + "tabId": "description3" + } + }, + + "tab-content.item#description4": { + "children": ["image#description", "product-description"], + "props": { + "tabId": "description4" + } + }, + + "tab-content.item#description5": { + "children": ["image#description", "product-description"], + "props": { + "tabId": "description5" + } + }, + + "image#description": { + "props": { + "blockClass": "image-description", + "src": "https://agenciamagma.vtexassets.com/arquivos/ids/164491-800-auto?v=637781133812700000&width=800&height=auto&aspect=true" + } + }, + + "rich-text#prateleira": { + "props": { + "blockClass": "title-shelf", + "text": "Você também pode gostar:" + } + }, + + "product-summary.shelf#teste": { + "children": ["html#prateleira"] + }, + + "list-context.product-list#teste": { + "blocks": ["product-summary.shelf#teste"], + "children": ["slider-layout#prateleira"] + }, + + "slider-layout#prateleira": { + "props": { + "itemsPerPage": { + "desktop": 4, + "tablet": 3, + "phone": 2 + }, + "infinite": true, + "blockClass": "carousel" + } + }, + + "flex-layout.row#shelf": { + "children": ["html#slider"] + }, + "condition-layout.product#availability": { "props": { "conditions": [ @@ -45,6 +270,7 @@ }, "flex-layout.row#product-main": { "props": { + "blockClass": "principal", "colGap": 7, "rowGap": 7, "marginTop": 4, @@ -52,15 +278,33 @@ "paddingTop": 7, "paddingBottom": 7 }, + "children": ["flex-layout.col#mainpage-col"] + }, + + "flex-layout.row#mainpage-row": { + "props": { + "blockClass": "mainpage-row" + }, "children": ["flex-layout.col#stack", "flex-layout.col#right-col"] }, + "flex-layout.col#mainpage-col": { + "props": { + "blockClass": "mainpage-col" + }, + "children": [ + "html#breadcrumb", + "flex-layout.row#mainpage-row", + "html#product-description" + ] + }, + "stack-layout": { "props": { "blockClass": "product" }, "children": [ - "flex-layout.row#product-image", + "html#imagens", "product-bookmark", "product-specification-badges" ] @@ -78,7 +322,7 @@ "flex-layout.col#stack": { "children": ["stack-layout"], "props": { - "width": "60%", + "width": "51%", "rowGap": 0 } }, @@ -89,9 +333,10 @@ "props": { "aspectRatio": { "desktop": "auto", - "phone": "16:9" + "phone": "1:1" }, - "displayThumbnailsArrows": true + "displayThumbnailsArrows": true, + "thumbnailsOrientation": "horizontal" } }, "flex-layout.col#right-col": { @@ -100,24 +345,44 @@ "rowGap": 0 }, "children": [ - "flex-layout.row#product-name", + "html#product-name", + "html#codigo", "product-rating-summary", "flex-layout.row#list-price-savings", "flex-layout.row#selling-price", - "product-installments", - "product-separator", - "product-identifier.product", - "sku-selector", - "product-quantity", - "product-assembly-options", - "product-gifts", - "flex-layout.row#buy-button", + "html#product-installments", + "html#pixzap", + "html#sku-selector", + "flex-layout.row#buy-box", "availability-subscriber", - "shipping-simulator", - "share#default" + "html#shipping-simulator", + "share#default", + "placeholder" ] }, + "flex-layout.row#pix": { + "props": { + "blockClass": "pix-container" + }, + "children": ["image#pix", "pay-with-pix"] + }, + + "image#pix": { + "props": { + "blockClass": "pix-image", + "src": "assets/iconPix.svg" + } + }, + + "product-installments": { + "props": { + "installmentsCriteria": "max-quantity-without-interest", + "markers": ["discount"], + "message": "ou {installmentsNumber}x de {installmentValue} sem juros" + } + }, + "flex-layout.row#product-name": { "props": { "marginBottom": 3 @@ -125,6 +390,14 @@ "children": ["vtex.store-components:product-name"] }, + "newsletter": { + "props": { + "blockClass": "newsletter", + "label": "Assine nossa Newsletter", + "placeholder": "Digite seu e-mail" + } + }, + "sku-selector": { "props": { "variationsSpacing": 3, @@ -132,12 +405,33 @@ } }, + "flex-layout.row#buy-box": { + "props": { + "colGap": 0, + "blockClass": "buy-box", + "colSizing": "auto" + }, + + "children": ["html#product-quantity", "flex-layout.row#buy-button"] + }, + + "flex-layout.row#product-quantity": { + "props": { + "preventHorizontalStretch": true + }, + + "children": ["product-quantity"] + }, + "flex-layout.row#buy-button": { "props": { + "blockClass": "button-container", "marginTop": 4, - "marginBottom": 7 + "marginBottom": 7, + "preventHorizontalStretch": false, + "fullWidth": true }, - "children": ["add-to-cart-button"] + "children": ["html#add-to-cart-button"] }, "flex-layout.row#product-availability": { @@ -147,11 +441,34 @@ "marginBottom": 7, "paddingTop": 7 }, + "children": ["flex-layout.row#mainpage-row-availability"] + }, + + "flex-layout.row#mainpage-row-availability": { + "props": { + "blockClass": "mainpage-row" + }, + "children": ["flex-layout.col#mainpage-col-availability"] + }, + + "flex-layout.row#teste": { "children": [ "flex-layout.col#stack", "flex-layout.col#right-col-availability" ] }, + + "flex-layout.col#mainpage-col-availability": { + "props": { + "blockClass": "mainpage-col" + }, + "children": [ + "html#breadcrumb", + "flex-layout.row#teste", + "html#product-description" + ] + }, + "flex-layout.col#right-col-availability": { "props": { "preventVerticalStretch": true, @@ -159,12 +476,13 @@ "blockClass": "info-availability" }, "children": [ - "flex-layout.row#product-name", - "product-identifier.product", - "sku-selector", - "flex-layout.row#availability" + "html#product-name", + "html#codigo", + "flex-layout.row#availability", + "html#sku-selector" ] }, + "flex-layout.row#availability": { "props": { "blockClass": "message-availability" diff --git a/store/interfaces.json b/store/interfaces.json index c4b2ac4..c587e6b 100644 --- a/store/interfaces.json +++ b/store/interfaces.json @@ -5,5 +5,15 @@ "html": { "component": "html", "composition": "children" + }, + + "placeholder": { + "component": "placeholder" + }, + "product-context": { + "component": "ProductContext" + }, + "pay-with-pix": { + "component": "PayWithPix" } } diff --git a/styles/configs/font.faces.css b/styles/configs/font.faces.css new file mode 100644 index 0000000..8b03b9a --- /dev/null +++ b/styles/configs/font.faces.css @@ -0,0 +1,4 @@ +/* @font-face { + font-family: "Open Sans"; + src: url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +} */ diff --git a/styles/configs/style.json b/styles/configs/style.json index 7b90b6b..e729845 100644 --- a/styles/configs/style.json +++ b/styles/configs/style.json @@ -1,349 +1,351 @@ { - "typeScale": [ - 3, 2.25, 1.5, 1.25, 1, 0.875, 0.75 - ], - "spacing": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16], - "customMedia": [ - { "s": 20 }, - { "ns": { - "value": 40, - "minWidth": true - } - }, - { "m": { - "value": 40, - "minWidth": true - } - }, - { "l": { - "value": 64, - "minWidth": true - } - }, - { "xl": { - "value": 80, - "minWidth": true - } - } - ], - "colors": { - "black-90": "rgba(0,0,0,.9)", - "black-80": "rgba(0,0,0,.8)", - "black-70": "rgba(0,0,0,.7)", - "black-60": "rgba(0,0,0,.6)", - "black-50": "rgba(0,0,0,.5)", - "black-40": "rgba(0,0,0,.4)", - "black-30": "rgba(0,0,0,.3)", - "black-20": "rgba(0,0,0,.2)", - "black-10": "rgba(0,0,0,.1)", - "black-05": "rgba(0,0,0,.05)", - "black-025": "rgba(0,0,0,.025)", - "black-0125": "rgba(0,0,0,.0125)", + "typeScale": [3, 2.25, 1.5, 1.25, 1, 0.875, 0.75], + "spacing": [0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 3, 4, 8, 16], + "customMedia": [ + { "s": 20 }, + { + "ns": { + "value": 40, + "minWidth": true + } + }, + { + "m": { + "value": 40, + "minWidth": true + } + }, + { + "l": { + "value": 64, + "minWidth": true + } + }, + { + "xl": { + "value": 80, + "minWidth": true + } + } + ], + "colors": { + "black-90": "rgba(0,0,0,.9)", + "black-80": "rgba(0,0,0,.8)", + "black-70": "rgba(0,0,0,.7)", + "black-60": "rgba(0,0,0,.6)", + "black-50": "rgba(0,0,0,.5)", + "black-40": "rgba(0,0,0,.4)", + "black-30": "rgba(0,0,0,.3)", + "black-20": "rgba(0,0,0,.2)", + "black-10": "rgba(0,0,0,.1)", + "black-05": "rgba(0,0,0,.05)", + "black-025": "rgba(0,0,0,.025)", + "black-0125": "rgba(0,0,0,.0125)", - "white-90": "rgba(255,255,255,.9)", - "white-80": "rgba(255,255,255,.8)", - "white-70": "rgba(255,255,255,.7)", - "white-60": "rgba(255,255,255,.6)", - "white-50": "rgba(255,255,255,.5)", - "white-40": "rgba(255,255,255,.4)", - "white-30": "rgba(255,255,255,.3)", - "white-20": "rgba(255,255,255,.2)", - "white-10": "rgba(255,255,255,.1)", - "white-05": "rgba(255,255,255,.05)", - "white-025": "rgba(255,255,255,.025)", - "white-0125": "rgba(255,255,255,.0125)" + "white-90": "rgba(255,255,255,.9)", + "white-80": "rgba(255,255,255,.8)", + "white-70": "rgba(255,255,255,.7)", + "white-60": "rgba(255,255,255,.6)", + "white-50": "rgba(255,255,255,.5)", + "white-40": "rgba(255,255,255,.4)", + "white-30": "rgba(255,255,255,.3)", + "white-20": "rgba(255,255,255,.2)", + "white-10": "rgba(255,255,255,.1)", + "white-05": "rgba(255,255,255,.05)", + "white-025": "rgba(255,255,255,.025)", + "white-0125": "rgba(255,255,255,.0125)" + }, + "semanticColors": { + "background": { + "base": "#ffffff", + "base--inverted": "#03044e", + "action-primary": "#0F3E99", + "action-secondary": "#eef3f7", + "emphasis": "#f71963", + "disabled": "#f2f4f5", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "hover-background": { + "action-primary": "#072c75", + "action-secondary": "#dbe9fd", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#e13232", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "active-background": { + "action-primary": "#0c389f", + "action-secondary": "#d2defc", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "text": { + "action-primary": "#0F3E99", + "action-secondary": "#eef3f7", + "link": "#0F3E99", + "emphasis": "#f71963", + "disabled": "#979899", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "visited-text": { + "link": "#0c389f" + }, + "hover-text": { + "action-primary": "#072c75", + "action-secondary": "#dbe9fd", + "link": "#0c389f", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#e13232", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0" + }, + "active-text": { + "link": "#0c389f", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0" + }, + "border": { + "action-primary": "#0F3E99", + "action-secondary": "#eef3f7", + "emphasis": "#f71963", + "disabled": "#e3e4e6", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "hover-border": { + "action-primary": "#072c75", + "action-secondary": "#dbe9fd", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#e13232", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "active-border": { + "action-primary": "#0c389f", + "action-secondary": "#d2defc", + "emphasis": "#dd1659", + "success": "#8bc34a", + "success--faded": "#eafce3", + "danger": "#ff4c4c", + "danger--faded": "#ffe6e6", + "warning": "#ffb100", + "warning--faded": "#fff6e0", + "muted-1": "#727273", + "muted-2": "#979899", + "muted-3": "#cacbcc", + "muted-4": "#e3e4e6", + "muted-5": "#f2f4f5" + }, + "on": { + "base": "#3f3f40", + "base--inverted": "#ffffff", + "action-primary": "#ffffff", + "action-secondary": "#0F3E99", + "emphasis": "#ffffff", + "disabled": "#979899", + "success": "#ffffff", + "success--faded": "#3f3f40", + "danger": "#ffffff", + "danger--faded": "#3f3f40", + "warning": "#ffffff", + "warning--faded": "#1a1a1a", + "muted-1": "#ffffff", + "muted-2": "#ffffff", + "muted-3": "#3f3f40", + "muted-4": "#3f3f40", + "muted-5": "#3f3f40" + }, + "hover-on": { + "action-primary": "#ffffff", + "action-secondary": "#0F3E99", + "emphasis": "#ffffff", + "success": "#ffffff", + "success--faded": "#3f3f40", + "danger": "#ffffff", + "danger--faded": "#3f3f40", + "warning": "#ffffff", + "warning--faded": "#1a1a1a" + }, + "active-on": { + "action-primary": "#ffffff", + "action-secondary": "#0F3E99", + "emphasis": "#ffffff", + "success": "#ffffff", + "success--faded": "#3f3f40", + "danger": "#ffffff", + "danger--faded": "#3f3f40", + "warning": "#ffffff", + "warning--faded": "#1a1a1a" + } + }, + "borderWidths": [0, 0.125, 0.25, 0.5, 1, 2], + "borderRadius": [0, 0.125, 0.25, 0.5, 1], + "widths": [1, 2, 4, 8, 16], + "maxWidths": [1, 2, 4, 8, 16, 32, 48, 64, 96], + "heights": [1, 2, 4, 8, 16], + "sizes": [ + { "name": "small", "value": 2 }, + { "name": "regular", "value": 2.5 }, + { "name": "large", "value": 3 } + ], + "typography": { + "measure": [30, 34, 20], + "styles": { + "heading-1": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "700", + "fontSize": "3rem", + "textTransform": "initial", + "letterSpacing": "0" }, - "semanticColors": { - "background": { - "base": "#ffffff", - "base--inverted": "#03044e", - "action-primary": "#0F3E99", - "action-secondary": "#eef3f7", - "emphasis": "#f71963", - "disabled": "#f2f4f5", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "hover-background": { - "action-primary": "#072c75", - "action-secondary": "#dbe9fd", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#e13232", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "active-background": { - "action-primary": "#0c389f", - "action-secondary": "#d2defc", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "text": { - "action-primary": "#0F3E99", - "action-secondary": "#eef3f7", - "link": "#0F3E99", - "emphasis": "#f71963", - "disabled": "#979899", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "visited-text": { - "link": "#0c389f" - }, - "hover-text": { - "action-primary": "#072c75", - "action-secondary": "#dbe9fd", - "link": "#0c389f", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#e13232", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0" - }, - "active-text": { - "link": "#0c389f", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0" - }, - "border": { - "action-primary": "#0F3E99", - "action-secondary": "#eef3f7", - "emphasis": "#f71963", - "disabled": "#e3e4e6", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "hover-border": { - "action-primary": "#072c75", - "action-secondary": "#dbe9fd", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#e13232", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "active-border": { - "action-primary": "#0c389f", - "action-secondary": "#d2defc", - "emphasis": "#dd1659", - "success": "#8bc34a", - "success--faded": "#eafce3", - "danger": "#ff4c4c", - "danger--faded": "#ffe6e6", - "warning": "#ffb100", - "warning--faded": "#fff6e0", - "muted-1": "#727273", - "muted-2": "#979899", - "muted-3": "#cacbcc", - "muted-4": "#e3e4e6", - "muted-5": "#f2f4f5" - }, - "on": { - "base": "#3f3f40", - "base--inverted": "#ffffff", - "action-primary": "#ffffff", - "action-secondary": "#0F3E99", - "emphasis": "#ffffff", - "disabled": "#979899", - "success": "#ffffff", - "success--faded": "#3f3f40", - "danger": "#ffffff", - "danger--faded": "#3f3f40", - "warning": "#ffffff", - "warning--faded": "#1a1a1a", - "muted-1": "#ffffff", - "muted-2": "#ffffff", - "muted-3": "#3f3f40", - "muted-4": "#3f3f40", - "muted-5": "#3f3f40" - }, - "hover-on": { - "action-primary": "#ffffff", - "action-secondary": "#0F3E99", - "emphasis": "#ffffff", - "success": "#ffffff", - "success--faded": "#3f3f40", - "danger": "#ffffff", - "danger--faded": "#3f3f40", - "warning": "#ffffff", - "warning--faded": "#1a1a1a" - }, - "active-on": { - "action-primary": "#ffffff", - "action-secondary": "#0F3E99", - "emphasis": "#ffffff", - "success": "#ffffff", - "success--faded": "#3f3f40", - "danger": "#ffffff", - "danger--faded": "#3f3f40", - "warning": "#ffffff", - "warning--faded": "#1a1a1a" - } + "heading-2": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "700", + "fontSize": "2.25rem", + "textTransform": "initial", + "letterSpacing": "0" }, - "borderWidths": [0, 0.125, 0.25, 0.5, 1, 2], - "borderRadius": [0, 0.125, 0.25, 0.5, 1], - "widths": [1, 2, 4, 8, 16], - "maxWidths": [1, 2, 4, 8, 16, 32, 48, 64, 96], - "heights": [1, 2, 4, 8, 16], - "sizes": [ - {"name": "small", "value": 2}, - {"name": "regular", "value": 2.5}, - {"name": "large", "value": 3} - ], - "typography":{ - "measure": [30, 34, 20], - "styles": { - "heading-1": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "700", - "fontSize": "3rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "heading-2": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "700", - "fontSize": "2.25rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "heading-3": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "700", - "fontSize": "1.75rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "heading-4": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "1.5rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "heading-5": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "1.25rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "heading-6": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "1.25rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "body": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "1rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "small": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "0.875rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "mini": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "normal", - "fontSize": "0.75rem", - "textTransform": "initial", - "letterSpacing": "0" - }, - "action": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "500", - "fontSize": "1rem", - "textTransform": "uppercase", - "letterSpacing": "0" - }, - "action--small": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "500", - "fontSize": "0.875rem", - "textTransform": "uppercase", - "letterSpacing": "0" - }, - "action--large": { - "fontFamily": "San Francisco, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", - "fontWeight": "500", - "fontSize": "1.25rem", - "textTransform": "uppercase", - "letterSpacing": "0" - }, - "code": { - "fontFamily": "Consolas, monaco, monospace", - "fontWeight": "normal", - "fontSize": "1rem", - "textTransform": "initial", - "letterSpacing": "0" - } - } + "heading-3": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "700", + "fontSize": "1.75rem", + "textTransform": "initial", + "letterSpacing": "0" }, - "opacity": [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.05, 0.025, 0] + "heading-4": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "1.5rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "heading-5": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "1.25rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "heading-6": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "1.25rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "body": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "1rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "small": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "0.875rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "mini": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "normal", + "fontSize": "0.75rem", + "textTransform": "initial", + "letterSpacing": "0" + }, + "action": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "500", + "fontSize": "1rem", + "textTransform": "uppercase", + "letterSpacing": "0" + }, + "action--small": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "500", + "fontSize": "0.875rem", + "textTransform": "uppercase", + "letterSpacing": "0" + }, + "action--large": { + "fontFamily": "Open Sans, -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica, ubuntu, roboto, noto, segoe ui, arial, sans-serif", + "fontWeight": "500", + "fontSize": "1.25rem", + "textTransform": "uppercase", + "letterSpacing": "0" + }, + "code": { + "fontFamily": "Consolas, monaco, monospace", + "fontWeight": "normal", + "fontSize": "1rem", + "textTransform": "initial", + "letterSpacing": "0" + } + } + }, + "opacity": [1, 0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1, 0.05, 0.025, 0] } diff --git a/styles/css/agenciamagma.store-theme.css b/styles/css/agenciamagma.store-theme.css index 5e37ba5..c73a8c3 100644 --- a/styles/css/agenciamagma.store-theme.css +++ b/styles/css/agenciamagma.store-theme.css @@ -6,11 +6,22 @@ 1800px + : Big desktop */ /* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); /* Grid breakpoints */ .html { background-color: red; } .html--pdp-breadcrumb { - background-color: green; + background-color: transparent; +} + +.relative { + display: none; +} + +.agenciamagma-store-theme-5-x-html--prateleira { + display: flex; + flex-direction: column; + height: 100%; } \ No newline at end of file diff --git a/styles/css/vtex.address-form.css b/styles/css/vtex.address-form.css new file mode 100644 index 0000000..ca08bc9 --- /dev/null +++ b/styles/css/vtex.address-form.css @@ -0,0 +1,20 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +:global(.vtex-input__label) { + margin-top: 16px; + font-size: 0; +} +:global(.vtex-input__label)::before { + content: "CALCULAR FRETE:"; + font-size: 14px; + line-height: 19px; + color: #929292; +} \ No newline at end of file diff --git a/styles/css/vtex.adress-form.css b/styles/css/vtex.adress-form.css new file mode 100644 index 0000000..c1f9f02 --- /dev/null +++ b/styles/css/vtex.adress-form.css @@ -0,0 +1,10 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ \ No newline at end of file diff --git a/styles/css/vtex.breadcrumb.css b/styles/css/vtex.breadcrumb.css new file mode 100644 index 0000000..3f0a375 --- /dev/null +++ b/styles/css/vtex.breadcrumb.css @@ -0,0 +1,32 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.container { + padding: 0; + font-size: 14px; +} +.container .homeIcon { + display: none; +} +.container .homeLink { + padding-left: 0; +} +.container .homeLink::before { + content: "Home"; + font-size: 14px; + line-height: 19px; + color: #929292; +} + +.agenciamagma-store-theme-5-x-html--prateleira { + display: flex; + flex-direction: column; + height: 100%; +} \ No newline at end of file diff --git a/styles/css/vtex.flex-layout.css b/styles/css/vtex.flex-layout.css index a7c5732..afd54e1 100644 --- a/styles/css/vtex.flex-layout.css +++ b/styles/css/vtex.flex-layout.css @@ -1,98 +1,103 @@ -.flexRowContent--menu-link, -.flexRowContent--main-header { - padding: 0 0.5rem; +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.flexRowContent { + padding: 0; + margin: 0; +} +@media screen and (max-width: 1024px) { + .flexRowContent { + flex-direction: column; + } + .flexRowContent .flexRowContent--buy-box { + flex-direction: row; + } +} +@media screen and (max-width: 1024px) and (max-width: 768px) { + .flexRowContent .flexRowContent--buy-box { + flex-direction: column; + } +} +.flexRowContent .flexColChild .product-identifier--productReference { + float: right; +} +.flexRowContent .pix-container .imageElement { + width: 66px; + height: 24px; } -@media screen and (min-width: 40em) { - .flexRowContent--menu-link, - .flexRowContent--main-header { - padding: 0 1rem; +.product-images { + padding-left: 0; +} + +.product-identifier__label { + display: none; +} + +.flexRowContent--shipping-container .stretchChildrenWidth { + flex-direction: column; +} + +.flexRowContent--button-container { + margin-bottom: 10px; +} +.flexRowContent--button-container :global(.vtex-button) { + background-color: #000; + border: 0; + height: 50px; + margin-left: 10px; + border-radius: 0; +} +@media screen and (max-width: 768px) { + .flexRowContent--button-container :global(.vtex-button) { + margin: 0; + height: 74px; + margin-top: 10px; + } +} +@media screen and (max-width: 767px) { + .flexRowContent--button-container :global(.vtex-button) :global(.vtex-add-to-cart-button-0-x-buttonDataContainer) { + padding: 0 56px; } } -@media screen and (min-width: 80rem) { - .flexRowContent--menu-link, - .flexRowContent--main-header { - padding: 0 0.25rem; - } +.flexRow--buy-box .stretchChildrenWidth:nth-child(2n) { + width: 100% !important; } -.flexRowContent--menu-link { - background-color: #03044e; - color: #fff; +:global(.vtex-product-identifier-0-x-product-identifier__label), +:global(.vtex-product-identifier-0-x-product-identifier__separator) { + display: none; } -.flexRowContent--main-header { - background-color: #f0f0f0; +:global(.vtex-flex-layout-0-x-flexColChild) { + order: -1; } -.flexRowContent--main-header-mobile { - align-items: center; - padding: 0.625rem 0.5rem; - background-color: #f0f0f0; -} - -.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) { - color: #ffffff; - font-size: 14px; -} - -.flexRowContent--main-header :global(.vtex-menu-2-x-styledLink) { - color: #727273; - font-size: 14px; -} - -.flexRow--deals { - background-color: #0F3E99; - padding: 14px 0px; -} - -.flexRow--deals .stretchChildrenWidth { - align-items: center; -} - -.flexRow--deals .flexCol { - align-items: center; - margin-bottom: 5px; - padding-top: 5px; -} - -.flexCol--filterCol { - max-width: 500px; - min-width: 230px; -} - -.flexCol--productCountCol { - align-items: flex-start; -} - -.flexCol--orderByCol { - align-items: flex-end; -} - -.flexCol--orderByMobileCol { - width: 42%; -} - -.flexCol--filterMobileCol { - width: 38%; -} - -.flexRow--quickviewMainRow { +:global(.vtex-flex-layout-0-x-flexRow--pix-container) { display: flex; - max-height: 100%; + align-items: center; } - -.flexColChild--quickviewDetails:first-child { - overflow-y: auto; - height: 66% !important; - overflow-x: hidden; +@media screen and (max-width: 1024px) { + :global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) { + flex-direction: row; + display: flex; + } } - -.flexColChild--quickviewDetails:last-child { - height: 34% !important; -} - -.flexRow--addToCartRow { - padding-bottom: 1rem; +:global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) { + display: flex; + align-items: center; + width: auto !important; + padding-right: 26px; } +:global(.vtex-flex-layout-0-x-flexRow--pix-container) :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) :global(.vtex-store-components-3-x-imageElement) { + width: 66px; + height: 24px; +} \ No newline at end of file diff --git a/styles/css/vtex.login.css b/styles/css/vtex.login.css new file mode 100644 index 0000000..6924fa4 --- /dev/null +++ b/styles/css/vtex.login.css @@ -0,0 +1,21 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +:global(.vtex-address-form__postalCode + .vtex-address-form__postalCode-forgottenURL + a) { + color: #000; +} + +:global(.agenciamagma-store-theme-5-x-html--prateleira) { + display: flex; + flex-direction: column; + height: 100%; +} \ No newline at end of file diff --git a/styles/css/vtex.oriduct-price.css b/styles/css/vtex.oriduct-price.css new file mode 100644 index 0000000..7ed8acc --- /dev/null +++ b/styles/css/vtex.oriduct-price.css @@ -0,0 +1,17 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.currencyInteger { + display: none; +} + +.savings { + display: none; +} \ No newline at end of file diff --git a/styles/css/vtex.product-price.css b/styles/css/vtex.product-price.css index 95f4cfe..704d51c 100644 --- a/styles/css/vtex.product-price.css +++ b/styles/css/vtex.product-price.css @@ -1,79 +1,36 @@ -.listPrice { - color: #727273; - margin-bottom: .25rem; - font-size: 1rem; +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.listPrice, +.savings { + display: none; } .sellingPrice { - color: #3f3f40; - font-size: 1.25rem; -} - -.sellingPriceValue { - font-size: 2.25rem; + font-family: "Open Sans", sans-serif; + font-style: normal; font-weight: 700; + font-size: 25px; + line-height: 38px; + color: #000000; } .installments { - color: #727273; - margin-bottom: 1rem; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 700; + font-size: 16px; + line-height: 22px; + color: #929292; } -.savings { - font-weight: 500; - color: #79B03A; -} - -.sellingPriceValue--summary { - font-size: 1.25rem; - font-weight: 600; - color: #2E2E2E; -} - -.savings--summary { - background: #8BC34A; - border-radius: 1000px; - align-items: center; - display: flex; - - padding-left: 0.5rem; - padding-right: 0.5rem; - font-size: 0.875rem; - font-weight: 600; - vertical-align: baseline; - color: #FFFFFF; -} - -.savings-discount--summary { - font-size: 0.875rem; - font-weight: 600; - vertical-align: baseline; - color: #FFFFFF; - padding-left: 0.5rem; - padding-right: 0.5rem; -} - -.listPrice--summary { - margin-bottom: 0.25rem; - font-size: .875rem; -} - -.installments--summary { - margin-bottom: 2rem; - font-size: 0.875rem; -} - -.savings--summaryPercentage { - background: #0f3e99; - border-radius: 1000px; - align-items: center; - display: flex; -} - -.savingsPercentage--summaryPercentage { - font-size: 0.875rem; - font-weight: 600; - vertical-align: baseline; - color: #FFFFFF; - padding: 0.25rem 0.5rem 0.25rem 0.5rem; -} +:global(.vtex-product-price-1-x-listPrice) { + display: none; +} \ No newline at end of file diff --git a/styles/css/vtex.product-quantity.css b/styles/css/vtex.product-quantity.css new file mode 100644 index 0000000..4d11689 --- /dev/null +++ b/styles/css/vtex.product-quantity.css @@ -0,0 +1,46 @@ +@charset "UTF-8"; +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.quantitySelectorContainer { + border: 0; + margin: 0; +} +.quantitySelectorContainer .quantitySelectorTitle { + display: none; +} + +:global(.vtex-numeric-stepper__input), +:global(.vtex-numeric-stepper__plus-button), +:global(.vtex-numeric-stepper__minus-button) { + height: 50px; + background-color: white; +} + +:global(.vtex-numeric-stepper__input) { + border-left: 0; + border-right: 0; +} +@media screen and (max-width: 1024px) { + :global(.vtex-numeric-stepper__input) { + width: 44px; + } +} + +:global(.vtex-add-to-cart-button-0-x-buttonText) { + font-size: 0; +} +:global(.vtex-add-to-cart-button-0-x-buttonText)::before { + content: "ADICIONAR À SACOLA"; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #ffffff; +} \ No newline at end of file diff --git a/styles/css/vtex.product-summary-name.css b/styles/css/vtex.product-summary-name.css new file mode 100644 index 0000000..46ff1ab --- /dev/null +++ b/styles/css/vtex.product-summary-name.css @@ -0,0 +1,16 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.container .productNameContainer .productBrand { + font-weight: 400; + font-size: 18px; + line-height: 25px; + color: #000000; +} \ No newline at end of file diff --git a/styles/css/vtex.produvt-quantity.css b/styles/css/vtex.produvt-quantity.css new file mode 100644 index 0000000..9a30b83 --- /dev/null +++ b/styles/css/vtex.produvt-quantity.css @@ -0,0 +1,22 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.quatitySelectorContainer { + border: 0; +} +.quatitySelectorContainer .quantitySelectorTitle { + display: none; +} +.quatitySelectorContainer .quatitySelectorStepper { + border: 0; +} +.quatitySelectorContainer .quatitySelectorStepper .hideDecorator { + background-color: blueviolet; +} \ No newline at end of file diff --git a/styles/css/vtex.rich-text.css b/styles/css/vtex.rich-text.css index 34c4328..fdff190 100644 --- a/styles/css/vtex.rich-text.css +++ b/styles/css/vtex.rich-text.css @@ -6,4 +6,44 @@ 1800px + : Big desktop */ /* Media Query M3 */ -/* Grid breakpoints */ \ No newline at end of file +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.container--title-shelf { + text-align: center; + display: block !important; +} +.container--title-shelf .paragraph--title-shelf { + font-size: 24px; + line-height: 38px; + text-align: center; + color: #575757; + margin: 0; +} +@media screen and (max-width: 767px) { + .container--title-shelf .paragraph--title-shelf { + font-size: 20px; + } +} + +:global(.vtex-input__error) { + display: none; +} + +:global(.vtex-store-components-3-x-imageElement--image-description) { + max-width: 632px; + max-height: 632px; + margin: 32px 0 0 32px; +} +@media screen and (min-width: 1920px) { + :global(.vtex-store-components-3-x-imageElement--image-description) { + max-width: unset; + max-height: unset; + } +} +@media screen and (max-width: 1024px) { + :global(.vtex-store-components-3-x-imageElement--image-description) { + max-width: 944px; + max-height: 944px; + margin-left: 0; + } +} \ No newline at end of file diff --git a/styles/css/vtex.shelf.css b/styles/css/vtex.shelf.css new file mode 100644 index 0000000..5e01665 --- /dev/null +++ b/styles/css/vtex.shelf.css @@ -0,0 +1,13 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.relatedProducts { + margin: 0 40px; +} \ No newline at end of file diff --git a/styles/css/vtex.slider-layout.css b/styles/css/vtex.slider-layout.css index 55f431f..db58dd9 100644 --- a/styles/css/vtex.slider-layout.css +++ b/styles/css/vtex.slider-layout.css @@ -1,31 +1,125 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ .sliderLayoutContainer { + background-color: transparent; + height: 630px; +} +.sliderLayoutContainer .slide { + margin: 0 4px; +} +.sliderLayoutContainer .sliderRightArrow, +.sliderLayoutContainer .sliderLeftArrow { + bottom: 48%; + margin: 0; + padding: 0; +} +@media screen and (max-width: 1024px) { + .sliderLayoutContainer .sliderRightArrow, + .sliderLayoutContainer .sliderLeftArrow { + display: block; + } +} +.sliderLayoutContainer .sliderRightArrow .caretIcon, +.sliderLayoutContainer .sliderLeftArrow .caretIcon { + display: none; +} +.sliderLayoutContainer .sliderLeftArrow::after { + content: ""; + display: block; + background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.000193945 15.2383L10.9291 30.1191L11.2002 27.7468L2.30458 15.2383L11.2002 2.89145L10.9291 0.519139L0.000193945 15.2383Z' fill='black'/%3E%3C/svg%3E%0A"); + background-repeat: no-repeat; + background-size: 100% 100%; + width: 11px; + height: 30px; +} +.sliderLayoutContainer .sliderRightArrow::after { + content: ""; + display: block; + background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 15.4004L1.07091 0.519531L0.799804 2.89184L9.69542 15.4004L0.799802 27.7472L1.07091 30.1195L11.9998 15.4004Z' fill='black'/%3E%3C/svg%3E "); + background-repeat: no-repeat; + background-size: 100% 100%; + width: 11px; + height: 30px; +} +.sliderLayoutContainer .paginationDotsContainer { + display: flex; + align-items: center; + margin-bottom: 64px; +} +.sliderLayoutContainer .paginationDotsContainer .paginationDot { + width: 10px; + height: 10px; + background-color: black; + border: none; +} +.sliderLayoutContainer .paginationDotsContainer .paginationDot--isActive { + width: 17px !important; + height: 17px !important; + background-color: white; + border: 0.5px solid #000000; +} + +:global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) { + max-height: 314px !important; +} + +:global(.vtex-product-price-1-x-sellingPrice) { + font-weight: 700; + font-size: 25px; + display: block; + text-align: center; + line-height: 33px; + color: #000000; +} +@media screen and (max-width: 1024px) { + :global(.vtex-product-price-1-x-sellingPrice) { + font-size: 18px; + } +} + +:global(.vtex-product-summary-2-x-nameContainer) { + padding-bottom: 8px; + text-align: center; justify-content: center; } - -.sliderLayoutContainer--carousel { - background-color: #F0F0F0; - min-height: 450px; +:global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) { + font-weight: 400; + font-size: 18px; + line-height: 25px; + color: #000000; + text-align: center; + word-wrap: none; +} +@media screen and (max-width: 1024px) { + :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) { + font-size: 14px; + } } -.sliderTrackContainer { - max-width: 100%; +:global(.vtex-product-summary-2-x-element) { + padding: 0; } -.paginationDotsContainer { - margin-top: .5rem; - margin-bottom: .5rem; +:global(.vtex-rich-text-0-x-container) { + display: none; } -.layoutContainer--shelf { - margin-top: 20px; - margin-bottom: 20px; - max-width: 96rem; - min-height: 550px; +:global(.vtex-slider-layout-0-x-sliderTrackContainer) { + margin: 0 27px 32px 27px; } -.slide--shelf { - margin-bottom: 25px; - padding-left: .5rem; - padding-right: .5rem; - min-height: 550px; +:global(.vtex-slider-layout-0-x-sliderTrack) { + margin-bottom: 32px; } + +:global(.vtex-slider-layout-0-x-slideChildrenContainer) { + max-width: 314px; +} \ No newline at end of file diff --git a/styles/css/vtex.store-components.css b/styles/css/vtex.store-components.css index f8fa6cb..0fabb89 100644 --- a/styles/css/vtex.store-components.css +++ b/styles/css/vtex.store-components.css @@ -1,3 +1,4 @@ +@charset "UTF-8"; /* 0 - 600PX: Phone 600 - 900px: Table portrait @@ -6,7 +7,529 @@ 1800px + : Big desktop */ /* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); /* Grid breakpoints */ +.container { + padding: 0 40px; +} +@media screen and (min-width: 1920px) { + .container { + max-width: 115rem !important; + padding: 0; + } +} +.container .productNameContainer { + font-weight: 300; + font-size: 20px; + line-height: 34px; + color: #575757; + text-align: end; + margin-bottom: 8px; +} +@media screen and (max-width: 1024px) { + .container .productNameContainer { + text-align: unset; + } +} +.container .skuSelectorContainer { + display: flex; + flex-direction: column-reverse; + border: 0; +} +.container .skuSelectorContainer .skuSelectorItem { + border: 1px solid #989898; + border-radius: 50%; + width: 44px; + height: 44px; + margin-right: 16px; + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorItem.skuSelectorItem--selected { + border: 2px solid #000; +} +.container .skuSelectorContainer .skuSelectorItem.skuSelectorItem--selected .diagonalCross { + color: #000; + border: 2px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorName { + font-size: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorName::before { + content: "OUTROS TAMANHOS:"; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #929292; +} +.container .skuSelectorContainer .skuSelectorOptionsList { + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorImageValue { + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorNameSeparator, +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorSelectorImageValue { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorName { + font-size: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorName::before { + content: "OUTRAS CORES: "; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #929292; +} +.container .skuSelectorContainer .skuSelectorInternalBox { + padding: 0; + border-radius: 50%; + border: 0; +} +.container .skuSelectorContainer .skuSelectorInternalBox .skuSelectorItemTextValue { + font-size: 14px; + padding: 0; +} +.container .skuSelectorContainer .diagonalCross { + border: 1px; + width: 10px; + color: #989898; + margin: 0 auto; + transform: rotate(60deg); +} +.container .skuSelectorContainer .frameAround { + display: none; +} + +.shippingContainer { + position: relative; + margin-top: 16px; + margin-bottom: 16px; +} +@media screen and (min-width: 768px) { + .shippingContainer { + max-width: 280px; + } +} +.shippingContainer :global(.vtex-button) { + font-size: 0; + background-color: black; + height: 50px; + max-width: 50px; + border: none; + border-radius: 0; + top: 27px; + position: absolute; + right: 0; +} +.shippingContainer :global(.vtex-button)::before { + text-align: center; + content: "OK"; + font-weight: 600; + font-size: 14px; + line-height: 19px; + color: #ffffff; +} +.shippingContainer :global(.vtex-button__label) { + height: 0; + width: 0; + padding: 0; +} +.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) { + text-decoration: underline; + position: absolute; + right: -50%; + top: calc(50% + 13.5px); + transform: translateY(-50%); + padding: 0; +} +@media screen and (max-width: 768px) { + .shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) { + position: unset; + display: block; + text-align: end; + width: 100%; + transform: none; + margin-top: 8px; + } +} +.shippingContainer :global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) { + display: none; +} + +.figure { + height: 100%; +} + +.productImagesThumb { + margin-right: 16px; + width: 90px !important; + height: 90px !important; +} + +.carouselGaleryThumbs { + margin: 0; +} +@media screen and (max-width: 1024px) { + .carouselGaleryThumbs { + display: block; + } +} +.carouselGaleryThumbs :global(.vtex-store-components-3-x-productImagesThumbCaret) { + display: none; +} + +.shippingTable { + border: none; + padding-top: unset; + margin-top: 16px; + table-layout: fixed; + width: 100%; + max-width: 362px; +} +.shippingTable .shippingTableRow { + display: flex; +} +.shippingTable .shippingTableRow .shippingTableCell { + font-family: "Open Sans", sans-serif; + font-size: 12px; + line-height: 16px; + color: #afafaf; + padding: 0 0 15px 0; +} +.shippingTable .shippingTableRow .shippingTableCell .shippingTableRadioBtn { + display: none; +} +.shippingTable .shippingTableRow .shippingTableCellDeliveryName { + width: 33%; + padding-left: 0; + order: 1; +} +.shippingTable .shippingTableRow .shippingTableCellDeliveryEstimate { + width: 33%; + padding-left: 0; + order: 3; +} +.shippingTable .shippingTableRow .shippingTableCellDeliveryPrice { + width: 25%; + padding-left: 0; + order: 2; +} +.shippingTable .shippingTableHead { + display: block; + margin-bottom: 15px; +} +.shippingTable .shippingTableHead .shippingTableHeadDeliveryName { + width: 33%; + text-align: left; + order: 1; +} +.shippingTable .shippingTableHead .shippingTableHeadDeliveryEstimate { + width: 33%; + text-align: left; + order: 3; +} +.shippingTable .shippingTableHead .shippingTableHeadDeliveryPrice { + width: 25%; + text-align: left; + order: 2; +} + .newsletter { - background: red; + background: #000; + padding: 32px 0 16px 0; +} +@media screen and (max-width: 1024px) { + .newsletter { + padding: 64px 0 16px 0; + } +} +@media screen and (max-width: 1024px) { + .newsletter .container { + padding: 0 16px; + } +} +.newsletter .form { + justify-content: end; + max-width: 774px !important; +} +@media screen and (max-width: 1024px) { + .newsletter .form { + max-width: 992px !important; + } +} +.newsletter .form :global(.vtex-button__label) { + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #ffffff; +} +.newsletter .form :global(.vtex-button__label)::before { + display: none; +} +.newsletter .buttonContainer { + border-bottom: 3px solid #bfbfbf; + padding: 0; + height: 32px; +} +.newsletter .label { + font-weight: 400; + font-size: 24px; + line-height: 38px; + text-align: center; + color: #bfbfbf; + display: flex; + flex-direction: column; +} +.newsletter .label::after { + content: "Receba ofertas e novidades por e-mail"; + font-size: 18px; + line-height: 25px; + margin-top: 16px; + text-align: center; + color: #929292; +} +@media screen and (max-width: 1024px) { + .newsletter .label::after { + font-size: 16px; + line-height: 22px; + } +} +.newsletter .inputGroup { + border-bottom: 1px solid #929292; + flex-direction: row; + display: flex; +} +.newsletter .inputGroup :global(.vtex-input-prefix__group) { + border: 0; + height: 32px; + width: 100%; +} +.newsletter .inputGroup :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) { + background-color: transparent; + font-weight: 400; + font-size: 18px; + height: 32px; + line-height: 25px; + color: #929292; + width: 100%; + padding: 0 0 7px 0; +} +@media screen and (max-width: 1024px) { + .newsletter .inputGroup :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) { + font-size: 12px; + line-height: 16px; + padding-left: 16px; + } +} +.newsletter .inputGroup :global(.vtex-button) { + background-color: transparent; + font-weight: 700; + font-size: 14px; + line-height: 19px; + border: 0; +} +.newsletter .inputGroup :global(.vtex-button) :global(.vtex-button__label) { + padding: 0 16px 13px 16px !important; + color: #fff; +} + +:global(.vtex-input__label) { + font-size: 0; +} +:global(.vtex-input__label)::before { + content: "CALCULAR FRETE:"; + font-size: 14px; + line-height: 19px; + color: #929292; +} + +.shareContainer { + display: none; +} + +:global(.vtex-address-form__postalCode) { + display: flex; + padding: 0; + position: relative; +} +@media screen and (max-width: 768px) { + :global(.vtex-address-form__postalCode) { + flex-direction: column; + } +} + +:global(.vtex-input-prefix__group) { + height: 50px; +} + +:global(.vtex-product-identifier-0-x-product-identifier__value) { + display: flex; + justify-content: end; + margin-bottom: 24px; +} +@media screen and (max-width: 1024px) { + :global(.vtex-product-identifier-0-x-product-identifier__value) { + justify-content: unset; + font-size: 14px; + line-height: 19px; + } +} + +:global(.vtex-store-components-3-x-swiperCaretNext), +:global(.vtex-store-components-3-x-swiperCaretPrev), +:global(.vtex-store-components-3-x-swiper-pagination) { + display: none; +} + +@media screen and (max-width: 1024px) { + .swiper-wrapper { + display: block; + } +} + +:global(.vtex-store-components-3-x-productImageTag) { + object-fit: unset !important; + margin-bottom: 16px; + max-height: 664px !important; +} +@media screen and (min-width: 1920px) { + :global(.vtex-store-components-3-x-productImageTag) { + max-height: unset !important; + max-width: unset; + height: 904px !important; + width: auto !important; + } +} +@media screen and (max-width: 1024px) { + :global(.vtex-store-components-3-x-productImageTag) { + max-height: 944px !important; + } +} + +@media screen and (max-width: 1024px) { + :global(.vtex-store-components-3-x-carouselContainer) { + margin-bottom: 32px; + } +} + +:global(.vtex-store-components-3-x-form) { + justify-content: unset; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-button__label) { + font-size: 0; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-button__label)::before { + content: "AVISE-ME"; + font-weight: 600; + font-size: 18px; + line-height: 25px; + color: #ffffff; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-submit) { + width: 100%; + max-width: 400px; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-submit) :global(.vtex-button) { + max-width: 400px; + width: 100%; + height: 50px; + background-color: #000; + border-radius: 0; + border: 0; + color: #fff; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-store-components-3-x-input) { + margin: 0 0 16px 0; +} +:global(.vtex-store-components-3-x-form) :global(.vtex-input-prefix__group) { + height: 40px; + width: 100%; + border-radius: 0; + font-weight: 400; + font-size: 12px; + line-height: 16px; + color: #989898; +} + +:global(.vtex-store-components-3-x-subscribeLabel) { + font-size: 0; +} +:global(.vtex-store-components-3-x-subscribeLabel)::before { + content: "Deseja saber quando estiver disponível?"; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #868686; +} + +@media screen and (max-width: 1024px) { + :global(.vtex-flex-layout-0-x-flexRowContent) :global(.vtex-flex-layout-0-x-stretchChildrenWidth) { + width: auto !important; + padding: 0; + } +} +.subscriberContainer :global(.vtex-store-components-3-x-title) { + font-size: 0; +} +.subscriberContainer :global(.vtex-store-components-3-x-title)::before { + content: "Produto Indisponível"; + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #868686; +} +.subscriberContainer :global(.vtex-store-components-3-x-content) { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-column-gap: 10px; + width: 100%; + max-width: 400px; +} +.subscriberContainer .submit { + grid-column: span 2; +} + +:global(.vtex-store-components-3-x-pointerEventsAuto) { + display: none; +} + +:global(.vtex-product-price-1-x-listPrice) { + display: block; + text-align: center; + font-size: 12px; + line-height: 16px; + text-decoration-line: line-through; + color: #bababa; +} +:global(.vtex-product-price-1-x-listPrice)::before { + padding-right: 4px; + content: "de"; + font-size: 12px; + line-height: 16px; + text-align: center; + color: #bababa; +} +:global(.vtex-product-price-1-x-listPrice)::after { + content: "por"; + padding-left: 4px; + font-size: 12px; + line-height: 16px; + text-align: center; + color: #bababa; +} + +.thumbImg { + border-radius: 8px; +} + +.thumbImg--video { + height: 90px; } \ No newline at end of file diff --git a/styles/css/vtex.tab-layout.css b/styles/css/vtex.tab-layout.css new file mode 100644 index 0000000..e268fa7 --- /dev/null +++ b/styles/css/vtex.tab-layout.css @@ -0,0 +1,123 @@ +/* +0 - 600PX: Phone +600 - 900px: Table portrait +900 - 1200px: Tablet landscape +[1200 - 1800] is where our nortal styles apply +1800px + : Big desktop +*/ +/* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); +/* Grid breakpoints */ +.container--description { + max-height: auto; + margin-bottom: 16px; +} +@media screen and (max-width: 1024px) { + .container--description { + max-height: auto; + border-bottom: 1px solid #bfbfbf; + } +} +.container--description .listContainer { + display: flex; + justify-content: space-around; + border-bottom: 1px solid #bfbfbf; +} +@media screen and (max-width: 1024px) { + .container--description .listContainer { + flex-direction: column; + border-top: 1px solid #bfbfbf; + } +} +.container--description .listContainer .listItem { + padding: 0; + margin: 0; +} +.container--description .listContainer .listItem :global(.vtex-button) { + background: white; + border: none; + width: 100%; + display: flex; + justify-content: start; + font-family: "Open Sans", sans-serif; + font-size: 18px; + text-transform: none; + color: #bfbfbf; +} +.container--description .listContainer .listItem :global(.vtex-button) :global(.vtex-button__label) { + padding: 0; +} +.container--description .listContainer .listItemActive { + border-bottom: 2px solid black; +} +@media screen and (max-width: 1024px) { + .container--description .listContainer .listItemActive { + border: 0; + } +} +.container--description .listContainer .listItemActive :global(.vtex-button) { + color: black; +} +.container--description .contentContainer .contentItem { + display: flex; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem { + flex-direction: column; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesContainer) { + max-height: 632px; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesContainer) { + max-height: 976px; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImageTag--main) { + max-height: 632px !important; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImageTag--main) { + max-height: 944px !important; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesGallerySlide) { + margin: 32px 32px 16px 32px; + height: 632px; + width: 632px; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productImagesGallerySlide) { + height: 994px; + margin-left: 0; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-carouselGaleryThumbs) { + display: none; +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-top: 32px; + margin-left: 32px; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-left: 0; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionTitle) { + font-family: "Open Sans", sans-serif; + font-size: 24px; + line-height: 32px; + color: #575757; +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionText) { + font-family: "Open Sans", sans-serif; + font-size: 16px; + line-height: 22px; + margin-bottom: 16px; + color: #929292; +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-container) { + padding: 0; +} \ No newline at end of file diff --git a/styles/sass/pages/product/agenciamagma.store-theme.scss b/styles/sass/pages/product/agenciamagma.store-theme.scss index ea7d5b9..2e7070e 100644 --- a/styles/sass/pages/product/agenciamagma.store-theme.scss +++ b/styles/sass/pages/product/agenciamagma.store-theme.scss @@ -3,6 +3,15 @@ } .html--pdp-breadcrumb { - background-color: green; + background-color: transparent; } +.relative { + display: none; +} + +.agenciamagma-store-theme-5-x-html--prateleira { + display: flex; + flex-direction: column; + height: 100%; +} diff --git a/styles/sass/pages/product/vtex.breadcrumb.scss b/styles/sass/pages/product/vtex.breadcrumb.scss new file mode 100644 index 0000000..79d5d81 --- /dev/null +++ b/styles/sass/pages/product/vtex.breadcrumb.scss @@ -0,0 +1,23 @@ +.container { + padding: 0; + font-size: 14px; + + .homeIcon { + display: none; + } + .homeLink { + padding-left: 0; + &::before { + content: "Home"; + font-size: 14px; + line-height: 19px; + color: #929292; + } + } +} + +.agenciamagma-store-theme-5-x-html--prateleira { + display: flex; + flex-direction: column; + height: 100%; +} diff --git a/styles/sass/pages/product/vtex.flex-layout.scss b/styles/sass/pages/product/vtex.flex-layout.scss new file mode 100644 index 0000000..c82e857 --- /dev/null +++ b/styles/sass/pages/product/vtex.flex-layout.scss @@ -0,0 +1,101 @@ +.flexRowContent { + padding: 0; + margin: 0; + @media screen and (max-width: 1024px) { + flex-direction: column; + + .flexRowContent--buy-box { + flex-direction: row; + @media screen and (max-width: 768px) { + flex-direction: column; + } + } + } + + .flexColChild { + .product-identifier--productReference { + float: right; + } + } + + .pix-container { + .imageElement { + width: 66px; + height: 24px; + } + } +} +.product-images { + padding-left: 0; +} + +.product-identifier__label { + display: none; +} + +.flexRowContent--shipping-container { + .stretchChildrenWidth { + flex-direction: column; + } +} + +.flexRowContent--button-container { + margin-bottom: 10px; + + :global(.vtex-button) { + background-color: #000; + border: 0; + height: 50px; + margin-left: 10px; + border-radius: 0; + @media screen and (max-width: 768px) { + margin: 0; + height: 74px; + margin-top: 10px; + } + :global(.vtex-add-to-cart-button-0-x-buttonDataContainer) { + @media screen and (max-width: 767px) { + padding: 0 56px; + } + } + } +} + +.flexRow--buy-box { + .stretchChildrenWidth:nth-child(2n) { + width: 100% !important; + } +} + +:global(.vtex-product-identifier-0-x-product-identifier__label), +:global(.vtex-product-identifier-0-x-product-identifier__separator) { + display: none; +} + +:global(.vtex-flex-layout-0-x-flexColChild) { + order: -1; +} + +:global(.vtex-flex-layout-0-x-flexRow--pix-container) { + display: flex; + align-items: center; + + :global(.vtex-flex-layout-0-x-flexRowContent--pix-container) { + @media screen and (max-width: 1024px) { + flex-direction: row; + display: flex; + } + + :global(.vtex-flex-layout-0-x-stretchChildrenWidth) { + display: flex; + align-items: center; + width: auto !important; + padding-right: 26px; + + :global(.vtex-store-components-3-x-imageElement) { + width: 66px; + height: 24px; + } + } + } +} diff --git a/styles/sass/pages/product/vtex.login.scss b/styles/sass/pages/product/vtex.login.scss new file mode 100644 index 0000000..54d8953 --- /dev/null +++ b/styles/sass/pages/product/vtex.login.scss @@ -0,0 +1,11 @@ +:global(.vtex-address-form__postalCode + .vtex-address-form__postalCode-forgottenURL + a) { + color: #000; +} + +:global(.agenciamagma-store-theme-5-x-html--prateleira) { + display: flex; + flex-direction: column; + height: 100%; +} diff --git a/styles/sass/pages/product/vtex.product-price.scss b/styles/sass/pages/product/vtex.product-price.scss new file mode 100644 index 0000000..c270ce3 --- /dev/null +++ b/styles/sass/pages/product/vtex.product-price.scss @@ -0,0 +1,25 @@ +.listPrice, +.savings { + display: none; +} +.sellingPrice { + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 700; + font-size: 25px; + line-height: 38px; + color: #000000; +} + +.installments { + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 700; + font-size: 16px; + line-height: 22px; + color: #929292; +} + +:global(.vtex-product-price-1-x-listPrice) { + display: none; +} diff --git a/styles/sass/pages/product/vtex.product-quantity.scss b/styles/sass/pages/product/vtex.product-quantity.scss new file mode 100644 index 0000000..ab5fa93 --- /dev/null +++ b/styles/sass/pages/product/vtex.product-quantity.scss @@ -0,0 +1,33 @@ +.quantitySelectorContainer { + border: 0; + margin: 0; + .quantitySelectorTitle { + display: none; + } +} + +:global(.vtex-numeric-stepper__input), +:global(.vtex-numeric-stepper__plus-button), +:global(.vtex-numeric-stepper__minus-button) { + height: 50px; + background-color: white; +} + +:global(.vtex-numeric-stepper__input) { + border-left: 0; + border-right: 0; + @media screen and (max-width: 1024px) { + width: 44px; + } +} + +:global(.vtex-add-to-cart-button-0-x-buttonText) { + font-size: 0; + &::before { + content: "ADICIONAR À SACOLA"; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #ffffff; + } +} diff --git a/styles/sass/pages/product/vtex.rich-text.scss b/styles/sass/pages/product/vtex.rich-text.scss index e69de29..9c32fcb 100644 --- a/styles/sass/pages/product/vtex.rich-text.scss +++ b/styles/sass/pages/product/vtex.rich-text.scss @@ -0,0 +1,35 @@ +.container--title-shelf { + text-align: center; + display: block !important; + + .paragraph--title-shelf { + font-size: 24px; + line-height: 38px; + text-align: center; + color: #575757; + margin: 0; + @media screen and (max-width: 767px) { + font-size: 20px; + } + } +} + +:global(.vtex-input__error) { + display: none; +} + +:global(.vtex-store-components-3-x-imageElement--image-description) { + max-width: 632px; + max-height: 632px; + margin: 32px 0 0 32px; + + @media screen and (min-width: 1920px) { + max-width: unset; + max-height: unset; + } + @media screen and (max-width: 1024px) { + max-width: 944px; + max-height: 944px; + margin-left: 0; + } +} diff --git a/styles/sass/pages/product/vtex.slider-layout.scss b/styles/sass/pages/product/vtex.slider-layout.scss new file mode 100644 index 0000000..40eab6f --- /dev/null +++ b/styles/sass/pages/product/vtex.slider-layout.scss @@ -0,0 +1,114 @@ +.sliderLayoutContainer { + background-color: transparent; + height: 630px; + + .slide { + margin: 0 4px; + } + + .sliderRightArrow, + .sliderLeftArrow { + bottom: 48%; + margin: 0; + padding: 0; + @media screen and (max-width: 1024px) { + display: block; + } + .caretIcon { + display: none; + } + } + .sliderLeftArrow::after { + content: ""; + display: block; + background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0.000193945 15.2383L10.9291 30.1191L11.2002 27.7468L2.30458 15.2383L11.2002 2.89145L10.9291 0.519139L0.000193945 15.2383Z' fill='black'/%3E%3C/svg%3E%0A"); + background-repeat: no-repeat; + background-size: 100% 100%; + width: 11px; + height: 30px; + } + .sliderRightArrow::after { + content: ""; + display: block; + background-image: url("data:image/svg+xml,%3Csvg width='12' height='31' viewBox='0 0 12 31' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.9998 15.4004L1.07091 0.519531L0.799804 2.89184L9.69542 15.4004L0.799802 27.7472L1.07091 30.1195L11.9998 15.4004Z' fill='black'/%3E%3C/svg%3E "); + background-repeat: no-repeat; + background-size: 100% 100%; + width: 11px; + height: 30px; + } + + .paginationDotsContainer { + display: flex; + align-items: center; + margin-bottom: 64px; + + .paginationDot { + width: 10px; + height: 10px; + background-color: black; + border: none; + } + + .paginationDot--isActive { + width: 17px !important; + height: 17px !important; + background-color: white; + border: 0.5px solid #000000; + } + } +} + +:global(.vtex-product-summary-2-x-imageContainer) { + :global(.vtex-product-summary-2-x-imageNormal) { + max-height: 314px !important; + } +} + +:global(.vtex-product-price-1-x-sellingPrice) { + font-weight: 700; + font-size: 25px; + display: block; + text-align: center; + line-height: 33px; + color: #000000; + @media screen and (max-width: 1024px) { + font-size: 18px; + } +} + +:global(.vtex-product-summary-2-x-nameContainer) { + padding-bottom: 8px; + text-align: center; + justify-content: center; + :global(.vtex-product-summary-2-x-productBrand) { + font-weight: 400; + font-size: 18px; + line-height: 25px; + color: #000000; + text-align: center; + word-wrap: none; + @media screen and (max-width: 1024px) { + font-size: 14px; + } + } +} + +:global(.vtex-product-summary-2-x-element) { + padding: 0; +} + +:global(.vtex-rich-text-0-x-container) { + display: none; +} + +:global(.vtex-slider-layout-0-x-sliderTrackContainer) { + margin: 0 27px 32px 27px; +} + +:global(.vtex-slider-layout-0-x-sliderTrack) { + margin-bottom: 32px; +} + +:global(.vtex-slider-layout-0-x-slideChildrenContainer) { + max-width: 314px; +} diff --git a/styles/sass/pages/product/vtex.store-components.scss b/styles/sass/pages/product/vtex.store-components.scss index 36d0f22..29b72b4 100644 --- a/styles/sass/pages/product/vtex.store-components.scss +++ b/styles/sass/pages/product/vtex.store-components.scss @@ -1,3 +1,546 @@ -.newsletter{ - background: red; -} \ No newline at end of file +.container { + padding: 0 40px; + + @media screen and (min-width: 1920px) { + max-width: 115rem !important; + padding: 0; + } + + .productNameContainer { + font-weight: 300; + font-size: 20px; + line-height: 34px; + color: #575757; + text-align: end; + margin-bottom: 8px; + @media screen and (max-width: 1024px) { + text-align: unset; + } + } + .skuSelectorContainer { + display: flex; + flex-direction: column-reverse; + border: 0; + + .skuSelectorItem { + border: 1px solid #989898; + border-radius: 50%; + width: 44px; + height: 44px; + margin-right: 16px; + margin-left: 0; + + &.skuSelectorItem--selected { + border: 2px solid #000; + + .diagonalCross { + color: #000; + border: 2px; + } + } + } + .skuSelectorSubcontainer--tamanho { + .skuSelectorName { + font-size: 0; + &::before { + content: "OUTROS TAMANHOS:"; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #929292; + } + } + } + .skuSelectorOptionsList { + margin-left: 0; + } + + .skuSelectorSubcontainer--cor { + .skuSelectorImageValue { + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + } + + .skuSelectorNameSeparator, + .skuSelectorSelectorImageValue { + display: none; + } + + .skuSelectorName { + font-size: 0; + &::before { + content: "OUTRAS CORES: "; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #929292; + } + } + } + + .skuSelectorInternalBox { + padding: 0; + border-radius: 50%; + border: 0; + .skuSelectorItemTextValue { + font-size: 14px; + padding: 0; + } + } + .diagonalCross { + border: 1px; + width: 10px; + color: #989898; + margin: 0 auto; + transform: rotate(60deg); + } + .frameAround { + display: none; + } + } +} + +.shippingContainer { + position: relative; + margin-top: 16px; + margin-bottom: 16px; + @media screen and (min-width: 768px) { + max-width: 280px; + } + + :global(.vtex-button) { + font-size: 0; + background-color: black; + height: 50px; + max-width: 50px; + border: none; + border-radius: 0; + top: 27px; + position: absolute; + right: 0; + + &::before { + text-align: center; + content: "OK"; + font-weight: 600; + font-size: 14px; + line-height: 19px; + color: #ffffff; + } + } + + :global(.vtex-button__label) { + height: 0; + width: 0; + padding: 0; + } + + :global(.vtex-address-form__postalCode-forgottenURL) { + text-decoration: underline; + position: absolute; + right: -50%; + top: calc(50% + 13.5px); + transform: translateY(-50%); + padding: 0; + @media screen and (max-width: 768px) { + position: unset; + display: block; + text-align: end; + width: 100%; + transform: none; + margin-top: 8px; + } + + :global(.vtex__icon-external-link) { + display: none; + } + } +} + +.figure { + height: 100%; +} + +.productImagesThumb { + margin-right: 16px; + width: 90px !important; + height: 90px !important; +} + +.carouselGaleryThumbs { + margin: 0; + @media screen and (max-width: 1024px) { + display: block; + } + :global(.vtex-store-components-3-x-productImagesThumbCaret) { + display: none; + } +} + +.shippingTable { + border: none; + padding-top: unset; + margin-top: 16px; + table-layout: fixed; + width: 100%; + max-width: 362px; + + .shippingTableRow { + display: flex; + .shippingTableCell { + font-family: "Open Sans", sans-serif; + font-size: 12px; + line-height: 16px; + color: #afafaf; + padding: 0 0 15px 0; + + .shippingTableRadioBtn { + display: none; + } + } + + .shippingTableCellDeliveryName { + width: 33%; + padding-left: 0; + order: 1; + } + + .shippingTableCellDeliveryEstimate { + width: 33%; + padding-left: 0; + order: 3; + } + + .shippingTableCellDeliveryPrice { + width: 25%; + padding-left: 0; + order: 2; + } + } + .shippingTableHead { + display: block; + margin-bottom: 15px; + + .shippingTableHeadDeliveryName { + width: 33%; + text-align: left; + order: 1; + } + + .shippingTableHeadDeliveryEstimate { + width: 33%; + text-align: left; + order: 3; + } + + .shippingTableHeadDeliveryPrice { + width: 25%; + text-align: left; + order: 2; + } + } +} + +.newsletter { + background: #000; + padding: 32px 0 16px 0; + + @media screen and (max-width: 1024px) { + padding: 64px 0 16px 0; + } + + .container { + @media screen and (max-width: 1024px) { + padding: 0 16px; + } + } + + .form { + justify-content: end; + max-width: 774px !important; + + @media screen and (max-width: 1024px) { + max-width: 992px !important; + } + + :global(.vtex-button__label) { + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #ffffff; + &::before { + display: none; + } + } + } + + .buttonContainer { + border-bottom: 3px solid #bfbfbf; + padding: 0; + height: 32px; + } + + .label { + font-weight: 400; + font-size: 24px; + line-height: 38px; + text-align: center; + color: #bfbfbf; + display: flex; + flex-direction: column; + &::after { + content: "Receba ofertas e novidades por e-mail"; + font-size: 18px; + line-height: 25px; + margin-top: 16px; + text-align: center; + color: #929292; + @media screen and (max-width: 1024px) { + font-size: 16px; + line-height: 22px; + } + } + } + .inputGroup { + border-bottom: 1px solid #929292; + flex-direction: row; + display: flex; + + :global(.vtex-input-prefix__group) { + border: 0; + height: 32px; + width: 100%; + + :global(.vtex-styleguide-9-x-input) { + background-color: transparent; + font-weight: 400; + font-size: 18px; + height: 32px; + line-height: 25px; + color: #929292; + width: 100%; + padding: 0 0 7px 0; + @media screen and (max-width: 1024px) { + font-size: 12px; + line-height: 16px; + padding-left: 16px; + } + } + } + :global(.vtex-button) { + background-color: transparent; + font-weight: 700; + font-size: 14px; + line-height: 19px; + border: 0; + :global(.vtex-button__label) { + padding: 0 16px 13px 16px !important; + color: #fff; + } + } + } +} + +:global(.vtex-input__label) { + font-size: 0; + &::before { + content: "CALCULAR FRETE:"; + font-size: 14px; + line-height: 19px; + color: #929292; + } +} + +.shareContainer { + display: none; +} + +:global(.vtex-address-form__postalCode) { + display: flex; + padding: 0; + position: relative; + @media screen and (max-width: 768px) { + flex-direction: column; + } +} + +:global(.vtex-input-prefix__group) { + height: 50px; +} + +:global(.vtex-product-identifier-0-x-product-identifier__value) { + display: flex; + justify-content: end; + margin-bottom: 24px; + @media screen and (max-width: 1024px) { + justify-content: unset; + font-size: 14px; + line-height: 19px; + } +} + +:global(.vtex-store-components-3-x-swiperCaretNext), +:global(.vtex-store-components-3-x-swiperCaretPrev), +:global(.vtex-store-components-3-x-swiper-pagination) { + display: none; +} + +.swiper-wrapper { + @media screen and (max-width: 1024px) { + display: block; + } +} + +:global(.vtex-store-components-3-x-productImageTag) { + object-fit: unset !important; + margin-bottom: 16px; + max-height: 664px !important; + + @media screen and (min-width: 1920px) { + max-height: unset !important; + max-width: unset; + height: 904px !important; + width: auto !important; + } + + @media screen and (max-width: 1024px) { + max-height: 944px !important; + } +} + +:global(.vtex-store-components-3-x-carouselContainer) { + @media screen and (max-width: 1024px) { + margin-bottom: 32px; + } +} + +:global(.vtex-store-components-3-x-form) { + justify-content: unset; + + :global(.vtex-button__label) { + font-size: 0; + &::before { + content: "AVISE-ME"; + font-weight: 600; + font-size: 18px; + line-height: 25px; + color: #ffffff; + } + } + + :global(.vtex-store-components-3-x-submit) { + width: 100%; + max-width: 400px; + + :global(.vtex-button) { + max-width: 400px; + width: 100%; + height: 50px; + background-color: #000; + border-radius: 0; + border: 0; + color: #fff; + } + } + + :global(.vtex-store-components-3-x-input) { + margin: 0 0 16px 0; + } + + :global(.vtex-input-prefix__group) { + height: 40px; + width: 100%; + border-radius: 0; + font-weight: 400; + font-size: 12px; + line-height: 16px; + color: #989898; + } +} + +:global(.vtex-store-components-3-x-subscribeLabel) { + font-size: 0; + &::before { + content: "Deseja saber quando estiver disponível?"; + font-weight: 400; + font-size: 14px; + line-height: 19px; + color: #868686; + } +} + +@media screen and (max-width: 1024px) { + :global(.vtex-flex-layout-0-x-flexRowContent) { + :global(.vtex-flex-layout-0-x-stretchChildrenWidth) { + width: auto !important; + padding: 0; + } + } +} + +.subscriberContainer { + :global(.vtex-store-components-3-x-title) { + font-size: 0; + &::before { + content: "Produto Indisponível"; + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #868686; + } + } + :global(.vtex-store-components-3-x-content) { + display: grid; + grid-template-columns: repeat(2, 1fr); + grid-column-gap: 10px; + width: 100%; + max-width: 400px; + } + .submit { + grid-column: span 2; + } +} + +:global(.vtex-store-components-3-x-pointerEventsAuto) { + display: none; +} + +:global(.vtex-product-price-1-x-listPrice) { + display: block; + text-align: center; + font-size: 12px; + line-height: 16px; + text-decoration-line: line-through; + + color: #bababa; + &::before { + padding-right: 4px; + content: "de"; + font-size: 12px; + line-height: 16px; + text-align: center; + color: #bababa; + } + &::after { + content: "por"; + padding-left: 4px; + font-size: 12px; + line-height: 16px; + text-align: center; + color: #bababa; + } +} + +.thumbImg { + border-radius: 8px; +} + +.thumbImg--video { + height: 90px; +} diff --git a/styles/sass/pages/product/vtex.tab-layout.scss b/styles/sass/pages/product/vtex.tab-layout.scss new file mode 100644 index 0000000..5c3437a --- /dev/null +++ b/styles/sass/pages/product/vtex.tab-layout.scss @@ -0,0 +1,118 @@ +.container--description { + max-height: auto; + margin-bottom: 16px; + @media screen and (max-width: 1024px) { + max-height: auto; + border-bottom: 1px solid #bfbfbf; + } + + .listContainer { + display: flex; + justify-content: space-around; + border-bottom: 1px solid #bfbfbf; + @media screen and (max-width: 1024px) { + flex-direction: column; + border-top: 1px solid #bfbfbf; + } + + .listItem { + padding: 0; + margin: 0; + + :global(.vtex-button) { + background: white; + border: none; + width: 100%; + display: flex; + justify-content: start; + font-family: "Open Sans", sans-serif; + font-size: 18px; + text-transform: none; + + color: #bfbfbf; + + :global(.vtex-button__label) { + padding: 0; + } + } + } + + .listItemActive { + border-bottom: 2px solid black; + @media screen and (max-width: 1024px) { + border: 0; + } + + :global(.vtex-button) { + color: black; + } + } + } + + .contentContainer { + .contentItem { + display: flex; + @media screen and (max-width: 1024px) { + flex-direction: column; + } + + :global(.vtex-store-components-3-x-productImagesContainer) { + max-height: 632px; + @media screen and (max-width: 1024px) { + max-height: 976px; + } + } + + :global(.vtex-store-components-3-x-productImageTag--main) { + max-height: 632px !important; + + @media screen and (max-width: 1024px) { + max-height: 944px !important; + } + } + + :global(.vtex-store-components-3-x-productImagesGallerySlide) { + margin: 32px 32px 16px 32px; + height: 632px; + width: 632px; + @media screen and (max-width: 1024px) { + height: 994px; + margin-left: 0; + } + } + + :global(.vtex-store-components-3-x-carouselGaleryThumbs) { + display: none; + } + + :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-top: 32px; + margin-left: 32px; + + @media screen and (max-width: 1024px) { + margin-left: 0; + } + + :global(.vtex-store-components-3-x-productDescriptionTitle) { + font-family: "Open Sans", sans-serif; + font-size: 24px; + line-height: 32px; + + color: #575757; + } + + :global(.vtex-store-components-3-x-productDescriptionText) { + font-family: "Open Sans", sans-serif; + font-size: 16px; + line-height: 22px; + margin-bottom: 16px; + color: #929292; + } + + :global(.vtex-store-components-3-x-container) { + padding: 0; + } + } + } + } +} diff --git a/styles/sass/utils/_vars.scss b/styles/sass/utils/_vars.scss index daf3adb..c15795b 100644 --- a/styles/sass/utils/_vars.scss +++ b/styles/sass/utils/_vars.scss @@ -1,3 +1,5 @@ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap"); + $color-black: #292929; $color-white: #fff; @@ -14,18 +16,18 @@ $color-green: #4caf50; /* Grid breakpoints */ $grid-breakpoints: ( - xs: 0, - cstm: 400, - sm: 576px, - md: 768px, - lg: 992px, - xl: 1200px + xs: 0, + cstm: 400, + sm: 576px, + md: 768px, + lg: 992px, + xl: 1200px, ) !default; $z-index: ( - level1: 5, - level2: 10, - level3: 15, - level4: 20, - level5: 25 + level1: 5, + level2: 10, + level3: 15, + level4: 20, + level5: 25, ) !default;