golden hour
/home/godaofbq/dev.hyperredbed.com/wp-content/plugins/blocks-for-shopengine/blocks/product-share
⬆️ Go Up
Upload
File/Folder
Size
Actions
controls.json
400 B
Del
OK
index.js
201 B
Del
OK
screen.php
490 B
Del
OK
style.js
953 B
Del
OK
Edit: style.js
const Style = ({settings, breakpoints, cssHelper})=>{ return cssHelper.get() } /* const Style = ({settings, breakpoints})=>{ // cssHelper.media(`(min-width: ${breakpoints.small}px) and (max-width: ${(breakpoints.large - 1)}px)`) // .add('.class-a', 'color', '#000') // .add('.class-b', 'color', settings.autocontrol1) var cssOutput = ''; var cssOutput = ` #${settings.blockId} .class-a{ color: #ab0; } #${settings.blockId} .class-b{ color: ${settings.color}; } ` // we can apply conditional styles and concat them cssOutput += ` @media (min-width: ${breakpoints.small}px) and (max-width: ${(breakpoints.large - 1)}px){ #${settings.blockId} .class-a{ color: #000; } #${settings.blockId} .class-b{ color: ${settings.autocontrol1}; } } ` return cssOutput } */ export { Style };
Save