1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00

[Sass] Update function documentation to include new red, green, and blue functions.

This commit is contained in:
Nathan Weizenbaum 2009-11-11 20:17:15 -08:00
parent d08672e867
commit 390c92f488
2 changed files with 11 additions and 4 deletions

View file

@ -817,10 +817,8 @@ is compiled to:
#main {
color: #ff0000; }
The following functions are provided: `hsl`, `percentage`, `round`, `ceil`, `floor`, and `abs`.
You can define additional functions in ruby.
See {Sass::Script::Functions} for more information.
See {Sass::Script::Functions} for a full listing of Sass functions,
as well as instructions on defining your own in Ruby.
### Interpolation: `#{}`

View file

@ -14,6 +14,15 @@ module Sass::Script
# \{#percentage}
# : Converts a unitless number to a percentage.
#
# \{#red}
# : Gets the red component of a color.
#
# \{#green}
# : Gets the green component of a color.
#
# \{#blue}
# : Gets the blue component of a color.
#
# \{#round}
# : Rounds a number to the nearest whole number.
#