itsucks-compass-960-plugin 0.9.11 → 0.9.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Manifest +3 -3
- data/README.mkd +45 -0
- data/Rakefile +0 -4
- data/VERSION +1 -1
- data/itsucks-compass-960-plugin.gemspec +5 -5
- data/sass/960/_sticky_footer.sass +31 -0
- data/templates/project/grid.sass +76 -22
- data/templates/project/manifest.rb +1 -2
- data/templates/project/screen.sass +131 -0
- metadata +8 -8
- data/README.mkdn +0 -61
- data/templates/project/debug.sass +0 -13
- data/templates/project/text.sass +0 -10
data/Manifest
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
Manifest
|
|
2
|
-
README.
|
|
2
|
+
README.mkd
|
|
3
3
|
Rakefile
|
|
4
4
|
VERSION
|
|
5
5
|
lib/ninesixty.rb
|
|
6
6
|
lib/ninesixty/compass_plugin.rb
|
|
7
7
|
sass/960/_debug.sass
|
|
8
8
|
sass/960/_grid.sass
|
|
9
|
+
sass/960/_sticky_footer.sass
|
|
9
10
|
sass/960/_text.sass
|
|
10
11
|
templates/project/12_col.gif
|
|
11
12
|
templates/project/16_col.gif
|
|
12
|
-
templates/project/debug.sass
|
|
13
13
|
templates/project/grid.sass
|
|
14
14
|
templates/project/manifest.rb
|
|
15
|
-
templates/project/
|
|
15
|
+
templates/project/screen.sass
|
data/README.mkd
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
960 Grid System - Compass Plugin
|
|
2
|
+
================================
|
|
3
|
+
|
|
4
|
+
Fork from [chriseppstein/compass-960-plugin][]
|
|
5
|
+
|
|
6
|
+
---------
|
|
7
|
+
|
|
8
|
+
This plugin adds the 960 Grid System framework to [Compass](http://compass-style.org/).
|
|
9
|
+
|
|
10
|
+
Install
|
|
11
|
+
=======
|
|
12
|
+
|
|
13
|
+
sudo gem install itsucks-compass-960-plugin
|
|
14
|
+
|
|
15
|
+
Create a 960-based Compass Project
|
|
16
|
+
==================================
|
|
17
|
+
|
|
18
|
+
compass -r ninesixty -f 960 <project name>
|
|
19
|
+
|
|
20
|
+
Then edit your `grid.sass` files accordingly. A reset is added into grid.sass automatically.
|
|
21
|
+
|
|
22
|
+
Customizing your Grid System
|
|
23
|
+
============================
|
|
24
|
+
* screen.sass
|
|
25
|
+
|
|
26
|
+
%body
|
|
27
|
+
#wrap
|
|
28
|
+
#header
|
|
29
|
+
#main.clearfix
|
|
30
|
+
.g12
|
|
31
|
+
.content
|
|
32
|
+
.sidebar
|
|
33
|
+
#footer
|
|
34
|
+
|
|
35
|
+
* grid.sass
|
|
36
|
+
|
|
37
|
+
%body
|
|
38
|
+
#wrap
|
|
39
|
+
#header
|
|
40
|
+
#main.clearfix
|
|
41
|
+
.g12
|
|
42
|
+
.g16
|
|
43
|
+
#footer
|
|
44
|
+
|
|
45
|
+
[chriseppstein/compass-960-plugin]: http://github.com/chriseppstein/compass-960-plugin
|
data/Rakefile
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
require 'fileutils'
|
|
2
|
-
require 'sass'
|
|
3
|
-
|
|
4
1
|
begin
|
|
5
2
|
require 'echoe'
|
|
6
3
|
|
|
7
4
|
Echoe.new('itsucks-compass-960-plugin', open('VERSION').read) do |p|
|
|
8
|
-
# p.rubyforge_name = '960'
|
|
9
5
|
p.summary = "Compass compatible Sass port of 960.gs."
|
|
10
6
|
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
7
|
p.url = "http://github.com/chriseppstein/compass-960-plugin"
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.9.
|
|
1
|
+
0.9.12
|
|
@@ -2,17 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |s|
|
|
4
4
|
s.name = %q{itsucks-compass-960-plugin}
|
|
5
|
-
s.version = "0.9.
|
|
5
|
+
s.version = "0.9.12"
|
|
6
6
|
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
8
|
s.authors = ["Percy Lau"]
|
|
9
|
-
s.date = %q{2010-03-
|
|
9
|
+
s.date = %q{2010-03-22}
|
|
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{percy.lau@gmail.com}
|
|
12
|
-
s.extra_rdoc_files = ["README.
|
|
13
|
-
s.files = ["Manifest", "README.
|
|
12
|
+
s.extra_rdoc_files = ["README.mkd", "lib/ninesixty.rb", "lib/ninesixty/compass_plugin.rb"]
|
|
13
|
+
s.files = ["Manifest", "README.mkd", "Rakefile", "VERSION", "lib/ninesixty.rb", "lib/ninesixty/compass_plugin.rb", "sass/960/_debug.sass", "sass/960/_grid.sass", "sass/960/_sticky_footer.sass", "sass/960/_text.sass", "templates/project/12_col.gif", "templates/project/16_col.gif", "templates/project/grid.sass", "templates/project/manifest.rb", "templates/project/screen.sass", "itsucks-compass-960-plugin.gemspec"]
|
|
14
14
|
s.homepage = %q{http://github.com/chriseppstein/compass-960-plugin}
|
|
15
|
-
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Itsucks-compass-960-plugin", "--main", "README.
|
|
15
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Itsucks-compass-960-plugin", "--main", "README.mkd"]
|
|
16
16
|
s.require_paths = ["lib"]
|
|
17
17
|
s.rubyforge_project = %q{itsucks-compass-960-plugin}
|
|
18
18
|
s.rubygems_version = %q{1.3.6}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
!footer_height ||= 3em
|
|
2
|
+
=sticky-footer(!footer_height, !root_selector, !content_selector, !footer_selector)
|
|
3
|
+
*
|
|
4
|
+
:margin 0
|
|
5
|
+
:padding 0
|
|
6
|
+
html, body, #{!root_selector}
|
|
7
|
+
:height 100%
|
|
8
|
+
body > #{!root_selector}
|
|
9
|
+
:height auto
|
|
10
|
+
:min-height 100%
|
|
11
|
+
#{!content_selector}
|
|
12
|
+
:padding-bottom #{!footer_height} /* must be same height as the footer */
|
|
13
|
+
#{!footer_selector}
|
|
14
|
+
:position relative
|
|
15
|
+
:margin-top -#{!footer_height} /* negative value of footer height */
|
|
16
|
+
:height #{!footer_height}
|
|
17
|
+
:clear both
|
|
18
|
+
.clearfix
|
|
19
|
+
:display inline-block
|
|
20
|
+
.clearfix:after
|
|
21
|
+
:content "."
|
|
22
|
+
:display block
|
|
23
|
+
:height 0
|
|
24
|
+
:clear both
|
|
25
|
+
:visibility hidden
|
|
26
|
+
/* Hides from IE-mac \*/
|
|
27
|
+
* html .clearfix
|
|
28
|
+
:height 1%
|
|
29
|
+
.clearfix
|
|
30
|
+
:display block
|
|
31
|
+
/* End hide from IE-mac */
|
data/templates/project/grid.sass
CHANGED
|
@@ -4,31 +4,85 @@
|
|
|
4
4
|
|
|
5
5
|
Licensed under GPL and MIT.
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
/* Layout
|
|
8
|
+
/* %body
|
|
9
|
+
/* #wrap
|
|
10
|
+
/* #header
|
|
11
|
+
/* #main.clearfix
|
|
12
|
+
/* .g12
|
|
13
|
+
/* .g16
|
|
14
|
+
/* #footer
|
|
15
|
+
|
|
16
|
+
/* @import compass/reset.sass
|
|
17
|
+
/* +global-reset
|
|
18
|
+
@import compass/utilities/general/clearfix.sass
|
|
9
19
|
|
|
10
|
-
|
|
20
|
+
@import 960/grid.sass
|
|
21
|
+
@import 960/text.sass
|
|
22
|
+
+text
|
|
11
23
|
|
|
12
|
-
|
|
13
|
-
.
|
|
14
|
-
+grid-system(12)
|
|
24
|
+
@import 960/debug.sass
|
|
25
|
+
@import 960/sticky_footer.sass
|
|
15
26
|
|
|
16
|
-
|
|
17
|
-
|
|
27
|
+
!background_color = #123
|
|
28
|
+
!text_color = #27261f
|
|
29
|
+
!footer_height = 3em
|
|
18
30
|
|
|
19
|
-
|
|
31
|
+
body
|
|
32
|
+
:background-color= !background_color
|
|
33
|
+
:color= !text_color
|
|
20
34
|
|
|
21
|
-
|
|
22
|
-
.two-column
|
|
35
|
+
#header, #footer, .g12, .g16
|
|
23
36
|
+grid-container
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
37
|
+
+clearfix
|
|
38
|
+
|
|
39
|
+
.g12
|
|
40
|
+
+grids
|
|
41
|
+
+grid-prefixes
|
|
42
|
+
+grid-suffixes
|
|
43
|
+
+grid-pushs
|
|
44
|
+
+grid-pulls
|
|
45
|
+
+grid-children
|
|
46
|
+
:margin-bottom 20px
|
|
47
|
+
|
|
48
|
+
.g16
|
|
49
|
+
+grids(16)
|
|
50
|
+
+grid-prefixes(16)
|
|
51
|
+
+grid-suffixes(16)
|
|
52
|
+
+grid-pushs(16)
|
|
53
|
+
+grid-pulls(16)
|
|
54
|
+
+grid-children
|
|
55
|
+
|
|
56
|
+
#header
|
|
57
|
+
h1
|
|
58
|
+
+grid(12,12)
|
|
59
|
+
:text-align center
|
|
60
|
+
:padding-top 20px
|
|
61
|
+
a
|
|
62
|
+
:color white
|
|
63
|
+
:text-decoration none
|
|
64
|
+
&:hover
|
|
65
|
+
:color white
|
|
66
|
+
:text-decoration none
|
|
67
|
+
|
|
68
|
+
#main
|
|
69
|
+
h2
|
|
70
|
+
:padding 20px 0px 0px
|
|
71
|
+
:text-align center
|
|
72
|
+
p
|
|
73
|
+
:border 1px solid #666
|
|
74
|
+
:overflow hidden
|
|
75
|
+
:padding 10px 0
|
|
76
|
+
:text-align center
|
|
77
|
+
:margin-bottom 20px
|
|
78
|
+
|
|
79
|
+
#footer
|
|
80
|
+
p
|
|
81
|
+
+grid(12,12)
|
|
82
|
+
:color white
|
|
83
|
+
|
|
84
|
+
+sticky-footer(!footer_height, "#wrap", "#main", "#footer")
|
|
85
|
+
|
|
86
|
+
/* Debug
|
|
87
|
+
+showgrid_12(".g12")
|
|
88
|
+
+showgrid_16(".g16")
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/*
|
|
2
|
+
960 Grid System ~ Core CSS.
|
|
3
|
+
Learn more ~ http://960.gs/
|
|
4
|
+
|
|
5
|
+
Licensed under GPL and MIT.
|
|
6
|
+
|
|
7
|
+
/* Layout
|
|
8
|
+
/* %body
|
|
9
|
+
/* #wrap
|
|
10
|
+
/* #header
|
|
11
|
+
/* #main.clearfix
|
|
12
|
+
/* .g12
|
|
13
|
+
/* .content
|
|
14
|
+
/* .sidebar
|
|
15
|
+
/* #footer
|
|
16
|
+
|
|
17
|
+
/* @import compass/reset.sass
|
|
18
|
+
/* +global-reset
|
|
19
|
+
@import compass/utilities/general/clearfix.sass
|
|
20
|
+
|
|
21
|
+
@import 960/grid.sass
|
|
22
|
+
@import 960/text.sass
|
|
23
|
+
+text
|
|
24
|
+
|
|
25
|
+
@import 960/debug.sass
|
|
26
|
+
@import 960/sticky_footer.sass
|
|
27
|
+
|
|
28
|
+
!background_color = white
|
|
29
|
+
!text_color = #666
|
|
30
|
+
!header_height = 80px
|
|
31
|
+
!footer_height = 3em
|
|
32
|
+
|
|
33
|
+
body
|
|
34
|
+
:background-color= !background_color
|
|
35
|
+
:color= !text_color
|
|
36
|
+
|
|
37
|
+
#header, #footer, .g12
|
|
38
|
+
+grid-container
|
|
39
|
+
+clearfix
|
|
40
|
+
|
|
41
|
+
.g12
|
|
42
|
+
+grids
|
|
43
|
+
+grid-prefixes
|
|
44
|
+
+grid-suffixes
|
|
45
|
+
+grid-pushs
|
|
46
|
+
+grid-pulls
|
|
47
|
+
+grid-children
|
|
48
|
+
|
|
49
|
+
#header
|
|
50
|
+
:height= !header_height
|
|
51
|
+
:border-bottom 2px solid #F90
|
|
52
|
+
h1
|
|
53
|
+
+grid(6,12)
|
|
54
|
+
:color #F90
|
|
55
|
+
:letter-spacing -1px
|
|
56
|
+
:margin 30px 0px 0px 15px
|
|
57
|
+
:padding 0
|
|
58
|
+
:font-weight normal
|
|
59
|
+
span
|
|
60
|
+
:font-size 16px
|
|
61
|
+
:color #FFC875
|
|
62
|
+
ul
|
|
63
|
+
+grid(6,12)
|
|
64
|
+
:list-style-type none
|
|
65
|
+
:text-align right
|
|
66
|
+
:color #CCC
|
|
67
|
+
:padding 0
|
|
68
|
+
:margin 40px 15px 0 0
|
|
69
|
+
li
|
|
70
|
+
:display inline
|
|
71
|
+
:margin 0 0 0 10px
|
|
72
|
+
a
|
|
73
|
+
:text-decoration none
|
|
74
|
+
:color #999
|
|
75
|
+
:font-weight bold
|
|
76
|
+
&.active
|
|
77
|
+
:text-decoration none
|
|
78
|
+
:color #F90
|
|
79
|
+
:font-weight bold
|
|
80
|
+
&:hover
|
|
81
|
+
:text-decoration none
|
|
82
|
+
:color #333
|
|
83
|
+
|
|
84
|
+
#main
|
|
85
|
+
p
|
|
86
|
+
:margin 0 15px 15px 15px
|
|
87
|
+
h1
|
|
88
|
+
:color #F90
|
|
89
|
+
:font-size 140%
|
|
90
|
+
h2, h3
|
|
91
|
+
:margin 0 0 15px 0
|
|
92
|
+
:padding 5px 15px
|
|
93
|
+
:font-size 120%
|
|
94
|
+
:font-weight normal
|
|
95
|
+
:color #F90
|
|
96
|
+
:border-bottom 1px solid #E5E5E5
|
|
97
|
+
.content
|
|
98
|
+
+grid(9,12)
|
|
99
|
+
img
|
|
100
|
+
:border 1px solid #CDCDCD
|
|
101
|
+
:float left
|
|
102
|
+
:margin 0px 15px 5px
|
|
103
|
+
:padding 5px
|
|
104
|
+
.sidebar
|
|
105
|
+
+grid(3,12)
|
|
106
|
+
p.title
|
|
107
|
+
:margin 0px 20px
|
|
108
|
+
:font-weight bold
|
|
109
|
+
:font-style oblique
|
|
110
|
+
|
|
111
|
+
#footer
|
|
112
|
+
.inner
|
|
113
|
+
+grid(12,12)
|
|
114
|
+
:border-top 2px solid #F90
|
|
115
|
+
:color #999
|
|
116
|
+
a
|
|
117
|
+
:color #999
|
|
118
|
+
:text-decoration none
|
|
119
|
+
&:hover
|
|
120
|
+
:color #F90
|
|
121
|
+
:text-decoration none
|
|
122
|
+
.left
|
|
123
|
+
:float left
|
|
124
|
+
.right
|
|
125
|
+
:float right
|
|
126
|
+
:text-align right
|
|
127
|
+
|
|
128
|
+
+sticky-footer(!footer_height, "#wrap", "#main", "#footer")
|
|
129
|
+
|
|
130
|
+
/* Debug
|
|
131
|
+
/* +showgrid(".g12")
|
metadata
CHANGED
|
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
|
5
5
|
segments:
|
|
6
6
|
- 0
|
|
7
7
|
- 9
|
|
8
|
-
-
|
|
9
|
-
version: 0.9.
|
|
8
|
+
- 12
|
|
9
|
+
version: 0.9.12
|
|
10
10
|
platform: ruby
|
|
11
11
|
authors:
|
|
12
12
|
- Percy Lau
|
|
@@ -14,7 +14,7 @@ autorequire:
|
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
16
|
|
|
17
|
-
date: 2010-03-
|
|
17
|
+
date: 2010-03-22 00:00:00 +08:00
|
|
18
18
|
default_executable:
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
@@ -36,25 +36,25 @@ executables: []
|
|
|
36
36
|
extensions: []
|
|
37
37
|
|
|
38
38
|
extra_rdoc_files:
|
|
39
|
-
- README.
|
|
39
|
+
- README.mkd
|
|
40
40
|
- lib/ninesixty.rb
|
|
41
41
|
- lib/ninesixty/compass_plugin.rb
|
|
42
42
|
files:
|
|
43
43
|
- Manifest
|
|
44
|
-
- README.
|
|
44
|
+
- README.mkd
|
|
45
45
|
- Rakefile
|
|
46
46
|
- VERSION
|
|
47
47
|
- lib/ninesixty.rb
|
|
48
48
|
- lib/ninesixty/compass_plugin.rb
|
|
49
49
|
- sass/960/_debug.sass
|
|
50
50
|
- sass/960/_grid.sass
|
|
51
|
+
- sass/960/_sticky_footer.sass
|
|
51
52
|
- sass/960/_text.sass
|
|
52
53
|
- templates/project/12_col.gif
|
|
53
54
|
- templates/project/16_col.gif
|
|
54
|
-
- templates/project/debug.sass
|
|
55
55
|
- templates/project/grid.sass
|
|
56
56
|
- templates/project/manifest.rb
|
|
57
|
-
- templates/project/
|
|
57
|
+
- templates/project/screen.sass
|
|
58
58
|
- itsucks-compass-960-plugin.gemspec
|
|
59
59
|
has_rdoc: true
|
|
60
60
|
homepage: http://github.com/chriseppstein/compass-960-plugin
|
|
@@ -67,7 +67,7 @@ rdoc_options:
|
|
|
67
67
|
- --title
|
|
68
68
|
- Itsucks-compass-960-plugin
|
|
69
69
|
- --main
|
|
70
|
-
- README.
|
|
70
|
+
- README.mkd
|
|
71
71
|
require_paths:
|
|
72
72
|
- lib
|
|
73
73
|
required_ruby_version: !ruby/object:Gem::Requirement
|
data/README.mkdn
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
960 Grid System - Compass Plugin
|
|
2
|
-
================================
|
|
3
|
-
|
|
4
|
-
* Port of Version 1.0
|
|
5
|
-
* 2008-03-24
|
|
6
|
-
|
|
7
|
-
Created by Nathan Smith. See the official site for more info: <http://960.gs/>
|
|
8
|
-
|
|
9
|
-
---------
|
|
10
|
-
|
|
11
|
-
This plugin adds the 960 Grid System framework to [Compass](http://compass-style.org/).
|
|
12
|
-
|
|
13
|
-
Install
|
|
14
|
-
=======
|
|
15
|
-
|
|
16
|
-
sudo gem install itsucks-compass-960-plugin
|
|
17
|
-
|
|
18
|
-
Create a 960-based Compass Project
|
|
19
|
-
==================================
|
|
20
|
-
|
|
21
|
-
compass -r ninesixty -f 960 <project name>
|
|
22
|
-
|
|
23
|
-
Then edit your `grid.sass`, `text.sass` adn `debug.sass` files accordingly. A reset is added into grid.sass automatically.
|
|
24
|
-
|
|
25
|
-
Customizing your Grid System
|
|
26
|
-
============================
|
|
27
|
-
|
|
28
|
-
To create a grid system with other number of columns use the `+grid-system` mixin to generate
|
|
29
|
-
the corresponding classes.
|
|
30
|
-
|
|
31
|
-
Example:
|
|
32
|
-
|
|
33
|
-
#wrap
|
|
34
|
-
+grid-system(24)
|
|
35
|
-
|
|
36
|
-
Making Semantic Grids
|
|
37
|
-
=====================
|
|
38
|
-
|
|
39
|
-
* Use the `+grid-container` mixin to declare your container element.
|
|
40
|
-
* Use the `+grid` mixin to declare a grid element.
|
|
41
|
-
* Use the `+alpha` and `+omega` mixins to declare the first and last grid elements for a row.
|
|
42
|
-
* Use the `+grid-prefix` and `+grid-suffix` mixins to add grid columns before or after a grid element.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
Example:
|
|
46
|
-
|
|
47
|
-
#wrap
|
|
48
|
-
+grid-container
|
|
49
|
-
#left-nav
|
|
50
|
-
+alpha
|
|
51
|
-
+grid(5,16)
|
|
52
|
-
#main-content
|
|
53
|
-
+grid-prefix(1,16)
|
|
54
|
-
+grid(10, 16)
|
|
55
|
-
+omega
|
|
56
|
-
|
|
57
|
-
Debug Grids
|
|
58
|
-
===========
|
|
59
|
-
|
|
60
|
-
+showgrid_12(!selector = ".wrap_12")
|
|
61
|
-
+showgrid_16(!selector = ".wrap_16")
|