Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert CSS to Sass #1

Closed
philschanely opened this issue Sep 1, 2018 · 1 comment
Closed

Convert CSS to Sass #1

philschanely opened this issue Sep 1, 2018 · 1 comment

Comments

@philschanely
Copy link
Collaborator

No description provided.

@philschanely
Copy link
Collaborator Author

Good work setting up Sass. I've reorganized site assets into a new src folder and added package.json which allows you to batch the scripts for watching sass and browser sync. So pull my changes and then in terminal and from your project root folder run npm install to get all the dependencies. Only need that one time. Form there any time you want to run the site run npm start to start browser sync and sass.

Keep pushing on your Sass by:

  • Making more use of variables to centralize values you use frequently
  • Making use of mixins to cut down on combinations of settings you use frequently
  • Break up into separate files. Note that a model to consider is to break up into a series of other files that you place in sass/ and start with _ and the beginning of the name. For example you might break up by breakpoints and have sass/_base.scss, sass/_tablet.scss, and sass/_desktop.scss. Then in your styles.scss file you would essentially have moved everything to separate files and can then just import them there with:
    @import 'base';
    @import 'tablet';
    @import 'desktop';
    No requirement to use these specific files; you can organize however you'd like.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant