I have uploaded a file "global.scss" to my theme. In "theme.scss" I've tried to import it using the following:
@import '/srv/nbuild/releases/20130729212540/public/stylesheets/scss/global.scss';
and
@import 'global.scss';
and even:
@import '{{ theme['global.scss'] }}';
None of those work. It throws an error and I cannot save the theme.scss.
How do I include other .SCSS files from the the main "theme.scss"?? This should be clearly documented.
Thank you
You can @import SCSS or CSS files by adding an underscore to the beginning of the scss/css filename, and leaving the underscore and file extension off when importing it into your stylesheet.
For example:
Name your stylesheet something like: _stylesheet.scss.
Then in theme.scss, reference it like this:
@import “stylesheet”;
Showing 12 reactions
Sign in with
Hines Digital
Certified Architect
Certified Expert
Content scss File to import not found or unreadable: galilee_color_red. Load paths: /srv/nbuild/releases/20140102204624/public/stylesheets/scss /srv/nbuild/shared/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets /srv/nbuild/shared/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets /srv/nbuild/shared/bundle/ruby/1.9.1/gems/fancy-buttons-1.2.0/lib/stylesheets /srv/nbuild/releases/20140102204624/app/assets/stylesheets/admin /srv/nbuild/releases/20140102204624/app/assets/stylesheets/mixins Compass::SpriteImporter #
Any update on what Jesse’s problem was? Thanks!
Hines Digital
Certified Architect
Certified Expert
Content scss File to import not found or unreadable: fontawesome. Load paths: /srv/nbuild/releases/20130729212540/public/stylesheets/scss /srv/nbuild/shared/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/blueprint/stylesheets /srv/nbuild/shared/bundle/ruby/1.9.1/gems/compass-0.12.2/frameworks/compass/stylesheets /srv/nbuild/shared/bundle/ruby/1.9.1/gems/fancy-buttons-1.2.0/lib/stylesheets /srv/nbuild/releases/20130729212540/app/assets/stylesheets/admin /srv/nbuild/releases/20130729212540/app/assets/stylesheets/mixins Compass::SpriteImporter #