Konstantin Chudinov:
What do you mean, "developer mode" and "prodaction mode"? what the difference between them in your case?
For Information about developer mode see here:
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+Developer+ModeIn nutshell, while your server is in developer mode it sends the style informations of a theme in individual files, which won't be cached by the server, whereas in production mode everything will be read from a single new
main.css file, which is generated during the build process from the SDK. Of course this improves the servers performance when serving HTML pages.
Just inspect a page, themed with your custom theme with firebug. As long as the server is set to developer mode, the css you modified in your
custom.css will be read from
custom.css. Now switch developer mode off and restart the server (no new deployment of the theme!) and now the same css will be read from
main.cssWhen you create a new Liferay Theme with the SDK, there will be a main.css file, which only has some @import statements in it. Here,
custom.css will be loaded last, and the styles you define in custom.css will override any conflicting css statements in any css files loaded earlier. You'll find these files in /ThemeFolder/css and they will be used while the server is in developer mode.
But when you switch off developer mode, these files are ignored and instead the files from /ThemeFolder/css/.sass-cache are used, where main.css now is a mixture of the contents from your custom.css and style information of your parent theme. This MAY work, as in my case when I use the "_styled" theme as the parent theme, but there may be conflicting style information in this mixed-up file, as I'm experiencing when I use the "classic" theme as parent theme.
Because in developer mode css files won't be cached by the server, and served as individual files, this slows down the server. That's why I say it's not a solution for this problem in production servers.