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 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.beta3"
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/_skin.scss",
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.beta3}
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
- .r#{$width}x#{$height}.w#{$i}, .container.w#{$i} [ratio="#{$width}x#{$height}"] img // Grid ratio, figure ratio.
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
- .c#{$i}
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
- .w#{$i}
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
- .r#{$i}
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
- .h#{$i}
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
- $vertical: true
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
- $horizontal: true
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($unit, $measure: $module-w)
3
- @return (($measure * $unit) + ($gutter * ($unit - 1)))
2
+ @function grid($units, $measure: $module-w)
3
+ @return (($measure * $units) + ($gutter * ($units - 1)))
4
4
 
5
- =location($across: 1, $down: 1, $width: 1, $height: 1)
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
- position: absolute
9
- top: (grid($down, $module-h) - $module-h) + $top
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 $height == "auto"
15
- height: auto
16
- @else
17
- height: grid($height, $module-h)
15
+ @if $vertical-grid
16
+ @if $height == "auto"
17
+ height: auto
18
+ @else
19
+ height: grid($height, $module-h)
@@ -1,192 +1,195 @@
1
- // RESET MOSTLY LIFTED FROM THE HTML5RESET :: http://html5reset.org
2
-
3
- // HTML5 RESET....................http://html5reset.org
4
- // Eric Meyer.....................http://ericmeyer.com
5
- // HTML5 Doctor...................http://html5doctor.com
6
- // and the HTML5 Boilerplate......http://html5boilerplate.com
7
-
8
- 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
9
- margin: 0
10
- padding: 0
11
- border: 0
12
- outline: 0
13
- font-size: 100%
14
- vertical-align: baseline
15
- background: transparent
16
- cursor: default
17
-
18
- article, aside, figure, footer, header, hgroup, nav, section
19
- display: block
20
-
21
- blockquote, q
22
- quotes: none
23
-
24
- blockquote:before, blockquote:after, q:before, q:after
25
- content: ''
26
- content: none
27
-
28
- a
29
- margin: 0
30
- padding: 0
31
- font-size: 100%
32
- vertical-align: baseline
33
- background: transparent
34
- color: inherit
35
- text-decoration: inherit
36
-
37
- del
38
- text-decoration: line-through
39
-
40
- abbr[title], dfn[title]
41
- border-bottom: 1px dotted #000
42
- cursor: help
43
-
44
- .zoomable, .zoomable *
45
- cursor: -webkit-zoom-in
46
- cursor: -moz-zoom-in
47
- cursor: -ms-zoom-in
48
- cursor: -o-zoom-in
49
- cursor: zoom-in
50
-
51
- .lightbox, .lightbox *
52
- cursor: -webkit-zoom-out
53
- cursor: -moz-zoom-out
54
- cursor: -ms-zoom-out
55
- cursor: -o-zoom-out
56
- cursor: zoom-out
57
-
58
-
59
- // tables still need cellspacing="0" in the markup
60
-
61
- table
62
- border-collapse: collapse
63
- border-spacing: 0
64
- th
65
- font-weight: bold
66
- vertical-align: bottom
67
- td
68
- font-weight: normal
69
- vertical-align: top
70
-
71
- hr
72
- display: block
73
- height: 1px
74
- border: 0
75
- margin: 1em 0
76
- padding: 0
77
-
78
- input, select
79
- vertical-align: middle
80
-
81
- pre
82
- white-space: pre /* CSS2 */
83
- white-space: pre-wrap /* CSS 2.1 */
84
- white-space: pre-line /* CSS 3 (and 2.1 as well, actually) */
85
- word-wrap: break-word /* IE */
86
-
87
-
88
- input[type="radio"]
89
- vertical-align: text-bottom
90
- input[type="checkbox"]
91
- vertical-align: bottom
92
- *vertical-align: baseline
93
- .ie6 input
94
- vertical-align: text-bottom
95
-
96
- select, input, textarea
97
- font: 99% sans-serif
98
-
99
- table
100
- font-size: inherit
101
- font: 100%
102
-
103
-
104
- // Accessible focus treatment
105
- // people.opera.com/patrickl/experiments/keyboard/test
106
-
107
- a:hover, a:active
108
- outline: none
109
-
110
- small
111
- font-size: 85%
112
-
113
- strong, th
114
- font-weight: bold
115
-
116
- td, td img
117
- vertical-align: top
118
-
119
-
120
- // Make sure sup and sub don't screw with your line-heights
121
- // gist.github.com/413930
122
-
123
- sub, sup
124
- font-size: 75%
125
- line-height: 0
126
- position: relative
127
- sup
128
- top: -0.5em
129
- sub
130
- bottom: -0.25em
131
-
132
-
133
- // standardize any monospaced elements
134
-
135
- pre, code, kbd, samp
136
- font-family: monospace, sans-serif
137
-
138
- // hand cursor on clickable elements, text on editable text only, default on everything else.
139
- input
140
- cursor: auto
141
- textarea
142
- cursor: text
143
- a, a *, .clickable, label, input[type=button], input[type=submit], input[type=reset], button, #nextPage, #previousPage, #nextPage *, #previousPage *
144
- cursor: pointer
145
-
146
-
147
- // Webkit browsers add a 2px margin outside the chrome of form elements
148
-
149
- button, input, select, textarea
150
- margin: 0
151
-
152
-
153
- // make buttons play nice in IE
154
-
155
- button
156
- width: auto
157
- overflow: visible
158
-
159
-
160
- // scale images in IE7 more attractively
161
-
162
- .ie7 img
163
- -ms-interpolation-mode: bicubic
164
-
165
-
166
- // prevent BG image flicker upon hover
167
-
168
- .ie6 html
169
- filter: expression(document.execCommand("BackgroundImageCache", false, true))
170
-
171
-
172
- // let's clear some floats
173
-
174
- .clearfix:before, .clearfix:after
175
- content: "\0020"
176
- display: block
177
- height: 0
178
- overflow: hidden
179
- .clearfix:after
180
- clear: both
181
- .clearfix
182
- zoom: 1
183
-
184
- ins
185
- background-color: #fcd700
186
- color: #000
187
- text-decoration: none
188
- mark
189
- background-color: #fcd700
190
- color: #000
191
- font-style: italic
192
- font-weight: bold
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
@@ -2,7 +2,7 @@ description "Seasons treesaver framework"
2
2
 
3
3
  stylesheet 'style.sass'
4
4
  stylesheet '_config.sass'
5
- stylesheet '_skin.scss'
5
+ stylesheet '_grid.scss'
6
6
  stylesheet '_chrome.scss'
7
7
 
8
8
  html 'resources.html'
@@ -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
- // Skin:
19
- @import skin
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
- - beta3
10
- version: 0.9.3.beta3
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/_skin.scss
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