diff --git a/src/App-backup.js b/src/App-backup.js index 6fbfcea..31a81b7 100644 --- a/src/App-backup.js +++ b/src/App-backup.js @@ -2311,6 +2311,89 @@ function Inspector() { `; }; + const generatePseudosSection = () => { + if (!commonLayerTag) data.stylesTarget = null; + let styles = ''; + let selector = ''; + let activeStyle = null; + if (commonLayerTag) { + Object.keys(commonLayerTag).forEach(layerKey => { + const layer = commonLayerTag[layerKey]; + if (!data.stylesTarget) { + data.stylesTarget = layer.style; + } + }); + } + + // Target specific pseudo style + if (data.stylesTarget && data.stylesPropTarget === "pseudos") { + if (project.css.styles[data.stylesTarget].pseudos) { + Object.keys(project.css.styles[data.stylesTarget].pseudos).forEach(index => { + selector = project.css.styles[data.stylesTarget].pseudos[index].selector; + if (data.pseudosSelector === selector) { + buttonClass = buttonItemClass.split('bg-transparent border-0').join(''); + activeStyle = true; + data.pseudosSelectorIndex = index; + } else { + buttonClass = 'bg-transparent text-[.6rem] p-0 m-0 h-full text-left'; + activeStyle = null; + } + styles += ``; + }); + } + } + + return `