Lists
+ + border : 1px solid black;
+
+diff --git a/_site/index.html b/_site/index.html index 7063739..48b3a8f 100644 --- a/_site/index.html +++ b/_site/index.html @@ -105,6 +105,51 @@ +
border : 1px solid black;
+
+ $my-list : 1px solid black;
+ $my-list2 : 1px, solid, black;
+ $my-list3 : (1px solid black);
+
+ border : $my-list;
+
+ Sass::Script::List.new(['1px', 'solid', 'black'], ',')
+
+length($list)
nth($list, $n)
join($list1, $list2, [$separator])
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]
+
+