ericam-compass-susy-plugin 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +121 -47
- data/VERSION +1 -1
- data/compass-susy-plugin.gemspec +1 -1
- data/lib/susy/sass_extensions.rb +19 -4
- data/sass/susy/_grid.sass +55 -17
- data/sass/susy/_utils.sass +71 -61
- data/templates/project/_base.sass +33 -29
- data/templates/project/ie.sass +0 -7
- data/templates/project/print.sass +0 -8
- data/templates/project/screen.sass +5 -9
- metadata +1 -1
data/README.mkdn
CHANGED
@@ -1,79 +1,153 @@
|
|
1
|
-
Susy - Compass Plugin
|
1
|
+
Susy - Compass Plugin
|
2
2
|
================================
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
Susy is
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
4
|
+
Susy is a semantic CSS framework creator entirely native to
|
5
|
+
[Compass](http://compass-style.org/).
|
6
|
+
Susy is an expert at fluid grids in an elastic (or fluid, or fixed) shell that
|
7
|
+
will never activate that bloody side-scroll bar. Susy sets your width on the
|
8
|
+
outer element (`container`), adds a `max-width` of `100%` and builds the rest
|
9
|
+
of your grid in percentages. The philosophy and technique are based on
|
10
|
+
[Natalie Downe](http://natbat.net/)'s "[CSS
|
11
|
+
Systems](http://natbat.net/2008/Sep/28/css-systems/)" - which introduces
|
12
|
+
difficult math in the service of beautiful structure. With the power of
|
13
|
+
Compass/Sass, Susy will do that math for you.
|
14
|
+
|
15
|
+
Using simple mixins, columns can be created, suffixed, prefixed, and nested
|
16
|
+
easily - and always in flexible percentages.
|
17
|
+
|
18
|
+
Install
|
13
19
|
=======
|
14
20
|
|
15
|
-
sudo gem sources --add http://gems.github.com/
|
16
|
-
sudo gem install chriseppstein-compass
|
21
|
+
sudo gem sources --add http://gems.github.com/
|
22
|
+
sudo gem install chriseppstein-compass
|
17
23
|
sudo gem install ericam-compass-susy-plugin
|
18
24
|
|
19
|
-
Create a Susy-based Compass Project
|
25
|
+
Create a Susy-based Compass Project
|
20
26
|
==================================
|
21
27
|
|
22
28
|
compass -r susy -f susy <project name>
|
23
29
|
|
24
|
-
Then edit your `_base.sass`, `screen.sass` and `print.sass` files accordingly.
|
30
|
+
Then edit your `_base.sass`, `screen.sass` and `print.sass` files accordingly.
|
31
|
+
A reset is added automatically.
|
25
32
|
|
26
|
-
Customizing your Grid System
|
33
|
+
Customizing your Grid System
|
27
34
|
============================
|
28
35
|
|
29
|
-
|
30
|
-
|
31
|
-
your
|
36
|
+
Start in your `_base.sass` file. That's where you set all your defaults.
|
37
|
+
|
38
|
+
To create a grid system, set the `!grid_unit` (units that your grid is based
|
39
|
+
in), `!total_cols` (total number of columns in your grid), `!col_width` (width
|
40
|
+
of columns), and `!gutter_width` (width of gutters) variables in your
|
41
|
+
`_base.sass`.
|
32
42
|
|
33
43
|
Example:
|
34
44
|
|
35
|
-
!grid_unit = "em"
|
36
|
-
!total_cols = 10
|
37
|
-
!col_width = 7
|
45
|
+
!grid_unit = "em"
|
46
|
+
!total_cols = 10
|
47
|
+
!col_width = 7
|
38
48
|
!gutter_width = 1
|
49
|
+
!side_gutter_width = 2
|
39
50
|
|
40
|
-
|
41
|
-
|
51
|
+
The default values are 16 columns, 4em column widths, and 1em gutters and side
|
52
|
+
gutters that match the internal ones.
|
42
53
|
|
43
|
-
|
54
|
+
Of course, designing in `em`'s, you'll want to get your font sizes set to make
|
55
|
+
this all meaningful. Do that by assigning a pixel value (without the units) to
|
56
|
+
`!base_font_size_px` and `!base_line_height_px`. Susy will convert those to a
|
57
|
+
percentage of the common browser default (16px) and apply them to your
|
58
|
+
`grid-container`.
|
44
59
|
|
45
|
-
|
46
|
-
|
60
|
+
Example:
|
61
|
+
|
62
|
+
!base_font_size_px = 14
|
63
|
+
!base_line_height_px = 16
|
47
64
|
|
48
|
-
|
65
|
+
The default values are 12px fonts with an 18px line-height.
|
49
66
|
|
50
|
-
|
51
|
-
|
52
|
-
|
67
|
+
`_base.sass` also has everything you need for setting default font families,
|
68
|
+
colors to reuse throughout, and default styles for all those elements that
|
69
|
+
ought have a default (but don't because of the reset).
|
70
|
+
|
71
|
+
Making Semantic Grids
|
72
|
+
=====================
|
53
73
|
|
54
|
-
* Use the `+
|
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.
|
55
78
|
|
56
|
-
* Use the `+
|
79
|
+
* Use the `+container` mixin to declare your container
|
80
|
+
element. Besides building the grid shell, this sets your horizontal
|
81
|
+
margins to auto (for centered designs) and returns your
|
82
|
+
text-alignment to "left". Change the internal text alignment with an
|
83
|
+
optional `left | center | right` argument.
|
57
84
|
|
58
|
-
* Use the `+
|
59
|
-
|
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`).
|
60
89
|
|
90
|
+
* 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.
|
61
94
|
|
95
|
+
* Use the `+prefix` and `+suffix` mixins with one argument to add that
|
96
|
+
many grid columns as margin before or after a grid element. These
|
97
|
+
mixins also take an optional second argument, the size in columns of
|
98
|
+
the containing element when nested.
|
62
99
|
|
63
100
|
Example:
|
64
101
|
|
65
|
-
|
66
|
-
+
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
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
|
119
|
+
|
120
|
+
Extra Utility Mixins
|
76
121
|
=====================
|
77
122
|
|
78
|
-
Extra utilities are included in Susy's `utils.sass` file, with additional list
|
79
|
-
experimental (CSS3/proprietary) CSS, and more.
|
123
|
+
Extra utilities are included in Susy's `utils.sass` file, with additional list
|
124
|
+
options, experimental (CSS3/proprietary) CSS, and more.
|
125
|
+
|
126
|
+
* `+show-grid(!src)` will remove all your backgrounds and repeat the specified
|
127
|
+
grid image on an element. Good for testing your baseline grid.
|
128
|
+
|
129
|
+
* `+inline-block-list([!horizontalpadding])` for making lists inline-block
|
130
|
+
when floating just won't do the trick.
|
131
|
+
|
132
|
+
* `+hide` for hiding content from visual browsers while keeping accessability
|
133
|
+
intact.
|
134
|
+
|
135
|
+
* `+skip-link([!top = 0, !right, !bottom, !left])` hide a link, and then show
|
136
|
+
it again on focus. the TRBL settings allow you to place it absolutely on
|
137
|
+
display. Default will be top left of the positioning context.
|
138
|
+
|
139
|
+
* `+inline-italic` because some fonts/browsers add line-height when you
|
140
|
+
explicitly set italics on an inline element - this takes some away.
|
141
|
+
|
142
|
+
And then the fun stuff:
|
143
|
+
|
144
|
+
* `+opacity(!opacity)` adds cross-browser opacity settings (takes a range of 0
|
145
|
+
- 1).
|
146
|
+
|
147
|
+
* `+border-radius(!radius)` (`+border-bottom-left-radius` etc. all work) for
|
148
|
+
rounded corners in supporting browsers.
|
149
|
+
|
150
|
+
* `+box-sizing(!model)` for setting the box sizing model in supporting browsers.
|
151
|
+
|
152
|
+
* `+box-shadow(!verticaloffset, !horizontaloffset, !blur, !color)` for
|
153
|
+
box-shadow in webkit and CSS3.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
data/compass-susy-plugin.gemspec
CHANGED
data/lib/susy/sass_extensions.rb
CHANGED
@@ -2,25 +2,32 @@ require 'sass'
|
|
2
2
|
|
3
3
|
module Sass::Script::Functions
|
4
4
|
# set the Susy column and gutter widths and number of columns
|
5
|
-
# column and
|
5
|
+
# column, gutter and padding widths should be sent as unitless numbers,
|
6
6
|
# though they may "really" be ems or pixels (_grid.sass handles units).
|
7
7
|
# return total width of container (without units)
|
8
|
-
def container(total_columns, column_width, gutter_width)
|
8
|
+
def container(total_columns, column_width, gutter_width, side_gutter_width)
|
9
9
|
@@susy_total_columns = total_columns.value
|
10
10
|
@@susy_column_width = Float(column_width.value)
|
11
11
|
@@susy_gutter_width = Float(gutter_width.value)
|
12
|
+
@@susy_side_gutter_width = Float(side_gutter_width.value)
|
12
13
|
context
|
13
14
|
end
|
14
15
|
|
15
|
-
# return the width of 'n' columns plus 'n - 1' gutters
|
16
|
+
# return the width of 'n' columns plus 'n - 1' gutters
|
17
|
+
# plus page padding in non-nested contexts
|
16
18
|
def context(n = nil)
|
17
19
|
begin
|
18
20
|
n = n.value
|
19
21
|
rescue NoMethodError
|
22
|
+
n = false
|
23
|
+
end
|
24
|
+
sg = 0
|
25
|
+
if !n
|
20
26
|
n = @@susy_total_columns
|
27
|
+
sg = @@susy_side_gutter_width
|
21
28
|
end
|
22
29
|
c, g = [@@susy_column_width, @@susy_gutter_width]
|
23
|
-
Sass::Script::Number.new((n * c) + ((n - 1) * g))
|
30
|
+
Sass::Script::Number.new(((n * c) + ((n - 1) * g)) + (sg * 2))
|
24
31
|
end
|
25
32
|
|
26
33
|
# return the percentage width of 'number' columns in a context of
|
@@ -40,6 +47,14 @@ module Sass::Script::Functions
|
|
40
47
|
Sass::Script::Number.new((g / context_width) * 100)
|
41
48
|
end
|
42
49
|
|
50
|
+
# return the percentage width of a single side gutter in a context of
|
51
|
+
# 'context_columns'
|
52
|
+
def side_gutter(context_columns = nil)
|
53
|
+
context_width = context(context_columns).value
|
54
|
+
sg = @@susy_side_gutter_width
|
55
|
+
Sass::Script::Number.new((sg / context_width) * 100)
|
56
|
+
end
|
57
|
+
|
43
58
|
# return the percentage width of a single column in a context of
|
44
59
|
# 'context_columns'
|
45
60
|
def column(context_columns = nil)
|
data/sass/susy/_grid.sass
CHANGED
@@ -1,31 +1,69 @@
|
|
1
|
+
//** Grid Settings **//
|
2
|
+
|
3
|
+
//**
|
4
|
+
Your basic units for the grid
|
1
5
|
!grid_unit ||= "em"
|
2
6
|
!total_cols ||= 16
|
3
7
|
!col_width ||= 4
|
4
8
|
!gutter_width ||= 1
|
5
|
-
!
|
9
|
+
!side_gutter_width ||= !gutter_width
|
10
|
+
!container_width = container(!total_cols, !col_width, !gutter_width, !side_gutter_width)
|
11
|
+
|
6
12
|
|
7
|
-
|
13
|
+
//**
|
14
|
+
set on the outer grid containing element.
|
15
|
+
=container(!align = "left")
|
16
|
+
// clear all floated columns
|
8
17
|
+clearfix
|
9
|
-
|
10
|
-
:
|
18
|
+
// align the text back to the left (override for other alignments)
|
19
|
+
:text-align= !align
|
20
|
+
// use auto horizontal margins to center your page in the body
|
21
|
+
:margin
|
22
|
+
:left auto
|
23
|
+
:right auto
|
24
|
+
// set the page width based on column settings
|
11
25
|
:width= !container_width + !grid_unit
|
12
|
-
|
26
|
+
// never exceed 100% of the browser window (no side-scrolling)
|
27
|
+
:max-width 100%
|
13
28
|
|
14
|
-
|
29
|
+
|
30
|
+
//**
|
31
|
+
set on any column element, even nested ones.
|
32
|
+
the first agument [required] is the number of columns to span
|
33
|
+
the second argument is the context (columns spanned by parent)
|
34
|
+
this is required in any nested context
|
35
|
+
by default a grid-col is floated left with a right gutter
|
36
|
+
override that with +float("right"), +first or +last
|
37
|
+
=columns(!n, !context = false)
|
38
|
+
// the width of the column is set as a percentage of the context
|
15
39
|
:width= columns(!n, !context) + "%"
|
16
|
-
|
17
|
-
|
40
|
+
// the column is floated left
|
41
|
+
+float("left")
|
42
|
+
// the right gutter is added as a percentage of the context
|
18
43
|
:margin-right= gutter(!context) + "%"
|
19
44
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
=right
|
24
|
-
:display inline
|
25
|
-
:float right
|
26
|
-
|
27
|
-
=grid-prefix(!n, !context = !total_cols)
|
45
|
+
//**
|
46
|
+
set on any column to add empty colums before or after
|
47
|
+
=prefix(!n, !context = false)
|
28
48
|
:padding-left= columns(!n, !context) + gutter(!context) + "%"
|
29
49
|
|
30
|
-
=
|
50
|
+
=suffix(!n, !context = false)
|
31
51
|
:padding-right= columns(!n, !context) + gutter(!context) + "%"
|
52
|
+
|
53
|
+
//**
|
54
|
+
set on the first column of a row to take side-gutters into account
|
55
|
+
- must override `!nested` for nested columns
|
56
|
+
=alpha(!nested = false)
|
57
|
+
@if !nested
|
58
|
+
:margin-left 0
|
59
|
+
@else
|
60
|
+
:margin-left= side_gutter() + "%"
|
61
|
+
|
62
|
+
//**
|
63
|
+
set on the last column of a row to take side-gutters into account
|
64
|
+
- must override `!nested` for nested columns
|
65
|
+
=omega(!nested = false)
|
66
|
+
@if !nested
|
67
|
+
:margin-right 0
|
68
|
+
@else
|
69
|
+
:margin-right= side_gutter() + "%"
|
data/sass/susy/_utils.sass
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
@import compass/utilities.sass
|
2
2
|
|
3
|
-
|
3
|
+
//**
|
4
|
+
removes all background images and colors from the element and offspring
|
5
|
+
then adds a grid image of your choosing
|
4
6
|
=show-grid(!src)
|
5
7
|
:background
|
6
8
|
:image= "url("!src")"
|
@@ -9,26 +11,28 @@
|
|
9
11
|
*
|
10
12
|
:background transparent
|
11
13
|
|
12
|
-
|
14
|
+
//**
|
15
|
+
an inline-block list that works in IE
|
16
|
+
for those awkward moments when a floated horizontal list just wont cut it
|
13
17
|
=inline-block-list(!hpad = 0)
|
14
18
|
+horizontal-list-container
|
15
19
|
li
|
16
20
|
+no-bullet
|
21
|
+
:white-space no-wrap
|
17
22
|
+inline-block
|
18
23
|
:padding
|
19
24
|
:left= !hpad
|
20
25
|
:right= !hpad
|
21
|
-
&.first, &:first-child
|
22
|
-
:padding-left 0px
|
23
|
-
&.last, &:last-child
|
24
|
-
:padding-right 0px
|
25
26
|
|
26
|
-
|
27
|
+
//**
|
28
|
+
hide an element from the viewport, but keep it around for accessability
|
27
29
|
=hide
|
28
30
|
:position absolute
|
29
31
|
:top -9999em
|
30
32
|
|
31
|
-
|
33
|
+
//**
|
34
|
+
a skip-to-content accessibility link that will appear on focus
|
35
|
+
set the location arguments if you care where it appears
|
32
36
|
=skip-link(!t = 0, !r = false, !b = false, !l = false)
|
33
37
|
+hide
|
34
38
|
:display block
|
@@ -43,69 +47,75 @@
|
|
43
47
|
:left= !l
|
44
48
|
:z-index 999
|
45
49
|
|
46
|
-
//
|
47
|
-
=inline-italic
|
48
|
-
:font-style italic
|
49
|
-
:line-height .5
|
50
|
+
// EXPERIMENTAL
|
50
51
|
|
52
|
+
//**
|
53
|
+
transparency for everyone!
|
54
|
+
=opacity(!o = 1)
|
55
|
+
:filter= "alpha(opacity=" + (!o*100) + ")"
|
56
|
+
:-moz-opacity= !o
|
57
|
+
:-khtml-opacity= !o
|
58
|
+
:opacity= !o
|
51
59
|
|
52
|
-
|
60
|
+
//**
|
61
|
+
rounded corners for Mozilla, Webkit and the future
|
62
|
+
=border-radius(!r)
|
63
|
+
/* Mozilla (FireFox)
|
64
|
+
-moz-border-radius = !r
|
65
|
+
/* Webkit (Safari, Chrome)
|
66
|
+
-webkit-border-radius = !r
|
67
|
+
/* CSS3
|
68
|
+
border-radius = !r
|
53
69
|
|
54
|
-
=
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
70
|
+
=border-top-left-radius(!tl)
|
71
|
+
/* Mozilla (FireFox)
|
72
|
+
-moz-border-radius-topleft= !tl
|
73
|
+
/* Webkit (Safari, Chrome)
|
74
|
+
-webkit-border-top-left-radius= !tl
|
75
|
+
/* CSS3
|
76
|
+
border-top-left-radius= !tl
|
59
77
|
|
60
|
-
=
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
/* Mozilla (FireFox)
|
84
|
-
-moz-border-radius-bottomright= !br
|
85
|
-
/* Webkit (Safari, Chrome)
|
86
|
-
-webkit-border-bottom-right-radius= !br
|
87
|
-
/* CSS3
|
88
|
-
border-bottom-right-radius= !br
|
89
|
-
@if !bl
|
90
|
-
/* Mozilla (FireFox)
|
91
|
-
-moz-border-radius-bottomleft= !bl
|
92
|
-
/* Webkit (Safari, Chrome)
|
93
|
-
-webkit-border-bottom-left-radius= !bl
|
94
|
-
/* CSS3
|
95
|
-
border-bottom-left-radius= !bl
|
78
|
+
=border-top-right-radius(!tr)
|
79
|
+
/* Mozilla (FireFox)
|
80
|
+
-moz-border-radius-topright= !tr
|
81
|
+
/* Webkit (Safari, Chrome)
|
82
|
+
-webkit-border-top-right-radius= !tr
|
83
|
+
/* CSS3
|
84
|
+
border-top-right-radius= !tr
|
85
|
+
|
86
|
+
=border-bottom-right-radius(!br)
|
87
|
+
/* Mozilla (FireFox)
|
88
|
+
-moz-border-radius-bottomright= !br
|
89
|
+
/* Webkit (Safari, Chrome)
|
90
|
+
-webkit-border-bottom-right-radius= !br
|
91
|
+
/* CSS3
|
92
|
+
border-bottom-right-radius= !br
|
93
|
+
|
94
|
+
=border-bottom-left-radius(!bl)
|
95
|
+
/* Mozilla (FireFox)
|
96
|
+
-moz-border-radius-bottomleft= !bl
|
97
|
+
/* Webkit (Safari, Chrome)
|
98
|
+
-webkit-border-bottom-left-radius= !bl
|
99
|
+
/* CSS3
|
100
|
+
border-bottom-left-radius= !bl
|
96
101
|
|
97
|
-
|
102
|
+
//**
|
103
|
+
change the box model for Mozilla, Webkit, IE8 and the future
|
104
|
+
=box-sizing(!bs)
|
98
105
|
/* Mozilla (FireFox)
|
99
|
-
-moz-box-sizing= !
|
106
|
+
-moz-box-sizing= !bs
|
100
107
|
/* Webkit (Safari, Chrome)
|
101
|
-
-webkit-box-sizing= !
|
108
|
+
-webkit-box-sizing= !bs
|
102
109
|
/* IE (8)
|
103
|
-
-ms-box-sizing= !
|
110
|
+
-ms-box-sizing= !bs
|
104
111
|
/* CSS3
|
105
|
-
box-sizing= !
|
112
|
+
box-sizing= !bs
|
106
113
|
|
107
|
-
|
114
|
+
//**
|
115
|
+
box shadow for Webkit and the future
|
116
|
+
- arguments are horizontal offset, vertical offset, blur and color
|
117
|
+
=box-shadow(!ho, !vo, !b, !c )
|
108
118
|
/* Webkit (Safari, Chrome)
|
109
119
|
-webkit-box-shadow= !ho !vo !b !c
|
110
120
|
/* CSS3
|
111
|
-
box-shadow= !ho !vo !b !c
|
121
|
+
box-shadow= !ho !vo !b !c
|
@@ -1,41 +1,44 @@
|
|
1
|
-
|
2
|
-
// Susy:
|
3
|
-
// by Eric Meyer
|
4
|
-
//
|
1
|
+
//**
|
2
|
+
// Susy: Elastic-Fluid grids without all the math
|
3
|
+
// by Eric Meyer and OddBird Collective
|
4
|
+
// oddbird.
|
5
|
+
//**
|
5
6
|
|
6
7
|
|
7
8
|
/* RESET STYLES
|
8
9
|
@import compass/reset.sass
|
9
10
|
|
10
|
-
// GRID
|
11
|
-
// override these values as needed for your grid layout
|
12
11
|
|
12
|
+
//**
|
13
|
+
GRID
|
14
|
+
un-comment and override these values as needed for your grid layout
|
15
|
+
(defaults are shown)
|
13
16
|
// !grid_unit = "em"
|
14
|
-
// !total_cols =
|
15
|
-
// !col_width =
|
17
|
+
// !total_cols = 16
|
18
|
+
// !col_width = 4
|
16
19
|
// !gutter_width = 1
|
20
|
+
// !side_gutter_width = !gutter_width
|
17
21
|
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
//**
|
23
|
+
FONT-SIZE
|
24
|
+
un-comment and override these values as needed (defaults are shown)
|
25
|
+
- you set the font and line heights in pixels.
|
26
|
+
- Susy will do the math and give you !base_font_size and !base_line_height
|
27
|
+
variables, set flexibly against the common browser default of 16px
|
28
|
+
// !base_font_size_px = 12
|
29
|
+
// !base_line_height_px = 18
|
30
|
+
|
31
|
+
// SUSY
|
32
|
+
// (don't move this @import above the GRID and FONT-SIZE overrides)
|
33
|
+
@import susy/susy.sass
|
22
34
|
|
23
35
|
|
24
36
|
// COLORS
|
37
|
+
// set any colors you will need later
|
25
38
|
!dark = #000
|
26
39
|
!light = #fff
|
27
40
|
|
28
|
-
|
29
|
-
// FONT PRESETS
|
30
|
-
|
31
|
-
// You set the font and line heights in pixels
|
32
|
-
!base_font_size_px ||= 12
|
33
|
-
!base_line_height_px ||= 18
|
34
|
-
|
35
|
-
// SUSY can do the math to make that relative
|
36
|
-
!base_line_height = (!base_line_height_px / !base_font_size_px) + "em"
|
37
|
-
!base_font_size = (!base_font_size_px / 16) + "em"
|
38
|
-
|
41
|
+
// FONTS
|
39
42
|
// Give yourself some font stacks to work with
|
40
43
|
=sans-family
|
41
44
|
:font-family 'Futura Medium', 'Century Gothic', AppleGothic, sans-serif
|
@@ -70,19 +73,20 @@ input[type=submit]
|
|
70
73
|
/* block tags
|
71
74
|
p
|
72
75
|
|
73
|
-
=
|
76
|
+
=list-default(!ol = false)
|
74
77
|
@if !ol
|
75
|
-
:list-style decimal
|
76
|
-
:margin 0 1.5em 1.5em
|
78
|
+
:list-style decimal
|
79
|
+
:margin 0 1.5em 1.5em 1.5em
|
77
80
|
@else
|
78
81
|
:list-style disc
|
79
|
-
:margin 0 1.5em 1.5em 1.5em
|
82
|
+
:margin 0 1.5em 1.5em 1.5em
|
83
|
+
|
80
84
|
|
81
85
|
ol
|
82
|
-
+
|
86
|
+
+list-default("ol")
|
83
87
|
|
84
88
|
ul
|
85
|
-
+
|
89
|
+
+list-default
|
86
90
|
|
87
91
|
blockquote
|
88
92
|
|
data/templates/project/ie.sass
CHANGED
@@ -5,11 +5,4 @@
|
|
5
5
|
<link href="/stylesheets/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
|
6
6
|
<![endif]-->
|
7
7
|
|
8
|
-
/*
|
9
|
-
Theme Name: DEFAULT
|
10
|
-
Theme URI: http://eric.dirtcircle.com/
|
11
|
-
Description: A default style using the SUSY plugin for Compass/SASS
|
12
|
-
Version: 1
|
13
|
-
Author: Eric Meyer
|
14
|
-
|
15
8
|
@import base.sass
|
@@ -2,13 +2,5 @@
|
|
2
2
|
Welcome to Susy. Use this file to define print styles.
|
3
3
|
Import this file using the following HTML or equivalent:
|
4
4
|
<link href="/stylesheets/print.css" media="print" rel="stylesheet" type="text/css" />
|
5
|
-
|
6
|
-
/*
|
7
|
-
Theme Name: DEFAULT
|
8
|
-
Theme URI: http://eric.dirtcircle.com/
|
9
|
-
Description: A default style using the SUSY plugin for Compass/SASS
|
10
|
-
Version: 1
|
11
|
-
Author: Eric Meyer
|
12
|
-
|
13
5
|
|
14
6
|
@import base.sass
|
@@ -3,13 +3,6 @@
|
|
3
3
|
Import this file using the following HTML or equivalent:
|
4
4
|
<link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" />
|
5
5
|
|
6
|
-
/*
|
7
|
-
Theme Name: DEFAULT
|
8
|
-
Theme URI: http://eric.dirtcircle.com/
|
9
|
-
Description: A default style using the SUSY plugin for Compass/SASS
|
10
|
-
Version: 1
|
11
|
-
Author: Eric Meyer
|
12
|
-
|
13
6
|
@import base.sass
|
14
7
|
|
15
8
|
/* STRUCTURE
|
@@ -25,5 +18,8 @@
|
|
25
18
|
|
26
19
|
|
27
20
|
/* DEBUG
|
28
|
-
|
29
|
-
|
21
|
+
uncomment, adjust and use for debugging
|
22
|
+
|
23
|
+
/**
|
24
|
+
#page
|
25
|
+
+show-grid("../images/grid.gif")
|