Permalink
Browse files

add documentation for the color function

  • Loading branch information...
1 parent 1de1d9b commit 8474fecb58fefdb4dbc0c662f712a41fff37cbbd @lukeapage lukeapage committed Jan 1, 2013
Showing with 16 additions and 0 deletions.
  1. +16 −0 templates/pages/reference.md
@@ -3,6 +3,7 @@
escape(@string); // URL encodes a string
unit(@dimension, [@unit: ""]); // remove or change the unit of a dimension
+ color(@string); // parses a string to a color
ceil(@number); // rounds up to an integer
floor(@number); // rounds down to an integer
@@ -69,6 +70,21 @@ Output:
a%3D1
#Misc functions
+###color
+Parses a color, so a string representing a color becomes a color.
+
+Parameters:
+
+* `string`: A string of the color
+
+Example:
+
+ color("#aaa");
+
+Output:
+
+ #aaa
+
###unit
Remove or change the unit of a dimension

0 comments on commit 8474fec

Please sign in to comment.