Hello,
I would like to know if it is possible to use different container types for different layouts in my Omega 4 Sub-theme.
For example I would like to create two layouts in my sub-theme so that one layout uses the container-style: gird and the other uses container-style:fluid.
Since the container-style variable is defined in partials/utilty/variables/_grid.scss, is there anyway it can be overridden in the layout.scss file.
Could anyone please tell me if this is even possible?

Thanks,
Leo

Comments

fubhy’s picture

Status: Active » Fixed

Yes, I was considering moving it out of the global variables anyways as it is often needed with different values all over the place. Anyways, since you are using layouts anyways you should just define the grid variables in your layout's .scss file which is a separate top-level file and therefore won't interfere with any of the other top-level .scss files (like styles.scss). So just go ahead and define different sets of grid variables in each of your layout .scss files.

leonardo.drupal’s picture

Thanks for the super fast reply fubhy!!
I removed the container-style and container-width variables from the _grid.scss and defined them in each of the layouts as per the requirements of each layout and that did it. Thanks once again.

Leo

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.