diff --git a/index.html b/index.html index 7063739..48b3a8f 100644 --- a/index.html +++ b/index.html @@ -105,6 +105,51 @@ +
+

Lists

+ +
  border : 1px solid black;
+
+
+ + + + +
+ + +
  $my-list : 1px solid black;
+  $my-list2 : 1px, solid, black;
+  $my-list3 : (1px solid black);
+
+  border : $my-list;
+
+
+ + + + +
+

In ruby

+ +
  Sass::Script::List.new(['1px', 'solid', 'black'], ',')
+
+
+ + + + +
+

List Functions

+ + + +

Functions and Mixins

@@ -171,6 +216,42 @@
+ + +
+

Extending with ruby

+ +
def sprite(map, sprite, offset_x = ZERO, offset_y = ZERO)
+  sprite = convert_sprite_name(sprite)    
+  verify_map(map)
+  unless sprite.is_a?(Sass::Script::String)
+    raise Sass::SyntaxError
+  end
+  url = sprite_url(map)
+  position = sprite_position(map, sprite, offset_x, offset_y)
+  Sass::Script::List.new([url] + position.value, :space)
+end
+Sass::Script::Functions.declare :sprite, [:map, :sprite]
+Sass::Script::Functions.declare :sprite, [:map, :sprite, :offset_x]
+Sass::Script::Functions.declare :sprite, [:map, :sprite, :offset_x, :offset_y]
+
+
+ + + + +
+

Data types

+ + + +

Best Practices