Separating CSS during development

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
10/2/2012 6:07:06 AM
Gravatar
Total Posts 40

Separating CSS during development

Hi there,

I have started using mojoportal and i am designing a theme, based on a mojo default theme but all the css files are combined, making it harder to find the classes, and debug the css. Is there an option to include all css files uncombined instead of using the StyleSheetCombiner?

Thanks in advance.

Best regards,

João

10/2/2012 8:34:51 AM
Gravatar
Total Posts 115
mojoPortal Community Expert

Re: Separating CSS during development

Look for the following lines in the web.config and set both of them to false. If you are viewing this on a production box and not a local or test copy make sure you set them back to true when done.

<add key="CombineCSS" value="true"/>
<add key="MinifyCSS" value="true"/>

It will also be helpful to turn off CSS caching while working with a skin. You can do that while logged in as an admin under Administration->Advanced Tools->Design Tools->Disable CSS Caching.

10/2/2012 8:42:57 AM
Gravatar
Total Posts 18439

Re: Separating CSS during development

Myself I would just turn of the minification then you can easily find the specific css and you can fairly quickly determine which file it is coming from by looking at the list of files in style.config (the css files are combined in the same order that they are listed in style.config) and opening the separate css files.

Keep in mind that turning off caching doesn't work if the files are loaded separately as static resources, the browser will cache them, the only time we have control over caching is when we have them combined by the css handler.

Best,

Joe

10/3/2012 3:46:24 AM
Gravatar
Total Posts 40

Re: Separating CSS during development

Thank you for the swift answers. It was easy ;)

Best regards.

You must sign in to post in the forums. This thread is closed to new posts.