Sass CSS Stylesheet Primer Tutorial

Sass CSS Stylesheet Primer Tutorial

Sass CSS Stylesheet Primer Tutorial

When compartmentalizing web design work, and you’ve already done a compartmentalization to …

  • backend – (ie. “the data”, “the configuration”) … and …
  • frontend – (ie. “the look”, “the functionality”)

… a very natural, and intuitive way to divvy up some of the tasks for “frontend” above, a programmer or developer or team could work on …


CSS styling

… both in a …

  • project wide CSS styling sense … and into …
  • nuances for exceptional webpages, perhaps

… and it is here that we think today’s (“Hello World”-ish) trial of the Sass (“Syntactically Awesome Style Sheets”) command line product should be of interest for you.

Let’s list in broad brush terms what Sass is capable of as far as CSS styling goes, and which we show you a stream of consciousness view of with today’s PDF slideshow presentation (showing you an install on a MacBook Pro, and showing its features, and the mock up of a Sass *.scss file along with its imagined “sass –watch” manipulation to change the look of a mockup webpage) …

  • ability to preprocess, facilitating that compartmentalization thought above, command line “sass –watch” option can have a developer working on CSS stylesheet files (separately to other developers working on HTML (or server developers on PHP), separately to other developers working on Javascript) that are not the live CSS files, one step removed via “sass” looking out for changes and automatically building the live CSS files when Sass *.scss files are saved … as well as syntax and cross-browser thoughts such as …
  • ability to include snippets (“partials”) or import from other Sass *.scss stylesheet files
  • ability to have Sass variables
  • ability to handle Sass nesting syntax
  • ability to include Sass mixins to help with those cross-browser prefix (eg. “-webkit-“, “-ms-“) directive complications
  • ability to share Sass (CSS) properties from one selector to another (“extend/inherit”)
  • ability to do mathematics via Sass “operators” helping convert hard-coded dimensions in pixels (px) to percentage (%) values better for responsive design principles

We hope you try out this wonderful software tool for yourself.

If this was interesting you may be interested in this too.

This entry was posted in eLearning, Tutorials and tagged , , , , , , , , , , , , , , , , , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>