403Webshell
Server IP : 192.158.238.246  /  Your IP : 18.219.68.172
Web Server : LiteSpeed
System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64
User : jenniferflocom ( 1321)
PHP Version : 8.1.32
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /proc/7779/cwd/plugins/gutenkit-blocks-addon/src/blocks/back-to-top/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/7779/cwd/plugins/gutenkit-blocks-addon/src/blocks/back-to-top/style.js
const gutenkitCSS = (attributes) => {
	const {
		parseCSS,
		backgroundGenerator,
		getBoxShadowValue,
		getBoxValue,
		getBorderValue,
		getTypographyValue,
		getSliderValue
	} = window.gutenkit.helpers;

	const WRAPPER = attributes.blockClass;
	const rawCSS = {
		desktop: [
			{
				selector: `.${WRAPPER}`,
				'text-align': attributes.alignDesktop,
			},
			{
				selector: `.${WRAPPER} span`,
				'width': attributes.widthDesktop ? getSliderValue(attributes.widthDesktop) : undefined,
				'height': attributes.heightDesktop ? getSliderValue(attributes.heightDesktop) : undefined,
				'color': attributes.textColor,
				'background': backgroundGenerator(attributes?.bgColor).background,
				...getBorderValue(attributes?.borderDesktop),
				'border-radius': getBoxValue(attributes?.borderRadiusDesktop),
				'box-shadow': getBoxShadowValue(attributes.boxShadow)
			},
			{
				selector: `.${WRAPPER} span:hover`,
				'color': attributes.hoverColor,
				'background': backgroundGenerator(attributes?.bgHoverColor).background,
				...getBorderValue(attributes?.hoverBorderDesktop),
				'border-radius': getBoxValue(attributes?.hoverBorderRadiusDesktop),
				'box-shadow': getBoxShadowValue(attributes.hoverBoxShadow)
			},
			{
				selector: `.${WRAPPER} .icon-wrapper`,
				'font-size': attributes.iconSizeDesktop ? getSliderValue(attributes.iconSizeDesktop) : undefined,
			},
			{
				selector: `.${WRAPPER}.text-only span`,
				...getTypographyValue(attributes.typography, 'Desktop'),
			},
		],
		tablet: [
			{
				selector: `.${WRAPPER}`,
				'text-align': attributes?.alignTablet,
			},
			{
				selector: `.${WRAPPER} span`,
				'width': attributes.widthTablet ? getSliderValue(attributes.widthTablet) : undefined,
				'height': attributes.heightTablet ? getSliderValue(attributes.heightTablet) : undefined,
				...getBorderValue(attributes?.borderTablet),
				'border-radius': getBoxValue(attributes?.borderRadiusTablet),
			},
			{
				selector: `.${WRAPPER} span:hover`,
				...getBorderValue(attributes?.hoverBorderTablet),
				'border-radius': getBoxValue(attributes?.hoverBorderRadiusTablet),
			},
			{
				selector: `.${WRAPPER} .icon-wrapper`,
				'font-size': attributes.iconSizeTablet ? getSliderValue(attributes.iconSizeTablet) : undefined,
			},
			{
				selector: `.${WRAPPER}.text-only span`,
				...getTypographyValue(attributes.typography, 'Tablet'),
			},
		],
		mobile: [
			{
				selector: `.${WRAPPER}`,
				'text-align': attributes.alignMobile,
			},
			{
				selector: `.${WRAPPER} span`,
				'width': attributes.widthMobile ? getSliderValue(attributes.widthMobile) : undefined,
				'height': attributes.heightMobile ? getSliderValue(attributes.heightMobile) : undefined,
				...getBorderValue(attributes?.borderMobile),
				'border-radius': getBoxValue(attributes?.borderRadiusMobile),
			},
			{
				selector: `.${WRAPPER} span:hover`,
				...getBorderValue(attributes?.hoverBorderMobile),
				'border-radius': getBoxValue(attributes?.hoverBorderRadiusMobile),
			},
			{
				selector: `.${WRAPPER} .icon-wrapper`,
				'font-size': attributes.iconSizeMobile ? getSliderValue(attributes.iconSizeMobile) : undefined,
			},
			{
				selector: `.${WRAPPER}.text-only span`,
				...getTypographyValue(attributes.typography, 'Mobile'),
			},
		]
	}

	return parseCSS(rawCSS);
}

export { gutenkitCSS };

Youez - 2016 - github.com/yon3zu
LinuXploit