compass-susy-plugin 0.7.0.pre4 → 0.7.0.pre5
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +12 -11
- data/README.mkdn +21 -16
- data/VERSION +1 -1
- data/compass-susy-plugin.gemspec +4 -4
- data/sass/susy/_utils.sass +1 -2
- data/sass/susy/_vertical_rhythm.sass +49 -17
- data/templates/project/_defaults.sass +39 -44
- metadata +38 -24
data/Manifest
CHANGED
@@ -1,20 +1,21 @@
|
|
1
|
-
|
2
|
-
lib/susy/sass_extensions.rb
|
3
|
-
lib/susy.rb
|
1
|
+
LICENSE.txt
|
4
2
|
Manifest
|
5
|
-
Rakefile
|
6
3
|
README.mkdn
|
4
|
+
Rakefile
|
5
|
+
VERSION
|
6
|
+
compass-susy-plugin.gemspec
|
7
|
+
lib/susy.rb
|
8
|
+
lib/susy/compass_plugin.rb
|
9
|
+
lib/susy/sass_extensions.rb
|
7
10
|
sass/susy/_grid.sass
|
8
11
|
sass/susy/_reset.sass
|
9
|
-
sass/susy/
|
12
|
+
sass/susy/_susy.sass
|
10
13
|
sass/susy/_text.sass
|
14
|
+
sass/susy/_utils.sass
|
11
15
|
sass/susy/_vertical_rhythm.sass
|
12
|
-
sass/susy/_susy.sass
|
13
|
-
templates/project/print.sass
|
14
|
-
templates/project/screen.sass
|
15
|
-
templates/project/ie.sass
|
16
16
|
templates/project/_base.sass
|
17
17
|
templates/project/_defaults.sass
|
18
|
+
templates/project/ie.sass
|
18
19
|
templates/project/manifest.rb
|
19
|
-
|
20
|
-
|
20
|
+
templates/project/print.sass
|
21
|
+
templates/project/screen.sass
|
data/README.mkdn
CHANGED
@@ -141,16 +141,22 @@ options, experimental (CSS3/proprietary) CSS, and more.
|
|
141
141
|
And then the fun stuff in `_vertical_rhythm.sass`, written by Chris Eppstein
|
142
142
|
and probably moving to the compass core before too long:
|
143
143
|
|
144
|
-
* `+adjust-font-size-to(!
|
144
|
+
* `+adjust-font-size-to(!to_size, [!lines, !from_size])` - adjust the font size and number
|
145
145
|
of baseline (line) units to occupy.
|
146
146
|
|
147
|
-
* `+leader([!lines, !font_size])` and `+trailer([!lines,
|
148
|
-
leading or trailing whitespace to an element.
|
149
|
-
bottom margins that keep your
|
147
|
+
* `+leader([!lines, !font_size, !property])` and `+trailer([!lines,
|
148
|
+
!font_size, !property])` - add leading or trailing whitespace to an element.
|
149
|
+
These are added as top and bottom margins (by default) that keep your
|
150
|
+
vertical rhythm intact. You can also send "padding" as the `!property` or
|
151
|
+
use `+padding-leader` and `+padding-trailer`. Be aware that this may
|
152
|
+
conflict with uses of rhythm-borders.
|
150
153
|
|
151
|
-
* `+
|
152
|
-
!lines, !font_size])` will combine border
|
153
|
-
also keep the vertical rhythm going.
|
154
|
+
* `+leading-border([!width, !lines, !font_size, !style])` and
|
155
|
+
`+trailing-border([!width, !lines, !font_size, !style])` will combine border
|
156
|
+
and padding to create borders that also keep the vertical rhythm going. The
|
157
|
+
defaults are `1px, 1, !base_font_size, 'solid'`. Also available:
|
158
|
+
`+horizontal-borders` (for both leading and trailing), and `+rhythm-borders`
|
159
|
+
for applying equal borders and padding to all sides of a box.
|
154
160
|
|
155
161
|
|
156
162
|
Advanced Options
|
@@ -199,34 +205,33 @@ advanced options hidden inside. Here's a few:
|
|
199
205
|
their own.
|
200
206
|
|
201
207
|
* `gutter(!context)` is a function that you can call at any time to return the
|
202
|
-
size of a gutter in your given context
|
203
|
-
returned without units so that you can perform math on it. In order to use
|
204
|
-
it, you will have to add "%" to it.
|
208
|
+
size of a gutter in your given context as a percentage.
|
205
209
|
|
206
210
|
Example:
|
207
211
|
|
208
212
|
#nav
|
209
|
-
padding-right= gutter(5)
|
213
|
+
padding-right= gutter(5)
|
210
214
|
|
211
215
|
* `columns(!number, !context)` returns the span of `!number` columns in
|
212
|
-
`!context` as a percentage
|
213
|
-
|
216
|
+
`!context` as a percentage. This span includes any gutters between the
|
217
|
+
columns spanned.
|
214
218
|
|
215
219
|
Example:
|
216
220
|
|
217
221
|
#nav
|
218
|
-
padding-left= columns(3,5)
|
222
|
+
padding-left= columns(3,5)
|
219
223
|
|
220
224
|
* `side_gutter()` is also available and takes no arguments since it is always
|
221
225
|
used at the top nesting level.
|
222
226
|
|
223
227
|
* `!px2em` is a variable that represents the height of one pixel as a fraction
|
224
228
|
of your base em-height. Multiply it with your target pixel value to
|
225
|
-
represent that value in ems.
|
229
|
+
represent that value in ems. Note that this is only accurate at your
|
230
|
+
`!base_font_size`.
|
226
231
|
|
227
232
|
Example:
|
228
233
|
|
229
234
|
#nav
|
230
235
|
border-bottom:
|
231
236
|
style: solid
|
232
|
-
width= !px2em*
|
237
|
+
width= !px2em*2px
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.0.
|
1
|
+
0.7.0.pre5
|
data/compass-susy-plugin.gemspec
CHANGED
@@ -2,15 +2,15 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{compass-susy-plugin}
|
5
|
-
s.version = "0.7.0.
|
5
|
+
s.version = "0.7.0.pre5"
|
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"]
|
9
|
-
s.date = %q{2010-
|
9
|
+
s.date = %q{2010-03-18}
|
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
|
-
s.extra_rdoc_files = ["
|
13
|
-
s.files = ["
|
12
|
+
s.extra_rdoc_files = ["LICENSE.txt", "README.mkdn", "lib/susy.rb", "lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb"]
|
13
|
+
s.files = ["LICENSE.txt", "Manifest", "README.mkdn", "Rakefile", "VERSION", "compass-susy-plugin.gemspec", "lib/susy.rb", "lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb", "sass/susy/_grid.sass", "sass/susy/_reset.sass", "sass/susy/_susy.sass", "sass/susy/_text.sass", "sass/susy/_utils.sass", "sass/susy/_vertical_rhythm.sass", "templates/project/_base.sass", "templates/project/_defaults.sass", "templates/project/ie.sass", "templates/project/manifest.rb", "templates/project/print.sass", "templates/project/screen.sass"]
|
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"]
|
data/sass/susy/_utils.sass
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
//** Vertical Rhythm **//
|
2
|
-
// By Chris Eppstein, living here on a temporary basis
|
2
|
+
// By Chris Eppstein and Eric Meyer, living here on a temporary basis
|
3
3
|
|
4
4
|
|
5
|
+
// set the default border style for rhythm borders
|
6
|
+
!default_rhythm_border_style = "solid"
|
7
|
+
|
5
8
|
// The IE font ratio is a fact of life. Deal with it.
|
6
9
|
!ie_font_ratio = 16px / 100%
|
7
10
|
|
@@ -38,28 +41,57 @@
|
|
38
41
|
// !lines is a number that is how many times the baseline rhythm this
|
39
42
|
// font size should use up. Does not have to be an integer, but it defaults
|
40
43
|
// to the smallest integer that is large enough to fit the font.
|
41
|
-
|
42
|
-
|
44
|
+
// Use !from_size to adjust from a non-base font-size.
|
45
|
+
=adjust-font-size-to(!to_size, !lines = ceil(!font_size / !base_line_height), !from_size = !base_font_size)
|
46
|
+
font-size= 1em * !to_size / !from_size
|
43
47
|
+adjust-leading-to(!lines, !font_size)
|
44
48
|
|
45
49
|
=adjust-leading-to(!lines, !font_size = !base_font_size)
|
46
50
|
line-height= 1em * !lines * !base_line_height / !font_size
|
47
51
|
|
48
52
|
// Apply leading whitespace
|
49
|
-
=leader(!lines = 1, !font_size = !base_font_size)
|
50
|
-
|
51
|
-
|
53
|
+
=leader(!lines = 1, !font_size = !base_font_size, !property = "margin")
|
54
|
+
#{!property}-top= 1em * !lines * !base_line_height / !font_size
|
55
|
+
|
56
|
+
=padding-leader(!lines = 1, !font_size = !base_font_size)
|
57
|
+
+leader(!lines, !font_size, "padding")
|
58
|
+
|
59
|
+
=margin-leader(!lines = 1, !font_size = !base_font_size)
|
60
|
+
+leader(!lines, !font_size, "margin")
|
61
|
+
|
52
62
|
// Apply trailing whitespace
|
53
|
-
=trailer(!lines = 1, !font_size = !base_font_size)
|
54
|
-
|
63
|
+
=trailer(!lines = 1, !font_size = !base_font_size, !property = "margin")
|
64
|
+
#{!property}-bottom= 1em * !lines * !base_line_height / !font_size
|
65
|
+
|
66
|
+
=padding-trailer(!lines = 1, !font_size = !base_font_size)
|
67
|
+
+trailer(!lines, !font_size, "padding")
|
68
|
+
|
69
|
+
=margin-trailer(!lines = 1, !font_size = !base_font_size)
|
70
|
+
+trailer(!lines, !font_size, "margin")
|
55
71
|
|
56
|
-
// Apply a border width without
|
57
|
-
=border(!side, !width = 1px, !lines = 1, !font_size = !base_font_size)
|
58
|
-
border-#{!side}
|
72
|
+
// Apply a border width to any side without destroying the vertical rhythm
|
73
|
+
=apply-side-rhythm-border(!side, !width = 1px, !lines = 1, !font_size = !base_font_size, !border_style = !default_rhythm_border_style)
|
74
|
+
border-#{!side}:
|
75
|
+
style= !border_style
|
76
|
+
width= 1em * !width / !font_size
|
59
77
|
padding-#{!side}= (1em / !font_size) * ((!lines * !base_line_height) - !width)
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
=
|
65
|
-
|
78
|
+
|
79
|
+
// Aplly rhythm borders equally to all sides
|
80
|
+
=rhythm-borders(!width = 1px, !lines = 1, !font_size = !base_font_size, !border_style = !default_rhythm_border_style)
|
81
|
+
border:
|
82
|
+
style= !border_style
|
83
|
+
width= 1em * !width / !font_size
|
84
|
+
padding= (1em / !font_size) * ((!lines * !base_line_height) - !width)
|
85
|
+
|
86
|
+
// Apply a leading rhythm border
|
87
|
+
=leading-border(!width = 1px, !lines = 1, !font_size = !base_font_size, !border_style = !default_rhythm_border_style)
|
88
|
+
+apply-side-rhythm-border("top", !width, !lines, !font_size, !border_style)
|
89
|
+
|
90
|
+
// Apply a trailing rhythm border
|
91
|
+
=trailing-border(!width = 1px, !lines = 1, !font_size = !base_font_size, !border_style = !default_rhythm_border_style)
|
92
|
+
+apply-side-rhythm-border("bottom", !width, !lines, !font_size, !border_style)
|
93
|
+
|
94
|
+
// Apply both leading and trailing rhythm borders
|
95
|
+
=horizontal-borders(!width = 1px, !lines = 1, !font_size = !base_font_size, !border_style = !default_rhythm_border_style)
|
96
|
+
+leading-border(!width, !lines, !font_size, !border_style)
|
97
|
+
+trailing-border(!width, !lines, !font_size, !border_style)
|
@@ -16,9 +16,8 @@ body
|
|
16
16
|
|
17
17
|
/* @group links */
|
18
18
|
|
19
|
-
|
20
|
-
|
21
|
-
outline= 1px "dotted" !alt
|
19
|
+
\:focus
|
20
|
+
outline= 1px "dotted" !alt
|
22
21
|
|
23
22
|
a
|
24
23
|
&:link, &:visited
|
@@ -30,28 +29,42 @@ a
|
|
30
29
|
/* @end */
|
31
30
|
|
32
31
|
|
33
|
-
/* @group
|
32
|
+
/* @group inline tags */
|
34
33
|
|
35
|
-
|
34
|
+
cite
|
35
|
+
font-style: italic
|
36
|
+
|
37
|
+
em
|
38
|
+
font-style: italic
|
39
|
+
|
40
|
+
strong
|
36
41
|
font-weight: bold
|
37
42
|
|
43
|
+
ins
|
44
|
+
text-decoration: underline
|
45
|
+
|
46
|
+
del
|
47
|
+
text-decoration: line-through
|
48
|
+
|
49
|
+
q
|
50
|
+
font-style: italic
|
51
|
+
em
|
52
|
+
font-style: normal
|
53
|
+
|
38
54
|
/* @end */
|
39
55
|
|
40
56
|
|
41
|
-
/* @group
|
57
|
+
/* @group replaced tags */
|
42
58
|
|
43
|
-
|
59
|
+
img
|
60
|
+
vertical-align: bottom
|
44
61
|
|
45
|
-
|
46
|
-
width: 100%
|
47
|
-
border:
|
48
|
-
width: 0
|
49
|
-
style: solid
|
50
|
-
color= !base
|
51
|
-
+top-border(1px, 0.5)
|
52
|
-
+bottom-border(1px, 0.5)
|
62
|
+
/* @end */
|
53
63
|
|
54
|
-
|
64
|
+
|
65
|
+
/* @group headers */
|
66
|
+
|
67
|
+
h1, h2, h3, h4, h5, h6
|
55
68
|
font-weight: bold
|
56
69
|
|
57
70
|
/* @end */
|
@@ -89,44 +102,26 @@ blockquote
|
|
89
102
|
/* @end */
|
90
103
|
|
91
104
|
|
92
|
-
/* @group
|
105
|
+
/* @group tables */
|
93
106
|
|
94
|
-
|
95
|
-
font-style: italic
|
107
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
96
108
|
|
97
|
-
|
98
|
-
|
109
|
+
table
|
110
|
+
width: 100%
|
111
|
+
border:
|
112
|
+
width: 0
|
113
|
+
style: solid
|
114
|
+
color= !base
|
115
|
+
+horizontal-borders(1px, 0.5)
|
99
116
|
|
100
|
-
|
117
|
+
th
|
101
118
|
font-weight: bold
|
102
119
|
|
103
|
-
ins
|
104
|
-
text-decoration: underline
|
105
|
-
|
106
|
-
del
|
107
|
-
text-decoration: line-through
|
108
|
-
|
109
|
-
q
|
110
|
-
font-style: italic
|
111
|
-
em
|
112
|
-
font-style: normal
|
113
|
-
|
114
|
-
/* @end */
|
115
|
-
|
116
|
-
|
117
|
-
/* @group replaced tags */
|
118
|
-
|
119
|
-
img
|
120
|
-
vertical-align: bottom
|
121
|
-
|
122
120
|
/* @end */
|
123
121
|
|
124
122
|
|
125
123
|
/* @group forms */
|
126
124
|
|
127
|
-
form *:focus
|
128
|
-
outline: none
|
129
|
-
|
130
125
|
fieldset
|
131
126
|
+trailer
|
132
127
|
|
metadata
CHANGED
@@ -1,7 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-susy-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: true
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 7
|
8
|
+
- 0
|
9
|
+
- pre5
|
10
|
+
version: 0.7.0.pre5
|
5
11
|
platform: ruby
|
6
12
|
authors:
|
7
13
|
- Eric Meyer
|
@@ -9,19 +15,24 @@ autorequire:
|
|
9
15
|
bindir: bin
|
10
16
|
cert_chain: []
|
11
17
|
|
12
|
-
date: 2010-
|
18
|
+
date: 2010-03-18 00:00:00 -06:00
|
13
19
|
default_executable:
|
14
20
|
dependencies:
|
15
21
|
- !ruby/object:Gem::Dependency
|
16
22
|
name: compass
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
25
|
requirements:
|
21
26
|
- - ">="
|
22
27
|
- !ruby/object:Gem::Version
|
28
|
+
segments:
|
29
|
+
- 0
|
30
|
+
- 10
|
31
|
+
- 0
|
32
|
+
- pre1
|
23
33
|
version: 0.10.0.pre1
|
24
|
-
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
25
36
|
description: 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.
|
26
37
|
email: eric@oddbird.net
|
27
38
|
executables: []
|
@@ -29,33 +40,33 @@ executables: []
|
|
29
40
|
extensions: []
|
30
41
|
|
31
42
|
extra_rdoc_files:
|
32
|
-
- lib/susy/compass_plugin.rb
|
33
|
-
- lib/susy/sass_extensions.rb
|
34
|
-
- lib/susy.rb
|
35
|
-
- README.mkdn
|
36
43
|
- LICENSE.txt
|
37
|
-
|
44
|
+
- README.mkdn
|
45
|
+
- lib/susy.rb
|
38
46
|
- lib/susy/compass_plugin.rb
|
39
47
|
- lib/susy/sass_extensions.rb
|
40
|
-
|
48
|
+
files:
|
49
|
+
- LICENSE.txt
|
41
50
|
- Manifest
|
42
|
-
- Rakefile
|
43
51
|
- README.mkdn
|
52
|
+
- Rakefile
|
53
|
+
- VERSION
|
54
|
+
- compass-susy-plugin.gemspec
|
55
|
+
- lib/susy.rb
|
56
|
+
- lib/susy/compass_plugin.rb
|
57
|
+
- lib/susy/sass_extensions.rb
|
44
58
|
- sass/susy/_grid.sass
|
45
59
|
- sass/susy/_reset.sass
|
46
|
-
- sass/susy/
|
60
|
+
- sass/susy/_susy.sass
|
47
61
|
- sass/susy/_text.sass
|
62
|
+
- sass/susy/_utils.sass
|
48
63
|
- sass/susy/_vertical_rhythm.sass
|
49
|
-
- sass/susy/_susy.sass
|
50
|
-
- templates/project/print.sass
|
51
|
-
- templates/project/screen.sass
|
52
|
-
- templates/project/ie.sass
|
53
64
|
- templates/project/_base.sass
|
54
65
|
- templates/project/_defaults.sass
|
66
|
+
- templates/project/ie.sass
|
55
67
|
- templates/project/manifest.rb
|
56
|
-
-
|
57
|
-
-
|
58
|
-
- compass-susy-plugin.gemspec
|
68
|
+
- templates/project/print.sass
|
69
|
+
- templates/project/screen.sass
|
59
70
|
has_rdoc: true
|
60
71
|
homepage: http://github.com/ericam/compass-susy-plugin
|
61
72
|
licenses: []
|
@@ -74,18 +85,21 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
85
|
requirements:
|
75
86
|
- - ">="
|
76
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
77
90
|
version: "0"
|
78
|
-
version:
|
79
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
92
|
requirements:
|
81
93
|
- - ">="
|
82
94
|
- !ruby/object:Gem::Version
|
95
|
+
segments:
|
96
|
+
- 1
|
97
|
+
- 2
|
83
98
|
version: "1.2"
|
84
|
-
version:
|
85
99
|
requirements: []
|
86
100
|
|
87
101
|
rubyforge_project: compass-susy-plugin
|
88
|
-
rubygems_version: 1.3.
|
102
|
+
rubygems_version: 1.3.6
|
89
103
|
signing_key:
|
90
104
|
specification_version: 3
|
91
105
|
summary: A Compass grid system plugin.
|