403Webshell
Server IP : 192.158.238.246  /  Your IP : 3.16.50.164
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 :  /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/drop-cap/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/jenniferflocom/www/wp-content/plugins/gutenkit-blocks-addon/src/blocks/drop-cap/style.js
const DropCapStyle = (attributes) => {
	const {
		parseCSS,
		backgroundGenerator,
		getBoxValue,
		getBorderValue,
		getTypographyValue,
	} = window.gutenkit.helpers;

	const WRAPPER = attributes?.blockClass;

	const rawSyle = {
		desktop: [
			{
				selector: `.${WRAPPER} .gkit-dropcap-content`,
				'color': attributes.contentColor,
				...getTypographyValue(attributes.contentTypography, 'Desktop'),
			},
			{
				selector: `.${WRAPPER} .gkit-dropcap-content:first-child:first-letter`,
				'color': attributes.contentDropcapsColor,
				...getTypographyValue(attributes.contentDropcapsTypography, 'Desktop'),
				'background': backgroundGenerator(attributes?.contentDropcapsBackground).background,
				'padding': getBoxValue(attributes.contentDropcapsPaddingDesktop),
				'margin': getBoxValue(attributes.contentDropcapsMarginDesktop),
				...getBorderValue(attributes.contentDropcapsBorder),
				'border-radius': getBoxValue(attributes.contentDropcapsBorderRadiusDesktop),
			},
		],
		tablet: [
			{
				selector: `.${WRAPPER} .gkit-dropcap-content`,
				...getTypographyValue(attributes.contentTypography, 'Tablet'),
			},
			{
				selector: `.${WRAPPER} .gkit-dropcap-content:first-child:first-letter`,
				...getTypographyValue(attributes.contentDropcapsTypography, 'Tablet'),
				'padding': getBoxValue(attributes.contentDropcapsPaddingTablet),
				'margin': getBoxValue(attributes.contentDropcapsMarginTablet),
				'border-radius': getBoxValue(attributes.contentDropcapsBorderRadiusTablet),
			},
		],
		mobile: [
			{
				selector: `.${WRAPPER} .gkit-dropcap-content`,
				...getTypographyValue(attributes.contentTypography, 'Mobile'),
			},
			{
				selector: `.${WRAPPER} .gkit-dropcap-content:first-child:first-letter`,
				...getTypographyValue(attributes.contentDropcapsTypography, 'Mobile'),
				'padding': getBoxValue(attributes.contentDropcapsPaddingMobile),
				'margin': getBoxValue(attributes.contentDropcapsMarginMobile),
				'border-radius': getBoxValue(attributes.contentDropcapsBorderRadiusMobile),
			},
		]
	}
	return parseCSS(rawSyle);
}

export default DropCapStyle;

Youez - 2016 - github.com/yon3zu
LinuXploit