seasons 0.9.3.beta9 → 0.9.3.beta10
Sign up to get free protection for your applications and to get access to all the features.
- data/seasons.gemspec +3 -2
- data/stylesheets/seasons/_core.sass +12 -15
- data/stylesheets/seasons/plugin/_tablet-7-normalize.sass +8 -6
- data/stylesheets/seasons/plugin/_tablet-7-template.sass +5 -5
- data/stylesheets/seasons/tools/_flexbox.sass +65 -0
- data/templates/project/_config.sass +6 -6
- data/templates/project/_pages.scss +3 -0
- data/templates/project/resources.html +1 -1
- data/templates/project/style.sass +4 -0
- metadata +4 -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.beta10"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.5")
|
8
8
|
s.authors = ["Scott Kellum"]
|
@@ -16,10 +16,11 @@ Gem::Specification.new do |s|
|
|
16
16
|
"stylesheets/seasons/_core.sass",
|
17
17
|
"stylesheets/seasons/_tools.sass",
|
18
18
|
"stylesheets/seasons/tools/_basic-functions.sass",
|
19
|
+
"stylesheets/seasons/tools/_color-schemer.sass",
|
19
20
|
"stylesheets/seasons/tools/_css3.sass",
|
21
|
+
"stylesheets/seasons/tools/_flexbox.sass",
|
20
22
|
"stylesheets/seasons/tools/_grid-tools.sass",
|
21
23
|
"stylesheets/seasons/tools/_modular-scale.sass",
|
22
|
-
"stylesheets/seasons/tools/_color-schemer.sass",
|
23
24
|
"stylesheets/seasons/tools/_reset.sass",
|
24
25
|
"stylesheets/seasons/plugin/_ad.sass",
|
25
26
|
"stylesheets/seasons/plugin/_ipad.sass",
|
@@ -26,6 +26,9 @@ $height-prefix: h !default
|
|
26
26
|
$ratio-prefix: r !default
|
27
27
|
$scale: 1
|
28
28
|
|
29
|
+
$blur-radius: 2px !default
|
30
|
+
$blur-lightbox: true !default
|
31
|
+
|
29
32
|
=ratio($width, $height, $cols: $columns)
|
30
33
|
@for $i from 1 through $cols
|
31
34
|
.#{$ratio-prefix+$width}x#{$height}.#{$width-prefix+$i}, .container.#{$width-prefix+$i} [ratio="#{$width}x#{$height}"] img // Grid ratio, figure ratio.
|
@@ -65,20 +68,6 @@ $scale: 1
|
|
65
68
|
.#{$height-prefix+$i}
|
66
69
|
height: grid($i, $module-h) * $scale
|
67
70
|
|
68
|
-
// Lightbox sizes
|
69
|
-
.lightbox .container
|
70
|
-
&[class*="single"]
|
71
|
-
width: grid($text-column-span) * $scale
|
72
|
-
&[class*="double"]
|
73
|
-
width: grid($text-column-span * 2) * $scale
|
74
|
-
&[class*="triple"]
|
75
|
-
width: grid($text-column-span * 3) * $scale
|
76
|
-
&[class*="quad"]
|
77
|
-
width: grid($text-column-span * 4) * $scale
|
78
|
-
img
|
79
|
-
width: 100%
|
80
|
-
height: auto
|
81
|
-
|
82
71
|
// COLUMN WIDTHS
|
83
72
|
.column
|
84
73
|
width: grid($text-column-span) * $scale
|
@@ -90,7 +79,6 @@ $scale: 1
|
|
90
79
|
.grid
|
91
80
|
position: absolute
|
92
81
|
overflow: hidden
|
93
|
-
z-index: 1
|
94
82
|
// Helps reduce flickr when paging
|
95
83
|
-webkit-backface-visibility: hidden
|
96
84
|
// Sometimes Safari forgets this one
|
@@ -293,6 +281,15 @@ $fullbleed: true !default
|
|
293
281
|
width: auto
|
294
282
|
|
295
283
|
|
284
|
+
// BLUR LIGHTBOX BACKGROUND
|
285
|
+
// New browsers only.
|
286
|
+
@if $blur-lightbox
|
287
|
+
#chromeContainer .chrome:first-child
|
288
|
+
+prefix(filter, blur($blur-radius))
|
289
|
+
#chromeContainer .chrome:last-child
|
290
|
+
+prefix(filter, blur(0))
|
291
|
+
|
292
|
+
|
296
293
|
// MOBILE OPTIMIZATIONS
|
297
294
|
// Tweaks to make things run more smoothly on mobile devices
|
298
295
|
.os-ipad, .os-iphone
|
@@ -1,18 +1,20 @@
|
|
1
1
|
// Normalize 7" tablets.
|
2
2
|
|
3
3
|
// Default is halfway between both resolutions. I find the default 3/2 on the tab to be too much.
|
4
|
-
$tab7-
|
4
|
+
$tab7-pixel-ratio: (6/5) !default
|
5
5
|
|
6
6
|
@if unit($module-w) != "em"
|
7
7
|
@warn "Your grid MUST be based on ems to scale to 7 inch tablets."
|
8
8
|
@else
|
9
|
-
|
10
|
-
|
9
|
+
|
10
|
+
// Standard 7" 1024x600 tablet (Kindle Fire)
|
11
|
+
@media screen and (-webkit-device-pixel-ratio: 1) and (device-width: 1024px) and (orientation: landscape), screen and (-webkit-device-pixel-ratio: 1) and (device-width: 600px) and (orientation: portrait)
|
11
12
|
html
|
12
|
-
font-size: $base-size * $tab7-
|
13
|
+
font-size: $base-size * $tab7-pixel-ratio
|
14
|
+
|
13
15
|
// 1024x600 tablet with virtual resolution (Original Galaxy Tab)
|
14
|
-
@media screen and (-webkit-device-pixel-ratio: 1.5) and (device-width: 683px) and (
|
16
|
+
@media screen and (-webkit-device-pixel-ratio: 1.5) and (device-width: 683px) and (orientation: landscape), screen and (-webkit-device-pixel-ratio: 1.5) and (device-width: 400px) and (orientation: portrait)
|
15
17
|
html
|
16
|
-
font-size: $base-size * (2/3) * $tab7-
|
18
|
+
font-size: $base-size * (2/3) * $tab7-pixel-ratio
|
17
19
|
|
18
20
|
$seasons-tablet-7-normalize-loaded: true
|
@@ -11,8 +11,8 @@ $tablet-7-margin: $margin !default
|
|
11
11
|
=ratio($width, $height, $cols: $columns)
|
12
12
|
// Force resize images
|
13
13
|
.seven.grid .container [ratio="#{$width}x#{$height}"] img
|
14
|
-
width: 600 / ( $base-size * $tab7-
|
15
|
-
height: ( 600 / ( $base-size * $tab7-
|
14
|
+
width: 600 / ( $base-size * $tab7-pixel-ratio / 1px ) - $tablet-7-margin * 2
|
15
|
+
height: ( 600 / ( $base-size * $tab7-pixel-ratio / 1px ) - $tablet-7-margin * 2 ) * ( $height / $width )
|
16
16
|
|
17
17
|
@if $seasons-tablet-7-normalize-loaded
|
18
18
|
// Make sure seven grids don't show up for desktop users.
|
@@ -32,10 +32,10 @@ $tablet-7-margin: $margin !default
|
|
32
32
|
.grid
|
33
33
|
opacity: 1 !important
|
34
34
|
.column, .container
|
35
|
-
width: 600 / ( $base-size * $tab7-
|
35
|
+
width: 600 / ( $base-size * $tab7-pixel-ratio / 1px ) - $tablet-7-margin * 2
|
36
36
|
.grid.seven
|
37
|
-
width: 600 / ( $base-size * $tab7-
|
38
|
-
min-width: 600 / ( $base-size * $tab7-
|
37
|
+
width: 600 / ( $base-size * $tab7-pixel-ratio / 1px ) - $tablet-7-margin * 2
|
38
|
+
min-width: 600 / ( $base-size * $tab7-pixel-ratio / 1px ) - $tablet-7-margin * 2
|
39
39
|
margin: 0
|
40
40
|
padding: 0 $margin
|
41
41
|
|
@@ -0,0 +1,65 @@
|
|
1
|
+
// Original gist https://gist.github.com/280797
|
2
|
+
|
3
|
+
$prefixes: -webkit- -moz- -ms- -o- !default
|
4
|
+
|
5
|
+
=prefix($property, $value, $prefixes)
|
6
|
+
@each $prefix in $prefixes
|
7
|
+
#{$prefix}#{$property}: $value
|
8
|
+
#{$property}: $value
|
9
|
+
|
10
|
+
=prefix-value($property, $value, $prefixes)
|
11
|
+
@each $prefix in $prefixes
|
12
|
+
#{$property}: #{$prefix}$value
|
13
|
+
#{$property}: $value
|
14
|
+
|
15
|
+
=display-box($property: display-box, $value: box)
|
16
|
+
+prefix-value($property, $value)
|
17
|
+
|
18
|
+
// Value: horizontal | vertical | inline-axis | block-axis | inherit
|
19
|
+
// Initial: inline-axis
|
20
|
+
// Default: horizontal
|
21
|
+
=box-orient($property: box-orient, $value: horizontal)
|
22
|
+
+prefix($property, $value)
|
23
|
+
|
24
|
+
// Value: normal | reverse | inherit
|
25
|
+
// Initial: normal
|
26
|
+
// Default: reverse
|
27
|
+
=box-direction($property: box-direction, $value: reverse)
|
28
|
+
+prefix($property, $value)
|
29
|
+
|
30
|
+
// Value: <integer>
|
31
|
+
// Initial: 1
|
32
|
+
// Default: 2
|
33
|
+
=box-ordinal-group($property: box-ordinal-group, $value: 2)
|
34
|
+
+prefix($property, $value)
|
35
|
+
|
36
|
+
// Value: start | end | center | baseline | stretch
|
37
|
+
// Initial: stretch
|
38
|
+
// Default: start
|
39
|
+
=box-align($property: box-align, $value: start)
|
40
|
+
+prefix($property, $value)
|
41
|
+
|
42
|
+
// Value: <number>
|
43
|
+
// Initial: 0.0
|
44
|
+
// Default: 1
|
45
|
+
=box-flex($property: box-flex, $value: 1)
|
46
|
+
+prefix($property, $value)
|
47
|
+
|
48
|
+
// Value: <integer>
|
49
|
+
// Initial: 1
|
50
|
+
// Default: 2
|
51
|
+
=box-flex-group($property: box-flex-group, $value: 2)
|
52
|
+
+prefix($property, $value)
|
53
|
+
|
54
|
+
// Value: start | end | center | justify
|
55
|
+
// Initial: start
|
56
|
+
// Default: center
|
57
|
+
=box-pack($property: box-pack, $value: center)
|
58
|
+
+prefix($property, $value)
|
59
|
+
|
60
|
+
// I don't see this working in any browser currently...
|
61
|
+
// Value: single | multiple
|
62
|
+
// Initial: single
|
63
|
+
// Default: multiple
|
64
|
+
=box-lines($property: box-lines, $value: multiple)
|
65
|
+
+prefix($property, $value)
|
@@ -17,13 +17,13 @@ $line-height: ms(1, 1em)
|
|
17
17
|
|
18
18
|
// GRID MEASUREMENTS
|
19
19
|
// Grid module measurements. See Mark Boulton’s write up on grids http://www.markboulton.co.uk/journal/comments/rethinking-css-grids
|
20
|
-
$module-w: ms(5) // module width
|
21
|
-
$module-h: ms(4) // module height
|
22
|
-
$gutter: ms(1) // gutters
|
20
|
+
$module-w: ms(5, 1em) // module width
|
21
|
+
$module-h: ms(4, 1em) // module height
|
22
|
+
$gutter: ms(1, 1em) // gutters
|
23
23
|
// grid margins:
|
24
|
-
$margin: ms(1) // side margins
|
25
|
-
$top: ms(2) // default top margin (for text and containers)
|
26
|
-
$bottom: ms(3) // default bottom margin (for text and containers)
|
24
|
+
$margin: ms(1, 1em) // side margins
|
25
|
+
$top: ms(2, 1em) // default top margin (for text and containers)
|
26
|
+
$bottom: ms(3, 1em) // default bottom margin (for text and containers)
|
27
27
|
// number of modules across to calculate:
|
28
28
|
$columns: 12 // # of columns you want to calculate for
|
29
29
|
|
@@ -6,6 +6,10 @@
|
|
6
6
|
|
7
7
|
// This is a styling framework to be used with Treesaver
|
8
8
|
// It creates a flexable yet solid foundation for building templates.
|
9
|
+
//
|
10
|
+
// ** To run you need to have SASS installed: http://sass-lang.com/ **
|
11
|
+
// The, just watch the "sass" folder from the project directory.
|
12
|
+
// sass --watch sass:html/_/css
|
9
13
|
|
10
14
|
// IMPORT TOOLS AND RESET:
|
11
15
|
$reset: true // set to false if you don’t want the bundled reset
|
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
|
+
- beta10
|
10
|
+
version: 0.9.3.beta10
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Scott Kellum
|
@@ -46,10 +46,11 @@ files:
|
|
46
46
|
- stylesheets/seasons/_core.sass
|
47
47
|
- stylesheets/seasons/_tools.sass
|
48
48
|
- stylesheets/seasons/tools/_basic-functions.sass
|
49
|
+
- stylesheets/seasons/tools/_color-schemer.sass
|
49
50
|
- stylesheets/seasons/tools/_css3.sass
|
51
|
+
- stylesheets/seasons/tools/_flexbox.sass
|
50
52
|
- stylesheets/seasons/tools/_grid-tools.sass
|
51
53
|
- stylesheets/seasons/tools/_modular-scale.sass
|
52
|
-
- stylesheets/seasons/tools/_color-schemer.sass
|
53
54
|
- stylesheets/seasons/tools/_reset.sass
|
54
55
|
- stylesheets/seasons/plugin/_ad.sass
|
55
56
|
- stylesheets/seasons/plugin/_ipad.sass
|