@nuvler/cli 0.5.3 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/api/client.js +3 -0
- package/dist/api/client.js.map +1 -1
- package/dist/api/theme-context.js +6 -1
- package/dist/api/theme-context.js.map +1 -1
- package/dist/commands/theme/create.js +1 -1
- package/dist/migrate/generator.js +32 -9
- package/dist/migrate/generator.js.map +1 -1
- package/dist/nuvler.js +101 -14
- package/dist/nuvler.js.map +1 -1
- package/dist/templates/nuvler-atelier/nuvler.theme.json +2 -2
- package/dist/templates/nuvler-atelier/package.json +3 -3
- package/dist/templates/nuvler-atelier/src/definition.tsx +42 -6
- package/dist/templates/nuvler-atelier/src/theme.css +20 -0
- package/dist/templates/nuvler-atelier/src/theme.tsx +1 -1
- package/dist/templates/nuvler-default/nuvler.theme.json +2 -2
- package/dist/templates/nuvler-default/package.json +2 -2
- package/dist/templates/nuvler-default/src/banner-carousel.tsx +19 -15
- package/dist/templates/nuvler-default/src/header-interactions.tsx +4 -4
- package/dist/templates/nuvler-default/src/header.tsx +2 -2
- package/dist/templates/nuvler-default/src/home.tsx +5 -3
- package/dist/templates/nuvler-default/src/server-shell.tsx +4 -1
- package/dist/templates/nuvler-default/src/theme-component.tsx +2 -2
- package/dist/templates/nuvler-default/src/theme.css +9 -2
- package/dist/templates/starter/README.md +5 -0
- package/dist/templates/starter/nuvler.theme.json +1 -1
- package/dist/templates/starter/package.json +2 -2
- package/dist/templates/starter/src/definition.tsx +30 -4
- package/dist/templates/starter/src/theme.css +13 -2
- package/dist/templates/starter/src/theme.tsx +1 -1
- package/package.json +3 -3
- package/preview-host/package.json +1 -1
- package/preview-host/src/main.tsx +31 -11
- package/preview-host/src/preview-path.d.mts +4 -0
- package/preview-host/src/preview-path.mjs +14 -0
- package/preview-host/src/public-preview-url.mjs +1 -1
- package/preview-host/vendor/theme-runtime/default-theme.tsx +39 -13
package/dist/nuvler.js
CHANGED
|
@@ -35,7 +35,7 @@ var CLI_VERSION = JSON.parse(readFileSync(packagePath, "utf8")).version;
|
|
|
35
35
|
var THEME_ID_PATTERN = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
36
36
|
var NEW_THEME_VERSION = "0.1.0";
|
|
37
37
|
var CLI_VERSION_RANGE = `^${CLI_VERSION}`;
|
|
38
|
-
var SDK_VERSION_RANGE = "^1.3.
|
|
38
|
+
var SDK_VERSION_RANGE = "^1.3.3";
|
|
39
39
|
var THEME_TEMPLATES = [
|
|
40
40
|
{
|
|
41
41
|
id: "starter",
|
|
@@ -6912,6 +6912,29 @@ var ThemeComponentSectionDataSchema = object({
|
|
|
6912
6912
|
schemaVersion: number$1().int().positive().max(1e3),
|
|
6913
6913
|
props: record(string$1(), unknown())
|
|
6914
6914
|
}).strict();
|
|
6915
|
+
var publicHrefSchema = string$1().trim().min(1).max(2048).refine((value) => /^\/(?!\/)[^\s]*$/.test(value) || /^https:\/\/[^\s]+$/i.test(value), "Use um caminho interno iniciado por / ou uma URL HTTPS");
|
|
6916
|
+
var ThemeBannerCarouselDataSchema = object({
|
|
6917
|
+
banners: array(object({
|
|
6918
|
+
imageUrl: string$1().url().or(literal("")).optional(),
|
|
6919
|
+
image: ThemeImageSchema.nullable().optional(),
|
|
6920
|
+
imageAlt: string$1().optional(),
|
|
6921
|
+
mobileImageUrl: string$1().url().or(literal("")).optional(),
|
|
6922
|
+
mobileImage: ThemeImageSchema.nullable().optional(),
|
|
6923
|
+
mobileImageAlt: string$1().optional(),
|
|
6924
|
+
title: string$1().optional(),
|
|
6925
|
+
description: string$1().optional(),
|
|
6926
|
+
buttonLabel: string$1().optional(),
|
|
6927
|
+
buttonUrl: publicHrefSchema.or(literal("")).optional()
|
|
6928
|
+
}).strict()).max(6).optional(),
|
|
6929
|
+
autoplay: boolean$1().optional(),
|
|
6930
|
+
desktopHeight: number$1().int().min(200).max(900).optional(),
|
|
6931
|
+
mobileHeight: number$1().int().min(160).max(700).optional(),
|
|
6932
|
+
imageFit: _enum([
|
|
6933
|
+
"COVER",
|
|
6934
|
+
"CONTAIN",
|
|
6935
|
+
"NATURAL"
|
|
6936
|
+
]).optional()
|
|
6937
|
+
}).strict();
|
|
6915
6938
|
var ThemeHomeSectionSchema = object({
|
|
6916
6939
|
id: string$1().optional(),
|
|
6917
6940
|
type: _enum([
|
|
@@ -6931,6 +6954,15 @@ var ThemeHomeSectionSchema = object({
|
|
|
6931
6954
|
order: number$1().int().nonnegative(),
|
|
6932
6955
|
data: record(string$1(), unknown())
|
|
6933
6956
|
}).strict().superRefine((section, context) => {
|
|
6957
|
+
if (section.type === "banner-carousel") {
|
|
6958
|
+
const parsed = ThemeBannerCarouselDataSchema.safeParse(section.data);
|
|
6959
|
+
if (!parsed.success) parsed.error.issues.forEach((issue) => context.addIssue({
|
|
6960
|
+
code: ZodIssueCode.custom,
|
|
6961
|
+
path: ["data", ...issue.path],
|
|
6962
|
+
message: issue.message
|
|
6963
|
+
}));
|
|
6964
|
+
return;
|
|
6965
|
+
}
|
|
6934
6966
|
if (section.type !== "theme-component") return;
|
|
6935
6967
|
const parsed = ThemeComponentSectionDataSchema.safeParse(section.data);
|
|
6936
6968
|
if (parsed.success) return;
|
|
@@ -6959,6 +6991,7 @@ var ThemeCategorySchema = lazy(() => object({
|
|
|
6959
6991
|
children: array(ThemeCategorySchema)
|
|
6960
6992
|
}).strict());
|
|
6961
6993
|
var ThemeProductSchema = object({
|
|
6994
|
+
categoryPath: array(string$1()).optional(),
|
|
6962
6995
|
title: string$1(),
|
|
6963
6996
|
slug: string$1(),
|
|
6964
6997
|
description: string$1(),
|
|
@@ -7002,6 +7035,29 @@ var ThemeNavigationPageSchema = object({
|
|
|
7002
7035
|
slug: string$1(),
|
|
7003
7036
|
publishedAt: nullableStringSchema
|
|
7004
7037
|
}).strict();
|
|
7038
|
+
var ThemeNavigationItemSchema = object({
|
|
7039
|
+
key: string$1().min(1),
|
|
7040
|
+
type: _enum([
|
|
7041
|
+
"CATEGORY",
|
|
7042
|
+
"BLOG",
|
|
7043
|
+
"SERVICES",
|
|
7044
|
+
"CASES",
|
|
7045
|
+
"PAGE",
|
|
7046
|
+
"LINK"
|
|
7047
|
+
]),
|
|
7048
|
+
label: string$1().min(1),
|
|
7049
|
+
href: publicHrefSchema,
|
|
7050
|
+
order: number$1().int().nonnegative(),
|
|
7051
|
+
openInNewTab: boolean$1().optional()
|
|
7052
|
+
}).strict();
|
|
7053
|
+
var ThemeNavigationHeaderButtonSchema = object({
|
|
7054
|
+
enabled: boolean$1(),
|
|
7055
|
+
label: string$1().min(1).max(40),
|
|
7056
|
+
href: publicHrefSchema,
|
|
7057
|
+
backgroundColor: string$1().regex(/^#[0-9a-f]{6}$/i),
|
|
7058
|
+
textColor: string$1().regex(/^#[0-9a-f]{6}$/i),
|
|
7059
|
+
openInNewTab: boolean$1()
|
|
7060
|
+
}).strict();
|
|
7005
7061
|
var ThemeEditorialItemSchema = object({
|
|
7006
7062
|
title: string$1(),
|
|
7007
7063
|
slug: string$1(),
|
|
@@ -7019,7 +7075,9 @@ var ThemeContextSchema = object({
|
|
|
7019
7075
|
site: ThemeSiteSchema,
|
|
7020
7076
|
navigation: object({
|
|
7021
7077
|
pages: array(ThemeNavigationPageSchema),
|
|
7022
|
-
categories: array(ThemeCategorySchema)
|
|
7078
|
+
categories: array(ThemeCategorySchema),
|
|
7079
|
+
menu: array(ThemeNavigationItemSchema).optional(),
|
|
7080
|
+
headerButton: ThemeNavigationHeaderButtonSchema.nullable().optional()
|
|
7023
7081
|
}).strict(),
|
|
7024
7082
|
home: ThemeHomeSchema,
|
|
7025
7083
|
catalog: object({
|
|
@@ -7560,6 +7618,9 @@ var PublicApiClient = class {
|
|
|
7560
7618
|
getPages(store) {
|
|
7561
7619
|
return this.request("pages", `/public/${encodeURIComponent(store)}/pages`);
|
|
7562
7620
|
}
|
|
7621
|
+
getNavigationMenu(store) {
|
|
7622
|
+
return this.request("navigation-menu", `/public/${encodeURIComponent(store)}/navigation-menu`);
|
|
7623
|
+
}
|
|
7563
7624
|
getBlogs(store) {
|
|
7564
7625
|
return this.request("blog", `/public/${encodeURIComponent(store)}/blog`);
|
|
7565
7626
|
}
|
|
@@ -7671,14 +7732,15 @@ async function loadThemeContext({ store, apiUrl }) {
|
|
|
7671
7732
|
const site = await client.getSite(store);
|
|
7672
7733
|
const modules = new Set(site.modules);
|
|
7673
7734
|
const emptyProducts = { items: [] };
|
|
7674
|
-
const [home, products, categories, pages, posts, services, cases] = await Promise.all([
|
|
7735
|
+
const [home, products, categories, pages, posts, services, cases, menu] = await Promise.all([
|
|
7675
7736
|
modules.has("HOME") ? publicResourceOr(client.getHome(store), emptyHome(site.tenant.name)) : Promise.resolve(emptyHome(site.tenant.name)),
|
|
7676
7737
|
modules.has("PRODUCTS") ? publicResourceOr(client.getProducts(store), emptyProducts) : Promise.resolve(emptyProducts),
|
|
7677
7738
|
modules.has("PRODUCTS") ? publicResourceOr(client.getProductCategories(store), []) : Promise.resolve([]),
|
|
7678
7739
|
modules.has("NAVIGATION") ? publicResourceOr(client.getPages(store), []) : Promise.resolve([]),
|
|
7679
7740
|
modules.has("BLOG") ? publicResourceOr(client.getBlogs(store), []) : Promise.resolve([]),
|
|
7680
7741
|
modules.has("SERVICES") ? publicResourceOr(client.getServices(store), []) : Promise.resolve([]),
|
|
7681
|
-
modules.has("CASES") ? publicResourceOr(client.getCases(store), []) : Promise.resolve([])
|
|
7742
|
+
modules.has("CASES") ? publicResourceOr(client.getCases(store), []) : Promise.resolve([]),
|
|
7743
|
+
modules.has("NAVIGATION") ? publicResourceOr(client.getNavigationMenu(store), []) : Promise.resolve([])
|
|
7682
7744
|
]);
|
|
7683
7745
|
const candidate = {
|
|
7684
7746
|
schemaVersion: THEME_SCHEMA_VERSION$1,
|
|
@@ -7716,7 +7778,9 @@ async function loadThemeContext({ store, apiUrl }) {
|
|
|
7716
7778
|
slug,
|
|
7717
7779
|
publishedAt
|
|
7718
7780
|
})),
|
|
7719
|
-
categories: categories.map(normalizeCategory)
|
|
7781
|
+
categories: categories.map(normalizeCategory),
|
|
7782
|
+
menu,
|
|
7783
|
+
headerButton: site.navigation?.headerButton ?? null
|
|
7720
7784
|
},
|
|
7721
7785
|
home: {
|
|
7722
7786
|
title: home.title,
|
|
@@ -10044,17 +10108,21 @@ function headerSource(plan) {
|
|
|
10044
10108
|
const style = profile(plan, "HEADER");
|
|
10045
10109
|
return `import type { HeaderProps } from "@nuvler/theme-sdk";
|
|
10046
10110
|
|
|
10047
|
-
export function Header({ site, categories, pages }: HeaderProps) {
|
|
10111
|
+
export function Header({ site, categories, pages, menu = [], headerButton }: HeaderProps) {
|
|
10048
10112
|
const name = site.settings?.siteName || site.tenant.name;
|
|
10113
|
+
const links = menu.length ? menu : [
|
|
10114
|
+
...categories.slice(0, 6).map((category) => ({ key: \`category:\${category.slug}\`, label: category.name, href: \`/\${category.slug}\`, openInNewTab: false })),
|
|
10115
|
+
...pages.slice(0, 4).map((page) => ({ key: \`page:\${page.slug}\`, label: page.title, href: \`/\${page.slug}\`, openInNewTab: false })),
|
|
10116
|
+
];
|
|
10049
10117
|
return <header className=${classes("nuvler-migrated-header", style.root)}>
|
|
10050
10118
|
<div className=${classes("nuvler-migrated-header-inner", style.content)}>
|
|
10051
10119
|
<a className=${classes("nuvler-migrated-brand", style.brand)} href="/">
|
|
10052
10120
|
{site.settings?.logo?.url ? <img src={site.settings.logo.url} alt={site.settings.logo.alt || name} /> : <span>{name}</span>}
|
|
10053
10121
|
</a>
|
|
10054
10122
|
<nav className=${classes("nuvler-migrated-nav", style.navigation)}>
|
|
10055
|
-
{
|
|
10056
|
-
{pages.slice(0, 4).map((page) => <a href={\`/\${page.slug}\`} key={page.slug}>{page.title}</a>)}
|
|
10123
|
+
{links.map((item) => <a href={item.href} key={item.key} target={item.openInNewTab ? "_blank" : undefined} rel={item.openInNewTab ? "noreferrer" : undefined}>{item.label}</a>)}
|
|
10057
10124
|
</nav>
|
|
10125
|
+
{headerButton?.enabled && <a className="nuvler-migrated-header-button" href={headerButton.href} style={{ backgroundColor: headerButton.backgroundColor, color: headerButton.textColor }} target={headerButton.openInNewTab ? "_blank" : undefined} rel={headerButton.openInNewTab ? "noreferrer" : undefined}>{headerButton.label}</a>}
|
|
10058
10126
|
</div>
|
|
10059
10127
|
</header>;
|
|
10060
10128
|
}
|
|
@@ -10168,7 +10236,7 @@ function homeSource(plan, fidelity) {
|
|
|
10168
10236
|
componentKey,
|
|
10169
10237
|
classes: bindingClasses
|
|
10170
10238
|
}));
|
|
10171
|
-
return `import { useState, type FormEvent } from "react";
|
|
10239
|
+
return `import { useState, type CSSProperties, type FormEvent } from "react";
|
|
10172
10240
|
import type { HomeProps, ThemeContactSubmissionInput, ThemeEditorialItem, ThemeHomeSection } from "@nuvler/theme-sdk";
|
|
10173
10241
|
import { ProductGrid } from "../components/ProductGrid.js";
|
|
10174
10242
|
|
|
@@ -10207,6 +10275,13 @@ function media(data: Record<string, unknown>): { url: string; alt: string } | nu
|
|
|
10207
10275
|
return { url, alt: (image ? value(image, "alt") : "") || value(data, "imageAlt") };
|
|
10208
10276
|
}
|
|
10209
10277
|
|
|
10278
|
+
function mobileMedia(data: Record<string, unknown>): { url: string; alt: string } | null {
|
|
10279
|
+
const image = record(data.mobileImage);
|
|
10280
|
+
const url = image ? value(image, "url") : value(data, "mobileImageUrl");
|
|
10281
|
+
if (!url) return null;
|
|
10282
|
+
return { url, alt: (image ? value(image, "alt") : "") || value(data, "mobileImageAlt") };
|
|
10283
|
+
}
|
|
10284
|
+
|
|
10210
10285
|
function bindingFor(section: ThemeHomeSection, index: number, sections: ThemeHomeSection[]): Binding | undefined {
|
|
10211
10286
|
if (section.id) {
|
|
10212
10287
|
const exact = migratedBindings.find((binding) => binding.id === section.id);
|
|
@@ -10306,11 +10381,14 @@ function Banners({ section, binding }: { section: ThemeHomeSection; binding?: Bi
|
|
|
10306
10381
|
const banners = Array.isArray(section.data.banners)
|
|
10307
10382
|
? section.data.banners.map(record).filter((item): item is Record<string, unknown> => Boolean(item))
|
|
10308
10383
|
: [];
|
|
10309
|
-
const configured = banners.map((banner) => ({ banner, image: media(banner) })).filter(({ image }) => Boolean(image));
|
|
10384
|
+
const configured = banners.map((banner) => ({ banner, image: media(banner), mobileImage: mobileMedia(banner) })).filter(({ image }) => Boolean(image));
|
|
10310
10385
|
if (!configured.length) return null;
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10386
|
+
const imageFit = ["COVER", "CONTAIN", "NATURAL"].includes(value(section.data, "imageFit")) ? value(section.data, "imageFit") : "COVER";
|
|
10387
|
+
const desktopHeight = typeof section.data.desktopHeight === "number" ? section.data.desktopHeight : 520;
|
|
10388
|
+
const mobileHeight = typeof section.data.mobileHeight === "number" ? section.data.mobileHeight : 360;
|
|
10389
|
+
return <section className={cx("nuvler-migrated-banners", binding?.classes.root)} data-image-fit={imageFit} style={{ "--nuvler-banner-height": \`\${desktopHeight}px\`, "--nuvler-banner-mobile-height": \`\${mobileHeight}px\` } as CSSProperties}>
|
|
10390
|
+
{configured.map(({ banner, image, mobileImage }, index) => <article className={cx("nuvler-migrated-banner", binding?.classes.card)} key={value(banner, "id") || index}>
|
|
10391
|
+
<picture>{mobileImage && <source media="(max-width: 700px)" srcSet={mobileImage.url} />}<img className={cx("nuvler-migrated-banner-media", binding?.classes.media)} src={image!.url} alt={image!.alt || value(banner, "title")} /></picture>
|
|
10314
10392
|
<div className={cx("nuvler-migrated-banner-content", binding?.classes.content)}>
|
|
10315
10393
|
{value(banner, "title") && <h2 className={binding?.classes.title}>{value(banner, "title")}</h2>}
|
|
10316
10394
|
{value(banner, "description") && <p className={binding?.classes.text}>{value(banner, "description")}</p>}
|
|
@@ -10735,7 +10813,7 @@ export default function Theme({ context, route = { type: "home" }, sdk }: Nuvler
|
|
|
10735
10813
|
if (${JSON.stringify(hasFidelityHome)} && route.type === "home") {
|
|
10736
10814
|
return <div className="nuvler-migrated-theme nuvler-migrated-fidelity" style={style}>{content}</div>;
|
|
10737
10815
|
}
|
|
10738
|
-
return <div className="nuvler-migrated-theme" style={style}><Header site={site} categories={context.navigation.categories} pages={context.navigation.pages} template={themeDefinition.template} /><div className="nuvler-migrated-page">{content}</div><Footer site={site} pages={context.navigation.pages} template={themeDefinition.template} /></div>;
|
|
10816
|
+
return <div className="nuvler-migrated-theme" style={style}><Header site={site} categories={context.navigation.categories} pages={context.navigation.pages} menu={context.navigation.menu} headerButton={context.navigation.headerButton} template={themeDefinition.template} /><div className="nuvler-migrated-page">{content}</div><Footer site={site} pages={context.navigation.pages} template={themeDefinition.template} /></div>;
|
|
10739
10817
|
}
|
|
10740
10818
|
`;
|
|
10741
10819
|
}
|
|
@@ -11774,6 +11852,7 @@ body { margin: 0; }
|
|
|
11774
11852
|
.nuvler-migrated-brand img { display: block; width: auto; max-width: 200px; max-height: 56px; }
|
|
11775
11853
|
.nuvler-migrated-nav { display: flex; flex-wrap: wrap; gap: 18px; }
|
|
11776
11854
|
.nuvler-migrated-nav a, .nuvler-migrated-brand, .nuvler-migrated-footer a { color: inherit; text-decoration: none; }
|
|
11855
|
+
.nuvler-migrated-header-button { flex: 0 0 auto; border-radius: var(--theme-radius); padding: 12px 18px; font-weight: 700; text-decoration: none; }
|
|
11777
11856
|
.nuvler-migrated-search { display: flex; gap: 8px; }
|
|
11778
11857
|
.nuvler-migrated-search input { min-width: 220px; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); color: var(--theme-header-text); padding: 10px 13px; }
|
|
11779
11858
|
.nuvler-migrated-action { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--theme-radius); background: var(--theme-primary); color: var(--theme-primary-text); padding: 12px 18px; text-decoration: none; cursor: pointer; }
|
|
@@ -11792,6 +11871,13 @@ body { margin: 0; }
|
|
|
11792
11871
|
.nuvler-migrated-contact-form .nuvler-migrated-checkbox { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; line-height: 1.55; }
|
|
11793
11872
|
.nuvler-migrated-contact-form .nuvler-migrated-checkbox input { width: 18px; height: 18px; margin-top: 2px; padding: 0; accent-color: var(--theme-primary); }
|
|
11794
11873
|
.nuvler-migrated-video { display: block; width: 100%; max-height: 720px; margin-top: 24px; border-radius: var(--theme-radius); background: #000; }
|
|
11874
|
+
.nuvler-migrated-banners { width: min(calc(100% - 32px), var(--theme-container)); margin-inline: auto; }
|
|
11875
|
+
.nuvler-migrated-banner { position: relative; height: var(--nuvler-banner-height); overflow: hidden; }
|
|
11876
|
+
.nuvler-migrated-banner picture, .nuvler-migrated-banner-media { display: block; width: 100%; height: 100%; }
|
|
11877
|
+
.nuvler-migrated-banner-media { object-fit: cover; }
|
|
11878
|
+
.nuvler-migrated-banners[data-image-fit="CONTAIN"] .nuvler-migrated-banner-media { object-fit: contain; }
|
|
11879
|
+
.nuvler-migrated-banners[data-image-fit="NATURAL"] .nuvler-migrated-banner, .nuvler-migrated-banners[data-image-fit="NATURAL"] picture, .nuvler-migrated-banners[data-image-fit="NATURAL"] .nuvler-migrated-banner-media { height: auto; }
|
|
11880
|
+
.nuvler-migrated-banner-content { position: absolute; inset: auto 0 0; padding: clamp(24px, 5vw, 56px); color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); }
|
|
11795
11881
|
.nuvler-migrated-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
|
|
11796
11882
|
.nuvler-migrated-product-grid[data-columns="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
|
|
11797
11883
|
.nuvler-migrated-product-card { overflow: hidden; border: 1px solid var(--theme-border); border-radius: var(--theme-radius); background: var(--theme-surface); }
|
|
@@ -11804,6 +11890,7 @@ body { margin: 0; }
|
|
|
11804
11890
|
.nuvler-migrated-footer-inner { width: 100%; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
|
|
11805
11891
|
.nuvler-migrated-footer-nav, .nuvler-migrated-contact { display: grid; gap: 8px; }
|
|
11806
11892
|
@media (max-width: 850px) { .nuvler-migrated-header-inner, .nuvler-migrated-hero, .nuvler-migrated-contact-form-section, .nuvler-migrated-contact-form { grid-template-columns: 1fr; flex-direction: column; align-items: stretch; } .nuvler-migrated-form-wide { grid-column: auto; } .nuvler-migrated-nav { overflow-x: auto; flex-wrap: nowrap; } .nuvler-migrated-search input { width: 100%; min-width: 0; } .nuvler-migrated-product-grid, .nuvler-migrated-product-grid[data-columns="4"], .nuvler-migrated-product-detail, .nuvler-migrated-footer-inner { grid-template-columns: 1fr; } }
|
|
11893
|
+
@media (max-width: 700px) { .nuvler-migrated-banners:not([data-image-fit="NATURAL"]) .nuvler-migrated-banner { height: var(--nuvler-banner-mobile-height); } }
|
|
11807
11894
|
|
|
11808
11895
|
:root {
|
|
11809
11896
|
--theme-primary: ${plan.tokens.primary};
|