Page 1 of 1

Custom CSS selector to distinguish Tag display mode

Posted: Fri Oct 05, 2018 12:53 pm
by honyk
I'd like to apply some CSS formatting. It should be applied in all tag display modes except 'No Tags' mode. Is there any internal selector for this?

Re: Custom CSS selector to distinguish Tag display mode

Posted: Mon Oct 08, 2018 11:27 am
by Radu
Hi,

We do not have this functionality for now. But we do have plans to add in a future version some specific CSS pseudo classes to allow matching various CSS selectors depending on the tags mode. So we'll update this forum thread when a fix is available.
In the meantime, using our Java-based Author SDK it might be possible to add a listener which gets triggered each time before the tags display mode changes. And when the mode changes we have API which could allow you to set a pseudo class attribute on the XML root element, after this you would be able to write your selectors something like:

Code: Select all


:root:no_tags elementName{
....
}
So if you are comfortable with using Java I could try to give you more details about this.

Regards,
Radu