carljm-compass-susy-plugin 0.3.0 → 0.3.1

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/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
data/README.mkdn CHANGED
@@ -18,14 +18,14 @@ easily - and always in flexible percentages.
18
18
  Install
19
19
  =======
20
20
 
21
- sudo gem sources --add http://gems.github.com/
22
- sudo gem install chriseppstein-compass
23
- sudo gem install ericam-compass-susy-plugin
21
+ sudo gem sources --add http://gems.github.com/
22
+ sudo gem install chriseppstein-compass
23
+ sudo gem install ericam-compass-susy-plugin
24
24
 
25
25
  Create a Susy-based Compass Project
26
26
  ==================================
27
27
 
28
- compass -r susy -f susy <project name>
28
+ compass -r susy -f susy <project name>
29
29
 
30
30
  Then edit your `_base.sass`, `screen.sass` and `print.sass` files accordingly.
31
31
  A reset is added automatically.
@@ -42,11 +42,11 @@ of columns), and `!gutter_width` (width of gutters) variables in your
42
42
 
43
43
  Example:
44
44
 
45
- !grid_unit = "em"
46
- !total_cols = 10
47
- !col_width = 7
48
- !gutter_width = 1
49
- !side_gutter_width = 2
45
+ !grid_unit = "em"
46
+ !total_cols = 10
47
+ !col_width = 7
48
+ !gutter_width = 1
49
+ !side_gutter_width = 2
50
50
 
51
51
  The default values are 16 columns, 4em column widths, and 1em gutters and side
52
52
  gutters that match the internal ones.
@@ -59,8 +59,8 @@ percentage of the common browser default (16px) and apply them to your
59
59
 
60
60
  Example:
61
61
 
62
- !base_font_size_px = 14
63
- !base_line_height_px = 16
62
+ !base_font_size_px = 14
63
+ !base_line_height_px = 16
64
64
 
65
65
  The default values are 12px fonts with an 18px line-height.
66
66
 
@@ -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
@@ -99,23 +101,23 @@ Making Semantic Grids
99
101
 
100
102
  Example:
101
103
 
102
- body
103
- +susy
104
-
105
- #page
106
- +container
107
- #left-nav
108
- +columns(3)
109
- +alpha
110
- #main-content
111
- +prefix(2)
112
- +columns(4, 10)
113
- +omega
114
- .header
115
- +columns(1, 4)
116
- .article
117
- +columns(3, 4)
118
- +omega
104
+ body
105
+ +susy
106
+
107
+ #page
108
+ +container
109
+ #left-nav
110
+ +columns(3)
111
+ +alpha
112
+ #main-content
113
+ +prefix(2)
114
+ +columns(4, 10)
115
+ +omega
116
+ .header
117
+ +columns(1, 4)
118
+ .article
119
+ +columns(3, 4)
120
+ +omega
119
121
 
120
122
  Extra Utility Mixins
121
123
  =====================
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: carljm-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