modular-scale 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.mdown +28 -19
  2. data/lib/modular-scale.rb +1 -1
  3. metadata +4 -4
data/README.mdown CHANGED
@@ -1,12 +1,27 @@
1
1
  # Sassy Modular Scale
2
- #### Put down the calculator and let Sass do the work.
3
2
 
4
- # Usage and Installation
3
+ ## A Sass mixin to calculate the incremental values of the modular scale.
5
4
 
6
- Sassy Modular Scale is written in Sass and requires Sass to be used. Visit [sass-lang.com](http://sass-lang.com) to learn more and install.
5
+ Sassy Modular Scale is a Sass based mixin that calculates the incremental values of the modular scale in proportion to a set size and ratio. It was inspired by and adapted from Tim Brown's modularscale.com.
7
6
 
8
- * Copy either `stylesheets/_modular-scale.sass` or `stylesheets/_modular-scale.scss` into your project
9
- * Import the file into your Sass stylesheet to access the mixins and functions
7
+ Sassy Modular Scale can be used as a [Compass](http://compass-style.org/) [extension](http://compass-style.org/help/tutorials/extensions/) and can be installed as a [Ruby gem](https://rubygems.org/gems/modular-scale).
8
+
9
+ ## Installation
10
+
11
+ Usage requires Sass. Visit [sass-lang.com](http://sass-lang.com) to learn more and install.
12
+
13
+ `gem install modular-scale`
14
+
15
+ Then add `require 'modular-scale'` to your Compass config file.
16
+
17
+ ## Alternative installation (without Compass)
18
+
19
+ Compass provides a way for Sass mixins to be easily required into a project, but we also support the following:
20
+
21
+ * Copy either `stylesheets/_modular-scale.sass` or `stylesheets/_modular-scale.scss` into your project's Sass directory
22
+ * Import the file into your Sass stylesheet to access the mixins and functions. For example, `@import vendor/modular-scale`
23
+
24
+ ## Usage
10
25
 
11
26
  Sassy Modular Scale can be used as a function, mixin or a mixin that generates a range of classes to `@extend`.
12
27
 
@@ -46,7 +61,7 @@ Examples using the SCSS syntax:
46
61
  h3 { @extend .ms-0; }
47
62
  }
48
63
 
49
- # Ratios
64
+ ## Ratios
50
65
 
51
66
  Below is a list of Ratios to choose from. By default, the variable `$ratio` is set to `$golden`.
52
67
 
@@ -63,22 +78,16 @@ Below is a list of Ratios to choose from. By default, the variable `$ratio` is s
63
78
  * $major-second: 9 / 8
64
79
  * $minor-second: 16 / 15
65
80
 
66
- # Credits
67
-
68
- #### Sass mixin by Scott Kellum
69
-
70
- * [https://github.com/scottkellum/modular-scale](https://github.com/scottkellum/modular-scale)
71
- * [@scottkellum](http://twitter.com/scottkellum)
81
+ ## Inspiration
72
82
 
73
- #### Adapted from modularscale.com by Tim Brown
83
+ Sassy Modular Scale was adapted from [modularscale.com](http://modularscale.com/) by Tim Brown ([@nicewebtype](http://twitter.com/nicewebtype)). Tim also wrote a supporting article at [A List Apart](http://www.alistapart.com/) titled ["More Meaningful Typography"](http://www.alistapart.com/articles/more-meaningful-typography/). Additional inspiration goes to [Robert Bringhurst](http://en.wikipedia.org/wiki/Robert_Bringhurst), author of ["The Elements of Typographic Style"](http://en.wikipedia.org/wiki/The_Elements_of_Typographic_Style) - specifically Chapter 8 titled "Shaping the Page"
74
84
 
75
- * [http://modularscale.com/](http://modularscale.com/)
76
- * [@nicewebtype](http://twitter.com/nicewebtype)
85
+ ## License
77
86
 
78
- #### Related link:
87
+ Copyright (c) 2011 [Scott Kellum](http://www.scottkellum.com/) ([@scottkellum](http://twitter.com/scottkellum)), [Adam Stacoviak](http://adamstacoviak.com/) ([@adamstac](http://twitter.com/adamstac)) and [Mason Wendell](http://birdsandmonkeys.com/) ([@canarymason](http://twitter.com/canarymason))
79
88
 
80
- * [http://alistapart.com/articles/more-meaningful-typography/](http://alistapart.com/articles/more-meaningful-typography/)
89
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
81
90
 
82
- #### Additional credit to Robert Bringhurst
91
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
83
92
 
84
- * The Elements of Typographic Style (Chapter 8: Shaping the page)
93
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/lib/modular-scale.rb CHANGED
@@ -3,7 +3,7 @@ Compass::Frameworks.register("modular-scale", :path => "#{File.dirname(__FILE__)
3
3
 
4
4
  module ModularScale
5
5
 
6
- VERSION = "0.0.1"
6
+ VERSION = "0.0.2"
7
7
  DATE = "2011-08-14"
8
8
 
9
9
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: modular-scale
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.1
5
+ version: 0.0.2
6
6
  platform: ruby
7
7
  authors:
8
8
  - Scott Kellum
@@ -25,7 +25,7 @@ dependencies:
25
25
  type: :runtime
26
26
  prerelease: false
27
27
  version_requirements: *id001
28
- description: Modular Scale calculates the incremental values of the modular scale.
28
+ description: Sassy Modular Scale calculates the incremental values of the modular scale.
29
29
  email:
30
30
  - scott@treesaver.net
31
31
  - adam@stacoviak.com
@@ -53,7 +53,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
54
  - - ">="
55
55
  - !ruby/object:Gem::Version
56
- hash: -2151708732276106384
56
+ hash: -2068545331778000288
57
57
  segments:
58
58
  - 0
59
59
  version: "0"
@@ -69,6 +69,6 @@ rubyforge_project:
69
69
  rubygems_version: 1.8.7
70
70
  signing_key:
71
71
  specification_version: 3
72
- summary: 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.
72
+ 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.
73
73
  test_files: []
74
74