I need to include an attribute in a complex selector in my stylesheet but can't figure out how to do this in Flare. I know that CSS supports this by including the attribute and value within [], and I've tried including the same in the stylesheet using the internal text editor but I've had no luck. The styles are simply not applied to the selectors with the attribute declared.
Has anyone had any luck with using attributes in complex selectors in Flare?
Including attribute in complex selector
Re: Including attribute in complex selector
Yes, I use them - some examples:
Add icons to links to PDF files:
a[href*=".pdf"]:after { }
Add icons to links in a relationships proxy:
div[class^="MCRelationshipsProxy"] > p[class*="Item"]:before { }
Style any tag that is a named toggler target:
[data-mc-target-name] { }
Do you want to give an example of what you've tried or are trying to do?
Add icons to links to PDF files:
a[href*=".pdf"]:after { }
Add icons to links in a relationships proxy:
div[class^="MCRelationshipsProxy"] > p[class*="Item"]:before { }
Style any tag that is a named toggler target:
[data-mc-target-name] { }
Do you want to give an example of what you've tried or are trying to do?
Re: Including attribute in complex selector
Brilliant. I have a bunch of h3 headings in my project, some of which toggle the div below them. I wanted to change the left margin for the divs that are toggled and had tried h3 + div[target] which didn't work. data-mc-target-name worked though. Thank you.Dave Lee wrote: Style any tag that is a named toggler target:
[data-mc-target-name] { }