modular-scale 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/modular-scale.rb +3 -3
- data/stylesheets/modular-scale.zip +0 -0
- data/stylesheets/modular-scale/_pow.scss +4 -4
- metadata +2 -2
data/lib/modular-scale.rb
CHANGED
@@ -16,11 +16,11 @@ Compass::Frameworks.register('modular-scale', :path => extension_path)
|
|
16
16
|
# a prerelease version
|
17
17
|
# Date is in the form of YYYY-MM-DD
|
18
18
|
module ModularScale
|
19
|
-
VERSION = "2.0.
|
19
|
+
VERSION = "2.0.5"
|
20
20
|
DATE = "2013-12-20"
|
21
21
|
end
|
22
22
|
|
23
|
-
# This is where any custom SassScript should be placed. The functions will be
|
23
|
+
# This is where any custom SassScript should be placed. The functions will be
|
24
24
|
# available on require of your extension without the need for users to import
|
25
25
|
# any partials. Uncomment below.
|
26
26
|
|
@@ -64,7 +64,7 @@ module Sass::Script::Functions
|
|
64
64
|
# loop through all possibilities
|
65
65
|
# NOTE THIS IS NOT FULLY FUNCTIONAL YET
|
66
66
|
# ONLY LOOPS THROUGH SOME/MOST OF THE POSSIBILITES
|
67
|
-
|
67
|
+
|
68
68
|
rratios.each do |ratio|
|
69
69
|
rbases.each do |base|
|
70
70
|
|
Binary file
|
@@ -1,7 +1,7 @@
|
|
1
1
|
// If a native exponent function doesnt exist
|
2
2
|
// this one is needed.
|
3
3
|
@function ms-pow($Base, $Exponent) {
|
4
|
-
|
4
|
+
|
5
5
|
// Find and remove unit.
|
6
6
|
// Avoids messyness with unit calculations
|
7
7
|
$Unit: $Base * 0 + 1;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
|
16
16
|
// Set up the loop, priming the return with the base.
|
17
17
|
$Return: $Base;
|
18
|
-
|
18
|
+
|
19
19
|
// If the number is positive, multiply it.
|
20
20
|
@if $Exponent > 0 {
|
21
21
|
// Basic feedback loop as exponents
|
@@ -24,11 +24,11 @@
|
|
24
24
|
$Return: $Return * $Base;
|
25
25
|
}
|
26
26
|
}
|
27
|
-
|
27
|
+
|
28
28
|
// If the number is 0 or negitive
|
29
29
|
// divide instead of multiply.
|
30
30
|
@else {
|
31
|
-
// Libsass
|
31
|
+
// Libsass doesnt allow negitive values in loops
|
32
32
|
@for $i from (-1 + 1) to (abs($Exponent) + 1) {
|
33
33
|
$Return: $Return / $Base;
|
34
34
|
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: modular-scale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -62,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
62
62
|
version: '0'
|
63
63
|
segments:
|
64
64
|
- 0
|
65
|
-
hash:
|
65
|
+
hash: 2121142932601040971
|
66
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
67
67
|
none: false
|
68
68
|
requirements:
|