diff --git a/assets/iconPix.svg b/assets/iconPix.svg new file mode 100644 index 0000000..c80d1da --- /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..3854f6b --- /dev/null +++ b/react/PayWithPix.tsx @@ -0,0 +1,3 @@ +import { PayWithPix } from "./PayWithPix/PayWithPix"; + +export default PayWithPix; diff --git a/react/PayWithPix/PayWithPix.css b/react/PayWithPix/PayWithPix.css new file mode 100644 index 0000000..cef306a --- /dev/null +++ b/react/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/PayWithPix/PayWithPix.tsx b/react/PayWithPix/PayWithPix.tsx new file mode 100644 index 0000000..2f54ace --- /dev/null +++ b/react/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/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/placeholder.tsx b/react/placeholder.tsx new file mode 100644 index 0000000..aeeb7e0 --- /dev/null +++ b/react/placeholder.tsx @@ -0,0 +1,14 @@ +import React, { useEffect } from "react"; + +const placeholder = () => { + useEffect(() => { + setTimeout(() => { + const exemplo = document.querySelector(".vtex-address-form-4-x-input"); + exemplo?.setAttribute("placeholder", "Digite seu CEP"); + }, 1000); + }, []); + + return <>; +}; + +export default placeholder; diff --git a/store/blocks/home/home.jsonc b/store/blocks/home/home.jsonc index a4776bc..e18de24 100644 --- a/store/blocks/home/home.jsonc +++ b/store/blocks/home/home.jsonc @@ -2,8 +2,9 @@ "store.home": { "blocks": [ "list-context.image-list#demo", - "example-component", /* You can make references to blocks defined in other files. - * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */ + "example-component" + /* You can make references to blocks defined in other files. + * For example, `flex-layout.row#deals` is defined in the `deals.json` file. */, "flex-layout.row#deals", "__fold__", "rich-text#shelf-title", diff --git a/store/blocks/pdp/product.jsonc b/store/blocks/pdp/product.jsonc index 6a916dc..f656582 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": "prateleirateste", + "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": "buy-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..60bda72 100644 --- a/store/interfaces.json +++ b/store/interfaces.json @@ -5,5 +5,14 @@ "html": { "component": "html", "composition": "children" + }, + "placeholder": { + "component": "placeholder" + }, + "product-context": { + "component": "ProductContext" + }, + "pay-with-pix": { + "component": "PayWithPix" } } 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..edea4af 100644 --- a/styles/css/agenciamagma.store-theme.css +++ b/styles/css/agenciamagma.store-theme.css @@ -6,11 +6,18 @@ 1800px + : Big desktop */ /* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"); /* Grid breakpoints */ .html { background-color: red; } .html--pdp-breadcrumb { - background-color: green; + background-color: white; +} + +.html--prateleirateste { + height: 100%; + display: flex; + flex-direction: column; } \ 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..34c4328 --- /dev/null +++ b/styles/css/vtex.address-form.css @@ -0,0 +1,9 @@ +/* +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 */ +/* 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..86b84d3 --- /dev/null +++ b/styles/css/vtex.breadcrumb.css @@ -0,0 +1,33 @@ +/* +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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.container { + display: flex; + align-items: center; + flex-wrap: wrap; + font-size: 14px; + line-height: 19px; + padding: 0; + margin-bottom: 16px; +} +.container .homeLink { + visibility: hidden; + padding: 0; +} +.container .homeLink::before { + content: "Home"; + font-size: 14px; + line-height: 19px; + visibility: visible; + padding: 0; +} +.container .homeIcon { + display: none; +} \ No newline at end of file diff --git a/styles/css/vtex.flex-layout.css b/styles/css/vtex.flex-layout.css index a7c5732..8cc4e7b 100644 --- a/styles/css/vtex.flex-layout.css +++ b/styles/css/vtex.flex-layout.css @@ -1,98 +1,92 @@ -.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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.flexRowContent--buy-button-container { + margin-bottom: 16px; } - -@media screen and (min-width: 40em) { - .flexRowContent--menu-link, - .flexRowContent--main-header { - padding: 0 1rem; +.flexRowContent--buy-button-container :global(.vtex-button) { + background-color: black; + border: none; + height: 50px; + margin-left: 10px; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .flexRowContent--buy-button-container :global(.vtex-button) { + height: 74px; + margin-top: 10px; + margin-left: unset; } } -@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--principal .stretchChildrenWidth:nth-child(2n) { + width: 100% !important; +} +.flexRowContent--principal .flexColChild--mainpage-col { + padding: 0; +} + +.flexRowContent { + padding: 0; + margin: 0; +} +@media screen and (max-width: 1024px) { + .flexRowContent { + display: flex; + flex-direction: column; + } + .flexRowContent .stretchChildrenWidth { + width: auto !important; + padding: 0; + } + .flexRowContent :global(.vtex-store-components-3-x-carouselGaleryThumbs) { + display: block; + } + .flexRowContent .flexRowContent--buy-box { + flex-direction: row; } } - -.flexRowContent--menu-link { - background-color: #03044e; - color: #fff; -} - -.flexRowContent--main-header { - background-color: #f0f0f0; +@media screen and (max-width: 1024px) and (min-width: 375px) and (max-width: 768px) { + .flexRowContent .flexRowContent--buy-box { + flex-direction: column; + } } .flexRowContent--main-header-mobile { - align-items: center; - padding: 0.625rem 0.5rem; - background-color: #f0f0f0; + flex-direction: row; } -.flexRowContent--menu-link :global(.vtex-menu-2-x-styledLink) { - color: #ffffff; - font-size: 14px; +.flexColChild--mainpage-col { + padding-bottom: 2rem; } -.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..da0161c --- /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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +:global(.vtex-address-form__postalCode + .vtex-address-form__postalCode-forgottenURL + a) { + color: black; +} + +:global(.agenciamagma-store-theme-5-x-html--prateleirateste) { + height: 100%; + display: flex; + flex-direction: column; +} \ No newline at end of file diff --git a/styles/css/vtex.numeric-stepper.css b/styles/css/vtex.numeric-stepper.css new file mode 100644 index 0000000..cff6c35 --- /dev/null +++ b/styles/css/vtex.numeric-stepper.css @@ -0,0 +1,12 @@ +/* +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 */ +/* Grid breakpoints */ +.numeric-stepper__input { + height: 49px; +} \ No newline at end of file diff --git a/styles/css/vtex.product-price.css b/styles/css/vtex.product-price.css index 95f4cfe..1fa8ccf 100644 --- a/styles/css/vtex.product-price.css +++ b/styles/css/vtex.product-price.css @@ -1,79 +1,32 @@ -.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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.listPrice, +.savings { + display: none; } -.sellingPrice { - color: #3f3f40; - font-size: 1.25rem; -} - -.sellingPriceValue { - font-size: 2.25rem; +.sellingPrice--hasListPrice { + font-family: "Open Sans"; + font-style: normal; font-weight: 700; + font-size: 25px; + line-height: 38px; + color: #000000; } .installments { - color: #727273; - margin-bottom: 1rem; -} - -.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; -} + font-family: "Open Sans"; + font-style: normal; + font-weight: 700; + font-size: 16px; + line-height: 22px; + color: #929292; +} \ 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..120eec9 --- /dev/null +++ b/styles/css/vtex.product-quantity.css @@ -0,0 +1,53 @@ +@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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.quantitySelectorContainer { + margin: 0; +} +.quantitySelectorContainer .quantitySelectorTitle { + display: none; +} + +:global(.vtex-numeric-stepper__plus-button), +:global(.vtex-numeric-stepper__minus-button), +:global(.vtex-numeric-stepper__input) { + height: 50px; +} + +@media screen and (max-width: 1024px) { + :global(.vtex-numeric-stepper__input) { + width: 44px; + } +} + +:global(.vtex-numeric-stepper__minus-button) { + background-color: white; +} + +:global(.vtex-numeric-stepper__plus-button) { + color: black; +} + +:global(.vtex-numeric-stepper__input) { + border-right: none; + border-left: none; +} + +: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.rich-text.css b/styles/css/vtex.rich-text.css index 34c4328..cb77006 100644 --- a/styles/css/vtex.rich-text.css +++ b/styles/css/vtex.rich-text.css @@ -6,4 +6,26 @@ 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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.container--title-shelf { + display: block; + text-align: center; +} +.container--title-shelf .paragraph--title-shelf { + font-family: "Open Sans", sans-serif; + font-size: 24px; + line-height: 38px; + color: #575757; + margin: 0; +} +@media screen and (min-width: 1920px) { + .container--title-shelf .paragraph--title-shelf { + margin-top: 16px; + } +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .container--title-shelf .paragraph--title-shelf { + font-size: 20px; + } +} \ No newline at end of file diff --git a/styles/css/vtex.slider-layout.css b/styles/css/vtex.slider-layout.css index 55f431f..19dfded 100644 --- a/styles/css/vtex.slider-layout.css +++ b/styles/css/vtex.slider-layout.css @@ -1,31 +1,182 @@ -.sliderLayoutContainer { - justify-content: center; -} - +/* +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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ .sliderLayoutContainer--carousel { - background-color: #F0F0F0; - min-height: 450px; + background-color: transparent; + height: 630px; } - -.sliderTrackContainer { - max-width: 100%; +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel { + height: 393px; + } } - -.paginationDotsContainer { - margin-top: .5rem; - margin-bottom: .5rem; +.sliderLayoutContainer--carousel .sliderTrackContainer { + margin: 32px 27px 32px 27px; + padding-bottom: 32px; } - -.layoutContainer--shelf { - margin-top: 20px; - margin-bottom: 20px; - max-width: 96rem; - min-height: 550px; +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .sliderTrackContainer { + padding-bottom: 0; + } } - -.slide--shelf { - margin-bottom: 25px; - padding-left: .5rem; - padding-right: .5rem; - min-height: 550px; +.sliderLayoutContainer--carousel .sliderTrackContainer .sliderTrack { + margin-bottom: 32px; } +.sliderLayoutContainer--carousel .slide { + width: 100%; + max-width: 314px; + height: 448px; + margin-right: 16px; +} +@media screen and (max-width: 767px) { + .sliderLayoutContainer--carousel .slide { + margin-right: 8px; + } +} +@media screen and (min-width: 768px) and (max-width: 1024px) { + .sliderLayoutContainer--carousel .slide { + margin-right: 12px; + } +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .slide { + height: unset; + } +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) { + max-width: unset !important; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-element) { + padding: 0; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) { + width: 100%; + max-width: 314px; + height: 314px; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) { + max-width: 124px; + height: 124px; + } +} +@media screen and (min-width: 768px) and (max-width: 1024px) { + .sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) { + max-width: 291px; + height: 291px; + } +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-container) :global(.vtex-product-summary-2-x-imageContainer) :global(.vtex-product-summary-2-x-imageNormal) { + max-height: 314px !important; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) { + justify-content: center; + text-align: center; + padding: 16px 0 8px 0; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) { + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #000000; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .slide :global(.vtex-product-summary-2-x-nameContainer) :global(.vtex-product-summary-2-x-productBrand) { + font-size: 14px; + line-height: 19px; + } +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) { + display: block; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + text-align: center; + text-decoration-line: line-through; + color: #bababa; + padding-bottom: 8px; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) { + font-size: 12px; + line-height: 16px; + } +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) :global(.vtex-product-price-1-x-listPriceValue)::before { + content: "de "; + font-size: 14px; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-listPrice) :global(.vtex-product-price-1-x-listPriceValue)::after { + content: " por"; +} +.sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-sellingPrice) { + display: block; + text-align: center; + font-family: "Open Sans", sans-serif; + font-weight: 700; + font-size: 24px; + line-height: 33px; + color: #000000; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .slide :global(.vtex-product-price-1-x-sellingPrice) { + font-size: 18px; + line-height: 25px; + } +} +.sliderLayoutContainer--carousel .sliderRightArrow, +.sliderLayoutContainer--carousel .sliderLeftArrow { + margin: 0; + padding: 0; +} +.sliderLayoutContainer--carousel .sliderRightArrow .caretIcon, +.sliderLayoutContainer--carousel .sliderLeftArrow .caretIcon { + display: none; +} +.sliderLayoutContainer--carousel .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--carousel .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--carousel .paginationDotsContainer { + display: flex; + align-items: center; + margin-bottom: 64px; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + .sliderLayoutContainer--carousel .paginationDotsContainer { + margin-bottom: 32px; + } +} +.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot { + width: 10px; + height: 10px; + background-color: black; + border: none; +} +.sliderLayoutContainer--carousel .paginationDotsContainer .paginationDot--isActive { + width: 17px !important; + height: 17px !important; + background-color: white; + border: 0.5px solid #000000; +} \ No newline at end of file diff --git a/styles/css/vtex.store-components.css b/styles/css/vtex.store-components.css index f8fa6cb..1d9aee2 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,545 @@ 1800px + : Big desktop */ /* Media Query M3 */ +@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap"); /* Grid breakpoints */ -.newsletter { - background: red; +.container { + padding: 0 40px; +} +@media screen and (min-width: 1920px) { + .container { + max-width: 115rem !important; + padding: 0; + } +} +.container .productNameContainer--quickview { + font-weight: 300; + font-size: 20px; + line-height: 34px; + text-align: right; + color: #575757; +} +@media screen and (max-width: 1024px) { + .container .productNameContainer--quickview { + text-align: unset; + margin-top: 32px; + } +} +.container .skuSelectorContainer { + display: flex; + flex-direction: column; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor { + order: 2; + margin-bottom: 10px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorNameSeparator { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorSelectorImageValue { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorNameContainer { + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorNameContainer .skuSelectorTextContainer .skuSelectorName { + font-size: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorNameContainer .skuSelectorTextContainer::before { + content: "Outras Cores: "; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + text-transform: uppercase; + color: #929292; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList { + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem { + width: 40px; + height: 40px; + margin-left: 0; + margin-right: 16px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem .frameAround { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox { + border: 1px solid #989898; + border-radius: 50%; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox .skuSelectorItemTextValue { + padding: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem--verde { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem--selected { + width: 40px; + height: 40px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem--selected .frameAround { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox { + border: 2px solid black; + border-radius: 50%; + z-index: unset; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--cor .diagonalCross { + width: 10px; + margin: 0 auto; + color: black; + transform: rotate(60deg); +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho { + order: 1; + margin-bottom: 10px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorNameContainer { + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorNameContainer .skuSelectorTextContainer .skuSelectorName { + font-size: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorNameContainer .skuSelectorTextContainer::before { + content: "Outros Tamanhos:"; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 14px; + line-height: 19px; + text-transform: uppercase; + color: #929292; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList { + margin-left: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem { + width: 40px; + height: 40px; + margin-left: 0; + margin-right: 16px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem .frameAround { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox { + border: 1px solid #989898; + border-radius: 50%; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem .skuSelectorInternalBox .skuSelectorItemTextValue { + color: rgba(185, 185, 185, 0.6); + padding: 0; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem--selected { + width: 40px; + height: 40px; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem--selected .frameAround { + display: none; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox { + border: 2px solid black; + border-radius: 50%; + z-index: unset; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox .skuSelectorItemTextValue { + color: black; +} +.container .skuSelectorContainer .skuSelectorSubcontainer--tamanho .skuSelectorOptionsList .skuSelectorItem--selected .skuSelectorInternalBox .diagonalCross { + width: 10px; + margin: 0 auto; + color: black; + transform: rotate(60deg); +} +.container .skuSelectorContainer .diagonalCross { + width: 10px; + margin: 0 auto; + color: #d5d5d5; + transform: rotate(60deg); +} + +:global(.vtex-input__label) { + font-size: 0; +} +:global(.vtex-input__label)::before { + content: "Calcular frete:"; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + text-transform: uppercase; + color: #929292; +} + +.shippingContainer { + margin-top: 16px; + margin-bottom: 16px; + position: relative; +} +@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 { + content: "OK"; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 600; + font-size: 14px; + line-height: 19px; + color: #ffffff; +} +.shippingContainer :global(.vtex-button) :global(.vtex-button__label) { + width: unset; + height: unset; +} +.shippingContainer :global(.vtex-input-prefix__group) { + height: 50px; +} +.shippingContainer :global(.vtex-input__suffix) { + 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; +} + +.shareContainer { + display: none; +} + +:global(.vtex-address-form__postalCode) { + padding: unset; +} + +:global(.vtex-address-form__postalCode-forgottenURL) { + text-decoration: underline; +} +@media screen and (min-width: 375px) and (max-width: 768px) { + :global(.vtex-address-form__postalCode-forgottenURL) { + display: flex; + flex-direction: row-reverse; + } +} +@media screen and (min-width: 768px) { + :global(.vtex-address-form__postalCode-forgottenURL) { + position: absolute; + right: -50%; + top: calc(50% + 13.5px); + transform: translateY(-50%); + padding: 0; + } +} +:global(.vtex-address-form__postalCode-forgottenURL) :global(.vtex__icon-external-link) { + display: none; +} + +.postalCode-forgottenURL { + bottom: 100px; +} + +:global(.vtex-product-identifier-0-x-product-identifier) { + display: flex; + justify-content: end; + margin-top: 8px; + margin-bottom: 24px; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + color: rgba(146, 146, 146, 0.48); +} +@media screen and (max-width: 1024px) { + :global(.vtex-product-identifier-0-x-product-identifier) { + justify-content: start; + } +} + +:global(.vtex-store-components-3-x-swiper-pagination), +:global(.vtex-store-components-3-x-swiperCaretNext), +:global(.vtex-store-components-3-x-swiperCaretPrev) { + display: none; +} + +:global(.vtex-store-components-3-x-productImageTag) { + object-fit: unset !important; + max-height: 664px !important; + max-width: 664px; + margin-bottom: 16px; +} +@media screen and (min-width: 1920px) { + :global(.vtex-store-components-3-x-productImageTag) { + max-height: unset !important; + max-width: unset; + width: auto !important; + height: 904px !important; + } +} +@media screen and (max-width: 1024px) { + :global(.vtex-store-components-3-x-productImageTag) { + max-width: 944px; + max-height: 944px !important; + } +} + +:global(.vtex-store-components-3-x-figure) { + max-width: 90px; + width: 90px; +} + +:global(.vtex-store-components-3-x-carouselGaleryThumbs) { + margin-top: unset; +} +:global(.vtex-store-components-3-x-carouselGaleryThumbs) :global(.vtex-store-components-3-x-productImagesThumbCaret) { + display: none; +} + +.thumbImg--video { + height: 90px; +} + +.thumbImg { + width: 90px !important; + height: 90px; + border-radius: 8px; +} + +.productImagesThumb { + width: 90px !important; + max-height: 90px !important; + margin: 0 16px 0 0; +} + +.newsletter--newsletter { + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + max-height: 175px; + background-color: black; + padding-bottom: 16px; + padding-top: 32px; +} +@media screen and (max-width: 1024px) { + .newsletter--newsletter { + height: 220px; + max-height: unset; + padding-top: 64px; + } +} +.newsletter--newsletter .container--newsletter { + margin: 0; + width: 100%; + padding: 0; +} +@media screen and (max-width: 1024px) { + .newsletter--newsletter .container--newsletter { + padding: 0 16px; + } +} +.newsletter--newsletter .container--newsletter .form--newsletter { + max-width: 774px !important; +} +@media screen and (max-width: 1024px) { + .newsletter--newsletter .container--newsletter .form--newsletter { + max-width: 992px !important; + } +} +.newsletter--newsletter .container--newsletter .form--newsletter .label--newsletter { + display: flex; + flex-direction: column; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 38px; + text-align: center; + color: #ffffff; +} +.newsletter--newsletter .container--newsletter .form--newsletter .label--newsletter::after { + content: "Receba ofertas e novidades por e-mail"; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #929292; + margin-top: 16px; +} +@media screen and (max-width: 1024px) { + .newsletter--newsletter .container--newsletter .form--newsletter .label--newsletter::after { + font-size: 16px; + line-height: 22px; + } +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter { + display: flex; + padding-top: 16px; + border-bottom: 1px solid #929292; +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter :global(.vtex-input-prefix__group) { + border: none; + height: 32px; + padding-bottom: 7px; +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) { + background-color: transparent; + padding: 0; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #929292; +} +@media screen and (max-width: 1024px) { + .newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) { + font-size: 12px; + line-height: 16px; + padding-left: 16px; + } +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter .buttonContainer--newsletter { + padding: 0; + border-bottom: 3px solid #bfbfbf; + height: 32px; +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter .buttonContainer--newsletter :global(.vtex-button) { + background-color: transparent; + border: none; +} +.newsletter--newsletter .container--newsletter .form--newsletter .inputGroup--newsletter .buttonContainer--newsletter :global(.vtex-button) :global(.vtex-button__label) { + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #ffffff; + padding: 0px 16px 13px 16px !important; +} + +.subscriberContainer .title { + font-size: 0; + margin: 0; +} +.subscriberContainer .title::before { + content: "Produto Indisponível"; + font-family: "Open Sans", sans-serif; + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #868686; +} +.subscriberContainer .subscribeLabel { + font-size: 0; +} +.subscriberContainer .subscribeLabel::before { + content: "Deseja saber quando estiver disponível?"; + font-family: "Open Sans", sans-serif; + 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%; +} +.subscriberContainer .inputName { + margin-right: 8px; +} +.subscriberContainer .inputName :global(.vtex-input-prefix__group), +.subscriberContainer .inputEmail :global(.vtex-input-prefix__group) { + border-radius: 0; + border: 1px solid #989898; +} +.subscriberContainer .inputName :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input), +.subscriberContainer .inputEmail :global(.vtex-input-prefix__group) :global(.vtex-styleguide-9-x-input) { + padding: 12px 14px; +} +.subscriberContainer .submit { + grid-column: span 2; +} +.subscriberContainer .submit :global(.vtex-button) { + background-color: black; + border-radius: 0; + border: none; + height: 49px; + width: 100%; +} +.subscriberContainer .submit :global(.vtex-button) :global(.vtex-button__label) { + font-size: 0; +} +.subscriberContainer .submit :global(.vtex-button) :global(.vtex-button__label)::before { + content: "Avise-me"; + font-family: "Open Sans", sans-serif; + font-weight: 600; + font-size: 18px; + line-height: 25px; + text-transform: uppercase; + color: #ffffff; } \ 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..c9ce9b1 --- /dev/null +++ b/styles/css/vtex.tab-layout.css @@ -0,0 +1,180 @@ +/* +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&family=Roboto:wght@400;500;700&display=swap"); +/* Grid breakpoints */ +.container--description { + height: 702px; + margin-top: 16px; + margin-bottom: 16px; +} +@media screen and (min-width: 1920px) { + .container--description { + height: 974px; + } +} +@media screen and (max-width: 1024px) { + .container--description { + height: 100%; + max-height: 1418px; + 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 { + border-top: 1px solid #bfbfbf; + } +} +@media screen and (max-width: 1024px) { + .container--description .listContainer { + flex-direction: column; + } +} +.container--description .listContainer .listItem { + padding: 0; + margin: 0; +} +@media screen and (max-width: 1024px) { + .container--description .listContainer .listItem { + margin-bottom: 16px; + } + .container--description .listContainer .listItem:first-child { + margin-top: 16px; + } +} +.container--description .listContainer .listItem :global(.vtex-button) { + background: white; + border: none; + font-family: "Open Sans", sans-serif; + font-size: 18px; + text-transform: none; + color: #bfbfbf; +} +@media screen and (min-width: 1920px) { + .container--description .listContainer .listItem :global(.vtex-button) { + font-size: 24px; + line-height: 38px; + } +} +@media screen and (min-width: 375px) and (max-width: 1024px) { + .container--description .listContainer .listItem :global(.vtex-button) { + display: flex; + justify-content: start; + width: 100%; + } +} +.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: none; + } +} +.container--description .listContainer .listItemActive :global(.vtex-button) { + color: black; +} +.container--description .contentContainer { + padding-top: 32px; +} +@media screen and (min-width: 1920px) { + .container--description .contentContainer { + padding-top: 64px; + } +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer { + padding-top: unset; + } +} +.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-imageElement) { + max-width: 632px; + margin-left: 32px; +} +@media screen and (min-width: 1920px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-imageElement) { + height: 872px; + } +} +@media screen and (min-width: 1920px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-imageElement) { + max-width: unset; + } +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-imageElement) { + max-width: 944px; + margin-top: 16px; + margin-left: unset; + } +} +.container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-left: 32px; +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-top: 16px; + margin-left: unset; + margin-bottom: 16px; + } +} +.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; +} +@media screen and (min-width: 1920px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionTitle) { + font-size: 32px; + line-height: 32px; + } +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionTitle) { + font-size: 20px; + line-height: 32px; + } +} +.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; + color: #929292; +} +@media screen and (min-width: 1920px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionText) { + font-size: 18px; + line-height: 25px; + } +} +@media screen and (max-width: 1024px) { + .container--description .contentContainer .contentItem :global(.vtex-store-components-3-x-productDescriptionContainer) :global(.vtex-store-components-3-x-productDescriptionText) { + font-size: 14px; + line-height: 19px; + } +} +.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..48b4498 100644 --- a/styles/sass/pages/product/agenciamagma.store-theme.scss +++ b/styles/sass/pages/product/agenciamagma.store-theme.scss @@ -3,6 +3,11 @@ } .html--pdp-breadcrumb { - background-color: green; + background-color: white; } +.html--prateleirateste { + height: 100%; + display: flex; + flex-direction: column; +} diff --git a/styles/sass/pages/product/vtex.breadcrumb.scss b/styles/sass/pages/product/vtex.breadcrumb.scss new file mode 100644 index 0000000..355ba05 --- /dev/null +++ b/styles/sass/pages/product/vtex.breadcrumb.scss @@ -0,0 +1,26 @@ +.container { + display: flex; + align-items: center; + flex-wrap: wrap; + font-size: 14px; + line-height: 19px; + padding: 0; + margin-bottom: 16px; + + .homeLink { + visibility: hidden; + padding: 0; + + &::before { + content: "Home"; + font-size: 14px; + line-height: 19px; + visibility: visible; + padding: 0; + } + } + + .homeIcon { + display: none; + } +} 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..58b1e74 --- /dev/null +++ b/styles/sass/pages/product/vtex.flex-layout.scss @@ -0,0 +1,90 @@ +.flexRowContent--buy-button-container { + margin-bottom: 16px; + + :global(.vtex-button) { + background-color: black; + border: none; + height: 50px; + margin-left: 10px; + + @media screen and (min-width: 375px) and (max-width: 768px) { + height: 74px; + margin-top: 10px; + margin-left: unset; + } + } +} + +.flexRow--buy-box { + .stretchChildrenWidth:nth-child(2n) { + width: 100% !important; + } +} + +.flexRowContent--principal { + .stretchChildrenWidth:nth-child(2n) { + width: 100% !important; + } + + .flexColChild--mainpage-col { + padding: 0; + } +} + +.flexRowContent { + padding: 0; + margin: 0; + + @media screen and (max-width: 1024px) { + display: flex; + flex-direction: column; + + .stretchChildrenWidth { + width: auto !important; + padding: 0; + } + + :global(.vtex-store-components-3-x-carouselGaleryThumbs) { + display: block; + } + + .flexRowContent--buy-box { + flex-direction: row; + + @media screen and (min-width: 375px) and (max-width: 768px) { + flex-direction: column; + } + } + } +} + +.flexRowContent--main-header-mobile { + flex-direction: row; +} +.flexColChild--mainpage-col { + padding-bottom: 2rem; +} + +: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..01251a6 --- /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: black; +} + +:global(.agenciamagma-store-theme-5-x-html--prateleirateste) { + height: 100%; + display: flex; + flex-direction: column; +} 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..9a084b3 --- /dev/null +++ b/styles/sass/pages/product/vtex.product-price.scss @@ -0,0 +1,24 @@ +.listPrice, +.savings { + display: none; +} + +.sellingPrice--hasListPrice { + font-family: "Open Sans"; + font-style: normal; + font-weight: 700; + font-size: 25px; + line-height: 38px; + + color: #000000; +} + +.installments { + font-family: "Open Sans"; + font-style: normal; + font-weight: 700; + font-size: 16px; + line-height: 22px; + + color: #929292; +} 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..efd890d --- /dev/null +++ b/styles/sass/pages/product/vtex.product-quantity.scss @@ -0,0 +1,43 @@ +.quantitySelectorContainer { + margin: 0; + .quantitySelectorTitle { + display: none; + } +} + +:global(.vtex-numeric-stepper__plus-button), +:global(.vtex-numeric-stepper__minus-button), +:global(.vtex-numeric-stepper__input) { + height: 50px; +} + +:global(.vtex-numeric-stepper__input) { + @media screen and (max-width: 1024px) { + width: 44px; + } +} + +:global(.vtex-numeric-stepper__minus-button) { + background-color: white; +} + +:global(.vtex-numeric-stepper__plus-button) { + color: black; +} + +:global(.vtex-numeric-stepper__input) { + border-right: none; + border-left: none; +} + +: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..ade3e51 100644 --- a/styles/sass/pages/product/vtex.rich-text.scss +++ b/styles/sass/pages/product/vtex.rich-text.scss @@ -0,0 +1,21 @@ +.container--title-shelf { + display: block; + text-align: center; + + .paragraph--title-shelf { + font-family: "Open Sans", sans-serif; + font-size: 24px; + line-height: 38px; + + color: #575757; + margin: 0; + + @media screen and (min-width: 1920px) { + margin-top: 16px; + } + + @media screen and (min-width: 375px) and (max-width: 768px) { + font-size: 20px; + } + } +} 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..11a5cde --- /dev/null +++ b/styles/sass/pages/product/vtex.slider-layout.scss @@ -0,0 +1,179 @@ +.sliderLayoutContainer--carousel { + background-color: transparent; + height: 630px; + + @media screen and (min-width: 375px) and (max-width: 768px) { + height: 393px; + } + + .sliderTrackContainer { + margin: 32px 27px 32px 27px; + padding-bottom: 32px; + + @media screen and (min-width: 375px) and (max-width: 768px) { + padding-bottom: 0; + } + + .sliderTrack { + margin-bottom: 32px; + } + } + + .slide { + width: 100%; + max-width: 314px; + height: 448px; + margin-right: 16px; + + @media screen and (max-width: 767px) { + margin-right: 8px; + } + + @media screen and (min-width: 768px) and (max-width: 1024px) { + margin-right: 12px; + } + + @media screen and (min-width: 375px) and (max-width: 768px) { + height: unset; + } + + :global(.vtex-product-summary-2-x-container) { + max-width: unset !important; + + :global(.vtex-product-summary-2-x-element) { + padding: 0; + } + + :global(.vtex-product-summary-2-x-imageContainer) { + width: 100%; + max-width: 314px; + height: 314px; + + @media screen and (min-width: 375px) and (max-width: 768px) { + max-width: 124px; + height: 124px; + } + + @media screen and (min-width: 768px) and (max-width: 1024px) { + max-width: 291px; + height: 291px; + } + + :global(.vtex-product-summary-2-x-imageNormal) { + max-height: 314px !important; + } + } + } + + :global(.vtex-product-summary-2-x-nameContainer) { + justify-content: center; + text-align: center; + padding: 16px 0 8px 0; + :global(.vtex-product-summary-2-x-productBrand) { + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + + color: #000000; + + @media screen and (min-width: 375px) and (max-width: 768px) { + font-size: 14px; + line-height: 19px; + } + } + } + + :global(.vtex-product-price-1-x-listPrice) { + display: block; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + text-align: center; + text-decoration-line: line-through; + color: #bababa; + padding-bottom: 8px; + + @media screen and (min-width: 375px) and (max-width: 768px) { + font-size: 12px; + line-height: 16px; + } + + :global(.vtex-product-price-1-x-listPriceValue) { + &::before { + content: "de "; + font-size: 14px; + } + + &::after { + content: " por"; + } + } + } + + :global(.vtex-product-price-1-x-sellingPrice) { + display: block; + text-align: center; + font-family: "Open Sans", sans-serif; + font-weight: 700; + font-size: 24px; + line-height: 33px; + color: #000000; + + @media screen and (min-width: 375px) and (max-width: 768px) { + font-size: 18px; + line-height: 25px; + } + } + } + + .sliderRightArrow, + .sliderLeftArrow { + margin: 0; + padding: 0; + .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; + + @media screen and (min-width: 375px) and (max-width: 768px) { + margin-bottom: 32px; + } + + .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; + } + } +} diff --git a/styles/sass/pages/product/vtex.store-components.scss b/styles/sass/pages/product/vtex.store-components.scss index 36d0f22..a94c951 100644 --- a/styles/sass/pages/product/vtex.store-components.scss +++ b/styles/sass/pages/product/vtex.store-components.scss @@ -1,3 +1,592 @@ -.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--quickview { + font-weight: 300; + font-size: 20px; + line-height: 34px; + text-align: right; + color: #575757; + + @media screen and (max-width: 1024px) { + text-align: unset; + margin-top: 32px; + } + } + + .skuSelectorContainer { + display: flex; + flex-direction: column; + + .skuSelectorSubcontainer--cor { + order: 2; + margin-bottom: 10px; + + .skuSelectorNameSeparator { + display: none; + } + + .skuSelectorSelectorImageValue { + display: none; + } + + .skuSelectorNameContainer { + margin-left: 0; + .skuSelectorTextContainer { + .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; + text-transform: uppercase; + + color: #929292; + } + } + } + + .skuSelectorOptionsList { + margin-left: 0; + .skuSelectorItem { + width: 40px; + height: 40px; + margin-left: 0; + margin-right: 16px; + + .frameAround { + display: none; + } + + .skuSelectorInternalBox { + border: 1px solid #989898; + border-radius: 50%; + .skuSelectorItemTextValue { + padding: 0; + } + } + } + + .skuSelectorItem--verde { + display: none; + } + .skuSelectorItem--selected { + width: 40px; + height: 40px; + + .frameAround { + display: none; + } + .skuSelectorInternalBox { + border: 2px solid black; + border-radius: 50%; + z-index: unset; + } + } + } + + .diagonalCross { + width: 10px; + margin: 0 auto; + color: black; + transform: rotate(60deg); + } + } + + .skuSelectorSubcontainer--tamanho { + order: 1; + margin-bottom: 10px; + + .skuSelectorNameContainer { + margin-left: 0; + .skuSelectorTextContainer { + .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; + text-transform: uppercase; + + color: #929292; + } + } + } + + .skuSelectorOptionsList { + margin-left: 0; + .skuSelectorItem { + width: 40px; + height: 40px; + margin-left: 0; + margin-right: 16px; + + .frameAround { + display: none; + } + + .skuSelectorInternalBox { + border: 1px solid #989898; + border-radius: 50%; + .skuSelectorItemTextValue { + color: rgba(185, 185, 185, 0.6); + padding: 0; + } + } + } + .skuSelectorItem--selected { + width: 40px; + height: 40px; + + .frameAround { + display: none; + } + .skuSelectorInternalBox { + border: 2px solid black; + border-radius: 50%; + z-index: unset; + + .skuSelectorItemTextValue { + color: black; + } + + .diagonalCross { + width: 10px; + margin: 0 auto; + color: black; + transform: rotate(60deg); + } + } + } + } + } + + .diagonalCross { + width: 10px; + margin: 0 auto; + color: #d5d5d5; + transform: rotate(60deg); + } + } +} + +:global(.vtex-input__label) { + font-size: 0; + + &::before { + content: "Calcular frete:"; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + text-transform: uppercase; + + color: #929292; + } +} + +.shippingContainer { + margin-top: 16px; + margin-bottom: 16px; + position: relative; + @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 { + content: "OK"; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 600; + font-size: 14px; + line-height: 19px; + + color: #ffffff; + } + :global(.vtex-button__label) { + width: unset; + height: unset; + } + } + + :global(.vtex-input-prefix__group) { + height: 50px; + } + + :global(.vtex-input__suffix) { + 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; + } + } +} + +.shareContainer { + display: none; +} + +:global(.vtex-address-form__postalCode) { + padding: unset; +} + +:global(.vtex-address-form__postalCode-forgottenURL) { + text-decoration: underline; + + @media screen and (min-width: 375px) and (max-width: 768px) { + display: flex; + flex-direction: row-reverse; + } + + @media screen and (min-width: 768px) { + position: absolute; + right: -50%; + top: calc(50% + 13.5px); + transform: translateY(-50%); + padding: 0; + } + + :global(.vtex__icon-external-link) { + display: none; + } +} + +.postalCode-forgottenURL { + bottom: 100px; +} +:global(.vtex-product-identifier-0-x-product-identifier) { + display: flex; + justify-content: end; + margin-top: 8px; + margin-bottom: 24px; + font-family: "Open Sans", sans-serif; + font-size: 14px; + line-height: 19px; + color: rgba(146, 146, 146, 0.48); + + @media screen and (max-width: 1024px) { + justify-content: start; + } +} + +:global(.vtex-store-components-3-x-swiper-pagination), +:global(.vtex-store-components-3-x-swiperCaretNext), +:global(.vtex-store-components-3-x-swiperCaretPrev) { + display: none; +} + +:global(.vtex-store-components-3-x-productImageTag) { + object-fit: unset !important; + max-height: 664px !important; + max-width: 664px; + margin-bottom: 16px; + + @media screen and (min-width: 1920px) { + max-height: unset !important; + max-width: unset; + width: auto !important; + height: 904px !important; + } + + @media screen and (max-width: 1024px) { + max-width: 944px; + max-height: 944px !important; + } +} + +:global(.vtex-store-components-3-x-figure) { + max-width: 90px; + width: 90px; +} + +:global(.vtex-store-components-3-x-carouselGaleryThumbs) { + margin-top: unset; + + :global(.vtex-store-components-3-x-productImagesThumbCaret) { + display: none; + } +} + +.thumbImg--video { + height: 90px; +} + +.thumbImg { + width: 90px !important; + height: 90px; + border-radius: 8px; +} + +.productImagesThumb { + width: 90px !important; + max-height: 90px !important; + margin: 0 16px 0 0; +} + +.newsletter--newsletter { + display: flex; + flex-direction: column; + align-items: center; + height: 100%; + max-height: 175px; + background-color: black; + padding-bottom: 16px; + padding-top: 32px; + + @media screen and (max-width: 1024px) { + height: 220px; + max-height: unset; + padding-top: 64px; + } + + .container--newsletter { + margin: 0; + width: 100%; + padding: 0; + + @media screen and (max-width: 1024px) { + padding: 0 16px; + } + .form--newsletter { + max-width: 774px !important; + + @media screen and (max-width: 1024px) { + max-width: 992px !important; + } + .label--newsletter { + display: flex; + flex-direction: column; + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 400; + font-size: 24px; + line-height: 38px; + text-align: center; + color: #ffffff; + + &::after { + content: "Receba ofertas e novidades por e-mail"; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #929292; + margin-top: 16px; + + @media screen and (max-width: 1024px) { + font-size: 16px; + line-height: 22px; + } + } + } + + .inputGroup--newsletter { + display: flex; + padding-top: 16px; + border-bottom: 1px solid #929292; + + :global(.vtex-input-prefix__group) { + border: none; + height: 32px; + padding-bottom: 7px; + + :global(.vtex-styleguide-9-x-input) { + background-color: transparent; + padding: 0; + font-family: "Open Sans", sans-serif; + font-size: 18px; + line-height: 25px; + color: #929292; + + @media screen and (max-width: 1024px) { + font-size: 12px; + line-height: 16px; + padding-left: 16px; + } + } + } + + .buttonContainer--newsletter { + padding: 0; + border-bottom: 3px solid #bfbfbf; + height: 32px; + + :global(.vtex-button) { + background-color: transparent; + border: none; + + :global(.vtex-button__label) { + font-family: "Open Sans", sans-serif; + font-style: normal; + font-weight: 700; + font-size: 14px; + line-height: 19px; + color: #ffffff; + padding: 0px 16px 13px 16px !important; + } + } + } + } + } + } +} + +.subscriberContainer { + .title { + font-size: 0; + margin: 0; + + &::before { + content: "Produto Indisponível"; + font-family: "Open Sans", sans-serif; + font-weight: 700; + font-size: 14px; + line-height: 19px; + + color: #868686; + } + } + + .subscribeLabel { + font-size: 0; + + &::before { + content: "Deseja saber quando estiver disponível?"; + font-family: "Open Sans", sans-serif; + 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%; + } + + .inputName { + margin-right: 8px; + } + + .inputName, + .inputEmail { + :global(.vtex-input-prefix__group) { + border-radius: 0; + border: 1px solid #989898; + + :global(.vtex-styleguide-9-x-input) { + padding: 12px 14px; + } + } + } + + .submit { + grid-column: span 2; + + :global(.vtex-button) { + background-color: black; + border-radius: 0; + border: none; + height: 49px; + width: 100%; + + :global(.vtex-button__label) { + font-size: 0; + + &::before { + content: "Avise-me"; + font-family: "Open Sans", sans-serif; + font-weight: 600; + font-size: 18px; + line-height: 25px; + text-transform: uppercase; + color: #ffffff; + } + } + } + } +} 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..024e867 --- /dev/null +++ b/styles/sass/pages/product/vtex.tab-layout.scss @@ -0,0 +1,167 @@ +.container--description { + height: 702px; + margin-top: 16px; + margin-bottom: 16px; + + @media screen and (min-width: 1920px) { + height: 974px; + } + + @media screen and (max-width: 1024px) { + height: 100%; + max-height: 1418px; + border-bottom: 1px solid #bfbfbf; + } + + .listContainer { + display: flex; + justify-content: space-around; + border-bottom: 1px solid #bfbfbf; + + @media screen and (max-width: 1024px) { + border-top: 1px solid #bfbfbf; + } + + @media screen and (max-width: 1024px) { + flex-direction: column; + } + + .listItem { + padding: 0; + margin: 0; + + @media screen and (max-width: 1024px) { + margin-bottom: 16px; + + &:first-child { + margin-top: 16px; + } + } + + :global(.vtex-button) { + background: white; + border: none; + font-family: "Open Sans", sans-serif; + font-size: 18px; + text-transform: none; + + color: #bfbfbf; + + @media screen and (min-width: 1920px) { + font-size: 24px; + line-height: 38px; + } + + @media screen and (min-width: 375px) and (max-width: 1024px) { + display: flex; + justify-content: start; + width: 100%; + } + + :global(.vtex-button__label) { + padding: 0; + } + } + } + + .listItemActive { + border-bottom: 2px solid black; + + @media screen and (max-width: 1024px) { + border: none; + } + + :global(.vtex-button) { + color: black; + } + } + } + + .contentContainer { + padding-top: 32px; + + @media screen and (min-width: 1920px) { + padding-top: 64px; + } + + @media screen and (max-width: 1024px) { + padding-top: unset; + } + .contentItem { + display: flex; + + @media screen and (max-width: 1024px) { + flex-direction: column; + } + + :global(.vtex-store-components-3-x-imageElement) { + max-width: 632px; + margin-left: 32px; + + @media screen and (min-width: 1920px) { + height: 872px; + } + + @media screen and (min-width: 1920px) { + max-width: unset; + } + + @media screen and (max-width: 1024px) { + max-width: 944px; + margin-top: 16px; + margin-left: unset; + } + } + + :global(.vtex-store-components-3-x-productDescriptionContainer) { + margin-left: 32px; + + @media screen and (max-width: 1024px) { + margin-top: 16px; + margin-left: unset; + margin-bottom: 16px; + } + + :global(.vtex-store-components-3-x-productDescriptionTitle) { + font-family: "Open Sans", sans-serif; + font-size: 24px; + line-height: 32px; + + color: #575757; + + @media screen and (min-width: 1920px) { + font-size: 32px; + line-height: 32px; + } + + @media screen and (max-width: 1024px) { + font-size: 20px; + line-height: 32px; + } + } + + :global(.vtex-store-components-3-x-productDescriptionText) { + font-family: "Open Sans", sans-serif; + font-size: 16px; + line-height: 22px; + + color: #929292; + + @media screen and (min-width: 1920px) { + font-size: 18px; + line-height: 25px; + } + + @media screen and (max-width: 1024px) { + font-size: 14px; + line-height: 19px; + } + } + + :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..502b958 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&family=Roboto:wght@400;500;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;