Best practice of Omega Kickstart sub theming

Events happening in the community are now at Drupal community events on www.drupal.org.
catchlight's picture

I'm using Omega on a Drupal Commerce website. I'm not using the Commerce Kickstart Install profile, but I am using a custom sub theme of the Omega Kickstart theme (which is a sub theme of Omega)

In other words...

Omega 7.x-3.1 -> Omega Kickstart 7.x-3.4 -> myCustomTheme

What's the best practice for overriding CSS in myCustomTheme?

Here's some background if necessary...

If I look at the page source, stylesheets seem to be coming from the following places:

  1. sites/all/themes/myCustomTheme/css/
  2. sites/all/themes/omega/alpha/css/
  3. sites/all/themes/omega_kickstart/css/

SOURCE

<!--[if gte IE 9]><!-->
<style type="text/css" media="all and (min-width: 740px) and (min-device-width: 740px), (max-device-width: 800px) and (min-width: 740px) and (orientation:landscape)">@import url("/sites/all/themes/omega_kickstart/css/omega-kickstart-alpha-default.css?ms0lya");
@import url("sites/all/themes/myCustomTheme/css/myCustomTheme-alpha-default.css?ms0lya");
@import url("sites/all/themes/omega/alpha/css/grid/alpha_default/fluid/alpha-default-fluid-24.css?ms0lya");
@import url("sites/all/themes/omega_kickstart/css/omega-kickstart-alpha-default.css?ms0lya");
@import url("sites/all/themes/omega_kickstart/css/omega-kickstart-alpha-default-narrow.css?ms0lya");
@import url("sites/all/themes/myCustomTheme/css/myCustomTheme-alpha-default.css?ms0lya");
@import url("sites/all/themes/myCustomTheme/css/myCustomTheme-alpha-default-narrow.css?ms0lya");
@import url("sites/all/themes/omega/alpha/css/grid/alpha_default/narrow/alpha-default-narrow-24.css?ms0lya");</style>
<!--<![endif]-->

<!--[if gte IE 9]><!-->
<style type="text/css" media="all and (min-width: 980px) and (min-device-width: 980px), all and (max-device-width: 1024px) and (min-width: 1024px) and (orientation:landscape)">@import url("/sites/all/themes/omega_kickstart/css/omega-kickstart-alpha-default.css?ms0lya");
@import url("/sites/all/themes/omega_kickstart/css/omega-kickstart-alpha-default-normal.css?ms0lya");
@import url("/sites/all/themes/myCustomTheme/css/myCustomTheme-alpha-default.css?ms0lya");
@import url("/sites/all/themes/myCustomTheme/css/myCustomTheme-alpha-default-normal.css?ms0lya");
@import url("/sites/all/themes/omea/alpha/css/grid/alpha_default/normal/alpha-default-normal-24.css?ms0lya");</style>
<!--<![endif]-->

MyCustomTheme's .info file has the following

css[global.css][name] = 'global styles'
css[global.css][description] = 'This file holds all the globally active custom CSS of your theme.'
css[global.css][options][weight] = '10'
css[myCustomTheme.css][name] = 'custom global styles'
css[myCustomTheme.css][description] = 'This file holds all the globally active custom CSS of your theme.'
css[myCustomTheme.css][options][weight] = '11'

Currently I have these files in myCustomTheme css folder

myCustomTheme-alpha-default.css
myCustomTheme-alpha-default-narrow.css
global.css
myCustomTheme.css

So what CSS files should I be editing in myCustom Theme? Shouldn't the Global file be coming from Omega Kickstart and not myCustomTheme? Confused :/

Comments

omega

slsonnier's picture

You should be editing the CSS files in your custom theme folder.

Edit these files

snaushads's picture

You need to Edit these 5 CSS files as attached in screen-shot, each of the file is for a specific screen resolution.

CSS files

Also refer to this tutorial http://mechdeveloper.com/blog/how-theme-drupal-7-omega-3

Drupal Commerce

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: