Now I'm developing a portal application with using JDev 220.127.116.11.0 version. In my app, there are lots of components like goImageLinks, goLinks etc. When i want to add some special attributes to these components, i overrided some selectors in "portal-skin.css" file just like "af|goImageLink:hover" "af|goImageLink:active" or "af|goLink"..
But there is a problem here : If a new goImageLink is added to the template or page, it's automatically affected from the selectors of "portal-skin.css" file. I mean the selectors is called default.
How can i find a solution for this problem? I just want to call my selectors whereever i want, not everywhere?
(P.S. : I created new skin files to call in specific points, but it didn't work.)
A portal skin is applied to the portal as a whole, you cannot say "I want to apply this skin to this element, but not to this element".
You can however create your own style classes, and refer to those instead. That way you can selectively style elements. Another downside of styling all elements of a particular type , such as af|goLink, is that it also affects the out-of-the-box pages and taskflows, such as the admin pages and document manager, and may produce undesired side-effects.
I do understand you. I created my skin files according to this document -> http://docs.oracle.com/cd/E25178_01/webcenter.1111/e10148/jpsdg_skin.htm
To call the selectors from my new skin file, i dragged it to the page source. When i added the selector to the component -just like< styleClass="myskin.css" >- , then the page entirely differ. Style of layouts, images etc. all of them are changing.
What do you think about this, why does it look like ?
I don't understand the part about "dragging" the CSS file, but I can see the page does not display correctly.
Probably there is some CSS missing that makes the content stretch on the page. And it display correctly if you switch back to the original skin? Then it should just be a matter of comparing the two files.
Thanks Jaap. I know using "inlineStyle" is not the exact solution, but i haven't got a better idea because of the fact that skin file isn't correctly working. I'll be more careful about it, thanks again.