ericam-compass-susy-plugin 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest CHANGED
@@ -6,6 +6,8 @@ Rakefile
6
6
  README.mkdn
7
7
  sass/susy/_grid.sass
8
8
  sass/susy/_utils.sass
9
+ sass/susy/_text.sass
10
+ sass/susy/_susy.sass
9
11
  templates/project/print.sass
10
12
  templates/project/screen.sass
11
13
  templates/project/ie.sass
@@ -71,10 +71,9 @@ ought have a default (but don't because of the reset).
71
71
  Making Semantic Grids
72
72
  =====================
73
73
 
74
- * Use the `+susy` mixin to get things ready, set your base fonts and
75
- center your grid in the browser window. Change the alignment of your
76
- grid in the window with an optional `left | center | right`
77
- argument.
74
+ * Use the `+susy` mixin to get things ready, set your base font sizes and
75
+ center your grid in the browser window. Change the alignment of your grid
76
+ in the window with an optional `left | center | right` argument.
78
77
 
79
78
  * Use the `+container` mixin to declare your container
80
79
  element. Besides building the grid shell, this sets your horizontal
@@ -82,15 +81,18 @@ Making Semantic Grids
82
81
  text-alignment to "left". Change the internal text alignment with an
83
82
  optional `left | center | right` argument.
84
83
 
85
- * Use the `+column` mixin to declare a grid element. The first
86
- argument is the number of columns to span, the second (optional)
87
- argument is the size (in columns) of the containing element when
88
- nesting (defaults to the container's `!total_cols`).
84
+ * Use the `+columns` mixin to set the width (in columns) of a grid element.
85
+ The first argument is the number of columns to span, the second (optional)
86
+ argument is the width (in columns) of the containing element when nesting
87
+ (defaults to the container's `!total_cols`). By default, the left margin
88
+ is set to 0 and the right margin is set to the width of a gutter. Modify
89
+ this for first and last elements with the `+alpha` and `+omega` mixins
90
+ (below), or set larger margins using `+prefix` and `+suffix`.
89
91
 
90
92
  * Use the `+alpha` and `+omega` mixins to declare the first and last
91
- elements in a row, or inside a nested element. In the latter case,
92
- each of these mixins takes one argument, which is the size (in
93
- columns) of the containing element.
93
+ elements in a row, or inside a nested element. In the latter case, each of
94
+ these mixins takes one argument, which is the size (in columns) of the
95
+ containing element.
94
96
 
95
97
  * Use the `+prefix` and `+suffix` mixins with one argument to add that
96
98
  many grid columns as margin before or after a grid element. These
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{compass-susy-plugin}
5
- s.version = "0.3.0"
5
+ s.version = "0.3.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Eric Meyer"]
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{Susy is a ground-up native Compass plugin grid system that takes full advantage of Sass' capabilities to remove the tedium from grid-based web design.}
11
11
  s.email = %q{eric@oddbird.net}
12
12
  s.extra_rdoc_files = ["lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb", "lib/susy.rb", "README.mkdn"]
13
- s.files = ["lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb", "lib/susy.rb", "Manifest", "Rakefile", "README.mkdn", "sass/susy/_grid.sass", "sass/susy/_utils.sass", "templates/project/_base.sass", "templates/project/screen.sass", "templates/project/print.sass", "templates/project/ie.sass", "templates/project/manifest.rb", "VERSION", "LICENSE.txt", "compass-susy-plugin.gemspec"]
13
+ s.files = ["lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb", "lib/susy.rb", "Manifest", "Rakefile", "README.mkdn", "sass/susy/_grid.sass", "sass/susy/_utils.sass", "sass/susy/_text.sass", "sass/susy/_susy.sass", "templates/project/_base.sass", "templates/project/screen.sass", "templates/project/print.sass", "templates/project/ie.sass", "templates/project/manifest.rb", "VERSION", "LICENSE.txt", "compass-susy-plugin.gemspec"]
14
14
  s.homepage = %q{http://github.com/ericam/compass-susy-plugin}
15
15
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass-Susy-plugin", "--main", "README.mkdn"]
16
16
  s.require_paths = ["lib"]
@@ -0,0 +1,14 @@
1
+ @import utils.sass
2
+ @import text.sass
3
+ @import grid.sass
4
+
5
+ //**
6
+ body font size set to browser default (usually 16px)
7
+ =susy(!align = "center")
8
+ // text-align set to center by default for auto-centering layouts
9
+ // (override !align for left/right-aligned designs)
10
+ :text-align= !align
11
+ // set your base font sizes
12
+ :font-size= !base_font_size
13
+ :line-height= !base_line_height
14
+
@@ -0,0 +1,19 @@
1
+ //** Text Settings **//
2
+
3
+ //**
4
+ You set the font and line heights in pixels
5
+ !base_font_size_px ||= 12
6
+ !base_line_height_px ||= 18
7
+
8
+
9
+ //**
10
+ Susy can do the math to make that relative
11
+ !base_font_size = (!base_font_size_px / 16) * 100 + "%"
12
+ !base_line_height = (!base_line_height_px / !base_font_size_px) * 100 + "%"
13
+
14
+ //**
15
+ Because some serif fonts add line-height when switching to italics inline:
16
+ =inline-italic
17
+ :font-style italic
18
+ :line-height .5
19
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ericam-compass-susy-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Meyer
@@ -52,6 +52,8 @@ files:
52
52
  - README.mkdn
53
53
  - sass/susy/_grid.sass
54
54
  - sass/susy/_utils.sass
55
+ - sass/susy/_text.sass
56
+ - sass/susy/_susy.sass
55
57
  - templates/project/_base.sass
56
58
  - templates/project/screen.sass
57
59
  - templates/project/print.sass