seasons 0.9.3.beta3 → 0.9.3.beta4
Sign up to get free protection for your applications and to get access to all the features.
- data/seasons.gemspec +3 -3
- data/stylesheets/seasons/_core.sass +11 -5
- data/stylesheets/seasons/tools/_css3.sass +4 -10
- data/stylesheets/seasons/tools/_grid-tools.sass +11 -9
- data/stylesheets/seasons/tools/_reset.sass +195 -192
- data/templates/project/{_skin.scss → _grid.scss} +0 -0
- data/templates/project/manifest.rb +1 -1
- data/templates/project/style.sass +3 -2
- metadata +3 -3
data/seasons.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{seasons}
|
5
|
-
s.version = "0.9.3.
|
5
|
+
s.version = "0.9.3.beta4"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
|
8
8
|
s.authors = ["Scott Kellum"]
|
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
"stylesheets/seasons/tools/_reset.sass",
|
23
23
|
"templates/project/_chrome.scss",
|
24
24
|
"templates/project/_config.sass",
|
25
|
-
"templates/project/
|
25
|
+
"templates/project/_grid.scss",
|
26
26
|
"templates/project/style.sass",
|
27
27
|
"templates/project/treesaver-0.9.3b.js",
|
28
28
|
"templates/project/toc.json",
|
@@ -35,7 +35,7 @@ Gem::Specification.new do |s|
|
|
35
35
|
s.homepage = %q{http://www.treesaver.net/}
|
36
36
|
s.require_paths = ["lib"]
|
37
37
|
s.rubyforge_project = %q{seasons}
|
38
|
-
s.rubygems_version = %q{0.9.3.
|
38
|
+
s.rubygems_version = %q{0.9.3.beta4}
|
39
39
|
s.summary = %q{The Compass variant of the Seasons framework to style Treesaver.}
|
40
40
|
s.add_dependency(%q<compass>, ["~> 0.11"])
|
41
41
|
end
|
@@ -18,10 +18,16 @@ $columns: 12 !default
|
|
18
18
|
$text-column-span: 3 !default
|
19
19
|
|
20
20
|
|
21
|
+
$row-prefix: r !default
|
22
|
+
$column-prefix: c !default
|
23
|
+
$width-prefix: w !default
|
24
|
+
$height-prefix: h !default
|
25
|
+
$ratio-prefix: r !default
|
26
|
+
|
21
27
|
// IMAGE + PAGE RATIOS
|
22
28
|
=ratio($width, $height, $cols: $columns)
|
23
29
|
@for $i from 1 through $cols
|
24
|
-
|
30
|
+
.#{$ratio-prefix+$width}x#{$height}.#{$width-prefix+$i}, .container.#{$width-prefix+$i} [ratio="#{$width}x#{$height}"] img // Grid ratio, figure ratio.
|
25
31
|
width: grid($i) // Width spans all columns
|
26
32
|
height: round(grid($i) * ( $height / $width )) // Height is the proportion of the width.
|
27
33
|
|
@@ -29,10 +35,10 @@ $text-column-span: 3 !default
|
|
29
35
|
|
30
36
|
// GRID MEASURMENTS
|
31
37
|
@for $i from 1 through $columns // loop defines columns. c1, c2, c3 . . .
|
32
|
-
|
38
|
+
.#{$column-prefix+$i}
|
33
39
|
margin-left: grid($i) - $module-w
|
34
40
|
@for $i from 1 through $columns // loop defines widths. w1, w2, w3 . . .
|
35
|
-
|
41
|
+
.#{$width-prefix+$i}
|
36
42
|
width: grid($i)
|
37
43
|
|
38
44
|
// Vertical grid
|
@@ -40,11 +46,11 @@ $vertical-grid: false !default
|
|
40
46
|
$rows: 10 !default
|
41
47
|
@if $vertical-grid // Generate only if $vertical-grid is true. This code is usually not nessisary.
|
42
48
|
@for $i from 1 through $rows // loop defines rows. r1, r2, r3 . . .
|
43
|
-
|
49
|
+
.#{$row-prefix+$i}
|
44
50
|
position: absolute
|
45
51
|
top: (grid($i, $module-h) - $module-h) + $top
|
46
52
|
@for $i from 1 through $rows // loop defines heights. h1, h2, h3 . . .
|
47
|
-
|
53
|
+
.#{$height-prefix+$i}
|
48
54
|
height: grid($i, $module-h)
|
49
55
|
|
50
56
|
// Lightbox sizes
|
@@ -492,13 +492,13 @@ $prefixes: -webkit- -moz- -ms- -o-
|
|
492
492
|
|
493
493
|
=gradient($startcolor, $endcolor, $startpos: top)
|
494
494
|
background-color: $startcolor / 2 + $endcolor / 2
|
495
|
-
$vertical: false
|
496
|
-
$horizontal: false
|
497
495
|
@if $startpos == "top"
|
498
|
-
|
496
|
+
filter: unquote("progid:DXImageTransform.Microsoft.gradient(startColorstr='")#{$startcolor}unquote("', endColorstr='")#{$endcolor}unquote("')")
|
497
|
+
-ms-filter: unquote("progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startcolor}', endColorstr='#{$endcolor}')")
|
499
498
|
background-image: -webkit-gradient(linear, top left, bottom left, from($startcolor), to($endcolor))
|
500
499
|
@if $startpos == "left"
|
501
|
-
|
500
|
+
filter: unquote("progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='")#{$startcolor}unquote("', endColorstr='")#{$endcolor}unquote("')")
|
501
|
+
-ms-filter: unquote("progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#{$startcolor}', endColorstr='#{$endcolor}')")
|
502
502
|
background-image: -webkit-gradient(linear, top left, top right, from($startcolor), to($endcolor))
|
503
503
|
@if $startpos == "bottom"
|
504
504
|
background-image: -webkit-gradient(linear, bottom left, top left, from($startcolor), to($endcolor))
|
@@ -512,12 +512,6 @@ $prefixes: -webkit- -moz- -ms- -o-
|
|
512
512
|
background-image: -webkit-gradient(linear, $startpos, top right, from($startcolor), to($endcolor))
|
513
513
|
@if $startpos == "bottom right"
|
514
514
|
background-image: -webkit-gradient(linear, $startpos, top left, from($startcolor), to($endcolor))
|
515
|
-
@if $vertical
|
516
|
-
filter: unquote("progid:DXImageTransform.Microsoft.gradient(startColorstr='")#{$startcolor}unquote("', endColorstr='")#{$endcolor}unquote("')")
|
517
|
-
-ms-filter: unquote("progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startcolor}', endColorstr='#{$endcolor}')")
|
518
|
-
@if $horizontal
|
519
|
-
filter: unquote("progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='")#{$startcolor}unquote("', endColorstr='")#{$endcolor}unquote("')")
|
520
|
-
-ms-filter: unquote("progid:DXImageTransform.Microsoft.gradient(GradientType=1, startColorstr='#{$startcolor}', endColorstr='#{$endcolor}')")
|
521
515
|
background-image: -webkit-linear-gradient($startpos, $startcolor, $endcolor)
|
522
516
|
background-image: -moz-linear-gradient($startpos, $startcolor, $endcolor)
|
523
517
|
background-image: -ms-linear-gradient($startpos, $startcolor, $endcolor)
|
@@ -1,17 +1,19 @@
|
|
1
1
|
// GRID MEASUREMENTS
|
2
|
-
@function grid($
|
3
|
-
@return (($measure * $
|
2
|
+
@function grid($units, $measure: $module-w)
|
3
|
+
@return (($measure * $units) + ($gutter * ($units - 1)))
|
4
4
|
|
5
|
-
|
5
|
+
$vertical-grid: false !default
|
6
|
+
=location($across: 1, $width: 1, $down: 1, $height: 1)
|
6
7
|
position: absolute
|
7
8
|
margin-left: grid($across, $module-w) - $module-w
|
8
|
-
|
9
|
-
|
9
|
+
@if $vertical-grid
|
10
|
+
top: (grid($down, $module-h) - $module-h) + $top
|
10
11
|
@if $width == "auto"
|
11
12
|
width: auto
|
12
13
|
@else
|
13
14
|
width: grid($width, $module-w)
|
14
|
-
@if $
|
15
|
-
height
|
16
|
-
|
17
|
-
|
15
|
+
@if $vertical-grid
|
16
|
+
@if $height == "auto"
|
17
|
+
height: auto
|
18
|
+
@else
|
19
|
+
height: grid($height, $module-h)
|
@@ -1,192 +1,195 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
//
|
5
|
-
|
6
|
-
//
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
blockquote
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
sub
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
margin
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
1
|
+
$reset: true !default
|
2
|
+
|
3
|
+
@if $reset
|
4
|
+
// RESET MOSTLY LIFTED FROM THE HTML5RESET :: http://html5reset.org
|
5
|
+
|
6
|
+
// HTML5 RESET....................http://html5reset.org
|
7
|
+
// Eric Meyer.....................http://ericmeyer.com
|
8
|
+
// HTML5 Doctor...................http://html5doctor.com
|
9
|
+
// and the HTML5 Boilerplate......http://html5boilerplate.com
|
10
|
+
|
11
|
+
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var, b, i, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, figure, footer, header, hgroup, menu, nav, section, menu, time, mark, audio, video
|
12
|
+
margin: 0
|
13
|
+
padding: 0
|
14
|
+
border: 0
|
15
|
+
outline: 0
|
16
|
+
font-size: 100%
|
17
|
+
vertical-align: baseline
|
18
|
+
background: transparent
|
19
|
+
cursor: default
|
20
|
+
|
21
|
+
article, aside, figure, footer, header, hgroup, nav, section
|
22
|
+
display: block
|
23
|
+
|
24
|
+
blockquote, q
|
25
|
+
quotes: none
|
26
|
+
|
27
|
+
blockquote:before, blockquote:after, q:before, q:after
|
28
|
+
content: ''
|
29
|
+
content: none
|
30
|
+
|
31
|
+
a
|
32
|
+
margin: 0
|
33
|
+
padding: 0
|
34
|
+
font-size: 100%
|
35
|
+
vertical-align: baseline
|
36
|
+
background: transparent
|
37
|
+
color: inherit
|
38
|
+
text-decoration: inherit
|
39
|
+
|
40
|
+
del
|
41
|
+
text-decoration: line-through
|
42
|
+
|
43
|
+
abbr[title], dfn[title]
|
44
|
+
border-bottom: 1px dotted #000
|
45
|
+
cursor: help
|
46
|
+
|
47
|
+
.zoomable, .zoomable *
|
48
|
+
cursor: -webkit-zoom-in
|
49
|
+
cursor: -moz-zoom-in
|
50
|
+
cursor: -ms-zoom-in
|
51
|
+
cursor: -o-zoom-in
|
52
|
+
cursor: zoom-in
|
53
|
+
|
54
|
+
.lightbox, .lightbox *
|
55
|
+
cursor: -webkit-zoom-out
|
56
|
+
cursor: -moz-zoom-out
|
57
|
+
cursor: -ms-zoom-out
|
58
|
+
cursor: -o-zoom-out
|
59
|
+
cursor: zoom-out
|
60
|
+
|
61
|
+
|
62
|
+
// tables still need cellspacing="0" in the markup
|
63
|
+
|
64
|
+
table
|
65
|
+
border-collapse: collapse
|
66
|
+
border-spacing: 0
|
67
|
+
th
|
68
|
+
font-weight: bold
|
69
|
+
vertical-align: bottom
|
70
|
+
td
|
71
|
+
font-weight: normal
|
72
|
+
vertical-align: top
|
73
|
+
|
74
|
+
hr
|
75
|
+
display: block
|
76
|
+
height: 1px
|
77
|
+
border: 0
|
78
|
+
margin: 1em 0
|
79
|
+
padding: 0
|
80
|
+
|
81
|
+
input, select
|
82
|
+
vertical-align: middle
|
83
|
+
|
84
|
+
pre
|
85
|
+
white-space: pre /* CSS2 */
|
86
|
+
white-space: pre-wrap /* CSS 2.1 */
|
87
|
+
white-space: pre-line /* CSS 3 (and 2.1 as well, actually) */
|
88
|
+
word-wrap: break-word /* IE */
|
89
|
+
|
90
|
+
|
91
|
+
input[type="radio"]
|
92
|
+
vertical-align: text-bottom
|
93
|
+
input[type="checkbox"]
|
94
|
+
vertical-align: bottom
|
95
|
+
*vertical-align: baseline
|
96
|
+
.ie6 input
|
97
|
+
vertical-align: text-bottom
|
98
|
+
|
99
|
+
select, input, textarea
|
100
|
+
font: 99% sans-serif
|
101
|
+
|
102
|
+
table
|
103
|
+
font-size: inherit
|
104
|
+
font: 100%
|
105
|
+
|
106
|
+
|
107
|
+
// Accessible focus treatment
|
108
|
+
// people.opera.com/patrickl/experiments/keyboard/test
|
109
|
+
|
110
|
+
a:hover, a:active
|
111
|
+
outline: none
|
112
|
+
|
113
|
+
small
|
114
|
+
font-size: 85%
|
115
|
+
|
116
|
+
strong, th
|
117
|
+
font-weight: bold
|
118
|
+
|
119
|
+
td, td img
|
120
|
+
vertical-align: top
|
121
|
+
|
122
|
+
|
123
|
+
// Make sure sup and sub don't screw with your line-heights
|
124
|
+
// gist.github.com/413930
|
125
|
+
|
126
|
+
sub, sup
|
127
|
+
font-size: 75%
|
128
|
+
line-height: 0
|
129
|
+
position: relative
|
130
|
+
sup
|
131
|
+
top: -0.5em
|
132
|
+
sub
|
133
|
+
bottom: -0.25em
|
134
|
+
|
135
|
+
|
136
|
+
// standardize any monospaced elements
|
137
|
+
|
138
|
+
pre, code, kbd, samp
|
139
|
+
font-family: monospace, sans-serif
|
140
|
+
|
141
|
+
// hand cursor on clickable elements, text on editable text only, default on everything else.
|
142
|
+
input
|
143
|
+
cursor: auto
|
144
|
+
textarea
|
145
|
+
cursor: text
|
146
|
+
a, a *, .clickable, label, input[type=button], input[type=submit], input[type=reset], button, #nextPage, #previousPage, #nextPage *, #previousPage *
|
147
|
+
cursor: pointer
|
148
|
+
|
149
|
+
|
150
|
+
// Webkit browsers add a 2px margin outside the chrome of form elements
|
151
|
+
|
152
|
+
button, input, select, textarea
|
153
|
+
margin: 0
|
154
|
+
|
155
|
+
|
156
|
+
// make buttons play nice in IE
|
157
|
+
|
158
|
+
button
|
159
|
+
width: auto
|
160
|
+
overflow: visible
|
161
|
+
|
162
|
+
|
163
|
+
// scale images in IE7 more attractively
|
164
|
+
|
165
|
+
.ie7 img
|
166
|
+
-ms-interpolation-mode: bicubic
|
167
|
+
|
168
|
+
|
169
|
+
// prevent BG image flicker upon hover
|
170
|
+
|
171
|
+
.ie6 html
|
172
|
+
filter: expression(document.execCommand("BackgroundImageCache", false, true))
|
173
|
+
|
174
|
+
|
175
|
+
// let's clear some floats
|
176
|
+
|
177
|
+
.clearfix:before, .clearfix:after
|
178
|
+
content: "\0020"
|
179
|
+
display: block
|
180
|
+
height: 0
|
181
|
+
overflow: hidden
|
182
|
+
.clearfix:after
|
183
|
+
clear: both
|
184
|
+
.clearfix
|
185
|
+
zoom: 1
|
186
|
+
|
187
|
+
ins
|
188
|
+
background-color: #fcd700
|
189
|
+
color: #000
|
190
|
+
text-decoration: none
|
191
|
+
mark
|
192
|
+
background-color: #fcd700
|
193
|
+
color: #000
|
194
|
+
font-style: italic
|
195
|
+
font-weight: bold
|
File without changes
|
@@ -8,6 +8,7 @@
|
|
8
8
|
// It creates a flexable yet solid foundation for building templates.
|
9
9
|
|
10
10
|
// IMPORT TOOLS AND RESET:
|
11
|
+
$reset: true // set to false if you don’t want the bundled reset
|
11
12
|
@import seasons/tools
|
12
13
|
|
13
14
|
|
@@ -15,8 +16,8 @@
|
|
15
16
|
// Configuration:
|
16
17
|
@import config
|
17
18
|
|
18
|
-
//
|
19
|
-
@import
|
19
|
+
// grid:
|
20
|
+
@import grid
|
20
21
|
|
21
22
|
// Chrome:
|
22
23
|
@import chrome
|
metadata
CHANGED
@@ -6,8 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 9
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.9.3.
|
9
|
+
- beta4
|
10
|
+
version: 0.9.3.beta4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Kellum
|
@@ -52,7 +52,7 @@ files:
|
|
52
52
|
- stylesheets/seasons/tools/_reset.sass
|
53
53
|
- templates/project/_chrome.scss
|
54
54
|
- templates/project/_config.sass
|
55
|
-
- templates/project/
|
55
|
+
- templates/project/_grid.scss
|
56
56
|
- templates/project/style.sass
|
57
57
|
- templates/project/treesaver-0.9.3b.js
|
58
58
|
- templates/project/toc.json
|