compass-susy-plugin 0.7.0.pre8 → 0.7.0.rc1
Sign up to get free protection for your applications and to get access to all the features.
- data/Manifest +1 -0
- data/README.mkdn +172 -39
- data/VERSION +1 -1
- data/compass-susy-plugin.gemspec +4 -4
- data/sass/susy/_reset.scss +3 -4
- data/sass/susy/_vertical_rhythm.scss +2 -2
- data/templates/project/_base.scss +15 -32
- data/templates/project/_defaults.scss +166 -77
- data/templates/project/ie.scss +3 -0
- data/templates/project/manifest.rb +2 -1
- data/templates/project/print.scss +5 -0
- data/templates/project/screen.scss +10 -23
- metadata +3 -4
data/Manifest
CHANGED
data/README.mkdn
CHANGED
@@ -1,19 +1,22 @@
|
|
1
1
|
Susy - Compass Plugin
|
2
2
|
=====================
|
3
3
|
|
4
|
-
Susy is a semantic CSS
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
4
|
+
Susy is a semantic CSS grid system for designers.
|
5
|
+
|
6
|
+
Build beautiful grids of any type, width and breakdown, without touching your
|
7
|
+
markup or changing the way you work. Built entirely native to
|
8
|
+
[Compass](http://compass-style.org/), Susy is an expert at fluid grids in an
|
9
|
+
elastic (or fluid, or fixed) shell that stay where you want without ever
|
10
|
+
activating that bloody side-scroll bar. Susy sets your width on the outer
|
11
|
+
element (`container`), adds a `max-width` of `100%` and builds the rest of
|
12
|
+
your grid in percentages. The philosophy and technique are based on [Natalie
|
13
|
+
Downe](http://natbat.net/)'s "[CSS
|
11
14
|
Systems](http://natbat.net/2008/Sep/28/css-systems/)" - which introduces
|
12
15
|
difficult math in the service of beautiful structure. With the power of
|
13
|
-
Compass/Sass, Susy will do that math
|
16
|
+
Compass/Sass, Susy will do that math and let you focus on your designs.
|
14
17
|
|
15
|
-
Using simple mixins, columns can be created, suffixed, prefixed, and nested
|
16
|
-
|
18
|
+
Using simple mixins, columns can be created, suffixed, prefixed, and nested -
|
19
|
+
always in flexible percentages and without touching your markup.
|
17
20
|
|
18
21
|
Install
|
19
22
|
=======
|
@@ -26,17 +29,19 @@ Create a Susy-based Compass Project
|
|
26
29
|
compass -r susy -f susy <project name>
|
27
30
|
|
28
31
|
Then edit your `_base.scss`, `_defaults.scss`, `screen.scss` and `print.scss`
|
29
|
-
files accordingly. A reset is added automatically, and includes
|
32
|
+
files accordingly. A reset is added automatically, and includes support for
|
30
33
|
HTML5 elements.
|
31
34
|
|
32
35
|
Philosophy and Goals
|
33
|
-
|
36
|
+
====================
|
34
37
|
|
35
38
|
The method comes from [Natalie Downe](http://natbat.net/)'s "[CSS
|
36
39
|
Systems](http://natbat.net/2008/Sep/28/css-systems/)", but I'll cover it here.
|
37
40
|
|
38
41
|
It is important for accessibility and usability that we are:
|
39
42
|
|
43
|
+
* Able to control our designs and line-lengths with some amount of precision.
|
44
|
+
|
40
45
|
* Responsive to text sizing: In order for our site to be accessible we need to
|
41
46
|
allow different font-sizes to be set by the client. In order to maintain
|
42
47
|
design integrity of proportions and line-lengths, the grid needs to respond
|
@@ -63,29 +68,162 @@ Grid Basics
|
|
63
68
|
* Set up your default grid values (total columns, column width, gutter width,
|
64
69
|
side gutter width), your base font size, and important mixins in
|
65
70
|
`_base.scss`.
|
71
|
+
|
72
|
+
Example:
|
73
|
+
|
74
|
+
$base-font-size: 16px;
|
75
|
+
$base-line-height: 24px;
|
76
|
+
|
77
|
+
$total-cols: 12; /* a 12-column grid */
|
78
|
+
$col-width: 4em; /* each column is 4em (64px) wide */
|
79
|
+
$gutter-width: 1em; /* 1em (16px) gutters between columns */
|
80
|
+
$side-gutter-width: $gutter-width; /* 1em (16px) padding at the edges of the page as well */
|
66
81
|
|
67
82
|
* Set defaults for all the important HTML tags in `_defaults.scss`. It's
|
68
83
|
better than using the browser defaults. And better than using ours.
|
69
84
|
|
70
85
|
* Create your grid in `screen.scss`: apply the `@include susy` mixin at the
|
71
86
|
top level and the `@include container` mixin to the element that contains
|
72
|
-
the page grid.
|
87
|
+
the page grid. This will set up your font sizes, vertical rhythm, and grid
|
88
|
+
container.
|
89
|
+
|
90
|
+
Example:
|
91
|
+
|
92
|
+
@include susy;
|
93
|
+
|
94
|
+
#page {
|
95
|
+
@include container;
|
96
|
+
}
|
97
|
+
|
98
|
+
CSS Output:
|
99
|
+
|
100
|
+
body {
|
101
|
+
font-size: 100%;
|
102
|
+
line-height: 1.5em;
|
103
|
+
}
|
104
|
+
|
105
|
+
html > body {
|
106
|
+
font-size: 16px;
|
107
|
+
}
|
108
|
+
|
109
|
+
body {
|
110
|
+
text-align: center;
|
111
|
+
}
|
112
|
+
|
113
|
+
#page {
|
114
|
+
overflow: hidden;
|
115
|
+
display: inline-block;
|
116
|
+
text-align: left;
|
117
|
+
margin-left: auto;
|
118
|
+
margin-right: auto;
|
119
|
+
width: 61em;
|
120
|
+
max-width: 100%;
|
121
|
+
}
|
122
|
+
#page {
|
123
|
+
display: block;
|
124
|
+
}
|
73
125
|
|
74
126
|
* Use the `@include columns` mixin to declare the width in columns of an
|
75
|
-
element, or
|
127
|
+
element, or `@include full` for any element spanning the full width of its
|
128
|
+
context.
|
129
|
+
|
130
|
+
There is an important distinction between "root" and "nested" contexts in
|
131
|
+
Susy. There is also a distinction between "grid elements" and "non-grid
|
132
|
+
elements". Grid elements are any elements that you assign a span to, either
|
133
|
+
with the `columns` or `full` mixin. Non-Grid elements include everything
|
134
|
+
else. Just as CSS absolute positioning happens in relation to the nearest
|
135
|
+
positioned ancestor, Susy grid "context" depends on the nearest grid-element
|
136
|
+
ancestor. Any element with the `container` as it's nearest grid ancestor is
|
137
|
+
considered to be in the "root" context. Any element within other grid
|
138
|
+
elements (with a nearest grid ancestor other than the `container`) is
|
139
|
+
considered to be in a "nested" context.
|
140
|
+
|
141
|
+
This is important because side-gutters are handled at the root level, as
|
142
|
+
margins on root grid elements. Margins that we don't want at nested levels.
|
143
|
+
It is also important because Susy grid elements are %-based, and so the
|
144
|
+
context is important to Susy's math. `Full` is simply a shortcut to replace
|
145
|
+
`columns` when the span should be the full width.
|
146
|
+
|
147
|
+
The `columns` mixin:
|
148
|
+
|
149
|
+
@include columns($span [, $context]);
|
150
|
+
|
151
|
+
The `full` mixin:
|
152
|
+
|
153
|
+
@include full([$context]);
|
154
|
+
|
155
|
+
*Note:* Context _must not_ be passed at the root level, and _must_ be passed at nested levels.
|
76
156
|
|
77
157
|
* Use `@include alpha` and `@include omega` to declare elements which include
|
78
|
-
the first or last column within their parent element
|
79
|
-
|
80
|
-
is
|
81
|
-
contexts. Neither is needed
|
158
|
+
the first or last column within their parent element.
|
159
|
+
|
160
|
+
*Note:* `@include alpha` is _only_ needed in the root level, and does
|
161
|
+
nothing in nested contexts. Neither is needed with an `@include full` element.
|
162
|
+
|
163
|
+
The `alpha` and `omega` mixins:
|
164
|
+
|
165
|
+
@include alpha;
|
166
|
+
@include omega([$context]);
|
167
|
+
|
168
|
+
Example Scss:
|
169
|
+
|
170
|
+
#page {
|
171
|
+
@include container;
|
172
|
+
header {
|
173
|
+
@include full;
|
174
|
+
h1 {
|
175
|
+
@include full(12);
|
176
|
+
}
|
177
|
+
}
|
178
|
+
nav {
|
179
|
+
@include columns(3);
|
180
|
+
@include alpha;
|
181
|
+
}
|
182
|
+
#content {
|
183
|
+
@include columns(9);
|
184
|
+
@include omega;
|
185
|
+
#main {
|
186
|
+
@include columns(6,9);
|
187
|
+
}
|
188
|
+
aside {
|
189
|
+
@include columns(3,9);
|
190
|
+
@include omega(9);
|
191
|
+
}
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
Susy's CSS output uses floats to arrange the columns, widths to set the
|
196
|
+
spans, right-margins to set the getter, and both side margins to set the
|
197
|
+
side-gutters on root `alpha` and `omega` elements.
|
82
198
|
|
83
|
-
* Use `@include prefix` or `@include suffix` to
|
84
|
-
an
|
199
|
+
* Use `@include prefix` or `@include suffix` to pad (in columns) the width of
|
200
|
+
an element using left and right padding, or `@include pad` to give both `@include
|
85
201
|
prefix` and `@include suffix` at once.
|
86
|
-
|
87
|
-
|
88
|
-
|
202
|
+
|
203
|
+
The `prefix`, `suffix` and `pad` mixins:
|
204
|
+
|
205
|
+
@include prefix($prefix-span [, $context])
|
206
|
+
@include prefix($suffix-span [, $context])
|
207
|
+
@include pad($prefix-span, $suffix-span [, $context])
|
208
|
+
|
209
|
+
Used with `full` these are subtractive, so the full width remains:
|
210
|
+
|
211
|
+
header {
|
212
|
+
@include full;
|
213
|
+
@prefix(2);
|
214
|
+
}
|
215
|
+
|
216
|
+
Will result in a full-width element, with 2 columns of padding to the left.
|
217
|
+
|
218
|
+
Used with `columns` these are addative, so the content width remains:
|
219
|
+
|
220
|
+
aside {
|
221
|
+
@include columns(3,9);
|
222
|
+
@prefix(3,9)
|
223
|
+
}
|
224
|
+
|
225
|
+
Will result in a 6-column element, with 3 of those columns used as padding
|
226
|
+
on the left.
|
89
227
|
|
90
228
|
That's it for the basics! Here's a sample Susy grid layout:
|
91
229
|
|
@@ -95,41 +233,36 @@ That's it for the basics! Here's a sample Susy grid layout:
|
|
95
233
|
@include container;
|
96
234
|
}
|
97
235
|
|
98
|
-
|
236
|
+
header {
|
99
237
|
@include full;
|
100
238
|
@include pad(1,1);
|
101
239
|
|
102
240
|
h1 {
|
103
|
-
@include full(
|
104
|
-
@include pad(1,2,8);
|
241
|
+
@include full(10);
|
105
242
|
}
|
106
243
|
}
|
107
244
|
|
108
|
-
|
109
|
-
@include columns(
|
245
|
+
nav {
|
246
|
+
@include columns(3);
|
110
247
|
@include alpha;
|
111
248
|
}
|
112
249
|
|
113
250
|
#content {
|
114
|
-
@include columns(
|
251
|
+
@include columns(9);
|
115
252
|
@include omega;
|
116
|
-
|
117
|
-
|
118
|
-
@include columns(5,8);
|
253
|
+
#main {
|
254
|
+
@include columns(6,9);
|
119
255
|
}
|
120
|
-
|
121
|
-
|
122
|
-
@include
|
123
|
-
@include omega(8);
|
256
|
+
aside {
|
257
|
+
@include columns(3,9);
|
258
|
+
@include omega(9);
|
124
259
|
}
|
125
260
|
}
|
126
261
|
|
127
262
|
Tutorial
|
128
263
|
========
|
129
264
|
|
130
|
-
|
131
|
-
earlier versions of Susy and is no longer entirely accurate for version 0.7.
|
132
|
-
An updated tutorial will be released soon.
|
265
|
+
Being built...
|
133
266
|
|
134
267
|
Extra Utility Mixins
|
135
268
|
=====================
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.7.0.
|
1
|
+
0.7.0.rc1
|
data/compass-susy-plugin.gemspec
CHANGED
@@ -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.7.0.
|
5
|
+
s.version = "0.7.0.rc1"
|
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"]
|
@@ -23,11 +23,11 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.specification_version = 3
|
24
24
|
|
25
25
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<compass>, [">= 0.10.0
|
26
|
+
s.add_runtime_dependency(%q<compass>, [">= 0.10.0"])
|
27
27
|
else
|
28
|
-
s.add_dependency(%q<compass>, [">= 0.10.0
|
28
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
29
29
|
end
|
30
30
|
else
|
31
|
-
s.add_dependency(%q<compass>, [">= 0.10.0
|
31
|
+
s.add_dependency(%q<compass>, [">= 0.10.0"])
|
32
32
|
end
|
33
33
|
end
|
data/sass/susy/_reset.scss
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
//** Susy Reset **//
|
2
2
|
|
3
|
+
/* Reset --------------------------------------------------------------*/
|
3
4
|
|
4
|
-
/* @group reset */
|
5
5
|
@import "compass/reset";
|
6
6
|
|
7
|
-
|
8
|
-
@include reset-html5;
|
7
|
+
/* HTML5 Reset --------------------------------------------------------------*/
|
9
8
|
|
10
|
-
|
9
|
+
@include reset-html5;
|
@@ -8,10 +8,10 @@ $default-rhythm-border-style: solid !default;
|
|
8
8
|
$ie-font-ratio: 16px / 100%;
|
9
9
|
|
10
10
|
// The base line height is the basic unit of line hightness.
|
11
|
-
$base-line-height:
|
11
|
+
$base-line-height: 24px !default;
|
12
12
|
|
13
13
|
// The base font size
|
14
|
-
$base-font-size:
|
14
|
+
$base-font-size: 16px !default;
|
15
15
|
|
16
16
|
// The basic unit of font rhythm
|
17
17
|
$base-rhythm-unit: $base-line-height / $base-font-size * 1em;
|
@@ -1,60 +1,43 @@
|
|
1
1
|
//**
|
2
|
-
// Susy:
|
3
|
-
// By: Eric A. Meyer and OddBird
|
2
|
+
// Susy: Un-obtrusive grids for designers
|
3
|
+
// By: Eric A. Meyer and OddBird
|
4
4
|
// Site: www.oddbird.net/susy/
|
5
5
|
//**
|
6
6
|
|
7
|
-
//
|
8
|
-
// Override these values as needed (defaults are 12/18)
|
7
|
+
// Font Sizes --------------------------------------------------------------
|
9
8
|
|
10
9
|
$base-font-size: 16px;
|
11
10
|
$base-line-height: 24px;
|
12
11
|
|
13
|
-
//
|
14
|
-
// Set these values as needed for your grid layout.
|
15
|
-
// - defaults are shown.
|
12
|
+
// Grid --------------------------------------------------------------
|
16
13
|
|
17
14
|
$total-cols: 12;
|
18
15
|
$col-width: 4em;
|
19
16
|
$gutter-width: 1em;
|
20
17
|
$side-gutter-width: $gutter-width;
|
21
18
|
|
22
|
-
//
|
23
|
-
// By default, +omega elements are floated right.
|
24
|
-
// You can override that globally here:
|
25
|
-
|
26
|
-
// $omega_float: right
|
27
|
-
|
28
|
-
// HACKS
|
29
|
-
// Are you using hacks or conditional comments? Susy makes both possible.
|
30
|
-
// Leave this as 'true' to use hacks, set it as false for conditional
|
31
|
-
// comments. Conditional comments will require overrides for +omega,
|
32
|
-
// +inline-block and several other mixins.
|
33
|
-
|
34
|
-
// $hacks: true
|
35
|
-
|
36
|
-
// SUSY
|
37
|
-
// Don't move this @import above the GRID and FONT-SIZE overrides.
|
38
|
-
|
19
|
+
// Don't move this @import above the GRID and FONT-SIZE variables.
|
39
20
|
@import "susy/susy";
|
40
21
|
|
41
|
-
//
|
42
|
-
// Set any colors you will need later.
|
22
|
+
// Colors --------------------------------------------------------------
|
43
23
|
|
44
|
-
$base:
|
24
|
+
$base: #4c4c4c;
|
45
25
|
$alt: #005498;
|
46
26
|
|
47
|
-
//
|
48
|
-
// Give yourself some font stacks to work with.
|
27
|
+
// Fonts --------------------------------------------------------------
|
49
28
|
|
50
29
|
@mixin sans-family {
|
51
|
-
font-family: Helvetica, Arial, sans-serif;
|
30
|
+
font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
|
52
31
|
}
|
53
32
|
|
54
33
|
@mixin serif-family {
|
55
|
-
font-family: Baskerville, Palatino, serif;
|
34
|
+
font-family: 'Adobe Caslon Pro', Caslon, Baskerville, Palatino, 'Palatino Linotype', "Hoefler Text", Garamond, "URW Palladio L", "Book Antiqua", Georgia, serif;
|
35
|
+
}
|
36
|
+
|
37
|
+
@mixin monospace-family {
|
38
|
+
font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, serif;
|
56
39
|
}
|
57
40
|
|
58
|
-
// OTHER MIXINS
|
41
|
+
// OTHER MIXINS --------------------------------------------------------------
|
59
42
|
// Mixins set here will be available in defaults, screen, print and IE
|
60
43
|
// Or anywhere you import either base.sass or defaults.sass
|
@@ -1,168 +1,257 @@
|
|
1
1
|
//** DEFAULT STYLES **//
|
2
|
-
// Don't forget to set your default styles.
|
3
2
|
|
4
|
-
//
|
5
|
-
|
3
|
+
// Based on the work of:
|
4
|
+
// Andy Clarke: http://forabeautifulweb.com/
|
5
|
+
|
6
|
+
// Imports --------------------------------------------------------------*/
|
6
7
|
|
7
|
-
|
8
|
+
@import "base";
|
8
9
|
@import "susy/reset";
|
9
10
|
|
10
|
-
/*
|
11
|
+
/* Body --------------------------------------------------------------*/
|
11
12
|
|
12
13
|
body {
|
13
|
-
@include
|
14
|
-
color: $base;
|
14
|
+
@include serif-family;
|
15
|
+
color: $base;
|
15
16
|
}
|
16
17
|
|
17
|
-
/*
|
18
|
-
|
19
|
-
:focus {
|
20
|
-
outline: 1px dotted $alt;
|
21
|
-
}
|
18
|
+
/* Links --------------------------------------------------------------*/
|
22
19
|
|
23
20
|
a {
|
24
21
|
&:link, &:visited {
|
25
|
-
color: $alt;
|
22
|
+
color: $alt;
|
26
23
|
}
|
27
24
|
&:focus, &:hover, &:active {
|
28
25
|
color: darken($alt,5);
|
29
|
-
text-decoration: none;
|
30
|
-
}
|
26
|
+
text-decoration: none;
|
27
|
+
}
|
28
|
+
img {
|
29
|
+
border: none;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
|
33
|
+
/* Headings --------------------------------------------------------------*/
|
34
|
+
|
35
|
+
h1, h2, h3, h4, h5, h6 {
|
36
|
+
font-weight: normal;
|
37
|
+
img {
|
38
|
+
margin: 0;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
h1 {
|
43
|
+
@include adjust-font-size-to(48px);
|
44
|
+
@include trailer(1,48px);
|
45
|
+
}
|
46
|
+
|
47
|
+
h2 {
|
48
|
+
@include adjust-font-size-to(32px);
|
49
|
+
@include trailer(1,32px);
|
50
|
+
}
|
51
|
+
|
52
|
+
h3 {
|
53
|
+
@include adjust-font-size-to(24px);
|
54
|
+
@include trailer(1,24px);
|
55
|
+
}
|
56
|
+
|
57
|
+
h4 {
|
58
|
+
@include adjust-font-size-to(18px);
|
59
|
+
@include trailer(1,18px);
|
31
60
|
}
|
32
61
|
|
33
|
-
|
62
|
+
h5, h6 {
|
63
|
+
@include trailer(1);
|
64
|
+
font-weight: bold;
|
65
|
+
}
|
66
|
+
|
67
|
+
/* Text --------------------------------------------------------------*/
|
68
|
+
|
69
|
+
cite, em, dfn {
|
70
|
+
font-style: italic;
|
71
|
+
}
|
34
72
|
|
35
|
-
|
73
|
+
strong, dfn {
|
74
|
+
font-weight: bold;
|
75
|
+
}
|
36
76
|
|
37
|
-
|
38
|
-
|
77
|
+
sup, sub {
|
78
|
+
line-height: 0;
|
39
79
|
}
|
40
80
|
|
41
|
-
|
42
|
-
|
81
|
+
abbr, acronym {
|
82
|
+
border-bottom: 1px dotted;
|
83
|
+
cursor: help;
|
43
84
|
}
|
44
85
|
|
45
|
-
|
46
|
-
|
86
|
+
address {
|
87
|
+
@include trailer;
|
88
|
+
font-style: italic;
|
47
89
|
}
|
48
90
|
|
49
91
|
ins {
|
50
|
-
text-decoration: underline;
|
92
|
+
text-decoration: underline;
|
51
93
|
}
|
52
94
|
|
53
95
|
del {
|
54
|
-
text-decoration: line-through;
|
96
|
+
text-decoration: line-through;
|
97
|
+
}
|
98
|
+
|
99
|
+
pre, code, tt {
|
100
|
+
margin: $base-rhythm-unit {
|
101
|
+
left: -$base-rhythm-unit;
|
102
|
+
};
|
103
|
+
padding-left: $base-rhythm-unit;
|
104
|
+
border-left: 1px dotted;
|
105
|
+
@include monospace-family;
|
106
|
+
}
|
107
|
+
|
108
|
+
pre {
|
109
|
+
white-space: pre;
|
110
|
+
}
|
111
|
+
|
112
|
+
code {
|
113
|
+
display: block;
|
55
114
|
}
|
56
115
|
|
57
116
|
q {
|
58
117
|
font-style: italic;
|
59
118
|
em {
|
60
|
-
font-style: normal;
|
119
|
+
font-style: normal;
|
61
120
|
}
|
62
121
|
}
|
63
122
|
|
64
|
-
|
65
|
-
|
66
|
-
/* @group replaced tags */
|
67
|
-
|
68
|
-
img {
|
69
|
-
vertical-align: bottom;
|
123
|
+
p {
|
124
|
+
@include trailer;
|
70
125
|
}
|
71
126
|
|
72
|
-
|
73
|
-
|
74
|
-
|
127
|
+
blockquote, q {
|
128
|
+
quotes : "" "";
|
129
|
+
}
|
75
130
|
|
76
|
-
|
77
|
-
|
131
|
+
blockquote {
|
132
|
+
margin: $base-rhythm-unit {
|
133
|
+
left: -$base-rhythm-unit;
|
134
|
+
};
|
135
|
+
padding-left: $base-rhythm-unit;
|
136
|
+
border-left: 1px solid;
|
137
|
+
@include serif-family;
|
138
|
+
font-style: italic;
|
78
139
|
}
|
79
140
|
|
80
|
-
|
141
|
+
blockquote, q {
|
142
|
+
&:before, &:after {
|
143
|
+
content: "";
|
144
|
+
}
|
145
|
+
}
|
81
146
|
|
82
|
-
/*
|
147
|
+
/* Replaced --------------------------------------------------------------*/
|
83
148
|
|
84
|
-
|
85
|
-
|
86
|
-
@include trailer;
|
149
|
+
img {
|
150
|
+
vertical-align: bottom;
|
87
151
|
}
|
88
152
|
|
153
|
+
/* Lists --------------------------------------------------------------*/
|
154
|
+
|
89
155
|
@mixin list-default($ol: false) {
|
90
|
-
|
91
|
-
@include trailer;
|
156
|
+
margin: 0 $base-rhythm-unit $base-rhythm-unit 0;
|
92
157
|
@if $ol {
|
93
|
-
list-style: decimal;
|
158
|
+
list-style: decimal;
|
94
159
|
} @else {
|
95
|
-
list-style: disc;
|
160
|
+
list-style: disc;
|
96
161
|
}
|
97
162
|
}
|
98
163
|
|
99
164
|
@mixin no-style-list {
|
100
165
|
@include no-bullets;
|
101
166
|
margin: 0;
|
102
|
-
padding: 0;
|
167
|
+
padding: 0;
|
103
168
|
}
|
104
169
|
|
105
170
|
ol {
|
106
|
-
@include list-default(ol);
|
171
|
+
@include list-default(ol);
|
107
172
|
}
|
108
173
|
|
109
174
|
ul {
|
110
|
-
@include list-default;
|
175
|
+
@include list-default;
|
111
176
|
}
|
112
177
|
|
113
|
-
|
114
|
-
|
115
|
-
|
178
|
+
li {
|
179
|
+
ul, ol {
|
180
|
+
list-style-type: circle;
|
181
|
+
margin: 0 $base-rhythm-unit $base-rhythm-unit*.5;
|
182
|
+
}
|
116
183
|
}
|
117
184
|
|
118
|
-
|
185
|
+
dl {
|
186
|
+
@include trailer;
|
187
|
+
@include leading-border(1px);
|
188
|
+
dt {
|
189
|
+
@include adjust-font-size-to(18px);
|
190
|
+
@include trailer(.5,18px);
|
191
|
+
}
|
192
|
+
}
|
119
193
|
|
120
|
-
|
194
|
+
dd {
|
195
|
+
@include trailer;
|
196
|
+
@include trailing-border(1px);
|
197
|
+
}
|
121
198
|
|
199
|
+
/* Tables --------------------------------------------------------------*/
|
122
200
|
/* tables still need 'cellspacing="0"' in the markup */
|
123
201
|
|
124
202
|
table {
|
203
|
+
@include trailer;
|
125
204
|
width: 100%;
|
126
|
-
border:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
205
|
+
border-collapse: separate;
|
206
|
+
border-spacing: 0;
|
207
|
+
}
|
208
|
+
|
209
|
+
table, td, th {
|
210
|
+
vertical-align: top;
|
211
|
+
}
|
212
|
+
|
213
|
+
th, thead th {
|
214
|
+
font-weight: bold;
|
215
|
+
}
|
216
|
+
|
217
|
+
th, td, caption {
|
218
|
+
padding: $base-rhythm-unit*.5;
|
219
|
+
text-align: left;
|
220
|
+
font-weight: normal;
|
221
|
+
}
|
222
|
+
|
223
|
+
th, td {
|
224
|
+
@include trailing-border(1px,.5);
|
132
225
|
}
|
133
226
|
|
134
|
-
|
135
|
-
font-
|
227
|
+
tfoot {
|
228
|
+
@include adjust-font-size-to(14px);
|
229
|
+
}
|
136
230
|
|
137
|
-
|
231
|
+
caption {
|
232
|
+
@include adjust-font-size-to(24px);
|
233
|
+
@include trailer(1,24px);
|
234
|
+
}
|
138
235
|
|
139
|
-
/*
|
236
|
+
/* Forms --------------------------------------------------------------*/
|
140
237
|
|
141
238
|
fieldset {
|
142
|
-
@include trailer;
|
239
|
+
@include trailer;
|
240
|
+
@include rhythm-borders(1px);
|
143
241
|
}
|
144
242
|
|
145
243
|
legend {
|
244
|
+
@include adjust-font-size-to(18px);
|
146
245
|
font-weight: bold;
|
147
|
-
font-variant: small-caps;
|
148
246
|
}
|
149
247
|
|
150
248
|
label {
|
151
|
-
|
152
|
-
@include leader;
|
153
|
-
}
|
154
|
-
|
155
|
-
legend + label {
|
156
|
-
margin-top: 0;
|
249
|
+
font-weight: bold;
|
157
250
|
}
|
158
251
|
|
159
252
|
textarea, input:not([type="radio"]) {
|
160
253
|
// box-sizing will help us control the width of inputs
|
161
254
|
// which are otherwise very hard to manage in the grid.
|
162
255
|
@include box-sizing(border-box);
|
163
|
-
width: 100%;
|
256
|
+
width: 100%;
|
164
257
|
}
|
165
|
-
|
166
|
-
/* @end */
|
167
|
-
|
168
|
-
/* @end */
|
data/templates/project/ie.scss
CHANGED
@@ -3,6 +3,7 @@ stylesheet 'print.scss', :media => "print"
|
|
3
3
|
stylesheet 'ie.scss', :media => "screen, projection"
|
4
4
|
stylesheet '_base.scss'
|
5
5
|
stylesheet '_defaults.scss'
|
6
|
+
image 'grid.png'
|
6
7
|
|
7
8
|
description "Susy: a flexible static/fluid/elastic grid system native to compass."
|
8
9
|
|
@@ -17,6 +18,6 @@ Please see the Susy website for all documentation and tutorials:
|
|
17
18
|
|
18
19
|
http://www.oddbird.net/susy
|
19
20
|
|
20
|
-
To get started, set up your grid in the
|
21
|
+
To get started, set up your grid in the base partial by following the inline instructions.
|
21
22
|
}
|
22
23
|
|
@@ -2,8 +2,12 @@
|
|
2
2
|
* Import this file using the following HTML or equivalent:
|
3
3
|
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
|
4
4
|
|
5
|
+
// Imports --------------------------------------------------------------*/
|
6
|
+
|
5
7
|
@import "defaults";
|
6
8
|
|
9
|
+
/* Print Defaults --------------------------------------------------------------*/
|
10
|
+
|
7
11
|
@mixin print {
|
8
12
|
nav {
|
9
13
|
// no need to navigate on paper
|
@@ -12,6 +16,7 @@
|
|
12
16
|
* {
|
13
17
|
// floated elements disappear when they overflow the page
|
14
18
|
float: none !important;
|
19
|
+
background: none;
|
15
20
|
}
|
16
21
|
body {
|
17
22
|
@include serif-family;
|
@@ -2,35 +2,22 @@
|
|
2
2
|
* Import this file using the following HTML or equivalent:
|
3
3
|
* <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" /> */
|
4
4
|
|
5
|
+
// Imports --------------------------------------------------------------*/
|
6
|
+
|
5
7
|
@import "defaults";
|
6
8
|
|
7
|
-
/*
|
9
|
+
/* Layout --------------------------------------------------------------*/
|
8
10
|
|
9
11
|
@include susy;
|
10
12
|
|
11
13
|
// change '#page' to match your HTML container element(s)
|
12
14
|
#page {
|
13
|
-
@include container;
|
14
|
-
|
15
|
-
/* @end */
|
16
|
-
|
17
|
-
/* @group COMPONENTS by type */
|
18
|
-
|
19
|
-
/* @end */
|
20
|
-
|
21
|
-
/* @group OVERRIDES by content */
|
22
|
-
|
23
|
-
/* @end */
|
24
|
-
|
25
|
-
/* @group OVERRIDES by page */
|
26
|
-
|
27
|
-
/* @end */
|
28
|
-
|
29
|
-
/* @group DEBUG */
|
30
|
-
|
31
|
-
// Uncomment, adjust and use for debugging
|
15
|
+
@include container;
|
16
|
+
@include show-grid("grid.png"); }
|
32
17
|
|
33
|
-
//
|
34
|
-
//
|
18
|
+
// show-grid loads a 64+16x24 grid image by default
|
19
|
+
// For other grid settings, run `compass grid-img 30+10x20`
|
20
|
+
// Where 30 is the column width, 10 is the gutter width,
|
21
|
+
// and 20 is the (optional) line-height.
|
35
22
|
|
36
|
-
/*
|
23
|
+
/* Styles --------------------------------------------------------------*/
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 7
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.7.0.
|
9
|
+
- rc1
|
10
|
+
version: 0.7.0.rc1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Eric Meyer
|
@@ -29,8 +29,7 @@ dependencies:
|
|
29
29
|
- 0
|
30
30
|
- 10
|
31
31
|
- 0
|
32
|
-
|
33
|
-
version: 0.10.0.rc2
|
32
|
+
version: 0.10.0
|
34
33
|
type: :runtime
|
35
34
|
version_requirements: *id001
|
36
35
|
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.
|