Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Christian Freihoff
Cannot style a portlet's popup
21. Februar 2013 05:54
Antwort

Christian Freihoff

Rang: Junior Member

Nachrichten: 36

Eintrittsdatum: 3. Dezember 2012

Neue Beiträge

When using the editing or "new" function in a portlet like Asset Publisher i get an iframe with a form. I would like to style elements inside this form. For that i looked up the classnames of the element i would like to style an wrote some css code into the custom.css (what perfectly works on the basic page).
But in the iframe's/popup's body nothing changes.

So, what am i doing wrong?

Thanks in advance
Patrick Yeo
RE: Cannot style a portlet's popup
1. März 2013 08:34
Antwort

Patrick Yeo

LIFERAY STAFF

Rang: New Member

Nachrichten: 5

Eintrittsdatum: 7. Februar 2013

Neue Beiträge

Hope you figured this out, but if not you can try styling the form elements instead of the class names in custom.css.

 1
 2input[type="text"], input[type="password"], textarea {
 3    background: green;
 4    border: 1px solid black;
 5}
 6
 7input[type="submit"], input[type="button"], input[type="reset"] {
 8    background: blue;
 9}
Anonym
RE: Cannot style a portlet's popup
1. März 2013 09:08
Antwort

Anonym

the pop-up has a class


body.portal-popup

try to use that and the form elements in your css then that should be specific enough to overwrite the styles.