Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

App level CSS, not applied in modals

Scott WesleyAug 19 2018 — edited Aug 22 2018

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)

pastedImage_1.png

So we centered the message and dropped the height a little more using

right:30%;

top:43px;

The side effect is on modal pages

pastedImage_2.png

when is should look like this

pastedImage_3.png

Perhaps a more universal alignment would do the trick?

We're on 5.1.3

Scott

This post has been answered by Pierre Yotti on Aug 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2018
Added on Aug 19 2018
7 comments
793 views