Skip to content
This repository
Newer
Older
100644 30 lines (20 sloc) 0.475 kb
a77b5d32 » visionmedia
2010-12-16 Added function example
1
f3f66062 » visionmedia
2010-12-20 more examples
2
c3fea0f2 » visionmedia
2011-03-14 better function examples
3 // ?= would allow us to define the images global before @importing
4 // the file if we were to distribute this
501c3021 » visionmedia
2010-12-17 example
5
c3fea0f2 » visionmedia
2011-03-14 better function examples
6 images ?= '/images'
f7af1c06 » visionmedia
2010-12-17 Somewhat working function calls
7
c3fea0f2 » visionmedia
2011-03-14 better function examples
8 image(path)
9 url(join('/', images path))
10
11 // or
12
13 image(path)
14 url(images + '/' + path)
501c3021 » visionmedia
2010-12-17 example
15
0ad01515 » visionmedia
2011-01-19 Added example with conditional
16 body
c3fea0f2 » visionmedia
2011-03-14 better function examples
17 background image('foo.png')
0ad01515 » visionmedia
2011-01-19 Added example with conditional
18
c3fea0f2 » visionmedia
2011-03-14 better function examples
19 // functions can act as both mixins
20 // or have a return value
f3f66062 » visionmedia
2010-12-20 more examples
21
c3fea0f2 » visionmedia
2011-03-14 better function examples
22 image(path)
23 if mixin
24 background image(path)
25 else
26 url(images + '/' + path)
f3f66062 » visionmedia
2010-12-20 more examples
27
c3fea0f2 » visionmedia
2011-03-14 better function examples
28 body
29 image('something.png')
30 background image('something.png')
Something went wrong with that request. Please try again.