Forums de discussion

Using sass across the portal

Franz Hildt, modifié il y a 9 années.

Using sass across the portal

New Member Publications: 11 Date d'inscription: 19/02/15 Publications récentes
Hello,
how it is possible to use sass mixins, variables and helper classes across the portal?
what we want to archive is to resuse sass code from the theme for the portltes.
we want to prevent generating duplicate css code.

how did you guys solved this issue?

best regards
thumbnail
David H Nebinger, modifié il y a 9 années.

RE: Using sass across the portal

Liferay Legend Publications: 14919 Date d'inscription: 02/09/06 Publications récentes
Themes apply to portlets automagically. Portlets only need css to override or change the theme default. So take care of your mixins, variables and helper classes in the theme and you don't have to worry about them in the portlets. Use portlet overrids selectively to make changes.

Better yet, you can style everything within your theme. You just need to use the portlet css class wrappers correctly to isolate the styles from the other portlets.
Franz Hildt, modifié il y a 9 années.

RE: Using sass across the portal

New Member Publications: 11 Date d'inscription: 19/02/15 Publications récentes
okey thank you emoticon