Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

experimental: Paste from webflow 4 (#3491)

Oleg Isonen4aef12cd7a58
diff --git a/apps/builder/app/shared/copy-paste/init-copy-paste.ts b/apps/builder/app/shared/copy-paste/init-copy-paste.ts
index de907345ed..7c64877d0d 100644
--- a/apps/builder/app/shared/copy-paste/init-copy-paste.ts
+++ b/apps/builder/app/shared/copy-paste/init-copy-paste.ts
@@ -37,11 +37,11 @@ type Plugin = {
mimeType?: string;
onCopy?: () => undefined | string;
onCut?: () => undefined | string;
- onPaste?: (data: string) => boolean;
+ onPaste?: (data: string) => boolean | Promise<boolean>;
};
export const initCopyPaste = (plugins: Plugin[]) => {
- const handleCopy = (event: ClipboardEvent) => {
+ const handleCopy = async (event: ClipboardEvent) => {
if ($authTokenPermissions.get().canCopy === false) {
toastError("Copying has been disabled by the project owner");
event.preventDefault();
@@ -55,7 +55,7 @@ export const initCopyPaste = (plugins: Plugin[]) => {
return;
}
for (const { mimeType = defaultMimeType, onCopy } of plugins) {
- const data = onCopy?.();
+ const data = await onCopy?.();
if (data) {
// must prevent default, otherwise setData() will not work
event.preventDefault();
diff --git a/apps/builder/app/shared/copy-paste/plugin-embed-template.ts b/apps/builder/app/shared/copy-paste/plugin-embed-template.ts
index aace4dfa0b..480f2c177e 100644
--- a/apps/builder/app/shared/copy-paste/plugin-embed-template.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-embed-template.ts
@@ -32,7 +32,7 @@ const parse = (clipboardData: string): WsEmbedTemplate | undefined => {
export const mimeType = "text/plain";
-export const onPaste = (clipboardData: string): boolean => {
+export const onPaste = (clipboardData: string) => {
const template = parse(clipboardData);
const selectedPage = $selectedPage.get();
diff --git a/apps/builder/app/shared/copy-paste/plugin-instance.ts b/apps/builder/app/shared/copy-paste/plugin-instance.ts
index b071415481..aa8968dabf 100644
--- a/apps/builder/app/shared/copy-paste/plugin-instance.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-instance.ts
@@ -162,7 +162,7 @@ const getPasteTarget = (
return pasteTarget;
};
-export const onPaste = (clipboardData: string): boolean => {
+export const onPaste = (clipboardData: string) => {
const fragment = parse(clipboardData);
const selectedPage = $selectedPage.get();
diff --git a/apps/builder/app/shared/copy-paste/plugin-markdown.ts b/apps/builder/app/shared/copy-paste/plugin-markdown.ts
index a400780b75..4d390d65d9 100644
--- a/apps/builder/app/shared/copy-paste/plugin-markdown.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-markdown.ts
@@ -219,7 +219,7 @@ const parse = (clipboardData: string, options?: Options) => {
return data;
};
-export const onPaste = (clipboardData: string): boolean => {
+export const onPaste = (clipboardData: string) => {
const data = parse(clipboardData);
const selectedPage = $selectedPage.get();
if (data === undefined || selectedPage === undefined) {
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/__generated__/style-presets.ts b/apps/builder/app/shared/copy-paste/plugin-webflow/__generated__/style-presets.ts
new file mode 100644
index 0000000000..ac9b156261
--- /dev/null
+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/__generated__/style-presets.ts
@@ -0,0 +1,7212 @@
+/* eslint-disable */
+/* This file was generated by css-to-ws.ts */
+export default {
+ html: [
+ {
+ property: "webkitTextSizeAdjust",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "msTextSizeAdjust",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "sans-serif",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ body: [
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "minHeight",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "unparsed",
+ value: "Arial,sans-serif",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ ],
+ article: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ aside: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ details: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ figcaption: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ ],
+ figure: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "0 0 10px",
+ },
+ },
+ ],
+ footer: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ header: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ hgroup: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ main: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ menu: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ nav: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ section: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ summary: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ audio: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ canvas: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ progress: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ video: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ template: [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ a: [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ ],
+ b: [
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ ],
+ strong: [
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ ],
+ dfn: [
+ {
+ property: "fontStyle",
+ value: {
+ type: "keyword",
+ value: "italic",
+ },
+ },
+ ],
+ h1: [
+ {
+ property: "margin",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "em",
+ value: 0.67,
+ },
+ {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 2,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 38,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 44,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 38,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 44,
+ },
+ },
+ ],
+ mark: [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 0,
+ },
+ },
+ ],
+ small: [
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 80,
+ },
+ },
+ ],
+ sub: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: -0.25,
+ },
+ },
+ ],
+ sup: [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: -0.5,
+ },
+ },
+ ],
+ img: [
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "middle",
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ hr: [
+ {
+ property: "boxSizing",
+ value: {
+ type: "keyword",
+ value: "content-box",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ pre: [
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "monospace",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ ],
+ code: [
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "monospace",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ ],
+ kbd: [
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "monospace",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ ],
+ samp: [
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "monospace",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ ],
+ button: [
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "font",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "textTransform",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "webkitAppearance",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "webkitAppearance",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ input: [
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "font",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ ],
+ optgroup: [
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "font",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ ],
+ select: [
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "font",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "textTransform",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ textarea: [
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "font",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ legend: [
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ table: [
+ {
+ property: "borderCollapse",
+ value: {
+ type: "keyword",
+ value: "collapse",
+ },
+ },
+ {
+ property: "borderSpacing",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ td: [
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "unparsed",
+ value: "webflow-icons",
+ },
+ },
+ {
+ property: "src",
+ value: {
+ type: "unparsed",
+ value:
+ 'url(data:application/x-font-ttf;charset=utf-8;base64,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)format("truetype")',
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "fontStyle",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ ],
+ th: [
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "unparsed",
+ value: "webflow-icons",
+ },
+ },
+ {
+ property: "src",
+ value: {
+ type: "unparsed",
+ value:
+ 'url(data:application/x-font-ttf;charset=utf-8;base64,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)format("truetype")',
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "fontStyle",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ ],
+ "*": [
+ {
+ property: "boxSizing",
+ value: {
+ type: "keyword",
+ value: "border-box",
+ },
+ },
+ ],
+ "w-block": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-inline-block": [
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-hidden": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-button": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 56,
+ g: 152,
+ b: 236,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "borderRadius",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 9,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 15,
+ },
+ ],
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-code-block": [
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ ],
+ "w-webflow-badge": [
+ {
+ property: "zIndex",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "visibility",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "boxSizing",
+ value: {
+ type: "keyword",
+ value: "border-box",
+ },
+ },
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "clear",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "boxShadow",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1,
+ },
+ },
+ {
+ property: "direction",
+ value: {
+ type: "keyword",
+ value: "ltr",
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "fontStyle",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "fontVariant",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "letterSpacing",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "webkitTextDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "textIndent",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "textTransform",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "textShadow",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "fontSmoothing",
+ value: {
+ type: "invalid",
+ value: "auto",
+ },
+ },
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "baseline",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "wordBreak",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "wordSpacing",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "wordWrap",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ {
+ type: "unparsed",
+ value: "rgba(0,0,0,0)",
+ },
+ ],
+ },
+ },
+ {
+ property: "borderRadius",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "minWidth",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "minHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "maxHeight",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "listStyleType",
+ value: {
+ type: "keyword",
+ value: "disc",
+ },
+ },
+ {
+ property: "transition",
+ value: {
+ type: "invalid",
+ value: "none",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "static",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "transform",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "boxShadow",
+ value: {
+ type: "unparsed",
+ value: "0 0 0 1px rgba(0,0,0,0.1),0 1px 3px rgba(0,0,0,0.1)",
+ },
+ },
+ {
+ property: "visibility",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 2147483647,
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 170,
+ g: 173,
+ b: 176,
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1,
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "borderRadius",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 3,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 6,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "fixed",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "transform",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ h2: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 32,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 36,
+ },
+ },
+ ],
+ h3: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 24,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 30,
+ },
+ },
+ ],
+ h4: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 18,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 24,
+ },
+ },
+ ],
+ h5: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ ],
+ h6: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 18,
+ },
+ },
+ ],
+ p: [
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ ],
+ blockquote: [
+ {
+ property: "borderLeft",
+ value: {
+ type: "unparsed",
+ value: "5px solid #e2e2e2",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "0 0 10px",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 18,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 22,
+ },
+ },
+ ],
+ ul: [
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ ],
+ ol: [
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ ],
+ "w-list-unstyled": [
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "listStyle",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ ],
+ "w-video": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ fieldset: [
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-form": [
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "0 0 15px",
+ },
+ },
+ ],
+ "w-form-done": [
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-form-fail": [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 222,
+ b: 222,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ label: [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "bold",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-input": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "middle",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #ccc",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 38,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1.42857,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-select": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "middle",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #ccc",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 38,
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1.42857,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 243,
+ g: 243,
+ b: 243,
+ },
+ },
+ ],
+ "w-input-disabled": [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 238,
+ g: 238,
+ b: 238,
+ },
+ },
+ ],
+ "w-form-label": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-radio": [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-radio-input": [
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "3px 0 0-20px",
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ ],
+ "w-file-upload": [
+ {
+ property: "marginBottom",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-file-upload-input": [
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: -100,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 0.1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 0.1,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-file-upload-default": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-file-upload-uploading": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-file-upload-success": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-file-upload-error": [
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-file-upload-uploading-btn": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 250,
+ g: 250,
+ b: 250,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #ccc",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "flex",
+ },
+ },
+ ],
+ "w-file-upload-file": [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 250,
+ g: 250,
+ b: 250,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #ccc",
+ },
+ },
+ {
+ property: "flexGrow",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1,
+ },
+ },
+ {
+ property: "justifyContent",
+ value: {
+ type: "keyword",
+ value: "space-between",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unparsed",
+ value: "8px 9px 8px 11px",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "flex",
+ },
+ },
+ ],
+ "w-file-upload-file-name": [
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-file-remove-link": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 3,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 3,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-icon-file-upload-remove": [
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ ],
+ "w-file-upload-error-msg": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 234,
+ g: 56,
+ b: 76,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 2,
+ },
+ {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ ],
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-file-upload-info": [
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ ],
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 38,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-file-upload-label": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 250,
+ g: 250,
+ b: 250,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #ccc",
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 12,
+ },
+ ],
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 14,
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-icon-file-upload-icon": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-icon-file-upload-uploading": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ ],
+ "w-container": [
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 940,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 728,
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-col": [
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "minHeight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 1,
+ },
+ },
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "paddingRight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ "w-col-1": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 8.33333,
+ },
+ },
+ ],
+ "w-col-2": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 16.6667,
+ },
+ },
+ ],
+ "w-col-3": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 25,
+ },
+ },
+ ],
+ "w-col-4": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 33.3333,
+ },
+ },
+ ],
+ "w-col-5": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 41.6667,
+ },
+ },
+ ],
+ "w-col-6": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ ],
+ "w-col-7": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 58.3333,
+ },
+ },
+ ],
+ "w-col-8": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 66.6667,
+ },
+ },
+ ],
+ "w-col-9": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ ],
+ "w-col-10": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 83.3333,
+ },
+ },
+ ],
+ "w-col-11": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 91.6667,
+ },
+ },
+ ],
+ "w-col-12": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ "w-hidden-main": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ ],
+ "w-hidden-medium": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ ],
+ "w-col-medium-1": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 8.33333,
+ },
+ },
+ ],
+ "w-col-medium-2": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 16.6667,
+ },
+ },
+ ],
+ "w-col-medium-3": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 25,
+ },
+ },
+ ],
+ "w-col-medium-4": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 33.3333,
+ },
+ },
+ ],
+ "w-col-medium-5": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 41.6667,
+ },
+ },
+ ],
+ "w-col-medium-6": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ ],
+ "w-col-medium-7": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 58.3333,
+ },
+ },
+ ],
+ "w-col-medium-8": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 66.6667,
+ },
+ },
+ ],
+ "w-col-medium-9": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ ],
+ "w-col-medium-10": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 83.3333,
+ },
+ },
+ ],
+ "w-col-medium-11": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 91.6667,
+ },
+ },
+ ],
+ "w-col-medium-12": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ "w-col-stack": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-hidden-small": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inherit",
+ },
+ },
+ ],
+ "w-row": [
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-col-small-1": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 8.33333,
+ },
+ },
+ ],
+ "w-col-small-2": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 16.6667,
+ },
+ },
+ ],
+ "w-col-small-3": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 25,
+ },
+ },
+ ],
+ "w-col-small-4": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 33.3333,
+ },
+ },
+ ],
+ "w-col-small-5": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 41.6667,
+ },
+ },
+ ],
+ "w-col-small-6": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ ],
+ "w-col-small-7": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 58.3333,
+ },
+ },
+ ],
+ "w-col-small-8": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 66.6667,
+ },
+ },
+ ],
+ "w-col-small-9": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ ],
+ "w-col-small-10": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 83.3333,
+ },
+ },
+ ],
+ "w-col-small-11": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 91.6667,
+ },
+ },
+ ],
+ "w-col-small-12": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ "w-hidden-tiny": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-col-tiny-1": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 8.33333,
+ },
+ },
+ ],
+ "w-col-tiny-2": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 16.6667,
+ },
+ },
+ ],
+ "w-col-tiny-3": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 25,
+ },
+ },
+ ],
+ "w-col-tiny-4": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 33.3333,
+ },
+ },
+ ],
+ "w-col-tiny-5": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 41.6667,
+ },
+ },
+ ],
+ "w-col-tiny-6": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ ],
+ "w-col-tiny-7": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 58.3333,
+ },
+ },
+ ],
+ "w-col-tiny-8": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 66.6667,
+ },
+ },
+ ],
+ "w-col-tiny-9": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 75,
+ },
+ },
+ ],
+ "w-col-tiny-10": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 83.3333,
+ },
+ },
+ ],
+ "w-col-tiny-11": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 91.6667,
+ },
+ },
+ ],
+ "w-col-tiny-12": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ ],
+ "w-widget": [
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-widget-map": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 400,
+ },
+ },
+ ],
+ "w-widget-twitter": [
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-widget-twitter-count-shim": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "1px solid #758696",
+ },
+ },
+ {
+ property: "borderRadius",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 3,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 28,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w--vertical": [
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 8,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 6,
+ },
+ },
+ {
+ property: "content",
+ value: {
+ type: "unparsed",
+ value: '" "',
+ },
+ },
+ {
+ property: "pointerEvents",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "solid rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "borderWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 4,
+ },
+ },
+ {
+ property: "borderColor",
+ value: {
+ type: "unparsed",
+ value:
+ "rgba(117,134,150,0) #5d6c7b rgba(117,134,150,0) rgba(117,134,150,0)",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -4,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -9,
+ },
+ },
+ {
+ property: "borderWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -5,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -10,
+ },
+ },
+ {
+ property: "borderWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 4,
+ },
+ },
+ {
+ property: "borderColor",
+ value: {
+ type: "unparsed",
+ value:
+ "rgba(255,255,255,0) #fff rgba(255,255,255,0) rgba(255,255,255,0)",
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -4,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -8,
+ },
+ },
+ {
+ property: "borderWidth",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 5,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -5,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -9,
+ },
+ },
+ ],
+ "w-background-video": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 500,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-background-video--control": [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ ],
+ "w-slider": [
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "clear",
+ value: {
+ type: "keyword",
+ value: "both",
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "tapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 300,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-slider-mask": [
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1,
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-slide": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-slider-nav": [
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 2,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "tapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "paddingTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-slider-nav-invert": [
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ ],
+ "w-slider-dot": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 0.4,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "0 3px 0.5em",
+ },
+ },
+ {
+ property: "transition",
+ value: {
+ type: "layers",
+ value: [
+ {
+ type: "tuple",
+ value: [
+ {
+ type: "keyword",
+ value: "background-color",
+ },
+ {
+ type: "unit",
+ value: 0.1,
+ unit: "s",
+ },
+ ],
+ },
+ {
+ type: "tuple",
+ value: [
+ {
+ type: "keyword",
+ value: "color",
+ },
+ {
+ type: "unit",
+ value: 0.1,
+ unit: "s",
+ },
+ ],
+ },
+ ],
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-slider-arrow-left": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "tapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "webkitUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "msUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "userSelect",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 80,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 3,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-slider-arrow-right": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "tapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "webkitUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "msUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "userSelect",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 80,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 4,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-icon-slider-left": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-icon-slider-right": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-slider-aria-label": [
+ {
+ property: "clip",
+ value: {
+ type: "unparsed",
+ value: "rect(0 0 0 0)",
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 1,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -1,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-slider-force-show": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-dropdown": [
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 900,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-dropdown-btn": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-dropdown-toggle": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "webkitUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "msUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "userSelect",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "paddingRight",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-dropdown-link": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ ],
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-icon-dropdown-toggle": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ },
+ {
+ property: "margin",
+ value: {
+ type: "unparsed",
+ value: "auto 20px auto auto",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-dropdown-list": [
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "minWidth",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ ],
+ "w-nav-brand": [
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 51,
+ g: 51,
+ b: 51,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "paddingLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ ],
+ "w-lightbox-backdrop": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "letterSpacing",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "textIndent",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "textShadow",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "textTransform",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "visibility",
+ value: {
+ type: "keyword",
+ value: "visible",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "wordBreak",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "wordSpacing",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "wordWrap",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 255,
+ g: 255,
+ b: 255,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 2000,
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "webkitUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "mozUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 0.9,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "outline",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "fontFamily",
+ value: {
+ type: "unparsed",
+ value: "Helvetica Neue,Helvetica,Ubuntu,Segoe UI,Verdana,sans-serif",
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 17,
+ },
+ },
+ {
+ property: "fontStyle",
+ value: {
+ type: "keyword",
+ value: "normal",
+ },
+ },
+ {
+ property: "fontWeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 300,
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1.2,
+ },
+ },
+ {
+ property: "listStyle",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "fixed",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "webkitTransform",
+ value: {
+ type: "unparsed",
+ value: "translate(0)",
+ },
+ },
+ {
+ property: "webkitOverflowScrolling",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-lightbox-container": [
+ {
+ property: "webkitOverflowScrolling",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-lightbox-content": [
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 100,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 96,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 2,
+ },
+ },
+ ],
+ "w-lightbox-view": [
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "vw",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 100,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 96,
+ },
+ },
+ ],
+ "w-lightbox-group": [
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 86,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 84,
+ },
+ },
+ ],
+ "w-lightbox-frame": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "middle",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ ],
+ "w-lightbox-figure": [
+ {
+ property: "margin",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-lightbox-img": [
+ {
+ property: "width",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ ],
+ "w-lightbox-image": [
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "vw",
+ value: 100,
+ },
+ },
+ {
+ property: "maxHeight",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "maxWidth",
+ value: {
+ type: "unit",
+ unit: "vw",
+ value: 96,
+ },
+ },
+ {
+ property: "maxHeight",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 96,
+ },
+ },
+ ],
+ "w-lightbox-caption": [
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "textOverflow",
+ value: {
+ type: "keyword",
+ value: "ellipsis",
+ },
+ },
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 0.4,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "em",
+ value: 0.5,
+ },
+ {
+ type: "unit",
+ unit: "em",
+ value: 1,
+ },
+ ],
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-lightbox-embed": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-lightbox-control": [
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "backgroundPosition",
+ value: {
+ type: "keyword",
+ value: "center",
+ },
+ },
+ {
+ property: "backgroundRepeat",
+ value: {
+ type: "keyword",
+ value: "no-repeat",
+ },
+ },
+ {
+ property: "backgroundSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 24,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 4,
+ },
+ },
+ {
+ property: "transition",
+ value: {
+ type: "layers",
+ value: [
+ {
+ type: "tuple",
+ value: [
+ {
+ type: "keyword",
+ value: "all",
+ },
+ {
+ type: "unit",
+ value: 0.3,
+ unit: "s",
+ },
+ ],
+ },
+ ],
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-lightbox-left": [
+ {
+ property: "backgroundImage",
+ value: {
+ type: "unparsed",
+ value:
+ "url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAwIDI0IDQwIiB3aWR0aD0iMjQiIGhlaWdodD0iNDAiPjxnIHRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHBhdGggZD0ibTAgMGg1djIzaDIzdjVoLTI4eiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtMSAxaDN2MjNoMjN2M2gtMjZ6IiBmaWxsPSIjZmZmIi8+PC9nPjwvc3ZnPg==)",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0.5,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-lightbox-right": [
+ {
+ property: "backgroundImage",
+ value: {
+ type: "unparsed",
+ value:
+ "url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii00IDAgMjQgNDAiIHdpZHRoPSIyNCIgaGVpZ2h0PSI0MCI+PGcgdHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cGF0aCBkPSJtMC0waDI4djI4aC01di0yM2gtMjN6IiBvcGFjaXR5PSIuNCIvPjxwYXRoIGQ9Im0xIDFoMjZ2MjZoLTN2LTIzaC0yM3oiIGZpbGw9IiNmZmYiLz48L2c+PC9zdmc+)",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0.5,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-lightbox-close": [
+ {
+ property: "backgroundImage",
+ value: {
+ type: "unparsed",
+ value:
+ "url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii00IDAgMTggMTciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNyI+PGcgdHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cGF0aCBkPSJtMCAwaDd2LTdoNXY3aDd2NWgtN3Y3aC01di03aC03eiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtMSAxaDd2LTdoM3Y3aDd2M2gtN3Y3aC0zdi03aC03eiIgZmlsbD0iI2ZmZiIvPjwvZz48L3N2Zz4=)",
+ },
+ },
+ {
+ property: "backgroundSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 18,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "em",
+ value: 2.6,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0.8,
+ },
+ },
+ ],
+ "w-lightbox-strip": [
+ {
+ property: "whiteSpace",
+ value: {
+ type: "keyword",
+ value: "nowrap",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ {
+ type: "unit",
+ unit: "vh",
+ value: 1,
+ },
+ ],
+ },
+ },
+ {
+ property: "lineHeight",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "bottom",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflowX",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "overflowY",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-lightbox-item": [
+ {
+ property: "boxSizing",
+ value: {
+ type: "keyword",
+ value: "content-box",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 10,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "vh",
+ value: 2,
+ },
+ {
+ type: "unit",
+ unit: "vh",
+ value: 1,
+ },
+ ],
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "webkitTransform",
+ value: {
+ type: "unparsed",
+ value: "translate3d(0,0,0)",
+ },
+ },
+ ],
+ "w-lightbox-active": [
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0.3,
+ },
+ },
+ ],
+ "w-lightbox-thumbnail": [
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "vh",
+ value: 10,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-lightbox-thumbnail-image": [
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-lightbox-spinner": [
+ {
+ property: "boxSizing",
+ value: {
+ type: "keyword",
+ value: "border-box",
+ },
+ },
+ {
+ property: "border",
+ value: {
+ type: "unparsed",
+ value: "5px solid rgba(0,0,0,0.4)",
+ },
+ },
+ {
+ property: "borderRadius",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "height",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 40,
+ },
+ },
+ {
+ property: "marginTop",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -20,
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: -20,
+ },
+ },
+ {
+ property: "animation",
+ value: {
+ type: "unparsed",
+ value: "0.8s linear infinite spin",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 50,
+ },
+ },
+ ],
+ "w-lightbox-hide": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-lightbox-noscroll": [
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-lightbox-inactive": [
+ {
+ property: "opacity",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ ],
+ "w-nav": [
+ {
+ property: "zIndex",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 1000,
+ },
+ },
+ {
+ property: "backgroundImage",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-nav-link": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "marginLeft",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "marginRight",
+ value: {
+ type: "keyword",
+ value: "auto",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 20,
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-nav-menu": [
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "right",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w--nav-link-open": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-nav-overlay": [
+ {
+ property: "width",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "absolute",
+ },
+ },
+ {
+ property: "top",
+ value: {
+ type: "unit",
+ unit: "%",
+ value: 100,
+ },
+ },
+ {
+ property: "left",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "right",
+ value: {
+ type: "unit",
+ unit: "number",
+ value: 0,
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-nav-button": [
+ {
+ property: "float",
+ value: {
+ type: "keyword",
+ value: "right",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "webkitTapHighlightColor",
+ value: {
+ type: "rgb",
+ alpha: 0,
+ r: 0,
+ g: 0,
+ b: 0,
+ },
+ },
+ {
+ property: "tapHighlightColor",
+ value: {
+ type: "invalid",
+ value: "rgba(0,0,0,0)",
+ },
+ },
+ {
+ property: "webkitUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "msUserSelect",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "userSelect",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 18,
+ },
+ },
+ {
+ property: "fontSize",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 24,
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w--nav-dropdown-open": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w--nav-dropdown-toggle-open": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w--nav-dropdown-list-open": [
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "static",
+ },
+ },
+ ],
+ "w-tabs": [
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-tab-menu": [
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w-tab-link": [
+ {
+ property: "verticalAlign",
+ value: {
+ type: "keyword",
+ value: "top",
+ },
+ },
+ {
+ property: "textAlign",
+ value: {
+ type: "keyword",
+ value: "left",
+ },
+ },
+ {
+ property: "cursor",
+ value: {
+ type: "keyword",
+ value: "pointer",
+ },
+ },
+ {
+ property: "color",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 34,
+ g: 34,
+ b: 34,
+ },
+ },
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "tuple",
+ value: [
+ {
+ type: "unit",
+ unit: "px",
+ value: 9,
+ },
+ {
+ type: "unit",
+ unit: "px",
+ value: 30,
+ },
+ ],
+ },
+ },
+ {
+ property: "textDecoration",
+ value: {
+ type: "invalid",
+ value: "",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "inline-block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-tab-content": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ {
+ property: "overflow",
+ value: {
+ type: "keyword",
+ value: "hidden",
+ },
+ },
+ ],
+ "w-tab-pane": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ {
+ property: "position",
+ value: {
+ type: "keyword",
+ value: "relative",
+ },
+ },
+ ],
+ "w--tab-active": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "block",
+ },
+ },
+ ],
+ "w-dyn-empty": [
+ {
+ property: "backgroundColor",
+ value: {
+ type: "rgb",
+ alpha: 1,
+ r: 221,
+ g: 221,
+ b: 221,
+ },
+ },
+ {
+ property: "padding",
+ value: {
+ type: "unit",
+ unit: "px",
+ value: 10,
+ },
+ },
+ ],
+ "w-dyn-hide": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-dyn-bind-empty": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "w-condition-invisible": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "none",
+ },
+ },
+ ],
+ "wf-layout-layout": [
+ {
+ property: "display",
+ value: {
+ type: "keyword",
+ value: "grid",
+ },
+ },
+ ],
+};
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.ts b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.ts
index 923f26d580..05581daac2 100644
--- a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.test.ts
@@ -1,13 +1,36 @@
import { test, expect, describe } from "@jest/globals";
import { __testing__ } from "./plugin-webflow";
import { $breakpoints } from "../../nano-states";
+import { createRegularStyleSheet } from "@webstudio-is/css-engine";
+import type { WebstudioFragment } from "@webstudio-is/sdk";
const { toWebstudioFragment } = __testing__;
$breakpoints.set(new Map([["0", { id: "0", label: "base" }]]));
-test("Heading", () => {
- const fragment = toWebstudioFragment({
+const toCss = (fragment: WebstudioFragment) => {
+ const sheet = createRegularStyleSheet();
+
+ for (const breakpoint of fragment.breakpoints) {
+ sheet.addMediaRule(breakpoint.id, breakpoint);
+ }
+ for (const style of fragment.styles) {
+ const token = fragment.styleSources.find(
+ (source) => source.id === style.styleSourceId
+ );
+ sheet.addStyleRule(
+ {
+ style: { [style.property]: style.value },
+ breakpoint: style.breakpointId,
+ },
+ token && "name" in token ? token.name : "Local"
+ );
+ }
+ return sheet.cssText;
+};
+
+test("Heading", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -57,8 +80,8 @@ test("Heading", () => {
]);
});
-test("Link Block, Button, Text Link", () => {
- const fragment = toWebstudioFragment({
+test("Link Block, Button, Text Link", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -120,8 +143,8 @@ test("Link Block, Button, Text Link", () => {
]);
});
-test("List and ListItem", () => {
- const fragment = toWebstudioFragment({
+test("List and ListItem", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -200,8 +223,8 @@ test("List and ListItem", () => {
]);
});
-test("Paragraph", () => {
- const fragment = toWebstudioFragment({
+test("Paragraph", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -246,8 +269,8 @@ test("Paragraph", () => {
]);
});
-test("Text", () => {
- const fragment = toWebstudioFragment({
+test("Text", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -295,8 +318,8 @@ test("Text", () => {
]);
});
-test("Blockquote", () => {
- const fragment = toWebstudioFragment({
+test("Blockquote", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -341,8 +364,8 @@ test("Blockquote", () => {
]);
});
-test("Strong", () => {
- const fragment = toWebstudioFragment({
+test("Strong", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -378,8 +401,8 @@ test("Strong", () => {
]);
});
-test("Emphasized", () => {
- const fragment = toWebstudioFragment({
+test("Emphasized", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -415,8 +438,8 @@ test("Emphasized", () => {
]);
});
-test("Superscript", () => {
- const fragment = toWebstudioFragment({
+test("Superscript", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -452,8 +475,8 @@ test("Superscript", () => {
]);
});
-test("Subscript", () => {
- const fragment = toWebstudioFragment({
+test("Subscript", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -489,8 +512,8 @@ test("Subscript", () => {
]);
});
-test("Section", () => {
- const fragment = toWebstudioFragment({
+test("Section", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -516,8 +539,8 @@ test("Section", () => {
]);
});
-test("BlockContainer", () => {
- const fragment = toWebstudioFragment({
+test("BlockContainer", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -543,8 +566,8 @@ test("BlockContainer", () => {
]);
});
-test("Block", () => {
- const fragment = toWebstudioFragment({
+test("Block", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -570,8 +593,8 @@ test("Block", () => {
]);
});
-test("V Flex", () => {
- const fragment = toWebstudioFragment({
+test("V Flex", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -597,8 +620,8 @@ test("V Flex", () => {
]);
});
-test("H Flex", () => {
- const fragment = toWebstudioFragment({
+test("H Flex", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -624,8 +647,8 @@ test("H Flex", () => {
]);
});
-test("Quick Stack", () => {
- const fragment = toWebstudioFragment({
+test("Quick Stack", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -683,8 +706,8 @@ test("Quick Stack", () => {
]);
});
-test("Grid", () => {
- const fragment = toWebstudioFragment({
+test("Grid", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -710,8 +733,8 @@ test("Grid", () => {
]);
});
-test("Columns", () => {
- const fragment = toWebstudioFragment({
+test("Columns", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -769,8 +792,8 @@ test("Columns", () => {
]);
});
-test("Image", () => {
- const fragment = toWebstudioFragment({
+test("Image", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -844,50 +867,52 @@ test("Image", () => {
});
describe("Custom attributes", () => {
- const fragment = toWebstudioFragment({
- type: "@webflow/XscpData",
- payload: {
- nodes: [
- {
- _id: "249f235e-91b6-bd0f-bc42-00993479e637",
- type: "Heading",
- tag: "h1",
- classes: [],
- children: [],
- data: {
- xattr: [
- {
- name: "at",
- value: "b",
- },
- ],
+ test("Basic", async () => {
+ const fragment = await toWebstudioFragment({
+ type: "@webflow/XscpData",
+ payload: {
+ nodes: [
+ {
+ _id: "249f235e-91b6-bd0f-bc42-00993479e637",
+ type: "Heading",
+ tag: "h1",
+ classes: [],
+ children: [],
+ data: {
+ xattr: [
+ {
+ name: "at",
+ value: "b",
+ },
+ ],
+ },
},
- },
- ],
- styles: [],
- },
+ ],
+ styles: [],
+ },
+ });
+ expect(fragment.props).toEqual([
+ {
+ type: "string",
+ id: expect.not.stringMatching("id"),
+ instanceId: expect.not.stringMatching("instanceId"),
+ name: "tag",
+ value: "h1",
+ },
+ {
+ type: "string",
+ id: expect.not.stringMatching("id"),
+ instanceId: expect.not.stringMatching("instanceId"),
+ name: "at",
+ value: "b",
+ },
+ ]);
});
- expect(fragment.props).toEqual([
- {
- type: "string",
- id: expect.not.stringMatching("id"),
- instanceId: expect.not.stringMatching("instanceId"),
- name: "tag",
- value: "h1",
- },
- {
- type: "string",
- id: expect.not.stringMatching("id"),
- instanceId: expect.not.stringMatching("instanceId"),
- name: "at",
- value: "b",
- },
- ]);
});
describe("Styles", () => {
- test("Single class", () => {
- const fragment = toWebstudioFragment({
+ test("Single class", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -909,7 +934,13 @@ describe("Styles", () => {
],
},
});
+
expect(fragment.styleSources).toEqual([
+ {
+ type: "token",
+ id: expect.not.stringMatching("styleSourceId"),
+ name: "h1",
+ },
{
type: "token",
id: expect.not.stringMatching("styleSourceId"),
@@ -919,21 +950,26 @@ describe("Styles", () => {
expect(fragment.styleSourceSelections).toEqual([
{
instanceId: expect.not.stringMatching("instanceId"),
- values: [expect.not.stringMatching("styleSourceId")],
- },
- ]);
- expect(fragment.styles).toEqual([
- {
- styleSourceId: expect.not.stringMatching("styleSourceId"),
- breakpointId: "0",
- property: "color",
- value: { type: "rgb", alpha: 1, r: 219, g: 24, b: 24 },
+ values: [
+ expect.not.stringMatching("styleSourceId"),
+ expect.not.stringMatching("styleSourceId"),
+ ],
},
]);
+ expect(toCss(fragment)).toMatchInlineSnapshot(`
+ "@media all {
+ h1 {
+ line-height: 44px
+ }
+ Heading {
+ color: rgba(219, 24, 24, 1)
+ }
+ }"
+ `);
});
- test("Combo class", () => {
- const fragment = toWebstudioFragment({
+ test("Combo class", async () => {
+ const fragment = await toWebstudioFragment({
type: "@webflow/XscpData",
payload: {
nodes: [
@@ -972,7 +1008,13 @@ describe("Styles", () => {
],
},
});
+
expect(fragment.styleSources).toEqual([
+ {
+ type: "token",
+ id: expect.not.stringMatching("styleSourceId"),
+ name: "a",
+ },
{
type: "token",
id: expect.not.stringMatching("styleSourceId"),
@@ -990,25 +1032,22 @@ describe("Styles", () => {
values: [
expect.not.stringMatching("styleSourceId"),
expect.not.stringMatching("styleSourceId"),
+ expect.not.stringMatching("styleSourceId"),
],
},
]);
- expect(fragment.styles).toEqual([
- {
- styleSourceId: expect.not.stringMatching("styleSourceId"),
- breakpointId: "0",
- property: "textAlign",
- value: { type: "keyword", value: "center" },
- },
- {
- styleSourceId: expect.not.stringMatching("styleSourceId"),
- breakpointId: "0",
- property: "backgroundColor",
- value: {
- type: "keyword",
- value: "transparent",
- },
- },
- ]);
+ expect(toCss(fragment)).toMatchInlineSnapshot(`
+ "@media all {
+ a {
+ text-decoration:
+ }
+ button {
+ text-align: center
+ }
+ is-secondary {
+ background-color: transparent
+ }
+ }"
+ `);
});
});
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.ts b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.ts
index 023945f9ce..a05fd66062 100644
--- a/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/plugin-webflow.ts
@@ -17,7 +17,7 @@ import { addStyles } from "./styles";
export const mimeType = "application/json";
-const toWebstudioFragment = (wfData: WfData) => {
+const toWebstudioFragment = async (wfData: WfData) => {
const fragment: WebstudioFragment = {
children: [],
instances: [],
@@ -44,7 +44,7 @@ const toWebstudioFragment = (wfData: WfData) => {
for (const wfNode of wfNodes.values()) {
addInstanceAndProperties(wfNode, added, wfNodes, fragment);
}
- addStyles(wfNodes, wfStyles, added, fragment);
+ await addStyles(wfNodes, wfStyles, added, fragment);
// First node should be always the root node in theory, if not
// we need to find a node that is not a child of any other node.
const rootWfNode = wfData.payload.nodes[0];
@@ -75,7 +75,7 @@ const parse = (clipboardData: string) => {
}
};
-export const onPaste = (clipboardData: string): boolean => {
+export const onPaste = async (clipboardData: string) => {
if (isFeatureEnabled("pasteFromWebflow") === false) {
return false;
}
@@ -83,7 +83,7 @@ export const onPaste = (clipboardData: string): boolean => {
if (wfData === undefined) {
return false;
}
- const fragment = toWebstudioFragment(wfData);
+ const fragment = await toWebstudioFragment(wfData);
const selectedPage = $selectedPage.get();
if (fragment.instances.length === 0 || selectedPage === undefined) {
return false;
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/style-presets.css b/apps/builder/app/shared/copy-paste/plugin-webflow/style-presets.css
new file mode 100644
index 0000000000..7ac46fc3cc
--- /dev/null
+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/style-presets.css
@@ -0,0 +1,2248 @@
+html {
+ -webkit-text-size-adjust: 100%;
+ -ms-text-size-adjust: 100%;
+ font-family: sans-serif;
+}
+
+body {
+ margin: 0;
+}
+
+article,
+aside,
+details,
+figcaption,
+figure,
+footer,
+header,
+hgroup,
+main,
+menu,
+nav,
+section,
+summary {
+ display: block;
+}
+
+audio,
+canvas,
+progress,
+video {
+ vertical-align: baseline;
+ display: inline-block;
+}
+
+audio:not([controls]) {
+ height: 0;
+ display: none;
+}
+
+[hidden],
+template {
+ display: none;
+}
+
+a {
+ background-color: rgba(0, 0, 0, 0);
+}
+
+a:active,
+a:hover {
+ outline: 0;
+}
+
+abbr[title] {
+ border-bottom: 1px dotted;
+}
+
+b,
+strong {
+ font-weight: bold;
+}
+
+dfn {
+ font-style: italic;
+}
+
+h1 {
+ margin: 0.67em 0;
+ font-size: 2em;
+}
+
+mark {
+ color: #000;
+ background: #ff0;
+}
+
+small {
+ font-size: 80%;
+}
+
+sub,
+sup {
+ vertical-align: baseline;
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+}
+
+sup {
+ top: -0.5em;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+img {
+ border: 0;
+}
+
+svg:not(:root) {
+ overflow: hidden;
+}
+
+hr {
+ box-sizing: content-box;
+ height: 0;
+}
+
+pre {
+ overflow: auto;
+}
+
+code,
+kbd,
+pre,
+samp {
+ font-family: monospace;
+ font-size: 1em;
+}
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ color: inherit;
+ font: inherit;
+ margin: 0;
+}
+
+button {
+ overflow: visible;
+}
+
+button,
+select {
+ text-transform: none;
+}
+
+button,
+html input[type="button"],
+input[type="reset"] {
+ -webkit-appearance: button;
+ cursor: pointer;
+}
+
+button[disabled],
+html input[disabled] {
+ cursor: default;
+}
+
+button::-moz-focus-inner,
+input::-moz-focus-inner {
+ border: 0;
+ padding: 0;
+}
+
+input {
+ line-height: normal;
+}
+
+input[type="checkbox"],
+input[type="radio"] {
+ box-sizing: border-box;
+ padding: 0;
+}
+
+input[type="number"]::-webkit-inner-spin-button,
+input[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+input[type="search"] {
+ -webkit-appearance: none;
+}
+
+input[type="search"]::-webkit-search-cancel-button,
+input[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+legend {
+ border: 0;
+ padding: 0;
+}
+
+textarea {
+ overflow: auto;
+}
+
+optgroup {
+ font-weight: bold;
+}
+
+table {
+ border-collapse: collapse;
+ border-spacing: 0;
+}
+
+td,
+th {
+ padding: 0;
+}
+
+@font-face {
+ font-family: webflow-icons;
+ src: url("data:application/x-font-ttf;charset=utf-8;base64,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")
+ format("truetype");
+ font-weight: normal;
+ font-style: normal;
+}
+
+[class^="w-icon-"],
+[class*=" w-icon-"] {
+ speak: none;
+ font-variant: normal;
+ text-transform: none;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ font-style: normal;
+ font-weight: normal;
+ line-height: 1;
+ font-family: webflow-icons !important;
+}
+
+.w-icon-slider-right:before {
+ content: "";
+}
+
+.w-icon-slider-left:before {
+ content: "";
+}
+
+.w-icon-nav-menu:before {
+ content: "";
+}
+
+.w-icon-arrow-down:before,
+.w-icon-dropdown-toggle:before {
+ content: "";
+}
+
+.w-icon-file-upload-remove:before {
+ content: "";
+}
+
+.w-icon-file-upload-icon:before {
+ content: "";
+}
+
+* {
+ box-sizing: border-box;
+}
+
+html {
+ height: 100%;
+}
+
+body {
+ color: #333;
+ background-color: #fff;
+ min-height: 100%;
+ margin: 0;
+ font-family: Arial, sans-serif;
+ font-size: 14px;
+ line-height: 20px;
+}
+
+img {
+ vertical-align: middle;
+ max-width: 100%;
+ display: inline-block;
+}
+
+html.w-mod-touch * {
+ background-attachment: scroll !important;
+}
+
+.w-block {
+ display: block;
+}
+
+.w-inline-block {
+ max-width: 100%;
+ display: inline-block;
+}
+
+.w-clearfix:before,
+.w-clearfix:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-clearfix:after {
+ clear: both;
+}
+
+.w-hidden {
+ display: none;
+}
+
+.w-button {
+ color: #fff;
+ line-height: inherit;
+ cursor: pointer;
+ background-color: #3898ec;
+ border: 0;
+ border-radius: 0;
+ padding: 9px 15px;
+ text-decoration: none;
+ display: inline-block;
+}
+
+input.w-button {
+ -webkit-appearance: button;
+}
+
+html[data-w-dynpage] [data-w-cloak] {
+ color: rgba(0, 0, 0, 0) !important;
+}
+
+.w-code-block {
+ margin: unset;
+}
+
+pre.w-code-block code {
+ all: inherit;
+}
+
+.w-webflow-badge,
+.w-webflow-badge * {
+ z-index: auto;
+ visibility: visible;
+ box-sizing: border-box;
+ float: none;
+ clear: none;
+ box-shadow: none;
+ opacity: 1;
+ direction: ltr;
+ font-family: inherit;
+ font-weight: inherit;
+ color: inherit;
+ font-size: inherit;
+ line-height: inherit;
+ font-style: inherit;
+ font-variant: inherit;
+ text-align: inherit;
+ letter-spacing: inherit;
+ -webkit-text-decoration: inherit;
+ text-decoration: inherit;
+ text-indent: 0;
+ text-transform: inherit;
+ text-shadow: none;
+ font-smoothing: auto;
+ vertical-align: baseline;
+ cursor: inherit;
+ white-space: inherit;
+ word-break: normal;
+ word-spacing: normal;
+ word-wrap: normal;
+ background: none;
+ border: 0 rgba(0, 0, 0, 0);
+ border-radius: 0;
+ width: auto;
+ min-width: 0;
+ max-width: none;
+ height: auto;
+ min-height: 0;
+ max-height: none;
+ margin: 0;
+ padding: 0;
+ list-style-type: disc;
+ transition: none;
+ display: block;
+ position: static;
+ top: auto;
+ bottom: auto;
+ left: auto;
+ right: auto;
+ overflow: visible;
+ transform: none;
+}
+
+.w-webflow-badge {
+ white-space: nowrap;
+ cursor: pointer;
+ box-shadow:
+ 0 0 0 1px rgba(0, 0, 0, 0.1),
+ 0 1px 3px rgba(0, 0, 0, 0.1);
+ visibility: visible !important;
+ z-index: 2147483647 !important;
+ color: #aaadb0 !important;
+ opacity: 1 !important;
+ background-color: #fff !important;
+ border-radius: 3px !important;
+ width: auto !important;
+ height: auto !important;
+ margin: 0 !important;
+ padding: 6px !important;
+ font-size: 12px !important;
+ line-height: 14px !important;
+ text-decoration: none !important;
+ display: inline-block !important;
+ position: fixed !important;
+ top: auto !important;
+ bottom: 12px !important;
+ left: auto !important;
+ right: 12px !important;
+ overflow: visible !important;
+ transform: none !important;
+}
+
+.w-webflow-badge > img {
+ visibility: visible !important;
+ opacity: 1 !important;
+ vertical-align: middle !important;
+ display: inline-block !important;
+}
+
+h1,
+h2,
+h3,
+h4,
+h5,
+h6 {
+ margin-bottom: 10px;
+ font-weight: bold;
+}
+
+h1 {
+ margin-top: 20px;
+ font-size: 38px;
+ line-height: 44px;
+}
+
+h2 {
+ margin-top: 20px;
+ font-size: 32px;
+ line-height: 36px;
+}
+
+h3 {
+ margin-top: 20px;
+ font-size: 24px;
+ line-height: 30px;
+}
+
+h4 {
+ margin-top: 10px;
+ font-size: 18px;
+ line-height: 24px;
+}
+
+h5 {
+ margin-top: 10px;
+ font-size: 14px;
+ line-height: 20px;
+}
+
+h6 {
+ margin-top: 10px;
+ font-size: 12px;
+ line-height: 18px;
+}
+
+p {
+ margin-top: 0;
+ margin-bottom: 10px;
+}
+
+blockquote {
+ border-left: 5px solid #e2e2e2;
+ margin: 0 0 10px;
+ padding: 10px 20px;
+ font-size: 18px;
+ line-height: 22px;
+}
+
+figure {
+ margin: 0 0 10px;
+}
+
+figcaption {
+ text-align: center;
+ margin-top: 5px;
+}
+
+ul,
+ol {
+ margin-top: 0;
+ margin-bottom: 10px;
+ padding-left: 40px;
+}
+
+.w-list-unstyled {
+ padding-left: 0;
+ list-style: none;
+}
+
+.w-embed:before,
+.w-embed:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-embed:after {
+ clear: both;
+}
+
+.w-video {
+ width: 100%;
+ padding: 0;
+ position: relative;
+}
+
+.w-video iframe,
+.w-video object,
+.w-video embed {
+ border: none;
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+fieldset {
+ border: 0;
+ margin: 0;
+ padding: 0;
+}
+
+button,
+[type="button"],
+[type="reset"] {
+ cursor: pointer;
+ -webkit-appearance: button;
+ border: 0;
+}
+
+.w-form {
+ margin: 0 0 15px;
+}
+
+.w-form-done {
+ text-align: center;
+ background-color: #ddd;
+ padding: 20px;
+ display: none;
+}
+
+.w-form-fail {
+ background-color: #ffdede;
+ margin-top: 10px;
+ padding: 10px;
+ display: none;
+}
+
+label {
+ margin-bottom: 5px;
+ font-weight: bold;
+ display: block;
+}
+
+.w-input,
+.w-select {
+ color: #333;
+ vertical-align: middle;
+ background-color: #fff;
+ border: 1px solid #ccc;
+ width: 100%;
+ height: 38px;
+ margin-bottom: 10px;
+ padding: 8px 12px;
+ font-size: 14px;
+ line-height: 1.42857;
+ display: block;
+}
+
+.w-input:-moz-placeholder,
+.w-select:-moz-placeholder {
+ color: #999;
+}
+
+.w-input::-moz-placeholder,
+.w-select::-moz-placeholder {
+ color: #999;
+ opacity: 1;
+}
+
+.w-input::-webkit-input-placeholder,
+.w-select::-webkit-input-placeholder {
+ color: #999;
+}
+
+.w-input:focus,
+.w-select:focus {
+ border-color: #3898ec;
+ outline: 0;
+}
+
+.w-input[disabled],
+.w-select[disabled],
+.w-input[readonly],
+.w-select[readonly],
+fieldset[disabled] .w-input,
+fieldset[disabled] .w-select {
+ cursor: not-allowed;
+}
+
+.w-input[disabled]:not(.w-input-disabled),
+.w-select[disabled]:not(.w-input-disabled),
+.w-input[readonly],
+.w-select[readonly],
+fieldset[disabled]:not(.w-input-disabled) .w-input,
+fieldset[disabled]:not(.w-input-disabled) .w-select {
+ background-color: #eee;
+}
+
+textarea.w-input,
+textarea.w-select {
+ height: auto;
+}
+
+.w-select {
+ background-color: #f3f3f3;
+}
+
+.w-select[multiple] {
+ height: auto;
+}
+
+.w-form-label {
+ cursor: pointer;
+ margin-bottom: 0;
+ font-weight: normal;
+ display: inline-block;
+}
+
+.w-radio {
+ margin-bottom: 5px;
+ padding-left: 20px;
+ display: block;
+}
+
+.w-radio:before,
+.w-radio:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-radio:after {
+ clear: both;
+}
+
+.w-radio-input {
+ float: left;
+ margin: 3px 0 0 -20px;
+ line-height: normal;
+}
+
+.w-file-upload {
+ margin-bottom: 10px;
+ display: block;
+}
+
+.w-file-upload-input {
+ opacity: 0;
+ z-index: -100;
+ width: 0.1px;
+ height: 0.1px;
+ position: absolute;
+ overflow: hidden;
+}
+
+.w-file-upload-default,
+.w-file-upload-uploading,
+.w-file-upload-success {
+ color: #333;
+ display: inline-block;
+}
+
+.w-file-upload-error {
+ margin-top: 10px;
+ display: block;
+}
+
+.w-file-upload-default.w-hidden,
+.w-file-upload-uploading.w-hidden,
+.w-file-upload-error.w-hidden,
+.w-file-upload-success.w-hidden {
+ display: none;
+}
+
+.w-file-upload-uploading-btn {
+ cursor: pointer;
+ background-color: #fafafa;
+ border: 1px solid #ccc;
+ margin: 0;
+ padding: 8px 12px;
+ font-size: 14px;
+ font-weight: normal;
+ display: flex;
+}
+
+.w-file-upload-file {
+ background-color: #fafafa;
+ border: 1px solid #ccc;
+ flex-grow: 1;
+ justify-content: space-between;
+ margin: 0;
+ padding: 8px 9px 8px 11px;
+ display: flex;
+}
+
+.w-file-upload-file-name {
+ font-size: 14px;
+ font-weight: normal;
+ display: block;
+}
+
+.w-file-remove-link {
+ cursor: pointer;
+ width: auto;
+ height: auto;
+ margin-top: 3px;
+ margin-left: 10px;
+ padding: 3px;
+ display: block;
+}
+
+.w-icon-file-upload-remove {
+ margin: auto;
+ font-size: 10px;
+}
+
+.w-file-upload-error-msg {
+ color: #ea384c;
+ padding: 2px 0;
+ display: inline-block;
+}
+
+.w-file-upload-info {
+ padding: 0 12px;
+ line-height: 38px;
+ display: inline-block;
+}
+
+.w-file-upload-label {
+ cursor: pointer;
+ background-color: #fafafa;
+ border: 1px solid #ccc;
+ margin: 0;
+ padding: 8px 12px;
+ font-size: 14px;
+ font-weight: normal;
+ display: inline-block;
+}
+
+.w-icon-file-upload-icon,
+.w-icon-file-upload-uploading {
+ width: 20px;
+ margin-right: 8px;
+ display: inline-block;
+}
+
+.w-icon-file-upload-uploading {
+ height: 20px;
+}
+
+.w-container {
+ max-width: 940px;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.w-container:before,
+.w-container:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-container:after {
+ clear: both;
+}
+
+.w-container .w-row {
+ margin-left: -10px;
+ margin-right: -10px;
+}
+
+.w-row:before,
+.w-row:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-row:after {
+ clear: both;
+}
+
+.w-row .w-row {
+ margin-left: 0;
+ margin-right: 0;
+}
+
+.w-col {
+ float: left;
+ width: 100%;
+ min-height: 1px;
+ padding-left: 10px;
+ padding-right: 10px;
+ position: relative;
+}
+
+.w-col .w-col {
+ padding-left: 0;
+ padding-right: 0;
+}
+
+.w-col-1 {
+ width: 8.33333%;
+}
+
+.w-col-2 {
+ width: 16.6667%;
+}
+
+.w-col-3 {
+ width: 25%;
+}
+
+.w-col-4 {
+ width: 33.3333%;
+}
+
+.w-col-5 {
+ width: 41.6667%;
+}
+
+.w-col-6 {
+ width: 50%;
+}
+
+.w-col-7 {
+ width: 58.3333%;
+}
+
+.w-col-8 {
+ width: 66.6667%;
+}
+
+.w-col-9 {
+ width: 75%;
+}
+
+.w-col-10 {
+ width: 83.3333%;
+}
+
+.w-col-11 {
+ width: 91.6667%;
+}
+
+.w-col-12 {
+ width: 100%;
+}
+
+.w-hidden-main {
+ display: none !important;
+}
+
+@media screen and (max-width: 991px) {
+ .w-container {
+ max-width: 728px;
+ }
+
+ .w-hidden-main {
+ display: inherit !important;
+ }
+
+ .w-hidden-medium {
+ display: none !important;
+ }
+
+ .w-col-medium-1 {
+ width: 8.33333%;
+ }
+
+ .w-col-medium-2 {
+ width: 16.6667%;
+ }
+
+ .w-col-medium-3 {
+ width: 25%;
+ }
+
+ .w-col-medium-4 {
+ width: 33.3333%;
+ }
+
+ .w-col-medium-5 {
+ width: 41.6667%;
+ }
+
+ .w-col-medium-6 {
+ width: 50%;
+ }
+
+ .w-col-medium-7 {
+ width: 58.3333%;
+ }
+
+ .w-col-medium-8 {
+ width: 66.6667%;
+ }
+
+ .w-col-medium-9 {
+ width: 75%;
+ }
+
+ .w-col-medium-10 {
+ width: 83.3333%;
+ }
+
+ .w-col-medium-11 {
+ width: 91.6667%;
+ }
+
+ .w-col-medium-12 {
+ width: 100%;
+ }
+
+ .w-col-stack {
+ width: 100%;
+ left: auto;
+ right: auto;
+ }
+}
+
+@media screen and (max-width: 767px) {
+ .w-hidden-main,
+ .w-hidden-medium {
+ display: inherit !important;
+ }
+
+ .w-hidden-small {
+ display: none !important;
+ }
+
+ .w-row,
+ .w-container .w-row {
+ margin-left: 0;
+ margin-right: 0;
+ }
+
+ .w-col {
+ width: 100%;
+ left: auto;
+ right: auto;
+ }
+
+ .w-col-small-1 {
+ width: 8.33333%;
+ }
+
+ .w-col-small-2 {
+ width: 16.6667%;
+ }
+
+ .w-col-small-3 {
+ width: 25%;
+ }
+
+ .w-col-small-4 {
+ width: 33.3333%;
+ }
+
+ .w-col-small-5 {
+ width: 41.6667%;
+ }
+
+ .w-col-small-6 {
+ width: 50%;
+ }
+
+ .w-col-small-7 {
+ width: 58.3333%;
+ }
+
+ .w-col-small-8 {
+ width: 66.6667%;
+ }
+
+ .w-col-small-9 {
+ width: 75%;
+ }
+
+ .w-col-small-10 {
+ width: 83.3333%;
+ }
+
+ .w-col-small-11 {
+ width: 91.6667%;
+ }
+
+ .w-col-small-12 {
+ width: 100%;
+ }
+}
+
+@media screen and (max-width: 479px) {
+ .w-container {
+ max-width: none;
+ }
+
+ .w-hidden-main,
+ .w-hidden-medium,
+ .w-hidden-small {
+ display: inherit !important;
+ }
+
+ .w-hidden-tiny {
+ display: none !important;
+ }
+
+ .w-col {
+ width: 100%;
+ }
+
+ .w-col-tiny-1 {
+ width: 8.33333%;
+ }
+
+ .w-col-tiny-2 {
+ width: 16.6667%;
+ }
+
+ .w-col-tiny-3 {
+ width: 25%;
+ }
+
+ .w-col-tiny-4 {
+ width: 33.3333%;
+ }
+
+ .w-col-tiny-5 {
+ width: 41.6667%;
+ }
+
+ .w-col-tiny-6 {
+ width: 50%;
+ }
+
+ .w-col-tiny-7 {
+ width: 58.3333%;
+ }
+
+ .w-col-tiny-8 {
+ width: 66.6667%;
+ }
+
+ .w-col-tiny-9 {
+ width: 75%;
+ }
+
+ .w-col-tiny-10 {
+ width: 83.3333%;
+ }
+
+ .w-col-tiny-11 {
+ width: 91.6667%;
+ }
+
+ .w-col-tiny-12 {
+ width: 100%;
+ }
+}
+
+.w-widget {
+ position: relative;
+}
+
+.w-widget-map {
+ width: 100%;
+ height: 400px;
+}
+
+.w-widget-map label {
+ width: auto;
+ display: inline;
+}
+
+.w-widget-map img {
+ max-width: inherit;
+}
+
+.w-widget-map .gm-style-iw {
+ text-align: center;
+}
+
+.w-widget-map .gm-style-iw > button {
+ display: none !important;
+}
+
+.w-widget-twitter {
+ overflow: hidden;
+}
+
+.w-widget-twitter-count-shim {
+ vertical-align: top;
+ text-align: center;
+ background: #fff;
+ border: 1px solid #758696;
+ border-radius: 3px;
+ width: 28px;
+ height: 20px;
+ display: inline-block;
+ position: relative;
+}
+
+.w-widget-twitter-count-shim * {
+ pointer-events: none;
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+}
+
+.w-widget-twitter-count-shim .w-widget-twitter-count-inner {
+ text-align: center;
+ color: #999;
+ font-family: serif;
+ font-size: 15px;
+ line-height: 12px;
+ position: relative;
+}
+
+.w-widget-twitter-count-shim .w-widget-twitter-count-clear {
+ display: block;
+ position: relative;
+}
+
+.w-widget-twitter-count-shim.w--large {
+ width: 36px;
+ height: 28px;
+}
+
+.w-widget-twitter-count-shim.w--large .w-widget-twitter-count-inner {
+ font-size: 18px;
+ line-height: 18px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical) {
+ margin-left: 5px;
+ margin-right: 8px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical).w--large {
+ margin-left: 6px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical):before,
+.w-widget-twitter-count-shim:not(.w--vertical):after {
+ content: " ";
+ pointer-events: none;
+ border: solid rgba(0, 0, 0, 0);
+ width: 0;
+ height: 0;
+ position: absolute;
+ top: 50%;
+ left: 0;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical):before {
+ border-width: 4px;
+ border-color: rgba(117, 134, 150, 0) #5d6c7b rgba(117, 134, 150, 0)
+ rgba(117, 134, 150, 0);
+ margin-top: -4px;
+ margin-left: -9px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical).w--large:before {
+ border-width: 5px;
+ margin-top: -5px;
+ margin-left: -10px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical):after {
+ border-width: 4px;
+ border-color: rgba(255, 255, 255, 0) #fff rgba(255, 255, 255, 0)
+ rgba(255, 255, 255, 0);
+ margin-top: -4px;
+ margin-left: -8px;
+}
+
+.w-widget-twitter-count-shim:not(.w--vertical).w--large:after {
+ border-width: 5px;
+ margin-top: -5px;
+ margin-left: -9px;
+}
+
+.w-widget-twitter-count-shim.w--vertical {
+ width: 61px;
+ height: 33px;
+ margin-bottom: 8px;
+}
+
+.w-widget-twitter-count-shim.w--vertical:before,
+.w-widget-twitter-count-shim.w--vertical:after {
+ content: " ";
+ pointer-events: none;
+ border: solid rgba(0, 0, 0, 0);
+ width: 0;
+ height: 0;
+ position: absolute;
+ top: 100%;
+ left: 50%;
+}
+
+.w-widget-twitter-count-shim.w--vertical:before {
+ border-width: 5px;
+ border-color: #5d6c7b rgba(117, 134, 150, 0) rgba(117, 134, 150, 0);
+ margin-left: -5px;
+}
+
+.w-widget-twitter-count-shim.w--vertical:after {
+ border-width: 4px;
+ border-color: #fff rgba(255, 255, 255, 0) rgba(255, 255, 255, 0);
+ margin-left: -4px;
+}
+
+.w-widget-twitter-count-shim.w--vertical .w-widget-twitter-count-inner {
+ font-size: 18px;
+ line-height: 22px;
+}
+
+.w-widget-twitter-count-shim.w--vertical.w--large {
+ width: 76px;
+}
+
+.w-background-video {
+ color: #fff;
+ height: 500px;
+ position: relative;
+ overflow: hidden;
+}
+
+.w-background-video > video {
+ object-fit: cover;
+ z-index: -100;
+ background-position: 50%;
+ background-size: cover;
+ width: 100%;
+ height: 100%;
+ margin: auto;
+ position: absolute;
+ top: -100%;
+ bottom: -100%;
+ left: -100%;
+ right: -100%;
+}
+
+.w-background-video > video::-webkit-media-controls-start-playback-button {
+ -webkit-appearance: none;
+ display: none !important;
+}
+
+.w-background-video--control {
+ background-color: rgba(0, 0, 0, 0);
+ padding: 0;
+ position: absolute;
+ bottom: 1em;
+ right: 1em;
+}
+
+.w-background-video--control > [hidden] {
+ display: none !important;
+}
+
+.w-slider {
+ text-align: center;
+ clear: both;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ tap-highlight-color: rgba(0, 0, 0, 0);
+ background: #ddd;
+ height: 300px;
+ position: relative;
+}
+
+.w-slider-mask {
+ z-index: 1;
+ white-space: nowrap;
+ height: 100%;
+ display: block;
+ position: relative;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+}
+
+.w-slide {
+ vertical-align: top;
+ white-space: normal;
+ text-align: left;
+ width: 100%;
+ height: 100%;
+ display: inline-block;
+ position: relative;
+}
+
+.w-slider-nav {
+ z-index: 2;
+ text-align: center;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ tap-highlight-color: rgba(0, 0, 0, 0);
+ height: 40px;
+ margin: auto;
+ padding-top: 10px;
+ position: absolute;
+ top: auto;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.w-slider-nav.w-round > div {
+ border-radius: 100%;
+}
+
+.w-slider-nav.w-num > div {
+ font-size: inherit;
+ line-height: inherit;
+ width: auto;
+ height: auto;
+ padding: 0.2em 0.5em;
+}
+
+.w-slider-nav.w-shadow > div {
+ box-shadow: 0 0 3px rgba(51, 51, 51, 0.4);
+}
+
+.w-slider-nav-invert {
+ color: #fff;
+}
+
+.w-slider-nav-invert > div {
+ background-color: rgba(34, 34, 34, 0.4);
+}
+
+.w-slider-nav-invert > div.w-active {
+ background-color: #222;
+}
+
+.w-slider-dot {
+ cursor: pointer;
+ background-color: rgba(255, 255, 255, 0.4);
+ width: 1em;
+ height: 1em;
+ margin: 0 3px 0.5em;
+ transition:
+ background-color 0.1s,
+ color 0.1s;
+ display: inline-block;
+ position: relative;
+}
+
+.w-slider-dot.w-active {
+ background-color: #fff;
+}
+
+.w-slider-dot:focus {
+ outline: none;
+ box-shadow: 0 0 0 2px #fff;
+}
+
+.w-slider-dot:focus.w-active {
+ box-shadow: none;
+}
+
+.w-slider-arrow-left,
+.w-slider-arrow-right {
+ cursor: pointer;
+ color: #fff;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ tap-highlight-color: rgba(0, 0, 0, 0);
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ width: 80px;
+ margin: auto;
+ font-size: 40px;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+}
+
+.w-slider-arrow-left [class^="w-icon-"],
+.w-slider-arrow-right [class^="w-icon-"],
+.w-slider-arrow-left [class*=" w-icon-"],
+.w-slider-arrow-right [class*=" w-icon-"] {
+ position: absolute;
+}
+
+.w-slider-arrow-left:focus,
+.w-slider-arrow-right:focus {
+ outline: 0;
+}
+
+.w-slider-arrow-left {
+ z-index: 3;
+ right: auto;
+}
+
+.w-slider-arrow-right {
+ z-index: 4;
+ left: auto;
+}
+
+.w-icon-slider-left,
+.w-icon-slider-right {
+ width: 1em;
+ height: 1em;
+ margin: auto;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.w-slider-aria-label {
+ clip: rect(0 0 0 0);
+ border: 0;
+ width: 1px;
+ height: 1px;
+ margin: -1px;
+ padding: 0;
+ position: absolute;
+ overflow: hidden;
+}
+
+.w-slider-force-show {
+ display: block !important;
+}
+
+.w-dropdown {
+ text-align: left;
+ z-index: 900;
+ margin-left: auto;
+ margin-right: auto;
+ display: inline-block;
+ position: relative;
+}
+
+.w-dropdown-btn,
+.w-dropdown-toggle,
+.w-dropdown-link {
+ vertical-align: top;
+ color: #222;
+ text-align: left;
+ white-space: nowrap;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 20px;
+ text-decoration: none;
+ position: relative;
+}
+
+.w-dropdown-toggle {
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ cursor: pointer;
+ padding-right: 40px;
+ display: inline-block;
+}
+
+.w-dropdown-toggle:focus {
+ outline: 0;
+}
+
+.w-icon-dropdown-toggle {
+ width: 1em;
+ height: 1em;
+ margin: auto 20px auto auto;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ right: 0;
+}
+
+.w-dropdown-list {
+ background: #ddd;
+ min-width: 100%;
+ display: none;
+ position: absolute;
+}
+
+.w-dropdown-list.w--open {
+ display: block;
+}
+
+.w-dropdown-link {
+ color: #222;
+ padding: 10px 20px;
+ display: block;
+}
+
+.w-dropdown-link.w--current {
+ color: #0082f3;
+}
+
+.w-dropdown-link:focus {
+ outline: 0;
+}
+
+@media screen and (max-width: 767px) {
+ .w-nav-brand {
+ padding-left: 10px;
+ }
+}
+
+.w-lightbox-backdrop {
+ cursor: auto;
+ letter-spacing: normal;
+ text-indent: 0;
+ text-shadow: none;
+ text-transform: none;
+ visibility: visible;
+ white-space: normal;
+ word-break: normal;
+ word-spacing: normal;
+ word-wrap: normal;
+ color: #fff;
+ text-align: center;
+ z-index: 2000;
+ opacity: 0;
+ -webkit-user-select: none;
+ -moz-user-select: none;
+ -webkit-tap-highlight-color: transparent;
+ background: rgba(0, 0, 0, 0.9);
+ outline: 0;
+ font-family:
+ Helvetica Neue,
+ Helvetica,
+ Ubuntu,
+ Segoe UI,
+ Verdana,
+ sans-serif;
+ font-size: 17px;
+ font-style: normal;
+ font-weight: 300;
+ line-height: 1.2;
+ list-style: disc;
+ position: fixed;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ -webkit-transform: translate(0);
+}
+
+.w-lightbox-backdrop,
+.w-lightbox-container {
+ -webkit-overflow-scrolling: touch;
+ height: 100%;
+ overflow: auto;
+}
+
+.w-lightbox-content {
+ height: 100vh;
+ position: relative;
+ overflow: hidden;
+}
+
+.w-lightbox-view {
+ opacity: 0;
+ width: 100vw;
+ height: 100vh;
+ position: absolute;
+}
+
+.w-lightbox-view:before {
+ content: "";
+ height: 100vh;
+}
+
+.w-lightbox-group,
+.w-lightbox-group .w-lightbox-view,
+.w-lightbox-group .w-lightbox-view:before {
+ height: 86vh;
+}
+
+.w-lightbox-frame,
+.w-lightbox-view:before {
+ vertical-align: middle;
+ display: inline-block;
+}
+
+.w-lightbox-figure {
+ margin: 0;
+ position: relative;
+}
+
+.w-lightbox-group .w-lightbox-figure {
+ cursor: pointer;
+}
+
+.w-lightbox-img {
+ width: auto;
+ max-width: none;
+ height: auto;
+}
+
+.w-lightbox-image {
+ float: none;
+ max-width: 100vw;
+ max-height: 100vh;
+ display: block;
+}
+
+.w-lightbox-group .w-lightbox-image {
+ max-height: 86vh;
+}
+
+.w-lightbox-caption {
+ text-align: left;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ background: rgba(0, 0, 0, 0.4);
+ padding: 0.5em 1em;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+}
+
+.w-lightbox-embed {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.w-lightbox-control {
+ cursor: pointer;
+ background-position: center;
+ background-repeat: no-repeat;
+ background-size: 24px;
+ width: 4em;
+ transition: all 0.3s;
+ position: absolute;
+ top: 0;
+}
+
+.w-lightbox-left {
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii0yMCAwIDI0IDQwIiB3aWR0aD0iMjQiIGhlaWdodD0iNDAiPjxnIHRyYW5zZm9ybT0icm90YXRlKDQ1KSI+PHBhdGggZD0ibTAgMGg1djIzaDIzdjVoLTI4eiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtMSAxaDN2MjNoMjN2M2gtMjZ6IiBmaWxsPSIjZmZmIi8+PC9nPjwvc3ZnPg==");
+ display: none;
+ bottom: 0;
+ left: 0;
+}
+
+.w-lightbox-right {
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii00IDAgMjQgNDAiIHdpZHRoPSIyNCIgaGVpZ2h0PSI0MCI+PGcgdHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cGF0aCBkPSJtMC0waDI4djI4aC01di0yM2gtMjN6IiBvcGFjaXR5PSIuNCIvPjxwYXRoIGQ9Im0xIDFoMjZ2MjZoLTN2LTIzaC0yM3oiIGZpbGw9IiNmZmYiLz48L2c+PC9zdmc+");
+ display: none;
+ bottom: 0;
+ right: 0;
+}
+
+.w-lightbox-close {
+ background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9Ii00IDAgMTggMTciIHdpZHRoPSIxOCIgaGVpZ2h0PSIxNyI+PGcgdHJhbnNmb3JtPSJyb3RhdGUoNDUpIj48cGF0aCBkPSJtMCAwaDd2LTdoNXY3aDd2NWgtN3Y3aC01di03aC03eiIgb3BhY2l0eT0iLjQiLz48cGF0aCBkPSJtMSAxaDd2LTdoM3Y3aDd2M2gtN3Y3aC0zdi03aC03eiIgZmlsbD0iI2ZmZiIvPjwvZz48L3N2Zz4=");
+ background-size: 18px;
+ height: 2.6em;
+ right: 0;
+}
+
+.w-lightbox-strip {
+ white-space: nowrap;
+ padding: 0 1vh;
+ line-height: 0;
+ position: absolute;
+ bottom: 0;
+ left: 0;
+ right: 0;
+ overflow-x: auto;
+ overflow-y: hidden;
+}
+
+.w-lightbox-item {
+ box-sizing: content-box;
+ cursor: pointer;
+ width: 10vh;
+ padding: 2vh 1vh;
+ display: inline-block;
+ -webkit-transform: translate3d(0, 0, 0);
+}
+
+.w-lightbox-active {
+ opacity: 0.3;
+}
+
+.w-lightbox-thumbnail {
+ background: #222;
+ height: 10vh;
+ position: relative;
+ overflow: hidden;
+}
+
+.w-lightbox-thumbnail-image {
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.w-lightbox-thumbnail .w-lightbox-tall {
+ width: 100%;
+ top: 50%;
+ transform: translate(0, -50%);
+}
+
+.w-lightbox-thumbnail .w-lightbox-wide {
+ height: 100%;
+ left: 50%;
+ transform: translate(-50%);
+}
+
+.w-lightbox-spinner {
+ box-sizing: border-box;
+ border: 5px solid rgba(0, 0, 0, 0.4);
+ border-radius: 50%;
+ width: 40px;
+ height: 40px;
+ margin-top: -20px;
+ margin-left: -20px;
+ animation: 0.8s linear infinite spin;
+ position: absolute;
+ top: 50%;
+ left: 50%;
+}
+
+.w-lightbox-spinner:after {
+ content: "";
+ border: 3px solid rgba(0, 0, 0, 0);
+ border-bottom-color: #fff;
+ border-radius: 50%;
+ position: absolute;
+ top: -4px;
+ bottom: -4px;
+ left: -4px;
+ right: -4px;
+}
+
+.w-lightbox-hide {
+ display: none;
+}
+
+.w-lightbox-noscroll {
+ overflow: hidden;
+}
+
+@media (min-width: 768px) {
+ .w-lightbox-content {
+ height: 96vh;
+ margin-top: 2vh;
+ }
+
+ .w-lightbox-view,
+ .w-lightbox-view:before {
+ height: 96vh;
+ }
+
+ .w-lightbox-group,
+ .w-lightbox-group .w-lightbox-view,
+ .w-lightbox-group .w-lightbox-view:before {
+ height: 84vh;
+ }
+
+ .w-lightbox-image {
+ max-width: 96vw;
+ max-height: 96vh;
+ }
+
+ .w-lightbox-group .w-lightbox-image {
+ max-width: 82.3vw;
+ max-height: 84vh;
+ }
+
+ .w-lightbox-left,
+ .w-lightbox-right {
+ opacity: 0.5;
+ display: block;
+ }
+
+ .w-lightbox-close {
+ opacity: 0.8;
+ }
+
+ .w-lightbox-control:hover {
+ opacity: 1;
+ }
+}
+
+.w-lightbox-inactive,
+.w-lightbox-inactive:hover {
+ opacity: 0;
+}
+
+.w-richtext:before,
+.w-richtext:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-richtext:after {
+ clear: both;
+}
+
+.w-richtext[contenteditable="true"]:before,
+.w-richtext[contenteditable="true"]:after {
+ white-space: initial;
+}
+
+.w-richtext ol,
+.w-richtext ul {
+ overflow: hidden;
+}
+
+.w-richtext .w-richtext-figure-selected.w-richtext-figure-type-video div:after,
+.w-richtext .w-richtext-figure-selected[data-rt-type="video"] div:after,
+.w-richtext .w-richtext-figure-selected.w-richtext-figure-type-image div,
+.w-richtext .w-richtext-figure-selected[data-rt-type="image"] div {
+ outline: 2px solid #2895f7;
+}
+
+.w-richtext figure.w-richtext-figure-type-video > div:after,
+.w-richtext figure[data-rt-type="video"] > div:after {
+ content: "";
+ display: none;
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ right: 0;
+}
+
+.w-richtext figure {
+ max-width: 60%;
+ position: relative;
+}
+
+.w-richtext figure > div:before {
+ cursor: default !important;
+}
+
+.w-richtext figure img {
+ width: 100%;
+}
+
+.w-richtext figure figcaption.w-richtext-figcaption-placeholder {
+ opacity: 0.6;
+}
+
+.w-richtext figure div {
+ color: rgba(0, 0, 0, 0);
+ font-size: 0;
+}
+
+.w-richtext figure.w-richtext-figure-type-image,
+.w-richtext figure[data-rt-type="image"] {
+ display: table;
+}
+
+.w-richtext figure.w-richtext-figure-type-image > div,
+.w-richtext figure[data-rt-type="image"] > div {
+ display: inline-block;
+}
+
+.w-richtext figure.w-richtext-figure-type-image > figcaption,
+.w-richtext figure[data-rt-type="image"] > figcaption {
+ caption-side: bottom;
+ display: table-caption;
+}
+
+.w-richtext figure.w-richtext-figure-type-video,
+.w-richtext figure[data-rt-type="video"] {
+ width: 60%;
+ height: 0;
+}
+
+.w-richtext figure.w-richtext-figure-type-video iframe,
+.w-richtext figure[data-rt-type="video"] iframe {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+.w-richtext figure.w-richtext-figure-type-video > div,
+.w-richtext figure[data-rt-type="video"] > div {
+ width: 100%;
+}
+
+.w-richtext figure.w-richtext-align-center {
+ clear: both;
+ margin-left: auto;
+ margin-right: auto;
+}
+
+.w-richtext figure.w-richtext-align-center.w-richtext-figure-type-image > div,
+.w-richtext figure.w-richtext-align-center[data-rt-type="image"] > div {
+ max-width: 100%;
+}
+
+.w-richtext figure.w-richtext-align-normal {
+ clear: both;
+}
+
+.w-richtext figure.w-richtext-align-fullwidth {
+ text-align: center;
+ clear: both;
+ width: 100%;
+ max-width: 100%;
+ margin-left: auto;
+ margin-right: auto;
+ display: block;
+}
+
+.w-richtext figure.w-richtext-align-fullwidth > div {
+ padding-bottom: inherit;
+ display: inline-block;
+}
+
+.w-richtext figure.w-richtext-align-fullwidth > figcaption {
+ display: block;
+}
+
+.w-richtext figure.w-richtext-align-floatleft {
+ float: left;
+ clear: none;
+ margin-right: 15px;
+}
+
+.w-richtext figure.w-richtext-align-floatright {
+ float: right;
+ clear: none;
+ margin-left: 15px;
+}
+
+.w-nav {
+ z-index: 1000;
+ background: #ddd;
+ position: relative;
+}
+
+.w-nav:before,
+.w-nav:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-nav:after {
+ clear: both;
+}
+
+.w-nav-brand {
+ float: left;
+ color: #333;
+ text-decoration: none;
+ position: relative;
+}
+
+.w-nav-link {
+ vertical-align: top;
+ color: #222;
+ text-align: left;
+ margin-left: auto;
+ margin-right: auto;
+ padding: 20px;
+ text-decoration: none;
+ display: inline-block;
+ position: relative;
+}
+
+.w-nav-link.w--current {
+ color: #0082f3;
+}
+
+.w-nav-menu {
+ float: right;
+ position: relative;
+}
+
+[data-nav-menu-open] {
+ text-align: center;
+ background: #c8c8c8;
+ min-width: 200px;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ overflow: visible;
+ display: block !important;
+}
+
+.w--nav-link-open {
+ display: block;
+ position: relative;
+}
+
+.w-nav-overlay {
+ width: 100%;
+ display: none;
+ position: absolute;
+ top: 100%;
+ left: 0;
+ right: 0;
+ overflow: hidden;
+}
+
+.w-nav-overlay [data-nav-menu-open] {
+ top: 0;
+}
+
+.w-nav[data-animation="over-left"] .w-nav-overlay {
+ width: auto;
+}
+
+.w-nav[data-animation="over-left"] .w-nav-overlay,
+.w-nav[data-animation="over-left"] [data-nav-menu-open] {
+ z-index: 1;
+ top: 0;
+ right: auto;
+}
+
+.w-nav[data-animation="over-right"] .w-nav-overlay {
+ width: auto;
+}
+
+.w-nav[data-animation="over-right"] .w-nav-overlay,
+.w-nav[data-animation="over-right"] [data-nav-menu-open] {
+ z-index: 1;
+ top: 0;
+ left: auto;
+}
+
+.w-nav-button {
+ float: right;
+ cursor: pointer;
+ -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
+ tap-highlight-color: rgba(0, 0, 0, 0);
+ -webkit-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ padding: 18px;
+ font-size: 24px;
+ display: none;
+ position: relative;
+}
+
+.w-nav-button:focus {
+ outline: 0;
+}
+
+.w-nav-button.w--open {
+ color: #fff;
+ background-color: #c8c8c8;
+}
+
+.w-nav[data-collapse="all"] .w-nav-menu {
+ display: none;
+}
+
+.w-nav[data-collapse="all"] .w-nav-button,
+.w--nav-dropdown-open,
+.w--nav-dropdown-toggle-open {
+ display: block;
+}
+
+.w--nav-dropdown-list-open {
+ position: static;
+}
+
+@media screen and (max-width: 991px) {
+ .w-nav[data-collapse="medium"] .w-nav-menu {
+ display: none;
+ }
+
+ .w-nav[data-collapse="medium"] .w-nav-button {
+ display: block;
+ }
+}
+
+@media screen and (max-width: 767px) {
+ .w-nav[data-collapse="small"] .w-nav-menu {
+ display: none;
+ }
+
+ .w-nav[data-collapse="small"] .w-nav-button {
+ display: block;
+ }
+
+ .w-nav-brand {
+ padding-left: 10px;
+ }
+}
+
+@media screen and (max-width: 479px) {
+ .w-nav[data-collapse="tiny"] .w-nav-menu {
+ display: none;
+ }
+
+ .w-nav[data-collapse="tiny"] .w-nav-button {
+ display: block;
+ }
+}
+
+.w-tabs {
+ position: relative;
+}
+
+.w-tabs:before,
+.w-tabs:after {
+ content: " ";
+ grid-area: 1 / 1 / 2 / 2;
+ display: table;
+}
+
+.w-tabs:after {
+ clear: both;
+}
+
+.w-tab-menu {
+ position: relative;
+}
+
+.w-tab-link {
+ vertical-align: top;
+ text-align: left;
+ cursor: pointer;
+ color: #222;
+ background-color: #ddd;
+ padding: 9px 30px;
+ text-decoration: none;
+ display: inline-block;
+ position: relative;
+}
+
+.w-tab-link.w--current {
+ background-color: #c8c8c8;
+}
+
+.w-tab-link:focus {
+ outline: 0;
+}
+
+.w-tab-content {
+ display: block;
+ position: relative;
+ overflow: hidden;
+}
+
+.w-tab-pane {
+ display: none;
+ position: relative;
+}
+
+.w--tab-active {
+ display: block;
+}
+
+@media screen and (max-width: 479px) {
+ .w-tab-link {
+ display: block;
+ }
+}
+
+.w-ix-emptyfix:after {
+ content: "";
+}
+
+@keyframes spin {
+ 0% {
+ transform: rotate(0);
+ }
+
+ 100% {
+ transform: rotate(360deg);
+ }
+}
+
+.w-dyn-empty {
+ background-color: #ddd;
+ padding: 10px;
+}
+
+.w-dyn-hide,
+.w-dyn-bind-empty,
+.w-condition-invisible {
+ display: none !important;
+}
+
+.wf-layout-layout {
+ display: grid;
+}
+
+.w-code-component > * {
+ width: 100%;
+ height: 100%;
+ position: absolute;
+ top: 0;
+ left: 0;
+}
+
+:root {
+ --white: white;
+ --black: black;
+}
+
+h1 {
+ margin-top: 20px;
+ margin-bottom: 10px;
+ font-size: 38px;
+ font-weight: bold;
+ line-height: 44px;
+}
+
+a {
+ text-decoration: underline;
+}
+
+a:hover {
+ color: #b22828;
+}
diff --git a/apps/builder/app/shared/copy-paste/plugin-webflow/styles.ts b/apps/builder/app/shared/copy-paste/plugin-webflow/styles.ts
index 5401fe3424..bd03c1015d 100644
--- a/apps/builder/app/shared/copy-paste/plugin-webflow/styles.ts
+++ b/apps/builder/app/shared/copy-paste/plugin-webflow/styles.ts
@@ -3,66 +3,90 @@ import type { WfNode, WfStyle } from "./schema";
import { nanoid } from "nanoid";
import { $breakpoints } from "~/shared/nano-states";
import { isBaseBreakpoint } from "~/shared/breakpoints";
-import { parseCss } from "@webstudio-is/css-data";
+import { parseCss, type Style } from "@webstudio-is/css-data";
-export const addStyles = (
+const addNodeStyles = (
+ name: string,
+ styles: Array<Style>,
+ instanceId: Instance["id"],
+ fragment: WebstudioFragment
+) => {
+ const breakpointId = Array.from($breakpoints.get().values()).find(
+ isBaseBreakpoint
+ )?.id;
+ if (breakpointId === undefined) {
+ console.error("No base breakpoint found - should never happen");
+ return;
+ }
+
+ const styleSourceId = nanoid();
+ fragment.styleSources.push({
+ type: "token",
+ id: styleSourceId,
+ name,
+ });
+
+ let styleSourceSelection = fragment.styleSourceSelections.find(
+ (selection) => selection.instanceId === instanceId
+ );
+ if (styleSourceSelection === undefined) {
+ styleSourceSelection = { instanceId, values: [] };
+ fragment.styleSourceSelections.push(styleSourceSelection);
+ }
+ styleSourceSelection.values.push(styleSourceId);
+
+ for (const style of styles) {
+ fragment.styles.push({
+ styleSourceId,
+ breakpointId,
+ property: style.property,
+ value: style.value,
+ });
+ if (style.value.type === "invalid") {
+ console.error("Invalid style value", style);
+ }
+ }
+};
+
+export const addStyles = async (
wfNodes: Map<WfNode["_id"], WfNode>,
wfStyles: Map<WfStyle["_id"], WfStyle>,
added: Map<WfNode["_id"], Instance["id"]>,
fragment: WebstudioFragment
) => {
+ const { default: presets } = await import("./__generated__/style-presets");
+
for (const wfNode of wfNodes.values()) {
if ("text" in wfNode) {
continue;
}
+ const instanceId = added.get(wfNode._id);
+ if (instanceId === undefined) {
+ console.error(`No instance id found for node ${wfNode._id}`);
+ continue;
+ }
+
+ const styles = presets[wfNode.tag as keyof typeof presets] as Array<Style>;
+ if (styles) {
+ addNodeStyles(wfNode.tag, styles, instanceId, fragment);
+ }
+ const instance = fragment.instances.find(
+ (instance) => instance.id === instanceId
+ );
+
for (const classId of wfNode.classes) {
const style = wfStyles.get(classId);
if (style === undefined) {
continue;
}
- const styleSourceId = nanoid();
- fragment.styleSources.push({
- type: "token",
- id: styleSourceId,
- name: style.name,
- });
- const instanceId = added.get(wfNode._id);
- if (instanceId === undefined) {
- console.error(`No instance id found for node ${wfNode._id}`);
- continue;
- }
-
- let styleSourceSelection = fragment.styleSourceSelections.find(
- (selection) => selection.instanceId === instanceId
- );
- if (styleSourceSelection === undefined) {
- styleSourceSelection = { instanceId, values: [] };
- fragment.styleSourceSelections.push(styleSourceSelection);
- }
- styleSourceSelection.values.push(styleSourceId);
-
- const breakpointId = Array.from($breakpoints.get().values()).find(
- isBaseBreakpoint
- )?.id;
- if (breakpointId === undefined) {
- console.error("No base breakpoint found - should never happen");
- continue;
- }
try {
const styles = parseCss(`.styles {${style.styleLess}}`).styles ?? [];
- for (const style of styles) {
- fragment.styles.push({
- styleSourceId,
- breakpointId,
- property: style.property,
- value: style.value,
- });
- if (style.value.type === "invalid") {
- console.error("Invalid style value", style);
- }
+ if (instance && instance.label === undefined) {
+ instance.label = style.name;
}
+ addNodeStyles(style.name, styles, instanceId, fragment);
} catch (error) {
- console.error("Failed to parse style", error, style.styleLess);
+ console.error("Failed to parse style", error, style);
}
}
}
diff --git a/apps/builder/package.json b/apps/builder/package.json
index 50b64e6dea..752f58acbf 100644
--- a/apps/builder/package.json
+++ b/apps/builder/package.json
@@ -7,6 +7,7 @@
"scripts": {
"prebuild": "which remix",
"build": "remix vite:build",
+ "build:webflow-presets": "css-to-ws ./app/shared/copy-paste/plugin-webflow/style-presets.css ./app/shared/copy-paste/plugin-webflow/__generated__/style-presets.ts",
"start": "remix-serve build/server/index.js",
"start-local": "NODE_OPTIONS='-r dotenv/config' remix-serve build/server/index.js",
"dev": "remix vite:dev",
diff --git a/packages/css-data/bin/css-to-ws.ts b/packages/css-data/bin/css-to-ws.ts
new file mode 100755
index 0000000000..2bd14dd207
--- /dev/null
+++ b/packages/css-data/bin/css-to-ws.ts
@@ -0,0 +1,30 @@
+#!/usr/bin/env tsx
+import { parseArgs, type ParseArgsConfig } from "node:util";
+import * as path from "node:path";
+import { mkdirSync, readFileSync, writeFileSync } from "node:fs";
+import { parseCss } from "../src/parse-css";
+
+const cliOptions = {
+ allowPositionals: true,
+ strict: true,
+} as const satisfies ParseArgsConfig;
+
+const cliArgs = parseArgs({ args: process.argv.slice(2), ...cliOptions });
+
+if (cliArgs.positionals.length < 2) {
+ console.error("Please provide the source and destination paths");
+ process.exit(1);
+}
+
+const sourcePath = path.resolve(process.cwd(), cliArgs.positionals[0]);
+const destinationPath = path.resolve(process.cwd(), cliArgs.positionals[1]);
+
+const css = readFileSync(sourcePath, "utf8");
+const parsed = parseCss(css);
+mkdirSync(path.dirname(destinationPath), { recursive: true });
+const code = `/* eslint-disable */
+/* This file was generated by css-to-ws.ts */
+export default ${JSON.stringify(parsed, null, 2)};`;
+
+writeFileSync(destinationPath, code, "utf8");
+console.info("✅ CSS parsed and Webstudio Data generated");
diff --git a/packages/css-data/package.json b/packages/css-data/package.json
index 6a2ff2c752..4aaeb4f9cf 100644
--- a/packages/css-data/package.json
+++ b/packages/css-data/package.json
@@ -12,6 +12,9 @@
"build:descriptions": "tsx ./bin/property-value-descriptions.ts",
"test": "NODE_OPTIONS=--experimental-vm-modules jest"
},
+ "bin": {
+ "css-to-ws": "./bin/css-to-ws.ts"
+ },
"devDependencies": {
"@jest/globals": "^29.7.0",
"@types/css-tree": "^2.3.1",
diff --git a/packages/css-data/src/parse-css.test.ts b/packages/css-data/src/parse-css.test.ts
index 992058da98..6346b89ee6 100644
--- a/packages/css-data/src/parse-css.test.ts
+++ b/packages/css-data/src/parse-css.test.ts
@@ -86,32 +86,44 @@ describe("Parse CSS", () => {
test("complex selector rules", () => {
expect(parseCss(`.test, a, .test2, .test:hover { color: #ff0000 }`))
.toMatchInlineSnapshot(`
- {
- "test": [
- {
- "property": "color",
- "value": {
- "alpha": 1,
- "b": 0,
- "g": 0,
- "r": 255,
- "type": "rgb",
+ {
+ "a": [
+ {
+ "property": "color",
+ "value": {
+ "alpha": 1,
+ "b": 0,
+ "g": 0,
+ "r": 255,
+ "type": "rgb",
+ },
},
- },
- ],
- "test2": [
- {
- "property": "color",
- "value": {
- "alpha": 1,
- "b": 0,
- "g": 0,
- "r": 255,
- "type": "rgb",
+ ],
+ "test": [
+ {
+ "property": "color",
+ "value": {
+ "alpha": 1,
+ "b": 0,
+ "g": 0,
+ "r": 255,
+ "type": "rgb",
+ },
},
- },
- ],
- }
- `);
+ ],
+ "test2": [
+ {
+ "property": "color",
+ "value": {
+ "alpha": 1,
+ "b": 0,
+ "g": 0,
+ "r": 255,
+ "type": "rgb",
+ },
+ },
+ ],
+ }
+ `);
});
});
diff --git a/packages/css-data/src/parse-css.ts b/packages/css-data/src/parse-css.ts
index d8baee9df8..3564759ea1 100644
--- a/packages/css-data/src/parse-css.ts
+++ b/packages/css-data/src/parse-css.ts
@@ -10,7 +10,7 @@ import * as toLonghand from "./property-parsers/to-longhand";
import { camelCase } from "change-case";
type Selector = string;
-type Style = {
+export type Style = {
// @todo add support for states and media queries in addition to declarations
property: StyleProperty;
value: StyleValue;
@@ -88,6 +88,14 @@ export const parseCss = (css: string) => {
if (node.type === "SelectorList") {
selectors = [];
}
+
+ if (node.type === "TypeSelector") {
+ if (!item.prev && !item.next) {
+ selectors.push(node.name);
+ }
+ return;
+ }
+
if (node.type === "ClassSelector") {
if (!item.prev && !item.next) {
selectors.push(node.name);