Team Sass
Sass has an awesome community of designers and developers who love to spread the word and help people out. Here we’ve collected some resources. Happy Styling!
Sass Website
There are several ways to install Sass in your system. There are many applications that will get you up and running with Sass in a few minutes for Mac, Windows, and Linux. Some of these are free, but some are paid apps.
You can read more about them here:
Read More...Variables are a way to store information that you can re-use later.
With Sass, you can store information in variables, like:
Sass uses the $ symbol, followed by a name, to declare variables:
Read More...Sass lets you nest CSS selectors in the same way as HTML.
Look at an example of some Sass code for a site's navigation:
Read More...Just like CSS, Sass also supports the @import directive.
The @import directive allows you to include the content of one file in another.
The CSS @import directive has a major drawback due to performance issues; it creates an extra HTTP request each time you call it. However, the Sass @import directive includes the file in the CSS; so no extra HTTP call is required at runtime!
Read More...The @mixin directive lets you create CSS code that is to be reused throughout the website.
The @include directive is created to let you use (include) the mixin.
Read More...The @extend directive lets you share a set of CSS properties from one selector to another.
The @extend directive is useful if you have almost identically styled elements that only differ in some small details.
The following Sass example first creates a basic style for buttons (this style will be used for most buttons). Then, we create one style for a "Report" button and one style for a "Submit" button. Both "Report" and "Submit" button inherit all the CSS properties from the .button-basic class, through the @extend directive. In addition, they have their own colors defined:
Read More...