compass-susy-plugin 0.7.0 → 0.8.0.pre1
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/README.mkdn +18 -76
- data/Rakefile +5 -6
- data/VERSION +1 -1
- data/compass-susy-plugin.gemspec +6 -6
- data/sass/susy/_grid.scss +14 -29
- data/sass/susy/_susy.scss +4 -9
- data/sass/susy/_utils.scss +5 -56
- data/templates/project/_base.scss +4 -4
- data/templates/project/_defaults.scss +187 -182
- data/templates/project/print.scss +47 -29
- data/templates/project/screen.scss +8 -9
- metadata +9 -8
data/README.mkdn
CHANGED
@@ -66,8 +66,7 @@ Grid Basics
|
|
66
66
|
===========
|
67
67
|
|
68
68
|
* Set up your default grid values (total columns, column width, gutter width,
|
69
|
-
side gutter width), your base font size, and important mixins in
|
70
|
-
`_base.scss`.
|
69
|
+
side gutter width), your base font size, and important mixins in `_base.scss`.
|
71
70
|
|
72
71
|
Example:
|
73
72
|
|
@@ -83,7 +82,7 @@ Grid Basics
|
|
83
82
|
better than using the browser defaults. And better than using ours.
|
84
83
|
|
85
84
|
* Create your grid in `screen.scss`: apply the `@include susy` mixin at the
|
86
|
-
top level and the `@include container` mixin to the element that contains
|
85
|
+
top level and the `@include container` mixin to the element(s) that contains
|
87
86
|
the page grid. This will set up your font sizes, vertical rhythm, and grid
|
88
87
|
container.
|
89
88
|
|
@@ -101,26 +100,24 @@ Grid Basics
|
|
101
100
|
font-size: 100%;
|
102
101
|
line-height: 1.5em;
|
103
102
|
}
|
104
|
-
|
105
103
|
html > body {
|
106
104
|
font-size: 16px;
|
107
105
|
}
|
108
106
|
|
109
|
-
|
110
|
-
|
107
|
+
#page {
|
108
|
+
*zoom: 1;
|
109
|
+
margin-left: auto;
|
110
|
+
margin-right: auto;
|
111
|
+
width: 61em;
|
112
|
+
max-width: 100%;
|
111
113
|
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
width: 61em;
|
120
|
-
max-width: 100%;
|
121
|
-
}
|
122
|
-
#page {
|
123
|
-
display: block;
|
114
|
+
#page:after {
|
115
|
+
content: "\0020";
|
116
|
+
display: block;
|
117
|
+
height: 0;
|
118
|
+
clear: both;
|
119
|
+
overflow: hidden;
|
120
|
+
visibility: hidden;
|
124
121
|
}
|
125
122
|
|
126
123
|
* Use the `@include columns` mixin to declare the width in columns of an
|
@@ -146,7 +143,7 @@ Grid Basics
|
|
146
143
|
|
147
144
|
The `columns` mixin:
|
148
145
|
|
149
|
-
@include columns($span [
|
146
|
+
@include columns($span, [$context]);
|
150
147
|
|
151
148
|
The `full` mixin:
|
152
149
|
|
@@ -262,31 +259,16 @@ That's it for the basics! Here's a sample Susy grid layout:
|
|
262
259
|
Tutorial
|
263
260
|
========
|
264
261
|
|
265
|
-
|
262
|
+
Check out the tutorial at [susy.oddbird.net/tutorial/](http://susy.oddbird.net/tutorial/) for more details.
|
266
263
|
|
267
264
|
Extra Utility Mixins
|
268
265
|
=====================
|
269
266
|
|
270
|
-
Extra utilities are included in Susy's `
|
271
|
-
options, experimental (CSS3/proprietary) CSS, and more.
|
267
|
+
Extra utilities are included in Susy's `_utils.scss` and `_vertical_rhythm.scss`:
|
272
268
|
|
273
269
|
* `@include show-grid($src)` - Repeat the specified grid image on an element.
|
274
270
|
Good for testing your baseline and grid.
|
275
271
|
|
276
|
-
* `@include inline-block-list([$horizontalpadding])` - Make list items
|
277
|
-
inline-block when floating just won't do the trick (if you need them
|
278
|
-
centered or right).
|
279
|
-
|
280
|
-
* `@include hide` - Hide content from visual browsers while keeping
|
281
|
-
accessability intact.
|
282
|
-
|
283
|
-
* `@include skip-link([$top, $right, $bottom, $left])` - Hide a link, and then
|
284
|
-
show it again on focus. the TRBL settings allow you to place it absolutely
|
285
|
-
on display. Default will be top left of the positioning context.
|
286
|
-
|
287
|
-
And then the fun stuff in `_vertical_rhythm.scss`, originally written by Chris
|
288
|
-
Eppstein and probably moving to the compass core before too long:
|
289
|
-
|
290
272
|
* `@include adjust-font-size-to($to_size, [$lines, $from_size])` - adjust the
|
291
273
|
font size and number of baseline (line) units to occupy.
|
292
274
|
|
@@ -314,46 +296,6 @@ Susy is built for flexibility, so that you always write the code you want to
|
|
314
296
|
write. While everything should 'just work' out of the box, there are plenty of
|
315
297
|
advanced options hidden inside. Here are a few:
|
316
298
|
|
317
|
-
* `$hacks` is a boolean constant that you can set in your base.sass file to
|
318
|
-
choose between using targeted hacks for IE (a variation of the star hack in
|
319
|
-
most cases) in your screen.css, or using a conditional-comment targeted
|
320
|
-
ie.css. All the needed mixins are available for either setting. `$hacks` is
|
321
|
-
true by default so there is no extra work maintaining multiple files unless
|
322
|
-
you want to.
|
323
|
-
|
324
|
-
Example 1:
|
325
|
-
|
326
|
-
$hacks: true;
|
327
|
-
|
328
|
-
#nav {
|
329
|
-
@include inline-block-list;
|
330
|
-
}
|
331
|
-
|
332
|
-
Example 2:
|
333
|
-
|
334
|
-
$hacks: false;
|
335
|
-
|
336
|
-
// in screen.scss
|
337
|
-
#nav {
|
338
|
-
@include inline-block-list;
|
339
|
-
}
|
340
|
-
|
341
|
-
//in ie.scss
|
342
|
-
#nav li {
|
343
|
-
@include ie-inline-block;
|
344
|
-
}
|
345
|
-
|
346
|
-
It requires more maintenance on your part, but the result is a hack-free
|
347
|
-
output.
|
348
|
-
|
349
|
-
The Susy mixins that use either hacks or targeted mixins are `@include
|
350
|
-
omega` (`@include ie-omega([$right-floated: false])`), `@include
|
351
|
-
inline-block` (`@include ie-inline-block`), and `@include
|
352
|
-
inline-block-list` which sets `@include inline-block` on the list items.
|
353
|
-
|
354
|
-
The ie-specific mixins only add the needed ie-specific adjustments, so
|
355
|
-
they need to be used in addition to their counterparts, not on their own.
|
356
|
-
|
357
299
|
* `gutter($context)` is a function that you can call at any time to return the
|
358
300
|
size of a gutter in your given context as a percentage.
|
359
301
|
|
data/Rakefile
CHANGED
@@ -6,13 +6,12 @@ begin
|
|
6
6
|
require 'echoe'
|
7
7
|
|
8
8
|
Echoe.new('compass-susy-plugin', open('VERSION').read) do |p|
|
9
|
-
|
10
|
-
p.
|
11
|
-
p.
|
12
|
-
p.
|
13
|
-
p.author = ['Eric Meyer']
|
9
|
+
p.summary = "A responsive grid system plugin for Compass."
|
10
|
+
p.description = "Responsive web design with grids the quick and reliable way."
|
11
|
+
p.url = "http://susy.oddbird.net/"
|
12
|
+
p.author = "Eric Meyer"
|
14
13
|
p.email = "eric@oddbird.net"
|
15
|
-
p.dependencies = ["compass >=0.10.0
|
14
|
+
p.dependencies = ["compass >=0.10.0"]
|
16
15
|
p.has_rdoc = false
|
17
16
|
end
|
18
17
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0.pre1
|
data/compass-susy-plugin.gemspec
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{compass-susy-plugin}
|
5
|
-
s.version = "0.
|
5
|
+
s.version = "0.8.0.pre1"
|
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-
|
10
|
-
s.description = %q{
|
9
|
+
s.date = %q{2010-08-12}
|
10
|
+
s.description = %q{Responsive web design with grids the quick and reliable way.}
|
11
11
|
s.email = %q{eric@oddbird.net}
|
12
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", "
|
14
|
-
s.homepage = %q{http://
|
13
|
+
s.files = ["LICENSE.txt", "Manifest", "README.mkdn", "Rakefile", "VERSION", "lib/susy.rb", "lib/susy/compass_plugin.rb", "lib/susy/sass_extensions.rb", "sass/susy/_grid.scss", "sass/susy/_reset.scss", "sass/susy/_susy.scss", "sass/susy/_text.scss", "sass/susy/_utils.scss", "sass/susy/_vertical_rhythm.scss", "templates/project/_base.scss", "templates/project/_defaults.scss", "templates/project/grid.png", "templates/project/ie.scss", "templates/project/manifest.rb", "templates/project/print.scss", "templates/project/screen.scss", "compass-susy-plugin.gemspec"]
|
14
|
+
s.homepage = %q{http://susy.oddbird.net/}
|
15
15
|
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass-susy-plugin", "--main", "README.mkdn"]
|
16
16
|
s.require_paths = ["lib"]
|
17
17
|
s.rubyforge_project = %q{compass-susy-plugin}
|
18
18
|
s.rubygems_version = %q{1.3.6}
|
19
|
-
s.summary = %q{A
|
19
|
+
s.summary = %q{A responsive grid system plugin for Compass.}
|
20
20
|
|
21
21
|
if s.respond_to? :specification_version then
|
22
22
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
data/sass/susy/_grid.scss
CHANGED
@@ -12,11 +12,12 @@ $side-gutter-width: $gutter-width !default;
|
|
12
12
|
$container-width: container($total-cols, $col-width, $gutter-width, $side-gutter-width);
|
13
13
|
|
14
14
|
// Set +container() on the outer grid-containing element(s).
|
15
|
-
@mixin container($align:
|
15
|
+
@mixin container($align: false) {
|
16
16
|
// clear all floated columns
|
17
|
-
@include clearfix;
|
18
|
-
|
19
|
-
|
17
|
+
@include pie-clearfix;
|
18
|
+
@if $align {
|
19
|
+
@warn "the '$align' argument is deprecated because it really isn't that usefull.";
|
20
|
+
}
|
20
21
|
// use auto horizontal margins to center your page in the body
|
21
22
|
margin: {
|
22
23
|
left: auto;
|
@@ -88,25 +89,9 @@ $container-width: container($total-cols, $col-width, $gutter-width, $side-gutter
|
|
88
89
|
// - Override $omega_float globally or set +float locally to change
|
89
90
|
$omega-float: right !default;
|
90
91
|
|
91
|
-
//
|
92
|
-
// - this will be called automatically with hacks
|
93
|
-
// When global constant $hacks == false:
|
94
|
-
// - you can call it yourself in ie.sass without the hacks
|
92
|
+
// This is going away
|
95
93
|
@mixin ie-omega($dir: $omega-float, $hack: false) {
|
96
|
-
$
|
97
|
-
@if $dir == right {
|
98
|
-
@if $hack {
|
99
|
-
#margin-left: - $gutter-width;
|
100
|
-
} @else {
|
101
|
-
margin-left: - $gutter-width;
|
102
|
-
}
|
103
|
-
} @else {
|
104
|
-
@if $hack {
|
105
|
-
#margin-right: - $gutter-width;
|
106
|
-
} @else {
|
107
|
-
margin-right: - $gutter-width;
|
108
|
-
}
|
109
|
-
}
|
94
|
+
@warn "the 'ie-omega' mixin is deprecated along with the $hacks constant";
|
110
95
|
}
|
111
96
|
|
112
97
|
// Set +omega() on the last element of a row, in order to take side-gutters
|
@@ -121,10 +106,11 @@ $omega-float: right !default;
|
|
121
106
|
} @else {
|
122
107
|
margin-right: side-gutter();
|
123
108
|
}
|
124
|
-
@if $
|
125
|
-
|
126
|
-
|
127
|
-
|
109
|
+
@if $omega-float == right {
|
110
|
+
#margin-left: - $gutter-width;
|
111
|
+
} @else {
|
112
|
+
#margin-right: - $gutter-width;
|
113
|
+
}
|
128
114
|
}
|
129
115
|
|
130
116
|
// Set +full() on an element that will span it's entire context.
|
@@ -132,8 +118,7 @@ $omega-float: right !default;
|
|
132
118
|
@mixin full($nested: false) {
|
133
119
|
clear: both;
|
134
120
|
@if not $nested {
|
135
|
-
|
136
|
-
margin-
|
137
|
-
margin-left: $s;
|
121
|
+
margin-right: side-gutter();
|
122
|
+
margin-left: side-gutter();
|
138
123
|
}
|
139
124
|
}
|
data/sass/susy/_susy.scss
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
//** Susy **//
|
2
2
|
|
3
3
|
|
4
|
-
// Tell susy whether you are using hacks or conditional comments.
|
5
|
-
$hacks: true !default;
|
6
|
-
|
7
4
|
// Import all the Important Stuff.
|
8
5
|
@import "compass/css3";
|
9
6
|
@import "utils";
|
@@ -11,11 +8,9 @@ $hacks: true !default;
|
|
11
8
|
@import "grid";
|
12
9
|
|
13
10
|
// Set Susy on your BODY element to get things started.
|
14
|
-
@mixin susy($align:
|
11
|
+
@mixin susy($align: false) {
|
15
12
|
@include establish-baseline;
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
text-align: $align;
|
20
|
-
}
|
13
|
+
@if $align {
|
14
|
+
@warn "the '$align' argument is deprecated because it really isn't that usefull.";
|
15
|
+
}
|
21
16
|
}
|
data/sass/susy/_utils.scss
CHANGED
@@ -14,67 +14,16 @@
|
|
14
14
|
};
|
15
15
|
}
|
16
16
|
|
17
|
-
// Brings IE in line with inline-block display
|
18
|
-
// - Using hacks if called automatically because $hacks == true
|
19
|
-
// - Or not, if you call it from ie.sass because $hacks == false
|
20
17
|
@mixin ie-inline-block($hack: false) {
|
21
|
-
@
|
22
|
-
/* ugly hacks for IE6-7 */
|
23
|
-
#display: inline;
|
24
|
-
// fixes alignment against native input/button on IE6
|
25
|
-
#vertical-align: auto;
|
26
|
-
} @else {
|
27
|
-
display: inline;
|
28
|
-
// fixes alignment against native input/button on IE6
|
29
|
-
vertical-align: auto;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
// An override for compass inline-block that lets you take advantage
|
34
|
-
// of Susys $hacks constant. if true, hacks. if false, use ie-inline-block
|
35
|
-
// to help ie along in your ie.sass
|
36
|
-
@mixin inline-block {
|
37
|
-
display: -moz-inline-box;
|
38
|
-
-moz-box-orient: vertical;
|
39
|
-
display: inline-block;
|
40
|
-
vertical-align: middle;
|
41
|
-
@if $hacks {
|
42
|
-
@include ie-inline-block(true);
|
43
|
-
}
|
44
|
-
}
|
45
|
-
|
46
|
-
// An inline-block list that works in IE
|
47
|
-
// For those awkward moments when a floated horizontal list just wont cut it
|
48
|
-
// NOTE: If global !hacks == false:
|
49
|
-
// - you'll need to fix list items in ie.sass with +ie-inline-block
|
50
|
-
@mixin inline-block-list($hpad: 0) {
|
51
|
-
@include horizontal-list-container;
|
52
|
-
li {
|
53
|
-
@include no-bullet;
|
54
|
-
@include inline-block;
|
55
|
-
white-space: no-wrap;
|
56
|
-
padding: {
|
57
|
-
left: $hpad;
|
58
|
-
right: $hpad;
|
59
|
-
};
|
60
|
-
}
|
18
|
+
@warn "the 'ie-inline-block' mixin is deprecated in favor of the compass core solutions.";
|
61
19
|
}
|
62
20
|
|
63
21
|
// Hide an element from the viewport, but keep it around for accessability
|
64
22
|
@mixin hide {
|
65
|
-
|
66
|
-
|
23
|
+
@warn "the 'hide' mixin is deprecated in favor of 'hide-text' in compass core.";
|
24
|
+
@include hide-text;
|
25
|
+
}
|
67
26
|
|
68
|
-
// Apply to skip-to-content accessibility links that will appear on focus.
|
69
|
-
// - Set the location arguments if you care where it appears.
|
70
27
|
@mixin skip-link($t: 0, $r: false, $b: false, $l: false) {
|
71
|
-
@
|
72
|
-
display: block;
|
73
|
-
&:focus {
|
74
|
-
@if $t { top: $t; }
|
75
|
-
@if $r { right: $r; }
|
76
|
-
@if $b { bottom: $b; }
|
77
|
-
@if $l { left: $l; }
|
78
|
-
z-index: 999;
|
79
|
-
}
|
28
|
+
@warn "the 'skip-link' mixin is deprecated as too tangential to belong in Susy.";
|
80
29
|
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
//**
|
2
2
|
// Susy: Un-obtrusive grids for designers
|
3
3
|
// By: Eric A. Meyer and OddBird
|
4
|
-
// Site:
|
4
|
+
// Site: susy.oddbird.net
|
5
5
|
//**
|
6
6
|
|
7
7
|
// Font Sizes --------------------------------------------------------------
|
@@ -27,15 +27,15 @@ $alt: #005498;
|
|
27
27
|
// Fonts --------------------------------------------------------------
|
28
28
|
|
29
29
|
@mixin sans-family {
|
30
|
-
font-family: "Helvetica Neue",
|
30
|
+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
31
31
|
}
|
32
32
|
|
33
33
|
@mixin serif-family {
|
34
|
-
font-family:
|
34
|
+
font-family: Cambria, Georgia, serif;
|
35
35
|
}
|
36
36
|
|
37
37
|
@mixin monospace-family {
|
38
|
-
font-family:
|
38
|
+
font-family: "Andale Mono WT", "Andale Mono", "Lucida Console", "Lucida Sans Typewriter", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Liberation Mono", "Nimbus Mono L", Monaco, Courier, monospace, sans-serif;
|
39
39
|
}
|
40
40
|
|
41
41
|
// OTHER MIXINS --------------------------------------------------------------
|
@@ -1,257 +1,262 @@
|
|
1
1
|
//** DEFAULT STYLES **//
|
2
2
|
|
3
|
-
// Based on the work of:
|
3
|
+
// Based heavily on the work of:
|
4
4
|
// Andy Clarke: http://forabeautifulweb.com/
|
5
|
+
// Paul Irish & Divya Manian: http://html5boilerplate.com/
|
6
|
+
// And many others, less directly...
|
5
7
|
|
6
|
-
// Imports
|
8
|
+
// Imports --------------------------------------------------------------
|
7
9
|
|
8
10
|
@import "base";
|
9
11
|
@import "susy/reset";
|
10
12
|
|
11
|
-
/*
|
13
|
+
/* Typography -------------------------------------------------------------- */
|
14
|
+
/* The following classes are for use with @extend. */
|
15
|
+
|
16
|
+
html {
|
17
|
+
text-rendering: optimizeLegibility;
|
18
|
+
-webkit-font-smoothing: antialiased; }
|
19
|
+
|
20
|
+
.serif {
|
21
|
+
@include serif-family; }
|
22
|
+
|
23
|
+
.sans {
|
24
|
+
@include sans-family; }
|
25
|
+
|
26
|
+
.mono {
|
27
|
+
@include monospace-family; }
|
28
|
+
|
29
|
+
.caps {
|
30
|
+
letter-spacing: 0.1em; }
|
31
|
+
|
32
|
+
.allcaps {
|
33
|
+
@extend .caps;
|
34
|
+
text-transform: uppercase; }
|
35
|
+
|
36
|
+
.smallcaps {
|
37
|
+
@extend .caps;
|
38
|
+
font-variant: small-caps; }
|
39
|
+
|
40
|
+
/* Body -------------------------------------------------------------- */
|
12
41
|
|
13
42
|
body {
|
14
|
-
@
|
15
|
-
color: $base;
|
16
|
-
|
43
|
+
@extend .serif;
|
44
|
+
color: $base; }
|
45
|
+
|
46
|
+
/* Selected Text -------------------------------------------------------------- */
|
47
|
+
/* -moz- must be declared separately */
|
48
|
+
|
49
|
+
@mixin accessible-color($background: white) {
|
50
|
+
@if lightness($background) >= 65% {
|
51
|
+
color: $base; }
|
52
|
+
@else {
|
53
|
+
color: white; } }
|
54
|
+
|
55
|
+
::-moz-selection {
|
56
|
+
@include accessible-color($alt);
|
57
|
+
background: $alt;
|
58
|
+
text-shadow: none; }
|
17
59
|
|
18
|
-
|
60
|
+
::selection {
|
61
|
+
@include accessible-color($alt);
|
62
|
+
background: $alt;
|
63
|
+
text-shadow: none; }
|
64
|
+
|
65
|
+
/* Links -------------------------------------------------------------- */
|
19
66
|
|
20
67
|
a {
|
21
68
|
&:link, &:visited {
|
22
|
-
color: $alt;
|
23
|
-
|
69
|
+
color: $alt; }
|
70
|
+
&:link, &:visited, &:hover, &:active {
|
71
|
+
outline: none; }
|
24
72
|
&:focus, &:hover, &:active {
|
25
|
-
color:
|
26
|
-
text-decoration: none;
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
h1
|
36
|
-
font-
|
37
|
-
|
38
|
-
|
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
|
-
}
|
73
|
+
color: complement($alt);
|
74
|
+
text-decoration: none; }
|
75
|
+
&:focus {
|
76
|
+
outline: thin dotted; } }
|
77
|
+
|
78
|
+
/* Headings -------------------------------------------------------------- */
|
79
|
+
|
80
|
+
h2, h3, h4, h5, h6 {
|
81
|
+
@include trailer; }
|
82
|
+
|
83
|
+
h1 {
|
84
|
+
@include adjust-font-size-to(21px);
|
85
|
+
@include trailer(1, 21px); }
|
86
|
+
|
87
|
+
h1, h2 {
|
88
|
+
@extend .allcaps; }
|
51
89
|
|
52
90
|
h3 {
|
53
|
-
|
54
|
-
@include trailer(1,24px);
|
55
|
-
}
|
91
|
+
font-weight: bold; }
|
56
92
|
|
57
93
|
h4 {
|
58
|
-
@
|
59
|
-
|
60
|
-
}
|
94
|
+
@extend .smallcaps;
|
95
|
+
text-transform: lowercase; }
|
61
96
|
|
62
|
-
h5, h6 {
|
63
|
-
|
64
|
-
font-weight: bold;
|
65
|
-
}
|
97
|
+
h5, h6 {
|
98
|
+
font-style: italic; }
|
66
99
|
|
67
|
-
/*
|
100
|
+
/* Inline -------------------------------------------------------------- */
|
68
101
|
|
69
|
-
cite, em, dfn {
|
70
|
-
font-style: italic;
|
71
|
-
}
|
102
|
+
cite, em, dfn, address, i {
|
103
|
+
font-style: italic; }
|
72
104
|
|
73
|
-
strong, dfn {
|
74
|
-
font-weight: bold;
|
75
|
-
}
|
105
|
+
strong, dfn, b {
|
106
|
+
font-weight: bold; }
|
76
107
|
|
77
|
-
sup, sub {
|
78
|
-
|
79
|
-
}
|
108
|
+
sup, sub {
|
109
|
+
font-size: smaller;
|
110
|
+
line-height: 0; }
|
80
111
|
|
81
|
-
|
82
|
-
|
83
|
-
cursor: help;
|
84
|
-
}
|
112
|
+
sup {
|
113
|
+
vertical-align: super; }
|
85
114
|
|
86
|
-
|
87
|
-
|
88
|
-
font-style: italic;
|
89
|
-
}
|
115
|
+
sub {
|
116
|
+
vertical-align: sub; }
|
90
117
|
|
91
|
-
|
92
|
-
|
93
|
-
}
|
118
|
+
abbr, acronym {
|
119
|
+
border-bottom: 1px dotted;
|
120
|
+
cursor: help; }
|
94
121
|
|
95
|
-
|
96
|
-
text-decoration:
|
97
|
-
}
|
122
|
+
ins {
|
123
|
+
text-decoration: underline; }
|
98
124
|
|
99
|
-
|
100
|
-
|
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
|
-
}
|
125
|
+
del {
|
126
|
+
text-decoration: line-through; }
|
111
127
|
|
112
|
-
|
113
|
-
|
114
|
-
|
128
|
+
mark {
|
129
|
+
background: #ffff99;
|
130
|
+
background-color: rgba(yellow, 0.5);
|
131
|
+
text-shadow: none; }
|
132
|
+
|
133
|
+
small {
|
134
|
+
@include adjust-font-size-to(12px); }
|
115
135
|
|
116
136
|
q {
|
117
137
|
font-style: italic;
|
118
138
|
em {
|
119
|
-
font-style: normal;
|
120
|
-
|
121
|
-
|
139
|
+
font-style: normal; } }
|
140
|
+
|
141
|
+
pre, code, tt {
|
142
|
+
@extend .mono; }
|
143
|
+
|
144
|
+
/* Block -------------------------------------------------------------- */
|
122
145
|
|
123
146
|
p {
|
124
|
-
@include trailer;
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
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;
|
139
|
-
}
|
147
|
+
@include trailer; }
|
148
|
+
|
149
|
+
pre {
|
150
|
+
margin: $base-rhythm-unit;
|
151
|
+
white-space: pre;
|
152
|
+
white-space: pre-wrap;
|
153
|
+
white-space: pre-line;
|
154
|
+
word-wrap: break-word; }
|
140
155
|
|
141
|
-
blockquote
|
142
|
-
|
143
|
-
|
144
|
-
}
|
145
|
-
}
|
156
|
+
blockquote {
|
157
|
+
margin: $base-rhythm-unit;
|
158
|
+
font-style: italic; }
|
146
159
|
|
147
|
-
/* Replaced
|
160
|
+
/* Replaced -------------------------------------------------------------- */
|
148
161
|
|
149
162
|
img {
|
150
|
-
vertical-align: bottom;
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
@
|
158
|
-
|
159
|
-
} @else {
|
160
|
-
list-style: disc;
|
161
|
-
}
|
162
|
-
}
|
163
|
-
|
164
|
-
@mixin no-style-list {
|
165
|
-
@include no-bullets;
|
166
|
-
margin: 0;
|
167
|
-
padding: 0;
|
168
|
-
}
|
163
|
+
vertical-align: text-bottom;
|
164
|
+
max-width: 100%;
|
165
|
+
-ms-interpolation-mode: bicubic; }
|
166
|
+
|
167
|
+
/* Lists -------------------------------------------------------------- */
|
168
|
+
|
169
|
+
ol, ul, dl {
|
170
|
+
@include trailer;
|
171
|
+
margin-left: $base-rhythm-unit; }
|
169
172
|
|
170
173
|
ol {
|
171
|
-
|
172
|
-
}
|
174
|
+
list-style: decimal; }
|
173
175
|
|
174
176
|
ul {
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
li {
|
179
|
-
ul, ol {
|
180
|
-
list-style-type: circle;
|
181
|
-
margin: 0 $base-rhythm-unit $base-rhythm-unit*.5;
|
182
|
-
}
|
183
|
-
}
|
177
|
+
list-style: disc;
|
178
|
+
li & {
|
179
|
+
list-style-type: circle; } }
|
184
180
|
|
185
|
-
|
186
|
-
@include
|
187
|
-
|
188
|
-
dt {
|
189
|
-
@include adjust-font-size-to(18px);
|
190
|
-
@include trailer(.5,18px);
|
191
|
-
}
|
192
|
-
}
|
181
|
+
dt {
|
182
|
+
@include leader;
|
183
|
+
font-style: italic; }
|
193
184
|
|
194
185
|
dd {
|
195
|
-
|
196
|
-
@include trailing-border(1px);
|
197
|
-
}
|
186
|
+
padding-left: $base-rhythm-unit; }
|
198
187
|
|
199
|
-
/* Tables
|
188
|
+
/* Tables -------------------------------------------------------------- */
|
200
189
|
/* tables still need 'cellspacing="0"' in the markup */
|
201
190
|
|
202
191
|
table {
|
203
192
|
@include trailer;
|
204
193
|
width: 100%;
|
205
194
|
border-collapse: separate;
|
206
|
-
border-spacing: 0;
|
207
|
-
}
|
195
|
+
border-spacing: 0; }
|
208
196
|
|
209
|
-
table, td, th {
|
210
|
-
vertical-align: top;
|
211
|
-
}
|
197
|
+
table, td, th {
|
198
|
+
vertical-align: top; }
|
212
199
|
|
213
200
|
th, thead th {
|
214
|
-
font-weight: bold;
|
215
|
-
}
|
201
|
+
font-weight: bold; }
|
216
202
|
|
217
203
|
th, td, caption {
|
218
|
-
padding: $base-rhythm-unit
|
204
|
+
padding: $base-rhythm-unit * 0.5;
|
219
205
|
text-align: left;
|
220
|
-
font-weight: normal;
|
221
|
-
}
|
206
|
+
font-weight: normal; }
|
222
207
|
|
223
|
-
|
224
|
-
@include trailing-border(1px
|
225
|
-
}
|
208
|
+
table, th {
|
209
|
+
@include trailing-border(1px, 0.5); }
|
226
210
|
|
227
|
-
tfoot {
|
228
|
-
@include adjust-font-size-to(14px);
|
229
|
-
}
|
211
|
+
tfoot {
|
212
|
+
@include adjust-font-size-to(14px); }
|
230
213
|
|
231
214
|
caption {
|
232
|
-
@
|
233
|
-
@include trailer(1,24px);
|
234
|
-
}
|
215
|
+
@extend .allcaps; }
|
235
216
|
|
236
|
-
/* Forms
|
217
|
+
/* Forms -------------------------------------------------------------- */
|
237
218
|
|
238
219
|
fieldset {
|
239
220
|
@include trailer;
|
240
|
-
@include rhythm-borders(1px);
|
241
|
-
}
|
221
|
+
@include rhythm-borders(1px); }
|
242
222
|
|
243
223
|
legend {
|
244
224
|
@include adjust-font-size-to(18px);
|
245
|
-
font-weight: bold;
|
246
|
-
}
|
225
|
+
font-weight: bold; }
|
247
226
|
|
248
|
-
|
249
|
-
|
250
|
-
}
|
227
|
+
input[type="radio"], input[type="checkbox"] {
|
228
|
+
vertical-align: baseline; }
|
251
229
|
|
252
|
-
|
253
|
-
|
254
|
-
|
230
|
+
label, input[type=button], input[type=submit], button {
|
231
|
+
cursor: pointer; }
|
232
|
+
|
233
|
+
label {
|
234
|
+
font-weight: bold; }
|
235
|
+
|
236
|
+
// box-sizing helps us control the width of inputs
|
237
|
+
// which are otherwise very hard to manage in the grid.
|
238
|
+
.textinput {
|
239
|
+
@include sans-family;
|
240
|
+
@include adjust-font-size-to(14px, 1, 16px);
|
241
|
+
@include rhythm-borders(1px, 0.25, 14px);
|
242
|
+
@include trailer(0.5);
|
255
243
|
@include box-sizing(border-box);
|
256
244
|
width: 100%;
|
257
|
-
|
245
|
+
margin-top: 0;
|
246
|
+
border-color: $base;
|
247
|
+
height: $base-line-height / 14px * 1.5; }
|
248
|
+
|
249
|
+
textarea {
|
250
|
+
@extend .textinput;
|
251
|
+
height: $base-line-height / 14px * 6.5;
|
252
|
+
vertical-align: text-bottom; }
|
253
|
+
|
254
|
+
input {
|
255
|
+
&[type=text], &[type=password], &[type=email], &[type=url], &[type=tel],
|
256
|
+
&[type=date], &[type=datetime], &[type=datetime-local], &[type=month], &[type=week], &[type=time],
|
257
|
+
&[type=number], &[type=range], &[type=search], &[type=color] {
|
258
|
+
@extend .textinput; } }
|
259
|
+
|
260
|
+
button {
|
261
|
+
width: auto;
|
262
|
+
overflow: visible; }
|
@@ -1,33 +1,51 @@
|
|
1
|
-
|
2
|
-
* Import this file using the following HTML or equivalent:
|
3
|
-
* <link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" /> */
|
1
|
+
//** PRINT STYLES **//
|
4
2
|
|
5
|
-
//
|
3
|
+
// Based heavily on the work of:
|
4
|
+
// Paul Irish & Divya Manian: http://html5boilerplate.com/
|
5
|
+
// And many others, less directly...
|
6
|
+
|
7
|
+
// Imports --------------------------------------------------------------
|
6
8
|
|
7
9
|
@import "defaults";
|
8
10
|
|
9
|
-
/* Print Defaults
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
11
|
+
/* Print Defaults -------------------------------------------------------------- */
|
12
|
+
|
13
|
+
nav {
|
14
|
+
display: none; }
|
15
|
+
|
16
|
+
* {
|
17
|
+
background: transparent !important;
|
18
|
+
color: #444444 !important;
|
19
|
+
float: none !important;
|
20
|
+
text-shadow: none !important; }
|
21
|
+
|
22
|
+
body {
|
23
|
+
@include serif-family;
|
24
|
+
font-size: 12pt;
|
25
|
+
background: white;
|
26
|
+
color: black; }
|
27
|
+
|
28
|
+
a {
|
29
|
+
&:link, &:visited {
|
30
|
+
color: #444444 !important;
|
31
|
+
text-decoration: underline; }
|
32
|
+
&:after {
|
33
|
+
content: " (" attr(href) ") ";
|
34
|
+
font-size: smaller; } }
|
35
|
+
|
36
|
+
abbr:after {
|
37
|
+
content: " (" attr(title) ")";
|
38
|
+
font-size: smaller; }
|
39
|
+
|
40
|
+
pre, blockquote, img {
|
41
|
+
page-break-inside: avoid; }
|
42
|
+
|
43
|
+
@page {
|
44
|
+
margin: 0.5cm; }
|
45
|
+
|
46
|
+
p, h2, h3 {
|
47
|
+
orphans: 3;
|
48
|
+
widows: 3; }
|
49
|
+
|
50
|
+
h2, h3 {
|
51
|
+
page-break-after: avoid; }
|
@@ -1,23 +1,22 @@
|
|
1
|
-
|
2
|
-
* Import this file using the following HTML or equivalent:
|
3
|
-
* <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" /> */
|
1
|
+
//** SCREEN STYLES **//
|
4
2
|
|
5
|
-
// Imports
|
3
|
+
// Imports --------------------------------------------------------------
|
6
4
|
|
7
5
|
@import "defaults";
|
8
6
|
|
9
|
-
/* Layout
|
7
|
+
/* Layout -------------------------------------------------------------- */
|
10
8
|
|
11
9
|
@include susy;
|
12
10
|
|
13
|
-
// change '
|
14
|
-
|
11
|
+
// change '.container' to match your HTML container element
|
12
|
+
// or @extend it to apply multiple containers on your site.
|
13
|
+
.container {
|
15
14
|
@include container;
|
16
15
|
@include show-grid("grid.png"); }
|
17
16
|
|
18
17
|
// show-grid loads a 64+16x24 grid image by default
|
19
18
|
// For other grid settings, run `compass grid-img 30+10x20`
|
20
|
-
// Where 30 is the column width, 10 is the gutter width,
|
19
|
+
// Where 30 is the column width, 10 is the gutter width,
|
21
20
|
// and 20 is the (optional) line-height.
|
22
21
|
|
23
|
-
/* Styles
|
22
|
+
/* Styles -------------------------------------------------------------- */
|
metadata
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-susy-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
4
|
+
prerelease: true
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 8
|
8
8
|
- 0
|
9
|
-
|
9
|
+
- pre1
|
10
|
+
version: 0.8.0.pre1
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Eric Meyer
|
@@ -14,7 +15,7 @@ autorequire:
|
|
14
15
|
bindir: bin
|
15
16
|
cert_chain: []
|
16
17
|
|
17
|
-
date: 2010-
|
18
|
+
date: 2010-08-12 00:00:00 -06:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|
@@ -31,7 +32,7 @@ dependencies:
|
|
31
32
|
version: 0.10.0
|
32
33
|
type: :runtime
|
33
34
|
version_requirements: *id001
|
34
|
-
description:
|
35
|
+
description: Responsive web design with grids the quick and reliable way.
|
35
36
|
email: eric@oddbird.net
|
36
37
|
executables: []
|
37
38
|
|
@@ -49,7 +50,6 @@ files:
|
|
49
50
|
- README.mkdn
|
50
51
|
- Rakefile
|
51
52
|
- VERSION
|
52
|
-
- compass-susy-plugin.gemspec
|
53
53
|
- lib/susy.rb
|
54
54
|
- lib/susy/compass_plugin.rb
|
55
55
|
- lib/susy/sass_extensions.rb
|
@@ -66,8 +66,9 @@ files:
|
|
66
66
|
- templates/project/manifest.rb
|
67
67
|
- templates/project/print.scss
|
68
68
|
- templates/project/screen.scss
|
69
|
+
- compass-susy-plugin.gemspec
|
69
70
|
has_rdoc: true
|
70
|
-
homepage: http://
|
71
|
+
homepage: http://susy.oddbird.net/
|
71
72
|
licenses: []
|
72
73
|
|
73
74
|
post_install_message:
|
@@ -101,6 +102,6 @@ rubyforge_project: compass-susy-plugin
|
|
101
102
|
rubygems_version: 1.3.6
|
102
103
|
signing_key:
|
103
104
|
specification_version: 3
|
104
|
-
summary: A
|
105
|
+
summary: A responsive grid system plugin for Compass.
|
105
106
|
test_files: []
|
106
107
|
|