chriseppstein-compass 0.3.3 → 0.3.4

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 CHANGED
@@ -38,8 +38,10 @@ examples/blueprint_semantic/stylesheets/liquid.sass
38
38
  examples/blueprint_semantic/stylesheets/print.sass
39
39
  examples/blueprint_semantic/stylesheets/screen.sass
40
40
  examples/compass/compass.html
41
+ examples/compass/sticky_footer.html.haml
41
42
  examples/compass/stylesheets/compass.sass
42
43
  examples/compass/stylesheets/images/blue_arrow.gif
44
+ examples/compass/stylesheets/sticky_footer.sass
43
45
  examples/compass/stylesheets/utilities.sass
44
46
  examples/compass/utilities.html.haml
45
47
  examples/yui/divisions.html.haml
@@ -70,8 +72,10 @@ frameworks/blueprint/templates/project/ie.sass
70
72
  frameworks/blueprint/templates/project/print.sass
71
73
  frameworks/blueprint/templates/project/screen.sass
72
74
  frameworks/compass/stylesheets/_compass.sass
75
+ frameworks/compass/stylesheets/compass/_layout.sass
73
76
  frameworks/compass/stylesheets/compass/_reset.sass
74
77
  frameworks/compass/stylesheets/compass/_utilities.sass
78
+ frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
75
79
  frameworks/compass/stylesheets/compass/utilities/_general.sass
76
80
  frameworks/compass/stylesheets/compass/utilities/_links.sass
77
81
  frameworks/compass/stylesheets/compass/utilities/_lists.sass
@@ -138,6 +142,14 @@ test/fixtures/stylesheets/blueprint/sass/ie.sass
138
142
  test/fixtures/stylesheets/blueprint/sass/print.sass
139
143
  test/fixtures/stylesheets/blueprint/sass/screen.sass
140
144
  test/fixtures/stylesheets/blueprint/sass/typography.sass
145
+ test/fixtures/stylesheets/compass/css/layout.css
146
+ test/fixtures/stylesheets/compass/css/print.css
147
+ test/fixtures/stylesheets/compass/css/reset.css
148
+ test/fixtures/stylesheets/compass/css/utilities.css
149
+ test/fixtures/stylesheets/compass/sass/layout.sass
150
+ test/fixtures/stylesheets/compass/sass/print.sass
151
+ test/fixtures/stylesheets/compass/sass/reset.sass
152
+ test/fixtures/stylesheets/compass/sass/utilities.sass
141
153
  test/fixtures/stylesheets/yui/css/mixins.css
142
154
  test/fixtures/stylesheets/yui/sass/base.sass
143
155
  test/fixtures/stylesheets/yui/sass/fonts.sass
data/Rakefile CHANGED
@@ -97,8 +97,16 @@ task :examples do
97
97
  end
98
98
  end
99
99
 
100
- task :git_clean do
101
- sh "git", "clean", "-fdx"
100
+ namespace :git do
101
+ desc "Perform normal operations required for pushing to github."
102
+ task :push => [:manifest, :gem] do
103
+ sh "git", "add", "Manifest", "compass.gemspec"
104
+ sh "git", "commit", "-m", "Updated Manifest and gemspec."
105
+ sh "git", "push", "origin", "master"
106
+ end
107
+ task :clean do
108
+ sh "git", "clean", "-fdx"
109
+ end
102
110
  end
103
111
 
104
- task :manifest => :git_clean
112
+ task :manifest => :"git:clean"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
data/compass.gemspec CHANGED
@@ -1,21 +1,23 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  Gem::Specification.new do |s|
2
4
  s.name = %q{compass}
3
- s.version = "0.3.3"
5
+ s.version = "0.3.4"
4
6
 
5
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
6
8
  s.authors = ["Chris Eppstein"]
7
- s.date = %q{2008-12-08}
9
+ s.date = %q{2008-12-17}
8
10
  s.default_executable = %q{compass}
9
11
  s.description = %q{Sass-Based CSS Meta-Framework. Semantic, Maintainable CSS.}
