From c5abcb3953e1107afdd4eaecd944106d3c30253a Mon Sep 17 00:00:00 2001 From: Scott Davis Date: Fri, 23 Mar 2012 10:31:44 -0400 Subject: [PATCH] pre-gh pages creation --- _site/index.html | 81 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) 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 @@ +
+

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

+ +
    +
  • length($list)
  • +
  • nth($list, $n)
  • +
  • join($list1, $list2, [$separator])
  • +
  • More coming soon!
  • +
+ +

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

+ +
    +
  • Bool
  • +
  • Color
  • +
  • List
  • +
  • Number
  • +
  • String
  • +
+ +

Best Practices