Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
define convert-number-to-words within sass
- Loading branch information
Mark Hayes
committed
Jul 6, 2012
1 parent
7fbf801
commit a23f5e5
Showing
4 changed files
with
11 additions
and
31 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
@import "compass"; | ||
@import "foundation/functions"; | ||
@import "foundation/modular-scale"; | ||
@import "foundation/settings"; | ||
@import "foundation/semantic-grid"; | ||
@import "foundation/mixins"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
@function convert-number-to-word($num) { | ||
$count:1; | ||
@each $word in one,two,three,four,five,six,seven,eight,nine,ten,eleven, | ||
twelve,thirteen,fourteen,fifteen,sixteen,seventeen,eighteen,nineteen, | ||
twenty,twentyone,twentytwo,twentythree,twentyfour{ | ||
@if ($count == $num) { @return $word; } | ||
$count: $count + 1; | ||
} | ||
@return "invalid"; | ||
} |