compass-960-plugin 0.9.11 → 0.9.12
Sign up to get free protection for your applications and to get access to all the features.
- data/README.mkdn +2 -2
- data/compass-960-plugin.gemspec +15 -20
- data/stylesheets/960/_grid.sass +66 -0
- data/stylesheets/960/_text.sass +47 -0
- metadata +32 -30
- data/Manifest +0 -12
- data/Rakefile +0 -21
- data/VERSION +0 -1
- data/lib/ninesixty.rb +0 -1
- data/lib/ninesixty/compass_plugin.rb +0 -5
- data/sass/960/_grid.sass +0 -64
- data/sass/960/_text.sass +0 -59
data/README.mkdn
CHANGED
@@ -13,8 +13,8 @@ This plugin adds the 960 Grid System framework to [Compass](http://compass-style
|
|
13
13
|
Install
|
14
14
|
=======
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
gem install compass
|
17
|
+
gem install compass-960-plugin
|
18
18
|
|
19
19
|
Create a 960-based Compass Project
|
20
20
|
==================================
|
data/compass-960-plugin.gemspec
CHANGED
@@ -2,32 +2,27 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{compass-960-plugin}
|
5
|
-
s.version = "0.9.
|
5
|
+
s.version = "0.9.12"
|
6
6
|
|
7
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 1.
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6")
|
8
8
|
s.authors = ["Chris Eppstein"]
|
9
|
-
s.date = %q{
|
9
|
+
s.date = %q{2010-04-13}
|
10
10
|
s.description = %q{The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/}
|
11
11
|
s.email = %q{chris@eppsteins.net}
|
12
|
-
s.
|
13
|
-
s.files = [
|
12
|
+
s.has_rdoc = false
|
13
|
+
s.files = [
|
14
|
+
"compass-960-plugin.gemspec",
|
15
|
+
"README.mkdn",
|
16
|
+
"stylesheets/960/_grid.sass",
|
17
|
+
"stylesheets/960/_text.sass",
|
18
|
+
"templates/project/grid.sass",
|
19
|
+
"templates/project/manifest.rb",
|
20
|
+
"templates/project/text.sass"
|
21
|
+
]
|
14
22
|
s.homepage = %q{http://github.com/chriseppstein/compass-960-plugin}
|
15
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass-960-plugin", "--main", "README.mkdn"]
|
16
23
|
s.require_paths = ["lib"]
|
17
24
|
s.rubyforge_project = %q{compass-960-plugin}
|
18
|
-
s.rubygems_version = %q{1.3.
|
25
|
+
s.rubygems_version = %q{1.3.6}
|
19
26
|
s.summary = %q{Compass compatible Sass port of 960.gs.}
|
20
|
-
|
21
|
-
if s.respond_to? :specification_version then
|
22
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
23
|
-
s.specification_version = 3
|
24
|
-
|
25
|
-
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_runtime_dependency(%q<compass>, [">= 0"])
|
27
|
-
else
|
28
|
-
s.add_dependency(%q<compass>, [">= 0"])
|
29
|
-
end
|
30
|
-
else
|
31
|
-
s.add_dependency(%q<compass>, [">= 0"])
|
32
|
-
end
|
27
|
+
s.add_dependency(%q<compass>, [">= 0.10.0.rc3"])
|
33
28
|
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
$ninesixty-gutter-width: 20px !default
|
2
|
+
|
3
|
+
$ninesixty-grid-width: 960px !default
|
4
|
+
|
5
|
+
$ninesixty-columns: 12 !default
|
6
|
+
|
7
|
+
=grid-container
|
8
|
+
margin-left: auto
|
9
|
+
margin-right: auto
|
10
|
+
width: $ninesixty-grid-width
|
11
|
+
|
12
|
+
=grid-width($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width)
|
13
|
+
width: $ninesixty-grid-width / $cols * $n - $gutter-width
|
14
|
+
|
15
|
+
=grid-unit-base($gutter-width: $ninesixty-gutter-width)
|
16
|
+
display: inline
|
17
|
+
float: left
|
18
|
+
margin:
|
19
|
+
left: $gutter-width / 2
|
20
|
+
right: $gutter-width / 2
|
21
|
+
|
22
|
+
=grid($n, $cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width)
|
23
|
+
+grid-unit-base($gutter-width)
|
24
|
+
+grid-width($n, $cols, $gutter-width)
|
25
|
+
|
26
|
+
=alpha
|
27
|
+
margin-left: 0
|
28
|
+
|
29
|
+
=omega
|
30
|
+
margin-right: 0
|
31
|
+
|
32
|
+
=grids($cols: $ninesixty-columns, $gutter-width: $ninesixty-gutter-width)
|
33
|
+
#{enumerate(".grid", 1, $cols, "_")}
|
34
|
+
+grid-unit-base
|
35
|
+
@for $n from 1 through $cols
|
36
|
+
.grid_#{$n}
|
37
|
+
+grid-width($n, $cols, $gutter-width)
|
38
|
+
|
39
|
+
=grid-prefix($n, $cols: $ninesixty-columns)
|
40
|
+
padding-left: $ninesixty-grid-width / $cols * $n
|
41
|
+
|
42
|
+
=grid-prefixes($cols: $ninesixty-columns)
|
43
|
+
@for $n from 1 through $cols - 1
|
44
|
+
.prefix_#{$n}
|
45
|
+
+grid-prefix($n, $cols)
|
46
|
+
|
47
|
+
=grid-suffix($n, $cols: $ninesixty-columns)
|
48
|
+
padding-right: $ninesixty-grid-width / $cols * $n
|
49
|
+
|
50
|
+
=grid-suffixes($cols: $ninesixty-columns)
|
51
|
+
@for $n from 1 through $cols - 1
|
52
|
+
.suffix_#{$n}
|
53
|
+
+grid-suffix($n, $cols)
|
54
|
+
|
55
|
+
=grid-children
|
56
|
+
.alpha
|
57
|
+
+alpha
|
58
|
+
.omega
|
59
|
+
+omega
|
60
|
+
|
61
|
+
=grid-system($cols: $ninesixty-columns)
|
62
|
+
+grid-container
|
63
|
+
+grids($cols)
|
64
|
+
+grid-prefixes($cols)
|
65
|
+
+grid-suffixes($cols)
|
66
|
+
+grid-children
|
@@ -0,0 +1,47 @@
|
|
1
|
+
$ninesixty-font-family: unquote("Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif") !default
|
2
|
+
|
3
|
+
=text($font-family: $ninesixty-font-family)
|
4
|
+
body
|
5
|
+
font: unquote("13px/1.5") $font-family
|
6
|
+
a:focus
|
7
|
+
outline: 1px dotted invert
|
8
|
+
hr
|
9
|
+
border-color: #cccccc
|
10
|
+
border-style: solid
|
11
|
+
border-width: 1px 0 0
|
12
|
+
clear: both
|
13
|
+
height: 0
|
14
|
+
h1
|
15
|
+
font-size: 25px
|
16
|
+
h2
|
17
|
+
font-size: 23px
|
18
|
+
h3
|
19
|
+
font-size: 21px
|
20
|
+
h4
|
21
|
+
font-size: 19px
|
22
|
+
h5
|
23
|
+
font-size: 17px
|
24
|
+
h6
|
25
|
+
font-size: 15px
|
26
|
+
ol
|
27
|
+
list-style: decimal
|
28
|
+
ul
|
29
|
+
list-style: square
|
30
|
+
li
|
31
|
+
margin-left: 30px
|
32
|
+
p,
|
33
|
+
dl,
|
34
|
+
hr,
|
35
|
+
h1,
|
36
|
+
h2,
|
37
|
+
h3,
|
38
|
+
h4,
|
39
|
+
h5,
|
40
|
+
h6,
|
41
|
+
ol,
|
42
|
+
ul,
|
43
|
+
pre,
|
44
|
+
table,
|
45
|
+
address,
|
46
|
+
fieldset
|
47
|
+
margin-bottom: 20px
|
metadata
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: compass-960-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 9
|
8
|
+
- 12
|
9
|
+
version: 0.9.12
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
12
|
- Chris Eppstein
|
@@ -9,72 +14,69 @@ autorequire:
|
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-04-13 00:00:00 -07:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
21
|
name: compass
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
27
|
+
segments:
|
28
|
+
- 0
|
29
|
+
- 10
|
30
|
+
- 0
|
31
|
+
- rc3
|
32
|
+
version: 0.10.0.rc3
|
33
|
+
type: :runtime
|
34
|
+
version_requirements: *id001
|
25
35
|
description: The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/
|
26
36
|
email: chris@eppsteins.net
|
27
37
|
executables: []
|
28
38
|
|
29
39
|
extensions: []
|
30
40
|
|
31
|
-
extra_rdoc_files:
|
32
|
-
|
33
|
-
- lib/ninesixty.rb
|
34
|
-
- README.mkdn
|
41
|
+
extra_rdoc_files: []
|
42
|
+
|
35
43
|
files:
|
36
44
|
- compass-960-plugin.gemspec
|
37
|
-
- lib/ninesixty/compass_plugin.rb
|
38
|
-
- lib/ninesixty.rb
|
39
|
-
- Manifest
|
40
|
-
- Rakefile
|
41
45
|
- README.mkdn
|
42
|
-
-
|
43
|
-
-
|
46
|
+
- stylesheets/960/_grid.sass
|
47
|
+
- stylesheets/960/_text.sass
|
44
48
|
- templates/project/grid.sass
|
45
49
|
- templates/project/manifest.rb
|
46
50
|
- templates/project/text.sass
|
47
|
-
|
48
|
-
has_rdoc: true
|
51
|
+
has_rdoc: false
|
49
52
|
homepage: http://github.com/chriseppstein/compass-960-plugin
|
50
53
|
licenses: []
|
51
54
|
|
52
55
|
post_install_message:
|
53
|
-
rdoc_options:
|
54
|
-
|
55
|
-
- --inline-source
|
56
|
-
- --title
|
57
|
-
- Compass-960-plugin
|
58
|
-
- --main
|
59
|
-
- README.mkdn
|
56
|
+
rdoc_options: []
|
57
|
+
|
60
58
|
require_paths:
|
61
59
|
- lib
|
62
60
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
61
|
requirements:
|
64
62
|
- - ">="
|
65
63
|
- !ruby/object:Gem::Version
|
64
|
+
segments:
|
65
|
+
- 0
|
66
66
|
version: "0"
|
67
|
-
version:
|
68
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
69
68
|
requirements:
|
70
69
|
- - ">="
|
71
70
|
- !ruby/object:Gem::Version
|
72
|
-
|
73
|
-
|
71
|
+
segments:
|
72
|
+
- 1
|
73
|
+
- 3
|
74
|
+
- 6
|
75
|
+
version: 1.3.6
|
74
76
|
requirements: []
|
75
77
|
|
76
78
|
rubyforge_project: compass-960-plugin
|
77
|
-
rubygems_version: 1.3.
|
79
|
+
rubygems_version: 1.3.6
|
78
80
|
signing_key:
|
79
81
|
specification_version: 3
|
80
82
|
summary: Compass compatible Sass port of 960.gs.
|
data/Manifest
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
Manifest
|
2
|
-
README.mkdn
|
3
|
-
Rakefile
|
4
|
-
VERSION
|
5
|
-
compass-960-plugin.gemspec
|
6
|
-
lib/ninesixty.rb
|
7
|
-
lib/ninesixty/compass_plugin.rb
|
8
|
-
sass/960/_grid.sass
|
9
|
-
sass/960/_text.sass
|
10
|
-
templates/project/grid.sass
|
11
|
-
templates/project/manifest.rb
|
12
|
-
templates/project/text.sass
|
data/Rakefile
DELETED
@@ -1,21 +0,0 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
require 'sass'
|
3
|
-
|
4
|
-
begin
|
5
|
-
require 'echoe'
|
6
|
-
|
7
|
-
Echoe.new('compass-960-plugin', open('VERSION').read) do |p|
|
8
|
-
# p.rubyforge_name = '960'
|
9
|
-
p.summary = "Compass compatible Sass port of 960.gs."
|
10
|
-
p.description = "The 960 Grid System is an effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. http://960.gs/"
|
11
|
-
p.url = "http://github.com/chriseppstein/compass-960-plugin"
|
12
|
-
p.author = ['Chris Eppstein']
|
13
|
-
p.email = "chris@eppsteins.net"
|
14
|
-
p.dependencies = ["compass"]
|
15
|
-
p.has_rdoc = false
|
16
|
-
end
|
17
|
-
|
18
|
-
rescue LoadError => boom
|
19
|
-
puts "You are missing a dependency required for meta-operations on this gem."
|
20
|
-
puts "#{boom.to_s.capitalize}."
|
21
|
-
end
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.9.11
|
data/lib/ninesixty.rb
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
require File.join(File.dirname(__FILE__), 'ninesixty', 'compass_plugin')
|
@@ -1,5 +0,0 @@
|
|
1
|
-
options = Hash.new
|
2
|
-
options[:stylesheets_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'sass'))
|
3
|
-
options[:templates_directory] = File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'templates'))
|
4
|
-
|
5
|
-
Compass::Frameworks.register('960', options)
|
data/sass/960/_grid.sass
DELETED
@@ -1,64 +0,0 @@
|
|
1
|
-
!ninesixty_gutter_width ||= 20px
|
2
|
-
!ninesixty_grid_width ||= 960px
|
3
|
-
!ninesixty_columns ||= 12
|
4
|
-
|
5
|
-
=grid-container
|
6
|
-
:margin-left auto
|
7
|
-
:margin-right auto
|
8
|
-
:width= !ninesixty_grid_width
|
9
|
-
|
10
|
-
=grid-width(!n, !cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
11
|
-
:width= (!ninesixty_grid_width / !cols) * !n - !gutter_width
|
12
|
-
|
13
|
-
=grid-unit-base(!gutter_width = !ninesixty_gutter_width)
|
14
|
-
:display inline
|
15
|
-
:float left
|
16
|
-
:margin
|
17
|
-
:left= !gutter_width / 2
|
18
|
-
:right= !gutter_width / 2
|
19
|
-
|
20
|
-
=grid(!n, !cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
21
|
-
+grid-unit-base(!gutter_width)
|
22
|
-
+grid-width(!n, !cols, !gutter_width)
|
23
|
-
|
24
|
-
=alpha
|
25
|
-
:margin-left 0
|
26
|
-
|
27
|
-
=omega
|
28
|
-
:margin-right 0
|
29
|
-
|
30
|
-
=grids(!cols = !ninesixty_columns, !gutter_width = !ninesixty_gutter_width)
|
31
|
-
#{enumerate(".grid",1,!cols,"_")}
|
32
|
-
+grid-unit-base
|
33
|
-
@for !n from 1 through !cols
|
34
|
-
.grid_#{!n}
|
35
|
-
+grid-width(!n, !cols, !gutter_width)
|
36
|
-
|
37
|
-
=grid-prefix(!n, !cols = !ninesixty_columns)
|
38
|
-
:padding-left= (!ninesixty_grid_width / !cols) * !n
|
39
|
-
|
40
|
-
=grid-prefixes(!cols = !ninesixty_columns)
|
41
|
-
@for !n from 1 through !cols - 1
|
42
|
-
.prefix_#{!n}
|
43
|
-
+grid-prefix(!n, !cols)
|
44
|
-
|
45
|
-
=grid-suffix(!n, !cols = !ninesixty_columns)
|
46
|
-
:padding-right= (!ninesixty_grid_width / !cols) * !n
|
47
|
-
|
48
|
-
=grid-suffixes(!cols = !ninesixty_columns)
|
49
|
-
@for !n from 1 through !cols - 1
|
50
|
-
.suffix_#{!n}
|
51
|
-
+grid-suffix(!n, !cols)
|
52
|
-
|
53
|
-
=grid-children
|
54
|
-
.alpha
|
55
|
-
+alpha
|
56
|
-
.omega
|
57
|
-
+omega
|
58
|
-
|
59
|
-
=grid-system(!cols = !ninesixty_columns)
|
60
|
-
+grid-container
|
61
|
-
+grids(!cols)
|
62
|
-
+grid-prefixes(!cols)
|
63
|
-
+grid-suffixes(!cols)
|
64
|
-
+grid-children
|
data/sass/960/_text.sass
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
!ninesixty_font_family ||= "Helvetica, Arial, 'Liberation Sans', FreeSans, sans-serif"
|
2
|
-
|
3
|
-
=text(!font_family = !ninesixty_font_family)
|
4
|
-
body
|
5
|
-
:font= "13px/1.5" !font_family
|
6
|
-
|
7
|
-
a:focus
|
8
|
-
:outline 1px dotted invert
|
9
|
-
|
10
|
-
hr
|
11
|
-
:border-color #ccc
|
12
|
-
:border-style solid
|
13
|
-
:border-width 1px 0 0
|
14
|
-
:clear both
|
15
|
-
:height 0
|
16
|
-
|
17
|
-
h1
|
18
|
-
:font-size 25px
|
19
|
-
|
20
|
-
h2
|
21
|
-
:font-size 23px
|
22
|
-
|
23
|
-
h3
|
24
|
-
:font-size 21px
|
25
|
-
|
26
|
-
h4
|
27
|
-
:font-size 19px
|
28
|
-
|
29
|
-
h5
|
30
|
-
:font-size 17px
|
31
|
-
|
32
|
-
h6
|
33
|
-
:font-size 15px
|
34
|
-
|
35
|
-
ol
|
36
|
-
:list-style decimal
|
37
|
-
|
38
|
-
ul
|
39
|
-
:list-style square
|
40
|
-
|
41
|
-
li
|
42
|
-
:margin-left 30px
|
43
|
-
|
44
|
-
p,
|
45
|
-
dl,
|
46
|
-
hr,
|
47
|
-
h1,
|
48
|
-
h2,
|
49
|
-
h3,
|
50
|
-
h4,
|
51
|
-
h5,
|
52
|
-
h6,
|
53
|
-
ol,
|
54
|
-
ul,
|
55
|
-
pre,
|
56
|
-
table,
|
57
|
-
address,
|
58
|
-
fieldset
|
59
|
-
:margin-bottom 20px
|