Server IP : 192.158.238.246 / Your IP : 18.222.252.132 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/faq/ |
Upload File : |
const FaqStyle = (attributes) => { const { parseCSS, backgroundGenerator, getBoxValue, getBorderValue, getTypographyValue, } = window.gutenkit.helpers; const WRAPPER = attributes?.blockClass; const rawSyle = { desktop: [ { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-header`, 'color': attributes?.gkitFaqTitleColor, 'background': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Desktop").background, 'background-size': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Desktop").size, ...getBorderValue(attributes?.gkitFaqTitleBorderGroup), ...getTypographyValue(attributes?.gkitFaqTitleTypographyGroup, "Desktop"), 'border-radius': getBoxValue(attributes?.gkitFaqBorderRadiusDesktop), 'padding': getBoxValue(attributes?.gkitFaqTitlePaddingDesktop), 'margin': getBoxValue(attributes?.gkitFaqTitleMarginDesktop), }, { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-body`, 'color': attributes?.gkitFaqContentColor, 'background': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Desktop").background, 'background-size': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Desktop").size, ...getBorderValue(attributes?.gkitFaqContentBorderGroup), ...getTypographyValue(attributes?.gkitFaqContentTypographyGroup, "Desktop"), 'border-radius': getBoxValue(attributes?.gkitFaqContentBorderRadiusDesktop), 'padding': getBoxValue(attributes?.gkitFaqContentPaddingDesktop), 'margin': getBoxValue(attributes?.gkitFaqContentMarginDesktop), }, ], tablet: [ { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-header`, 'background': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Tablet").background, 'background-size': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Tablet").size, ...getTypographyValue(attributes?.gkitFaqTitleTypographyGroup, "Tablet"), 'border-radius': getBoxValue(attributes?.gkitFaqBorderRadiusTablet), 'padding': getBoxValue(attributes?.gkitFaqTitlePaddingTablet), 'margin': getBoxValue(attributes?.gkitFaqTitleMarginTablet), }, { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-body`, 'background': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Tablet").background, 'background-size': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Tablet").size, ...getTypographyValue(attributes?.gkitFaqContentTypographyGroup, "Tablet"), 'border-radius': getBoxValue(attributes?.gkitFaqContentBorderRadiusTablet), 'padding': getBoxValue(attributes?.gkitFaqContentPaddingTablet), 'margin': getBoxValue(attributes?.gkitFaqContentMarginTablet), }, ], mobile: [ { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-header`, 'background': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Mobile").background, 'background-size': backgroundGenerator(attributes?.gkitFaqTitleBackgroundGroup, "Mobile").size, ...getTypographyValue(attributes?.gkitFaqTitleTypographyGroup, "Mobile"), 'border-radius': getBoxValue(attributes?.gkitFaqBorderRadiusMobile), 'padding': getBoxValue(attributes?.gkitFaqTitlePaddingMobile), 'margin': getBoxValue(attributes?.gkitFaqTitleMarginMobile), }, { selector: `.${WRAPPER} .gkit-faq .gkit-faq-item .gkit-faq-item-body`, 'background': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Mobile").background, 'background-size': backgroundGenerator(attributes?.gkitFaqContentBackgroundGroup, "Mobile").size, ...getTypographyValue(attributes?.gkitFaqContentTypographyGroup, "Mobile"), 'border-radius': getBoxValue(attributes?.gkitFaqContentBorderRadiusMobile), 'padding': getBoxValue(attributes?.gkitFaqContentPaddingMobile), 'margin': getBoxValue(attributes?.gkitFaqContentMarginMobile), }, ] } return parseCSS(rawSyle); } export default FaqStyle;