Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 36 lines (23 sloc) 0.641 kb

Variables

We may assign expressions to variables and use them throughout our stylesheet:

 font-size = 14px

 body
   font font-size Arial, sans-serif

compiles to:

 body {
   font: 14px Arial, sans-serif;
 }

Variables can even consist of an expression list:

font-size = 14px
font = font-size "Lucida Grande", Arial

body
  font font sans-serif

compiles to:

body {
  font: 14px "Lucida Grande", Arial sans-serif;
}

identifiers (variable names, functions, etc) may also include the $ character, for example:

$font-size = 14px
body {
  font: $font sans-serif;
}
Something went wrong with that request. Please try again.