Skip to content

Commit

Permalink
define convert-number-to-words within sass
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Hayes committed Jul 6, 2012
1 parent 7fbf801 commit a23f5e5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 31 deletions.
29 changes: 0 additions & 29 deletions lib/foundation/sass_script_functions.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/zurb-foundation.rb
Expand Up @@ -3,7 +3,6 @@
extension_path = File.expand_path(File.dirname(File.dirname(__FILE__)))
config = {:path => extension_path}
Compass::Frameworks.register("foundation", config)
require "foundation/sass_script_functions"

module Foundation
require "foundation/engine" if defined?(Rails)
Expand Down
2 changes: 1 addition & 1 deletion stylesheets/foundation/_base.scss
@@ -1,6 +1,6 @@
@import "compass";
@import "foundation/functions";
@import "foundation/modular-scale";
@import "foundation/settings";
@import "foundation/semantic-grid";
@import "foundation/mixins";

10 changes: 10 additions & 0 deletions stylesheets/foundation/_functions.scss
@@ -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";
}

0 comments on commit a23f5e5

Please sign in to comment.