Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: Foundation 5 and learning Sass
I always use the _settings.scss first, then include my own file called _custom.scss (call it what you want) and include it at the bottom of the app.scss
@import "custom";
This way I can still use any of the variables in _settings.scss in any of my new styles.
Foundation is only a framework – you can still create your own styles for templates etc.
Offline
Re: Foundation 5 and learning Sass
Gocom wrote #279993:
I would highly recommend that you don’t edit the frameworks source files, but extend it with overrides where needed. For instance you shouldn’t edit the settings file that comes with the framework, instead create your own copy of it and import that in your main scss file. That way you don’t have to worry about updates overwriting your stuff.
I hear you here but what happens if one wants to use custom mixins?
Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.
Offline
Re: Foundation 5 and learning Sass
colak wrote #279997:
I hear you here but what happens if one wants to use custom mixins?
I’ll say it again, anything in the scss folder is yours to edit as you please as long as you keep the imports to the framework source files, so you can store mixins in the app.scss file or create a new file and import that into app.scss. In Foundation 5 they keep the framework sandboxed in the bower_components directory and it’s included when you compile.
Offline
Re: Foundation 5 and learning Sass
Thanks, everyone – it looks like I’m on the right track. The chunks of info in this thread are very useful to me, and my confidence is now much higher.
Offline
Re: Foundation 5 and learning Sass
I’ve finally done some work on Zurb Foundation for Textpattern
I’ll add some theme templates in the next few days.
Offline