Hi,

Thanks again to everyone who has contributed to this theme. Although I've been using 7.x-1.x (ZF3) theme for some time now, I'm only starting with SASS and the 7.x-4.x-dev (ZF4) version of this theme.

The README file in the STARTERKIT folder makes it dead simple to create a sub-theme, but I'm totally confused about how to maintain my sub-theme utilizing SASS.

I've set up my sub-theme, and I have compass watching for changes in the sass folder. If I add code to custom.scss in my sub-theme, I see the changes automatically applied in custom.css.

However, I'm not sure how to override the foundation defaults, e.g. change the default colours, or make the default row width 1140px vs 1000px. When I update the _settings.scss file in my sub-theme, none of my changes make it to custom.css.

What am I missing here? Do I need to import the _settings.scss file somewhere/somehow?

Thanks!

Comments

billyroebuck’s picture

p.s. not sure if this the same as https://drupal.org/node/1724424#comment-form

jerseycheese’s picture

See https://drupal.org/node/2019249 for some background on this.

The 7.x-4.x is using the Foundation 3 version of the settings file, so none of your changes to the _settings file will have an effect on overriding any of the Foundation 4.0.3 CSS (which is what is in the base theme).

jerseycheese’s picture

That said, I've opened https://drupal.org/node/2021681 to get the base theme (and STARTER subtheme) up to speed with Foundation 4.2.2. There are some changes in CSS/SCSS file organization and @import usage. The JS from 4.0.3 > 4.2.2 also changed, so that's getting an update too.

billyroebuck’s picture

Thanks jerseycheese for replying to me so quickly.

Do you know if there are steps I can take in the meantime to work around the problem?

If there's anything I can do to help with https://drupal.org/node/2021681#comment-7557205 too, let me know.

Cheers

jerseycheese’s picture

Hey billyroebuck I posted a patch over at https://drupal.org/node/2021681 that makes this ticket obsolete (if it passes review). If you want to test it out, by all means...

alexweber’s picture

Status: Active » Closed (duplicate)

So that patch in #5 got in but this will also get "even more fixed" by #1991114: Create smacss structure for theme, where we totally refactored the SASS side of things in the subtheme and it's much better now!