modular-scale 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/modular-scale.rb CHANGED
@@ -2,10 +2,13 @@ require 'compass'
2
2
  require 'sassy-math'
3
3
  Compass::Frameworks.register("modular-scale", :path => "#{File.dirname(__FILE__)}/..")
4
4
 
5
+ # Modular Scale Functions
6
+ # module Sass::Script::Functions
7
+ # end
5
8
 
6
9
  module ModularScale
7
- VERSION = "1.0.1"
8
- DATE = "2012-08-08"
10
+ VERSION = "1.0.2"
11
+ DATE = "2012-08-13"
9
12
  end
10
13
 
11
14
 
@@ -7,7 +7,7 @@ $base-size: 16px !default
7
7
  $round_pixels: true !default
8
8
 
9
9
  // Modular Scale function
10
- @function modular-scale($multiple, $base-size, $ratio, $round_pixels)
10
+ @function modular-scale($multiple, $base-size: $base-size, $ratio: $ratio, $round_pixels: $round_pixels)
11
11
  // return the $base-size if $multiple is zero
12
12
  @if $multiple == 0
13
13
  @if type-of($base-size) == 'list'
@@ -195,9 +195,9 @@ $round_pixels: true !default
195
195
  @return golden_ratio()
196
196
 
197
197
  // Shortcut
198
- @function ms($multiple, $base-size, $ratio)
198
+ @function ms($args...)
199
199
  // Return the value from the Modular Scale function
200
- @return modular-scale($multiple, $base-size, $ratio)
200
+ @return modular-scale($args...)
201
201
 
202
202
  // Write Modular Scale List
203
203
  @function modular-scale-list($start: 0, $finish: 20, $base-size: $base-size, $ratio: $ratio)
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 1
9
- version: 1.0.1
8
+ - 2
9
+ version: 1.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Scott Kellum
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-08-08 00:00:00 -04:00
19
+ date: 2012-08-13 00:00:00 -04:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency