UNPKG

@shopgate/pwa-common

Version:

Common library for the Shopgate Connect PWA.

5 lines 821 B
import{css}from'glamor';import{themeColors}from'@shopgate/pwa-common/helpers/config';/** * @param {string} [background=themeColors.placeholder] The background color. * @param {string} [paddingTop='100%'] The padding top value. * @returns {string} The compiled class names. */var container=function container(){var background=arguments.length>0&&arguments[0]!==undefined?arguments[0]:themeColors.placeholder;var paddingTop=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'100%';return css({background:background,position:'relative',zIndex:0,':before':{display:'block',content:'""',width:'100%',paddingTop:paddingTop}}).toString();};var image=css({position:'absolute',top:0,left:0,width:'100%',maxHeight:'100%',WebkitTouchCallout:'none',fontSize:0}).toString();export default{container:container,image:image};