I'm using LESS to create my CSS code and I have moved all the styles into a "styles" folder.

By default the CSS folder in a Omega sub-theme is located at the root level of that theme themes/subtheme/css, however for me is in themes/subtheme/styles/css together with my LESS folder themes/subtheme/styles/less. Unfortunately this move break all Omega CSS functionality.

At first I was able to solve the problem by specifying the location of global.css inside my .info file:

css[global.css][name] = 'Main style sheet'
css[global.css][description] = 'This file holds all the style for the theme.'
css[global.css][path] = 'styles/css'
css[global.css][options][weight] = '10'

But as soon as I start to use the files specific for the narrow, normal, and wide layout I went into troubles again because Omega wasn't able to properly load them using the media queries. So I tried the same thing for these module in the .info file:

css[subtheme-alpha-default-normal.css][name] = 'Tweaks for normal layout'
css[subtheme-alpha-default-normal.css][description] = 'This file holds some necessary tweaks for the normal layout.'
css[subtheme-alpha-default-normal.css][path] = 'styles/css'
css[subtheme-alpha-default-normal.css][options][weight] = '11'

css[subtheme-alpha-default-wide.css][name] = 'Tweaks for wide layout'
css[subtheme-alpha-default-wide.css][description] = 'This file holds some necessary tweaks for the wide layout.'
css[subtheme-alpha-default-wide.css][path] = 'styles/css'
css[subtheme-alpha-default-wide.css][options][weight] = '12'

This didn't behave as expected because the files were always loaded and not just for their correspondent layouts.

I would like to know how can I let Omega knows that my css folder is located now in a different place and also how Omega load these files using media queries.

As far as I know this is not possible right now and that is why I have ticketed it as feature request, please let me know if I'm wrong.

Thank you.

Comments

marcoka’s picture

Status: Active » Closed (duplicate)

i am using sass and i can tell it to render all stuff to "css" less must be able to be configured to do that too.
#1082986: Add custom css files directly in Omega options? (not manually ftp usage)

altrugon’s picture

Sorry e-anima but that's completely unrelated with my problem, of course LESS let you specified the path for the compiled CSS files (I'm not trying to be rude here).

The problem that I'm pointing out here is that if you change the /css folder from the Omega sub-theme to another location then Omega functionality breaks; and I wanted to know if there was a way to let Omega knows that the /css folder is not located under the root directory any more but in a different folder.

So far it is not possible and I have to added my /less folder hanging from the root directory too, but this can create a small issue when the theme goes out of your hands because the next "coder" may not know you are using CSS processors to create your CSS code, having everything under the same folder makes it a little bit more clear.

marcoka’s picture

Assigned: Unassigned » himerus

lets ask himerus.

marcoka’s picture

Status: Closed (duplicate) » Active
PCateNumbersUSA’s picture

I'd like an answer to this question myself.

zymphonies-dev’s picture

change theme info css file path
->open theme info file

stylesheets[all][] = css-path/style.css

altrugon’s picture

What about for the layout style sheets, have you test it?