Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Artem Fedulov
css problems in newly created theme
18 de marzo de 2012 8:48
Respuesta

Artem Fedulov

Ranking: New Member

Mensajes: 21

Fecha de incorporación: 25 de febrero de 2012

Mensajes recientes

Hi, I'm new in liferay. I have created new theme step by step like in this tutorial
http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/creating-a-the-4
and new theme has no any css to display, but templates and java scriptare working. I read that new theme should extend base theme and looks like classic theme, but it has not done.
What shall I do, to extend existing css from classic liferay theme? Do I have to write all the CSS again?
David H Nebinger
RE: css problems in newly created theme
18 de marzo de 2012 9:20
Respuesta

David H Nebinger

Ranking: Liferay Legend

Mensajes: 7512

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

The default parent theme used when you create a new theme is "_styled" which, unfortunately, is not really styled much at all.

If you change the parent theme to "classic" (in the build.xml of your theme project), it will look like the classic theme.

The basic intent with _styled is that all of the classes, etc., used in a liferay theme are provided but not populated. As the theme creator, you would modify all of the standard classes to match what you're looking for.

In reality this is overkill. Most people (especially those new to Liferay) want a real starting point where they can start tweaking a working theme from. Changing the parent theme to "classic" will do this for you.
Hitoshi Ozawa
RE: css problems in newly created theme
18 de marzo de 2012 20:44
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7954

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

If you're interested, Liferay's document on what David said:

http://www.liferay.com/documentation/liferay-portal/6.1/development/-/ai/theme-inheritan-4
Artem Fedulov
RE: css problems in newly created theme
19 de marzo de 2012 10:21
Respuesta

Artem Fedulov

Ranking: New Member

Mensajes: 21

Fecha de incorporación: 25 de febrero de 2012

Mensajes recientes

Thanks for answers