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