G'day all,
I have some app-wide CSS that is included via a file reference in User Interface attributes.
However, I would like some CSS to only apply when it's not a modal page.
One solution that comes to mind is to move the code to the global page, and exclude based on a query on apex_application_pages.
I can't help but feel there's a better way.
Here is my use case - we found the default Page Success message covered essential items in the navbar
(I've actually found this sort of thing most annoying in the page builder, where I first made an adjustment)

So we centered the message and dropped the height a little more using
right:30%;
top:43px;
The side effect is on modal pages

when is should look like this

Perhaps a more universal alignment would do the trick?
We're on 5.1.3
Scott