Friday 15 January 2010

Liferay 6.2: Possibility to import Sass files from my theme into a portlets main.css -



Liferay 6.2: Possibility to import Sass files from my theme into a portlets main.css -

i’m diggin liferay theming sass.

one thing know is: how create utilize of variables defined in theme within custom portlet.

because want have generic theme related styles within theme , portlet specific styles within portlet increment maintainabilty und portability.

lets have follwing file within theme: css/_ aui_variables.scss

within file have overridden default values of bootstrap variables defined in parent theme: _styled/css/_aui_variables.scss

of course of study create utilize of these variables in portlet specific sass files place within portlets main.css (which compiled sass parser well).

please allow me know possible.

when trying import variables in portlets main.css via:

@import "foobar-default-theme/css/_aui_variables";

my console in eclipse (liferay ide) shows me next error message:

file import not found or unreadable: foobar-default-theme/css/_aui_variables. load paths: /users/mkuehnel/documents/projects/foobar/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/root/html/css/common /users/mkuehnel/documents/projects/foobar/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/25-foobar-top-navigation-portlet/css /users/mkuehnel/documents/projects/foobar/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/webapps/root/web-inf/lib/sass /users/mkuehnel/documents/projects/foobar/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/liferay/ruby/gems/compass-0.12.2/frameworks/blueprint/stylesheets /users/mkuehnel/documents/projects/foobar/liferay-portal-6.2-ce-ga2/tomcat-7.0.42/temp/liferay/ruby/gems/compass-0.12.2/frameworks/compass/stylesheets compass::spriteimporter /css/main.css:2 […]

any hints appreciated.

best regards, michael

sass liferay liferay-6 portlet liferay-theme

No comments:

Post a Comment