Putting this in my application.css.scss does not load the sass library.
@import ‘foundation.scss’;
Even if I put this in my config.
config.sass.load_paths << Rails.root.join( ‘vendor’, ‘assets’,
‘components’, ‘foundation-sites’, ‘scss’ )
Thanks.
Putting this in my application.css.scss does not load the sass library.
@import ‘foundation.scss’;
Even if I put this in my config.
config.sass.load_paths << Rails.root.join( ‘vendor’, ‘assets’,
‘components’, ‘foundation-sites’, ‘scss’ )
Thanks.
Hey Justin,
Jim
I can probably put it anywhere, but I’m using bower to manage
js/css/scss.
Going by an article is how I decided on components folder. Seems nice
and
clean that way, but I’m open to better options. Yes the scss is in that
folder it’s called foundation.scss. No underscore in file name. Yes I
restarted. However now that you mention the error, there is no error.
There’s just no css in the application.css file it creates. And the
clear
fact there’s no style. The foundation.scss just has a bunch of
includes.
Here’s a sample.
/ Sass utilities
@import ‘util/util’;
// Global variables and styles
@import ‘global’;
// Components
@import ‘grid/grid’;
@import ‘typography/typography’;
@import ‘forms/forms’;
@import ‘components/visibility’;
@import ‘components/float’;
@import ‘components/button’;
@import ‘components/button-group’;
@import ‘components/accordion-menu’;
Ya it appears to pull in the foundation.scss file, but none of the
imports
in that file.
Interesting. Have you tried clearing Rails’ tmp files with rake tmp:clear
? I’ve seen that clear up weird asset-related issues.
the minimal case might even shed light on the problem itself).
I created a new app and setup bower with it. Added to load path. It does
the same. Loads the specific file, but that loaded files imports do not
load.
OMG I’m just stupid. I just figured out what my issue is. All is working
fine, I just forgot to use the includes. Geez. Sorry for the waste of
time,
and thanks for helping out.
Justin S. wrote in post #1182237:
OMG I’m just stupid. I just figured out what my issue is. All is working
fine, I just forgot to use the includes. Geez. Sorry for the waste of
time,
and thanks for helping out.
Could I trouble you to elaborate on what you mean by “forgot to use the
includes”?
I’m having the same issue as you described and I’m having a hard time
resolving it.
I’m using bower-rails, foundation-sites is installed in
vendor/assets/bower_components/foundation-sites
I renamed my application.css file to application.scss and simply added
@import ‘foundation’ and when I inspect my page (in firefox) i can see
the comments from the foundation.scss file but none of the imports.
It’s empty.
Any insight would be most helpful.
No problem - glad you got it worked out!
New day, fresh eyes.
I was able to find a solution here:
http://foundation.zurb.com/forum/posts/37580#comment_31275
I need to do some studying on SASS obviously.
Hopefully if anyone experiences the same issue, this will help them get
over the hump.
According to the forum post above, the solution is to add
@include foundation-everything;
to the bottom of the foundation.scss file that lies at the root of the
scss folder.
Good luck sassy people.
Tom Alexander wrote in post #1184883:
Justin S. wrote in post #1182237:
OMG I’m just stupid. I just figured out what my issue is. All is working
fine, I just forgot to use the includes. Geez. Sorry for the waste of
time,
and thanks for helping out.Could I trouble you to elaborate on what you mean by “forgot to use the
includes”?I’m having the same issue as you described and I’m having a hard time
resolving it.I’m using bower-rails, foundation-sites is installed in
vendor/assets/bower_components/foundation-sitesI renamed my application.css file to application.scss and simply added
@import ‘foundation’ and when I inspect my page (in firefox) i can see
the comments from the foundation.scss file but none of the imports.
It’s empty.Any insight would be most helpful.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs