Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 56 lines (38 sloc) 0.741 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56


// color manipulation

body
  color darken(#eee, 50%)
  color darken-by(#eee, 50%)
  color #eee - rgba(100,0,0,0.5)
  color rgba(#eee,.5)

// expression node access

body
  list = (one 1) (two 2) (three 3)
  foo last(list)

// pseudo hashes

get(hash, key)
  return pair[1] if pair[0] == key for pair in hash

body
  hash = (one 1) (two 2) (three 3)
  foo get(hash, two)
  foo get(hash, one)
  foo get(hash, none) == null
  foo length(hash)

// color components

body
  foo red(#c00)
  foo lightness(#c00)

// units

body
  foo unit(15%)
  foo unit(15%, px)
  foo unit(15px, '%')

// math

body
  foo abs(-5)
  foo sum(1 2 3 4)
  foo avg(1 2 3 4)

// literals

body
  foo unquote('X::MessedUp::IE.crap(here)')

// inspection

p(1 + 5 / 10)
Something went wrong with that request. Please try again.