Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2014-04-01 03:06:56

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

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

#14 2014-04-01 05:25:05

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,091
Website GitHub Mastodon Twitter

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

#15 2014-04-01 06:58:16

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

#16 2014-04-01 08:16:22

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,263
GitHub

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

#17 2015-06-04 15:47:25

philwareham
Core designer
From: Haslemere, Surrey, UK
Registered: 2009-06-11
Posts: 3,564
Website GitHub Mastodon

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

Board footer

Powered by FluxBB