10
12
  s.email = %q{chris@eppsteins.net}
11
13
  s.executables = ["compass"]
12
14
  s.extra_rdoc_files = ["bin/compass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "README.markdown"]
13
- s.files = ["bin/compass", "compass.gemspec", "examples/blueprint_default/index.html", "examples/blueprint_default/parts/elements.html", "examples/blueprint_default/parts/forms.html", "examples/blueprint_default/parts/grid.html", "examples/blueprint_default/parts/test-small.jpg", "examples/blueprint_default/parts/test.jpg", "examples/blueprint_default/parts/valid.png", "examples/blueprint_default/stylesheets/ie.sass", "examples/blueprint_default/stylesheets/images/grid.png", "examples/blueprint_default/stylesheets/print.sass", "examples/blueprint_default/stylesheets/screen.sass", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/parts/fancy_type.html", "examples/blueprint_plugins/parts/test-small.jpg", "examples/blueprint_plugins/parts/test.jpg", "examples/blueprint_plugins/parts/valid.png", "examples/blueprint_plugins/stylesheets/ie.sass", "examples/blueprint_plugins/stylesheets/images/grid.png", "examples/blueprint_plugins/stylesheets/print.sass", "examples/blueprint_plugins/stylesheets/screen.sass", "examples/blueprint_scoped/stylesheets/ie.sass", "examples/blueprint_scoped/stylesheets/print.sass", "examples/blueprint_scoped/stylesheets/screen.sass", "examples/blueprint_scoped_form/stylesheets/ie.sass", "examples/blueprint_scoped_form/stylesheets/print.sass", "examples/blueprint_scoped_form/stylesheets/screen.sass", "examples/blueprint_semantic/index.html", "examples/blueprint_semantic/parts/fancy_type.html", "examples/blueprint_semantic/parts/liquid.html", "examples/blueprint_semantic/parts/test-small.jpg", "examples/blueprint_semantic/parts/test.jpg", "examples/blueprint_semantic/parts/valid.png", "examples/blueprint_semantic/stylesheets/ie.sass", "examples/blueprint_semantic/stylesheets/images/grid.png", "examples/blueprint_semantic/stylesheets/liquid.sass", "examples/blueprint_semantic/stylesheets/print.sass", "examples/blueprint_semantic/stylesheets/screen.sass", "examples/compass/compass.html", "examples/compass/stylesheets/compass.sass", "examples/compass/stylesheets/images/blue_arrow.gif", "examples/compass/stylesheets/utilities.sass", "examples/compass/utilities.html.haml", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/stylesheets/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "frameworks/blueprint/lib/blueprint/constants.rb", "frameworks/blueprint/lib/blueprint/grid_builder.rb", "frameworks/blueprint/stylesheets/_blueprint.sass", "frameworks/blueprint/stylesheets/blueprint/_ie.sass", "frameworks/blueprint/stylesheets/blueprint/_print.sass", "frameworks/blueprint/stylesheets/blueprint/_screen.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_form.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_reset.sass", "frameworks/compass/stylesheets/compass/_utilities.sass", "frameworks/compass/stylesheets/compass/utilities/_general.sass", "frameworks/compass/stylesheets/compass/utilities/_links.sass", "frameworks/compass/stylesheets/compass/utilities/_lists.sass", "frameworks/compass/stylesheets/compass/utilities/_print.sass", "frameworks/compass/stylesheets/compass/utilities/_tables.sass", "frameworks/compass/stylesheets/compass/utilities/_text.sass", "frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass", "frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass", "frameworks/compass/stylesheets/compass/utilities/general/_reset.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass", "frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass", "frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass", "frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/grid.png", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/yui/COPYRIGHT", "frameworks/yui/stylesheets/_yui.sass", "frameworks/yui/stylesheets/yui/modules/_base.sass", "frameworks/yui/stylesheets/yui/modules/_fonts.sass", "frameworks/yui/stylesheets/yui/modules/_grids.sass", "frameworks/yui/templates/project/screen.sass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/compass_test.rb", "test/fixtures/stylesheets/blueprint/css/typography.css", "test/fixtures/stylesheets/blueprint/sass/ie.sass", "test/fixtures/stylesheets/blueprint/sass/print.sass", "test/fixtures/stylesheets/blueprint/sass/screen.sass", "test/fixtures/stylesheets/blueprint/sass/typography.sass", "test/fixtures/stylesheets/yui/css/mixins.css", "test/fixtures/stylesheets/yui/sass/base.sass", "test/fixtures/stylesheets/yui/sass/fonts.sass", "test/fixtures/stylesheets/yui/sass/grids.sass", "test/fixtures/stylesheets/yui/sass/mixins.sass", "test/sass_extensions_test.rb", "test/test_helper.rb", "VERSION"]
15
+ s.files = ["bin/compass", "compass.gemspec", "examples/blueprint_default/index.html", "examples/blueprint_default/parts/elements.html", "examples/blueprint_default/parts/forms.html", "examples/blueprint_default/parts/grid.html", "examples/blueprint_default/parts/test-small.jpg", "examples/blueprint_default/parts/test.jpg", "examples/blueprint_default/parts/valid.png", "examples/blueprint_default/stylesheets/ie.sass", "examples/blueprint_default/stylesheets/images/grid.png", "examples/blueprint_default/stylesheets/print.sass", "examples/blueprint_default/stylesheets/screen.sass", "examples/blueprint_plugins/index.html", "examples/blueprint_plugins/parts/fancy_type.html", "examples/blueprint_plugins/parts/test-small.jpg", "examples/blueprint_plugins/parts/test.jpg", "examples/blueprint_plugins/parts/valid.png", "examples/blueprint_plugins/stylesheets/ie.sass", "examples/blueprint_plugins/stylesheets/images/grid.png", "examples/blueprint_plugins/stylesheets/print.sass", "examples/blueprint_plugins/stylesheets/screen.sass", "examples/blueprint_scoped/stylesheets/ie.sass", "examples/blueprint_scoped/stylesheets/print.sass", "examples/blueprint_scoped/stylesheets/screen.sass", "examples/blueprint_scoped_form/stylesheets/ie.sass", "examples/blueprint_scoped_form/stylesheets/print.sass", "examples/blueprint_scoped_form/stylesheets/screen.sass", "examples/blueprint_semantic/index.html", "examples/blueprint_semantic/parts/fancy_type.html", "examples/blueprint_semantic/parts/liquid.html", "examples/blueprint_semantic/parts/test-small.jpg", "examples/blueprint_semantic/parts/test.jpg", "examples/blueprint_semantic/parts/valid.png", "examples/blueprint_semantic/stylesheets/ie.sass", "examples/blueprint_semantic/stylesheets/images/grid.png", "examples/blueprint_semantic/stylesheets/liquid.sass", "examples/blueprint_semantic/stylesheets/print.sass", "examples/blueprint_semantic/stylesheets/screen.sass", "examples/compass/compass.html", "examples/compass/sticky_footer.html.haml", "examples/compass/stylesheets/compass.sass", "examples/compass/stylesheets/images/blue_arrow.gif", "examples/compass/stylesheets/sticky_footer.sass", "examples/compass/stylesheets/utilities.sass", "examples/compass/utilities.html.haml", "examples/yui/divisions.html.haml", "examples/yui/index.html.haml", "examples/yui/stylesheets/screen.sass", "examples/yui/sub_divisions.html.haml", "examples/yui/templates.html.haml", "examples/yui/test.jpg", "examples/yui/typography.html.haml", "frameworks/blueprint/lib/blueprint/constants.rb", "frameworks/blueprint/lib/blueprint/grid_builder.rb", "frameworks/blueprint/stylesheets/_blueprint.sass", "frameworks/blueprint/stylesheets/blueprint/_ie.sass", "frameworks/blueprint/stylesheets/blueprint/_print.sass", "frameworks/blueprint/stylesheets/blueprint/_screen.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_form.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass", "frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass", "frameworks/blueprint/templates/project/grid.png", "frameworks/blueprint/templates/project/ie.sass", "frameworks/blueprint/templates/project/print.sass", "frameworks/blueprint/templates/project/screen.sass", "frameworks/compass/stylesheets/_compass.sass", "frameworks/compass/stylesheets/compass/_layout.sass", "frameworks/compass/stylesheets/compass/_reset.sass", "frameworks/compass/stylesheets/compass/_utilities.sass", "frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass", "frameworks/compass/stylesheets/compass/utilities/_general.sass", "frameworks/compass/stylesheets/compass/utilities/_links.sass", "frameworks/compass/stylesheets/compass/utilities/_lists.sass", "frameworks/compass/stylesheets/compass/utilities/_print.sass", "frameworks/compass/stylesheets/compass/utilities/_tables.sass", "frameworks/compass/stylesheets/compass/utilities/_text.sass", "frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass", "frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass", "frameworks/compass/stylesheets/compass/utilities/general/_reset.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass", "frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass", "frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass", "frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass", "frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass", "frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass", "frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass", "frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass", "frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass", "frameworks/compass/templates/project/grid.png", "frameworks/compass/templates/project/ie.sass", "frameworks/compass/templates/project/print.sass", "frameworks/compass/templates/project/screen.sass", "frameworks/yui/COPYRIGHT", "frameworks/yui/stylesheets/_yui.sass", "frameworks/yui/stylesheets/yui/modules/_base.sass", "frameworks/yui/stylesheets/yui/modules/_fonts.sass", "frameworks/yui/stylesheets/yui/modules/_grids.sass", "frameworks/yui/templates/project/screen.sass", "lib/compass/commands/base.rb", "lib/compass/commands/create_project.rb", "lib/compass/commands/install_rails.rb", "lib/compass/commands/print_version.rb", "lib/compass/commands/update_project.rb", "lib/compass/commands/watch_project.rb", "lib/compass/core_ext.rb", "lib/compass/exec.rb", "lib/compass/frameworks/blueprint.rb", "lib/compass/frameworks/compass.rb", "lib/compass/frameworks/yui.rb", "lib/compass/frameworks.rb", "lib/compass/merb.rb", "lib/compass/test_case.rb", "lib/compass/validate/COPYRIGHT.html", "lib/compass/validate/css-validator-javadoc.jar", "lib/compass/validate/css-validator.jar", "lib/compass/validate/jigsaw.jar", "lib/compass/validate/JIGSAW_COPYRIGHT", "lib/compass/validate/README.html", "lib/compass/validate/xerces.jar", "lib/compass/validate/XERCES_COPYING.txt", "lib/compass/validate.rb", "lib/compass/validator.rb", "lib/compass/version.rb", "lib/compass.rb", "lib/sass_extensions.rb", "Manifest", "Rakefile", "README.markdown", "test/compass_test.rb", "test/fixtures/stylesheets/blueprint/css/typography.css", "test/fixtures/stylesheets/blueprint/sass/ie.sass", "test/fixtures/stylesheets/blueprint/sass/print.sass", "test/fixtures/stylesheets/blueprint/sass/screen.sass", "test/fixtures/stylesheets/blueprint/sass/typography.sass", "test/fixtures/stylesheets/yui/css/mixins.css", "test/fixtures/stylesheets/yui/sass/base.sass", "test/fixtures/stylesheets/yui/sass/fonts.sass", "test/fixtures/stylesheets/yui/sass/grids.sass", "test/fixtures/stylesheets/yui/sass/mixins.sass", "test/sass_extensions_test.rb", "test/test_helper.rb", "VERSION"]
14
16
  s.homepage = %q{http://github.com/chriseppstein/compass}
15
17
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Compass", "--main", "README.markdown"]
16
18
  s.require_paths = ["lib"]
17
19
  s.rubyforge_project = %q{compass}
18
- s.rubygems_version = %q{1.2.0}
20
+ s.rubygems_version = %q{1.3.1}
19
21
  s.summary = %q{Sass-Based CSS Meta-Framework.}
20
22
  s.test_files = ["test/compass_test.rb", "test/sass_extensions_test.rb", "test/test_helper.rb"]
21
23
 
@@ -23,7 +25,7 @@ Gem::Specification.new do |s|
23
25
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
24
26
  s.specification_version = 2
25
27
 
26
- if current_version >= 3 then
28
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
27
29
  s.add_runtime_dependency(%q<haml>, [">= 0"])
28
30
  s.add_development_dependency(%q<echoe>, [">= 0"])
29
31
  else
@@ -43,7 +43,7 @@ body#sample
43
43
  +column(8)
44
44
  +colborder
45
45
  #aligned-box
46
- +column(7, last)
46
+ +column(7, true)
47
47
  #main
48
48
  +column(15)
49
49
  +prepend(1)
@@ -59,9 +59,9 @@ body#sample
59
59
  +column(7)
60
60
  +colborder
61
61
  #nested-2
62
- +column(7, last)
62
+ +column(7, true)
63
63
  #sidebar
64
- +column(7, last)
64
+ +column(7, true)
65
65
  h3
66
66
  em
67
67
  +reset
@@ -42,7 +42,7 @@ body#sample
42
42
  +column(8)
43
43
  +colborder
44
44
  #aligned-box
45
- +column(7, last)
45
+ +column(7, true)
46
46
  #main
47
47
  +column(15)
48
48
  +prepend(1)
@@ -58,9 +58,9 @@ body#sample
58
58
  +column(7)
59
59
  +colborder
60
60
  #nested-2
61
- +column(7, last)
61
+ +column(7, true)
62
62
  #sidebar
63
- +column(7, last)
63
+ +column(7, true)
64
64
  h3
65
65
  em
66
66
  +reset
@@ -0,0 +1,14 @@
1
+ !!! Transitional
2
+ %html{:xmlns => "http://www.w3.org/1999/xhtml", "xml:lang" => "en", :lang => "en"}
3
+ %head
4
+ %meta{'http-equiv' => "content-type", :content => "text/html;charset=UTF-8"}
5
+ %title Compass Sticky Footer Example
6
+ %link{:rel=>"stylesheet", :href=>"stylesheets/sticky_footer.css", :type=>"text/css", :media=>"screen, projection"}
7
+ %body
8
+ #layout
9
+ #header
10
+ %h1 Sticky Footer Example
11
+ This is the main content area.
12
+ #layout_footer
13
+ #footer
14
+ This is the footer area.
@@ -0,0 +1,11 @@
1
+ @import compass/reset.sass
2
+ @import compass/layout.sass
3
+
4
+ +sticky-footer(72px, "#layout", "#layout_footer", "#footer")
5
+
6
+ #header
7
+ :background #999
8
+ :height 72px
9
+
10
+ #footer
11
+ :background #ccc
@@ -50,13 +50,13 @@ h2
50
50
  +no-bullets
51
51
 
52
52
  #lists
53
- +column(8, last)
53
+ +column(8, true)
54
54
  ul.inline
55
55
  +inline-list
56
56
  ul.comma-delimited
57
57
  +comma-delimited-list
58
58
  ol.pretty
59
- +pretty-bullets(images/blue_arrow.gif, 5px, 7px, 24px)
59
+ +pretty-bullets("images/blue_arrow.gif", 5px, 7px, 24px)
60
60
 
61
61
  #tables
62
62
  +column(16)
@@ -20,7 +20,7 @@
20
20
  =feedback-base
21
21
  :padding .8em
22
22
  :margin-bottom 1em
23
- :border= 2px solid !feedback_border_color
23
+ :border= 2px "solid" !feedback_border_color
24
24
 
25
25
  =error
26
26
  +feedback-base
@@ -1,8 +1,8 @@
1
1
  @import colors.sass
2
2
  @import compass/utilities/links/link_colors.sass
3
3
 
4
- !blueprint_font_family ||= "Helvetica Neue", Helvetica, Arial, sans-serif
5
- !blueprint_fixed_font_family ||= 'andale mono', 'lucida console', monospace
4
+ !blueprint_font_family ||= "Helvetica Neue, Helvetica, Arial, sans-serif"
5
+ !blueprint_fixed_font_family ||= "'andale mono', 'lucida console', monospace"
6
6
 
7
7
  // The +blueprint-typography mixin must be mixed into the top level of your stylesheet.
8
8
  // However, you can customize the body selector if you wish to control the scope
@@ -0,0 +1 @@
1
+ @import layout/sticky_footer.sass
@@ -1,3 +1,3 @@
1
1
  @import utilities/general/reset.sass
2
2
 
3
- =global-reset
3
+ +global-reset
@@ -0,0 +1,17 @@
1
+ // Based on http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
2
+ // Mix into the top level.
3
+ // Footer element must be outside of root wrapper element.
4
+ // Footer must be a fixed height.
5
+
6
+ =sticky-footer(!footer_height, !root_selector = "#root", !root_footer_selector = "#root_footer", !footer_selector = "#footer")
7
+ html, body
8
+ :height 100%
9
+ #{!root_selector}
10
+ :min-height 100%
11
+ :margin-bottom= -!footer_height
12
+ #{!root_footer_selector}
13
+ :height= !footer_height
14
+ #{!footer_selector}
15
+ :clear both
16
+ :position relative
17
+ :height= !footer_height
@@ -11,11 +11,11 @@
11
11
  // Make a list(ul/ol) have an image bullet
12
12
  // mixin should be used like this for an icon that is 5x7:
13
13
  // ul.pretty
14
- // +pretty-bullets(/images/my-icon.png, 5px, 7px)
14
+ // +pretty-bullets("/images/my-icon.png", 5px, 7px)
15
15
  =pretty-bullets(!bullet_icon, !width, !height, !line_height = 18px, !padding = 14px)
16
16
  :margin-left 0
17
17
  li
18
18
  :padding-left= !padding
19
- :background= url(!bullet_icon) no-repeat ((!padding - !width) / 2) ((!line_height - !height) / 2)
19
+ :background= url(!bullet_icon) "no-repeat" ((!padding - !width) / 2) ((!line_height - !height) / 2)
20
20
  :list-style-type none
21
21
 
@@ -1,6 +1,6 @@
1
1
  !yui_default_base_font_size ||= 13px
2
2
  !yui_default_base_line_height ||= 1.231
3
- !yui_default_font_family ||= arial,helvetica,clean,sans-serif
3
+ !yui_default_font_family ||= "arial,helvetica,clean,sans-serif"
4
4
 
5
5
  // Sets the font size specified in pixels using percents so that the base
6
6
  // font size changes and 1em has the correct value. When nesting font size
@@ -157,7 +157,7 @@
157
157
  #{nest(!g_33_33_33, !unit)}
158
158
  float: right
159
159
 
160
- #{nest(!g_33_33_33, div.first)}
160
+ #{nest(!g_33_33_33, "div.first")}
161
161
  margin-left: 0
162
162
  float: left
163
163
 
@@ -179,7 +179,7 @@
179
179
  *width: 66%
180
180
  _width: 61.2%
181
181
 
182
- #{nest(!g_33_33_33, !g_33_67, div.first)}
182
+ #{nest(!g_33_33_33, !g_33_67, "div.first")}
183
183
  *width: 31%
184
184
  _width: 29.5%
185
185
 
@@ -192,7 +192,7 @@
192
192
  margin-right: 0
193
193
  _margin-left: 0
194
194
 
195
- #{nest(!g_33_33_33, !g_67_33, div.first)}
195
+ #{nest(!g_33_33_33, !g_67_33, "div.first")}
196
196
  width: 66%
197
197
  *float: left
198
198
  *margin-left: 0
@@ -223,7 +223,7 @@
223
223
  #{nest(!g_50_50, !g_75_25)},
224
224
  #{!g_50_50},
225
225
  #{!g_67_33},
226
- #{nest(!g_67_33, div.first)},
226
+ #{nest(!g_67_33, "div.first")},
227
227
  #{!g_33_67},
228
228
  #{!g_75_25},
229
229
  #{!g_25_75}
@@ -242,10 +242,10 @@
242
242
  *width: 48.1%
243
243
  *margin-left: 0
244
244
 
245
- #{nest(!g_50_50, !g_50_50, div.first)}
245
+ #{nest(!g_50_50, !g_50_50, "div.first")}
246
246
  *margin: 0
247
247
 
248
- #{nest(!g_33_33_33, !g_50_50, div.first)}
248
+ #{nest(!g_33_33_33, !g_50_50, "div.first")}
249
249
  *margin-right: 4%
250
250
  _margin-right: 1.3%
251
251
 
@@ -281,8 +281,8 @@
281
281
  div.first
282
282
  margin-left: 0
283
283
 
284
- #{nest(!g_50_50, !g_67_33, div.first)},
285
- #{nest(!g_67_33, div.first)},
284
+ #{nest(!g_50_50, !g_67_33, "div.first")},
285
+ #{nest(!g_67_33, "div.first")},
286
286
  #{nest(!g_33_67, !g_50_50)},
287
287
  #{nest(!g_33_67, !unit)}
288
288
  width: 66%
@@ -292,12 +292,12 @@
292
292
  div.first
293
293
  width: 32%
294
294
 
295
- #{nest(!g_50_50, !g_33_67, div.first)}
295
+ #{nest(!g_50_50, !g_33_67, "div.first")}
296
296
  _width: 29.9%
297
297
 
298
298
  #{nest(!g_75_25, !unit)},
299
299
  #{nest(!g_75_25, !g_50_50)},
300
- #{nest(!g_25_75, div.first)}
300
+ #{nest(!g_25_75, "div.first")}
301
301
  width: 24%
302
302
 
303
303
  #{!g_33_33_33}
@@ -312,19 +312,19 @@
312
312
  div.first
313
313
  float: left
314
314
 
315
- #{nest(!g_75_25, div.first)},
315
+ #{nest(!g_75_25, "div.first")},
316
316
  #{nest(!g_25_75, !g_50_50)},
317
317
  #{nest(!g_25_75, !unit)}
318
318
  width: 74.2%
319
319
 
320
320
  #{!g_33_33_33}
321
321
  #{nest(!g_75_25, !unit)},
322
- #{nest(!g_25_75, div.first)}
322
+ #{nest(!g_25_75, "div.first")}
323
323
  *width: 24%
324
324
  _width: 20%
325
325
 
326
326
  #{!g_33_33_33}
327
- #{nest(!g_75_25, div.first)},
327
+ #{nest(!g_75_25, "div.first")},
328
328
  #{nest(!g_25_75, !unit)}
329
329
  *width: 73.5%
330
330
  _width: 65.5%
data/lib/compass.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'sass'
2
3
  require File.join(File.dirname(__FILE__), 'sass_extensions')
3
4
 
data/test/compass_test.rb CHANGED
@@ -50,6 +50,14 @@ class CompassTest < Test::Unit::TestCase
50
50
  assert_renders_correctly :mixins
51
51
  end
52
52
  end
53
+ def test_compass
54
+ with_templates('compass') do
55
+ each_css_file(tempfile_loc('compass')) do |css_file|
56
+ assert_no_errors css_file, 'compass'
57
+ end
58
+ assert_renders_correctly :reset, :layout, :utilities
59
+ end
60
+ end
53
61
  private
54
62
  def assert_no_errors(css_file, folder)
55
63
  file = css_file[(tempfile_loc(folder).size+1)..-1]
@@ -58,17 +66,18 @@ class CompassTest < Test::Unit::TestCase
58
66
  end
59
67
  def assert_renders_correctly(*arguments)
60
68
  options = arguments.last.is_a?(Hash) ? arguments.pop : {}
61
- name = arguments.shift
62
- actual_result_file = "#{tempfile_loc(@current_template_folder)}/#{name}.css"
63
- expected_result_file = "#{result_loc(@current_template_folder)}/#{name}.css"
64
- actual_lines = File.read(actual_result_file).split("\n")
65
- expected_lines = File.read(expected_result_file).split("\n")
66
- expected_lines.zip(actual_lines).each_with_index do |pair, line|
67
- message = "template: #{name}\nline: #{line + 1}"
68
- assert_equal(pair.first, pair.last, message)
69
- end
70
- if expected_lines.size < actual_lines.size
71
- assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}.css: #{actual_lines[expected_lines.size..-1].join('\n')}")
69
+ for name in arguments
70
+ actual_result_file = "#{tempfile_loc(@current_template_folder)}/#{name}.css"
71
+ expected_result_file = "#{result_loc(@current_template_folder)}/#{name}.css"
72
+ actual_lines = File.read(actual_result_file).split("\n")
73
+ expected_lines = File.read(expected_result_file).split("\n")
74
+ expected_lines.zip(actual_lines).each_with_index do |pair, line|
75
+ message = "template: #{name}\nline: #{line + 1}"
76
+ assert_equal(pair.first, pair.last, message)
77
+ end
78
+ if expected_lines.size < actual_lines.size
79
+ assert(false, "#{actual_lines.size - expected_lines.size} Trailing lines found in #{actual_result_file}.css: #{actual_lines[expected_lines.size..-1].join('\n')}")
80
+ end
72
81
  end
73
82
  end
74
83
  def with_templates(folder)
@@ -4,14 +4,14 @@
4
4
  +blueprint
5
5
  #main.container
6
6
  #top
7
- +column(24, last)
7
+ +column(24, true)
8
8
  #middle
9
- +column(24, last)
9
+ +column(24, true)
10
10
  #left
11
11
  +column(6)
12
12
  #content
13
13
  +column(12)
14
14
  #right
15
- +column(6, last)
15
+ +column(6, true)
16
16
  #bottom
17
- +column(24, last)
17
+ +column(24, true)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chriseppstein-compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Eppstein
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-08 00:00:00 -08:00
12
+ date: 2008-12-17 00:00:00 -08:00
13
13
  default_executable: compass
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -107,8 +107,10 @@ files:
107
107
  - examples/blueprint_semantic/stylesheets/print.sass
108
108
  - examples/blueprint_semantic/stylesheets/screen.sass
109
109
  - examples/compass/compass.html
110
+ - examples/compass/sticky_footer.html.haml
110
111
  - examples/compass/stylesheets/compass.sass
111
112
  - examples/compass/stylesheets/images/blue_arrow.gif
113
+ - examples/compass/stylesheets/sticky_footer.sass
112
114
  - examples/compass/stylesheets/utilities.sass
113
115
  - examples/compass/utilities.html.haml
114
116
  - examples/yui/divisions.html.haml
@@ -139,8 +141,10 @@ files:
139
141
  - frameworks/blueprint/templates/project/print.sass
140
142
  - frameworks/blueprint/templates/project/screen.sass
141
143
  - frameworks/compass/stylesheets/_compass.sass
144
+ - frameworks/compass/stylesheets/compass/_layout.sass
142
145
  - frameworks/compass/stylesheets/compass/_reset.sass
143
146
  - frameworks/compass/stylesheets/compass/_utilities.sass
147
+ - frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass
144
148
  - frameworks/compass/stylesheets/compass/utilities/_general.sass
145
149
  - frameworks/compass/stylesheets/compass/utilities/_links.sass
146
150
  - frameworks/compass/stylesheets/compass/utilities/_lists.sass