Hi,
Is it possible to change .popup class in Ignition? I want to remove this background (red) from my popup. I believe it's not part of the root inside the view, so it's related to the popup that ignition generates.
Perhaps this might help. There is no way to set the class, but you can use the advanced stylesheet to selectively target popups with a specific ID.
Thank you. I saw that, but I don't wanna use Ids for it, because I want to apply my changes to all popups that I currently have.
Then that would be easier, as you could just use a selector of .ia_popup
. That would grab all popups that are ever created. Specifically you could target .ia_popup .body-wrapper .popup-body
that worked. Thank you!
Note that you can adapt the id method to "simulate" classes.
If you include a specific name in the popup id, you can then target popups which id contains that name.
I usually use a simple prefix, for example class1-some_id
, then use .ia_popup[id^=popup-class1]
to target all popups with an id that starts with class1
.
You could use .ia_popup[id*=class1]
to target popups which id CONTAINS "class1", and put more than one fake class in your popups' ids. But I find one class is usually enough, and so prefixes are better.
I just saw your answer and I loved it. That's an amazing idea, thank you! I'll start using this way from now on.