Skip to content

Instantly share code, notes, and snippets.

@davidcalhoun
Created August 31, 2011 19:52
Show Gist options
  • Select an option

  • Save davidcalhoun/1184527 to your computer and use it in GitHub Desktop.

Select an option

Save davidcalhoun/1184527 to your computer and use it in GitHub Desktop.
SASS/LESS

Thoughts on using SASS or LESS

  • Two syntaxes:

    1. style.sass: whitespace sensitive, curly braces, colons, semicolons
    2. style.scss: different syntax that brings back CSS-like syntax.
  • Ruby gem

  • included by default in Ruby on Rails (as of version 3.1) https://gist.github.com/958283

  • originated with the idea of HAML

  • sass watch: can watch files and parse output when they're changed

  • compass watch: see above

  • multiple files can be combined from multiple stylesheets into one output

  • Unofficial blog: http://thesassway.com/ (url looks offensive.. sorry...)

Compass: library/framework/boilerplate built on SASS.

  • Comes with base styles, Blueprint (grid framework), etc.
  • You can pick and choose elements you want to use.
  • Comes with lots of predefined mixins (like predefined vendor prefixes).
  • Can be configured to output specific vendor prefixes only: http://compass-style.org/reference/compass/support/
  • style.less
  • compiled by JavaScript (can be run in Node.js)
  • advantage: you can access JS objects and the DOM through LESS
@davidcalhoun
Copy link
Copy Markdown
Author

More notes on LESS are more than welcome!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment