@symbo.ls/scratch
Advanced tools
Comparing version 2.11.225 to 2.11.226
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "2.11.225", | ||
"version": "2.11.226", | ||
"files": [ | ||
@@ -33,3 +33,3 @@ "src", | ||
}, | ||
"gitHead": "6f10ab3baba728d15243a17edb13a5dd5618cb98" | ||
"gitHead": "cc4d8658520b0dc949f40274fbc99f2915877f96" | ||
} |
@@ -49,7 +49,15 @@ 'use strict' | ||
export const transformShadow = (sh, globalTheme) => { | ||
return sh.split(',').map(shadow => getShadow(shadow, globalTheme)).join(',') | ||
} | ||
export const transformShadow = (sh, globalTheme) => getShadow(sh, globalTheme) | ||
export const transformBoxShadow = (sh, globalTheme) => getShadow(sh, globalTheme) | ||
export const transformBoxShadow = shadows => shadows.split('|').map(shadow => { | ||
return shadow.split(', ').map(v => { | ||
v = v.trim() | ||
if (v.slice(0, 2) === '--') return `var(${v})` | ||
if (getColor(v).length > 2) return getColor(v) | ||
if (v.includes('px') || v.slice(-2) === 'em') return v | ||
const arr = v.split(' ') | ||
if (!arr.length) return v | ||
return arr.map(v => getSpacingByKey(v, 'shadow').shadow).join(' ') | ||
}).join(' ') | ||
}).join(',') | ||
@@ -56,0 +64,0 @@ export const transformBackgroundImage = (backgroundImage, globalTheme) => { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1409803
41091