modular-scale 1.0.rc.1 → 1.0.0
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/README.mdown +1 -1
- data/lib/modular-scale.rb +7 -2
- data/stylesheets/_modular-scale.sass +0 -4
- metadata +54 -65
data/README.mdown
CHANGED
@@ -105,7 +105,7 @@ Below is a list of ratios to choose from. By default, the variable `$ratio` is s
|
|
105
105
|
* major-second()
|
106
106
|
* minor-second()
|
107
107
|
|
108
|
-
Add your own ratio in Sass by setting a variable and
|
108
|
+
Add your own ratio in Sass by setting a variable and passint that to modular-scale.
|
109
109
|
|
110
110
|
```scss
|
111
111
|
$my-variable: 1 / 3.14159265;
|
data/lib/modular-scale.rb
CHANGED
@@ -2,10 +2,15 @@ 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
|
-
|
8
|
-
|
10
|
+
|
11
|
+
VERSION = "1.0.0"
|
12
|
+
DATE = "2012-07-14"
|
13
|
+
|
9
14
|
end
|
10
15
|
|
11
16
|
|
@@ -190,10 +190,6 @@ $round_pixels: true !default
|
|
190
190
|
|
191
191
|
/////////////////////////////////////////////////////////////////////////
|
192
192
|
|
193
|
-
// alias for golden_ratio()
|
194
|
-
@function golden()
|
195
|
-
@return golden_ratio()
|
196
|
-
|
197
193
|
// Shortcut
|
198
194
|
@function ms($multiple, $base-size, $ratio)
|
199
195
|
// Return the value from the Modular Scale function
|
metadata
CHANGED
@@ -1,98 +1,87 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: modular-scale
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- rc
|
9
|
-
- 1
|
10
|
-
version: 1.0.rc.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
prerelease:
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Scott Kellum
|
14
9
|
- Adam Stacoviak
|
15
10
|
- Mason Wendell
|
16
11
|
autorequire:
|
17
12
|
bindir: bin
|
18
13
|
cert_chain: []
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
dependencies:
|
23
|
-
- !ruby/object:Gem::Dependency
|
14
|
+
date: 2012-07-14 00:00:00.000000000 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
24
17
|
name: compass
|
25
|
-
|
26
|
-
|
27
|
-
requirements:
|
28
|
-
- -
|
29
|
-
- !ruby/object:Gem::Version
|
30
|
-
segments:
|
31
|
-
- 0
|
32
|
-
- 11
|
33
|
-
- 5
|
18
|
+
requirement: !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ! '>='
|
22
|
+
- !ruby/object:Gem::Version
|
34
23
|
version: 0.11.5
|
35
24
|
type: :runtime
|
36
|
-
version_requirements: *id001
|
37
|
-
- !ruby/object:Gem::Dependency
|
38
|
-
name: sassy-math
|
39
25
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
26
|
+
version_requirements: !ruby/object:Gem::Requirement
|
27
|
+
none: false
|
28
|
+
requirements:
|
29
|
+
- - ! '>='
|
30
|
+
- !ruby/object:Gem::Version
|
31
|
+
version: 0.11.5
|
32
|
+
- !ruby/object:Gem::Dependency
|
33
|
+
name: sassy-math
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
35
|
+
none: false
|
36
|
+
requirements:
|
37
|
+
- - ! '>='
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.2'
|
48
40
|
type: :runtime
|
49
|
-
|
50
|
-
|
51
|
-
|
41
|
+
prerelease: false
|
42
|
+
version_requirements: !ruby/object:Gem::Requirement
|
43
|
+
none: false
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
description: Sassy Modular Scale calculates the incremental values of the modular
|
49
|
+
scale.
|
50
|
+
email:
|
52
51
|
- scott@scottkellum.com
|
53
52
|
- adam@stacoviak.com
|
54
53
|
- mason@canarypromo.com
|
55
54
|
executables: []
|
56
|
-
|
57
55
|
extensions: []
|
58
|
-
|
59
56
|
extra_rdoc_files: []
|
60
|
-
|
61
|
-
files:
|
57
|
+
files:
|
62
58
|
- README.mdown
|
63
59
|
- lib/modular-scale.rb
|
64
60
|
- stylesheets/_modular-scale.sass
|
65
|
-
has_rdoc: true
|
66
61
|
homepage: https://github.com/scottkellum/modular-scale
|
67
62
|
licenses: []
|
68
|
-
|
69
63
|
post_install_message:
|
70
64
|
rdoc_options: []
|
71
|
-
|
72
|
-
require_paths:
|
65
|
+
require_paths:
|
73
66
|
- lib
|
74
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
requirements:
|
83
|
-
- -
|
84
|
-
- !ruby/object:Gem::Version
|
85
|
-
segments:
|
86
|
-
- 1
|
87
|
-
- 3
|
88
|
-
- 6
|
67
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
68
|
+
none: false
|
69
|
+
requirements:
|
70
|
+
- - ! '>='
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0'
|
73
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
89
78
|
version: 1.3.6
|
90
79
|
requirements: []
|
91
|
-
|
92
80
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.
|
81
|
+
rubygems_version: 1.8.24
|
94
82
|
signing_key:
|
95
83
|
specification_version: 3
|
96
|
-
summary: Sassy Modular Scale calculates the incremental values of the modular scale
|
84
|
+
summary: Sassy Modular Scale calculates the incremental values of the modular scale
|
85
|
+
in proportion to a set size and ratio. Inspired by and adapted from Tim Brown's
|
86
|
+
modularscale.com.
|
97
87
|
test_files: []
|
98
|
-
|