compass 0.12.0 → 0.12.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (212) hide show
  1. checksums.yaml +7 -0
  2. data/README.markdown +18 -46
  3. data/Rakefile +34 -3
  4. data/bin/compass +2 -1
  5. data/features/command_line.feature +1 -0
  6. data/features/step_definitions/command_line_steps.rb +1 -1
  7. data/frameworks/compass/stylesheets/compass/_css3.scss +4 -0
  8. data/frameworks/compass/stylesheets/compass/_support.scss +4 -0
  9. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +7 -3
  10. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +4 -10
  11. data/frameworks/compass/stylesheets/compass/css3/_box.scss +2 -2
  12. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +107 -10
  13. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +23 -0
  14. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +4 -4
  15. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +77 -0
  16. data/frameworks/compass/stylesheets/compass/css3/_images.scss +2 -2
  17. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +13 -7
  18. data/frameworks/compass/stylesheets/compass/css3/_regions.scss +22 -0
  19. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +52 -13
  20. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +20 -20
  21. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +128 -61
  22. data/frameworks/compass/stylesheets/compass/reset/_utilities.scss +4 -2
  23. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +69 -62
  24. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +35 -9
  25. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +1 -1
  26. data/lib/compass/actions.rb +6 -4
  27. data/lib/compass/commands.rb +4 -3
  28. data/lib/compass/commands/extension_command.rb +60 -0
  29. data/lib/compass/commands/project_base.rb +7 -1
  30. data/lib/compass/commands/update_project.rb +2 -2
  31. data/lib/compass/compiler.rb +1 -2
  32. data/lib/compass/configuration/adapters.rb +8 -2
  33. data/lib/compass/configuration/data.rb +1 -0
  34. data/lib/compass/exec/global_options_parser.rb +8 -1
  35. data/lib/compass/exec/project_options_parser.rb +8 -0
  36. data/lib/compass/sass_extensions/functions/colors.rb +14 -0
  37. data/lib/compass/sass_extensions/functions/constants.rb +9 -0
  38. data/lib/compass/sass_extensions/functions/font_files.rb +4 -2
  39. data/lib/compass/sass_extensions/functions/gradient_support.rb +11 -4
  40. data/lib/compass/sass_extensions/functions/math.rb +1 -1
  41. data/lib/compass/sass_extensions/functions/sprites.rb +10 -2
  42. data/lib/compass/sass_extensions/sprites/engines.rb +3 -3
  43. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +8 -6
  44. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +3 -2
  45. data/lib/compass/sprite_importer.rb +1 -1
  46. data/lib/compass/version.rb +15 -11
  47. data/test/fixtures/stylesheets/blueprint/css/screen.css +3 -4
  48. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +6 -8
  49. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +1 -2
  50. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +1 -1
  51. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +8 -2
  52. data/test/fixtures/stylesheets/compass/css/border_radius.css +0 -6
  53. data/test/fixtures/stylesheets/compass/css/columns.css +126 -12
  54. data/test/fixtures/stylesheets/compass/css/filters.css +29 -0
  55. data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
  56. data/test/fixtures/stylesheets/compass/css/gradients.css +1 -25
  57. data/test/fixtures/stylesheets/compass/css/grid_background.css +7 -14
  58. data/test/fixtures/stylesheets/compass/css/hyphenation.css +16 -0
  59. data/test/fixtures/stylesheets/compass/css/lists.css +6 -8
  60. data/test/fixtures/stylesheets/compass/css/pie.css +0 -1
  61. data/test/fixtures/stylesheets/compass/css/regions.css +7 -0
  62. data/test/fixtures/stylesheets/compass/css/replacement.css +59 -0
  63. data/test/fixtures/stylesheets/compass/css/reset.css +2 -2
  64. data/test/fixtures/stylesheets/compass/css/text_shadow.css +22 -4
  65. data/test/fixtures/stylesheets/compass/css/transform.css +108 -0
  66. data/test/fixtures/stylesheets/compass/css/transition.css +67 -10
  67. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +25 -25
  68. data/test/fixtures/stylesheets/compass/sass/columns.scss +19 -0
  69. data/test/fixtures/stylesheets/compass/sass/filters.scss +24 -0
  70. data/test/fixtures/stylesheets/compass/sass/gradients.sass +2 -4
  71. data/test/fixtures/stylesheets/compass/sass/hyphenation.scss +11 -0
  72. data/test/fixtures/stylesheets/compass/sass/regions.scss +4 -0
  73. data/test/fixtures/stylesheets/compass/sass/replacement.scss +22 -0
  74. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +6 -1
  75. data/test/fixtures/stylesheets/compass/sass/transition.scss +12 -0
  76. data/test/helpers/test_case.rb +8 -1
  77. data/test/integrations/sprites_test.rb +5 -5
  78. data/test/test_helper.rb +2 -1
  79. data/test/units/compass_module_test.rb +1 -1
  80. data/test/units/configuration_test.rb +15 -0
  81. data/test/units/regressions_test.rb +35 -0
  82. data/test/units/sass_extensions_test.rb +33 -11
  83. metadata +62 -222
  84. data/VERSION.yml +0 -5
  85. data/bin/compass.compiled.rbc +0 -707
  86. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  87. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  88. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  89. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  90. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  91. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf +0 -0
  92. data/lib/compass.rbc +0 -796
  93. data/lib/compass/actions.rbc +0 -2736
  94. data/lib/compass/app_integration.rbc +0 -836
  95. data/lib/compass/app_integration/merb.rbc +0 -106
  96. data/lib/compass/app_integration/rails.rbc +0 -2096
  97. data/lib/compass/app_integration/rails/configuration_defaults.rbc +0 -2430
  98. data/lib/compass/app_integration/rails/installer.rbc +0 -3677
  99. data/lib/compass/app_integration/stand_alone.rbc +0 -589
  100. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +0 -721
  101. data/lib/compass/app_integration/stand_alone/installer.rbc +0 -1487
  102. data/lib/compass/browser_support.rbc +0 -1144
  103. data/lib/compass/commands.rbc +0 -307
  104. data/lib/compass/commands/base.rbc +0 -1044
  105. data/lib/compass/commands/clean_project.rbc +0 -1856
  106. data/lib/compass/commands/create_project.rbc +0 -2691
  107. data/lib/compass/commands/default.rbc +0 -1677
  108. data/lib/compass/commands/generate_grid_background.rbc +0 -1939
  109. data/lib/compass/commands/help.rbc +0 -1921
  110. data/lib/compass/commands/imports.rbc +0 -969
  111. data/lib/compass/commands/installer_command.rbc +0 -807
  112. data/lib/compass/commands/interactive.rbc +0 -1341
  113. data/lib/compass/commands/list_frameworks.rbc +0 -1111
  114. data/lib/compass/commands/print_version.rbc +0 -2478
  115. data/lib/compass/commands/project_base.rbc +0 -2085
  116. data/lib/compass/commands/project_stats.rbc +0 -4202
  117. data/lib/compass/commands/registry.rbc +0 -1350
  118. data/lib/compass/commands/sprite.rbc +0 -2212
  119. data/lib/compass/commands/stamp_pattern.rbc +0 -2011
  120. data/lib/compass/commands/unpack_extension.rbc +0 -2348
  121. data/lib/compass/commands/update_project.rbc +0 -3002
  122. data/lib/compass/commands/validate_project.rbc +0 -1686
  123. data/lib/compass/commands/watch_project.rbc +0 -4155
  124. data/lib/compass/commands/write_configuration.rbc +0 -2896
  125. data/lib/compass/compiler.rbc +0 -4913
  126. data/lib/compass/configuration.rbc +0 -1398
  127. data/lib/compass/configuration/adapters.rbc +0 -2088
  128. data/lib/compass/configuration/comments.rbc +0 -843
  129. data/lib/compass/configuration/data.rbc +0 -2633
  130. data/lib/compass/configuration/defaults.rbc +0 -3617
  131. data/lib/compass/configuration/file_data.rbc +0 -643
  132. data/lib/compass/configuration/helpers.rbc +0 -3500
  133. data/lib/compass/configuration/inheritance.rbc +0 -3592
  134. data/lib/compass/configuration/paths.rbc +0 -412
  135. data/lib/compass/configuration/serialization.rbc +0 -1996
  136. data/lib/compass/dependencies.rbc +0 -232
  137. data/lib/compass/errors.rbc +0 -176
  138. data/lib/compass/exec.rbc +0 -500
  139. data/lib/compass/exec/command_option_parser.rbc +0 -676
  140. data/lib/compass/exec/global_options_parser.rbc +0 -1306
  141. data/lib/compass/exec/helpers.rbc +0 -758
  142. data/lib/compass/exec/project_options_parser.rbc +0 -1515
  143. data/lib/compass/exec/sub_command_ui.rbc +0 -1191
  144. data/lib/compass/frameworks.rbc +0 -3640
  145. data/lib/compass/grid_builder.rbc +0 -0
  146. data/lib/compass/installers.rbc +0 -152
  147. data/lib/compass/installers/bare_installer.rbc +0 -939
  148. data/lib/compass/installers/base.rbc +0 -4427
  149. data/lib/compass/installers/manifest.rbc +0 -3335
  150. data/lib/compass/installers/manifest_installer.rbc +0 -1591
  151. data/lib/compass/installers/template_context.rbc +0 -1030
  152. data/lib/compass/logger.rbc +0 -2317
  153. data/lib/compass/quick_cache.rbc +0 -324
  154. data/lib/compass/sass_extensions.rbc +0 -213
  155. data/lib/compass/sass_extensions/functions.rbc +0 -808
  156. data/lib/compass/sass_extensions/functions/colors.rbc +0 -1279
  157. data/lib/compass/sass_extensions/functions/constants.rbc +0 -1921
  158. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +0 -1966
  159. data/lib/compass/sass_extensions/functions/display.rbc +0 -1227
  160. data/lib/compass/sass_extensions/functions/enumerate.rbc +0 -446
  161. data/lib/compass/sass_extensions/functions/env.rbc +0 -299
  162. data/lib/compass/sass_extensions/functions/font_files.rbc +0 -821
  163. data/lib/compass/sass_extensions/functions/gradient_support.rbc +0 -14147
  164. data/lib/compass/sass_extensions/functions/image_size.rbc +0 -3152
  165. data/lib/compass/sass_extensions/functions/inline_image.rbc +0 -1678
  166. data/lib/compass/sass_extensions/functions/lists.rbc +0 -2601
  167. data/lib/compass/sass_extensions/functions/selectors.rbc +0 -1592
  168. data/lib/compass/sass_extensions/functions/sprites.rbc +0 -3792
  169. data/lib/compass/sass_extensions/functions/trig.rbc +0 -811
  170. data/lib/compass/sass_extensions/functions/urls.rbc +0 -5248
  171. data/lib/compass/sass_extensions/monkey_patches.rbc +0 -134
  172. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +0 -2169
  173. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +0 -660
  174. data/lib/compass/sass_extensions/sprites.rbc +0 -363
  175. data/lib/compass/sass_extensions/sprites/base.rbc +0 -4529
  176. data/lib/compass/sass_extensions/sprites/engines.rbc +0 -662
  177. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +0 -1074
  178. data/lib/compass/sass_extensions/sprites/image.rbc +0 -2961
  179. data/lib/compass/sass_extensions/sprites/image_methods.rbc +0 -900
  180. data/lib/compass/sass_extensions/sprites/image_row.rbc +0 -1168
  181. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +0 -3236
  182. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +0 -2067
  183. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +0 -1991
  184. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +0 -3190
  185. data/lib/compass/sass_extensions/sprites/sprites.rbc +0 -1573
  186. data/lib/compass/sprite_importer.rbc +0 -3573
  187. data/lib/compass/util.rbc +0 -552
  188. data/lib/compass/version.rbc +0 -1245
  189. data/test/fixtures/stylesheets/busted_image_urls/tmp/screen.css +0 -9
  190. data/test/fixtures/stylesheets/envtest/tmp/env.css +0 -2
  191. data/test/helpers/command_line.rbc +0 -2820
  192. data/test/helpers/diff.rbc +0 -1104
  193. data/test/helpers/io.rbc +0 -962
  194. data/test/helpers/rails.rbc +0 -1116
  195. data/test/helpers/test_case.rbc +0 -1255
  196. data/test/integrations/compass_test.rbc +0 -6589
  197. data/test/integrations/rails_integration_test.rbc +0 -1342
  198. data/test/integrations/sprites_test.rbc +0 -6192
  199. data/test/test_helper.rbc +0 -1694
  200. data/test/units/actions_test.rbc +0 -644
  201. data/test/units/command_line_test.rbc +0 -1532
  202. data/test/units/compass_png_test.rbc +0 -0
  203. data/test/units/configuration_test.rbc +0 -3833
  204. data/test/units/rails_configuration_test.rbc +0 -1032
  205. data/test/units/sass_extensions_test.rbc +0 -3586
  206. data/test/units/sprites/engine_test.rbc +0 -962
  207. data/test/units/sprites/image_row_test.rbc +0 -1578
  208. data/test/units/sprites/image_test.rbc +0 -2836
  209. data/test/units/sprites/importer_test.rbc +0 -2620
  210. data/test/units/sprites/row_fitter_test.rbc +0 -1479
  211. data/test/units/sprites/sprite_command_test.rbc +0 -1147
  212. data/test/units/sprites/sprite_map_test.rbc +0 -6515
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8cdf3c3c14bde97e756d17ca923eaceaf82a000d
4
+ data.tar.gz: 4d4092b45becd4f31e83f8fcce34bc722d59aeb0
5
+ SHA512:
6
+ metadata.gz: 88aa157548a661aec67a7901916de273a96c129e10dcdafea6b6bb6ea64592d105d431e26cd4a5d0a453c3c24259c9c7d4e760904c08c914cad9ca63ef8b6ffe
7
+ data.tar.gz: 8b7410f69c6d274eb8b2434171e69f35192130185439bb9cc1d5335111b2f28af821196f6e1746f6e0a06a1ca55fec2d06fdc256b98c9d5e3c84b098cd12996e
data/README.markdown CHANGED
@@ -1,59 +1,31 @@
1
- # Compass
1
+ # Compass Stylesheet Authoring Framework
2
2
 
3
- Build Status: ![Build Status](https://secure.travis-ci.org/chriseppstein/compass.png)
3
+ Build Status: [![Build Status](https://travis-ci.org/chriseppstein/compass.png)](https://travis-ci.org/chriseppstein/compass)
4
4
 
5
- A [Sass][sass]-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks:
5
+ Code Quality: [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/chriseppstein/compass)
6
6
 
7
- - [Compass Core][compass_core_website] - [Wiki Documentation][compass_core_wiki]
8
- - [Blueprint][blueprint_website] - [Wiki Documentation][bleuprint_wiki]
9
- - [960][ninesixty_website] - [Wiki Documentation][ninesixty_wiki]
10
- - [Susy][susy_website] - [Wiki Documentation][susy_wiki]
11
- - [YUI][yui_website] - [Wiki Documentation][yui_wiki]
12
- - New frameworks and extensions are [tracked on the wiki][plugins_wiki] as they are created.
13
- - Other frameworks can be added relatively easily. Create your own!
7
+ ## Resources
14
8
 
15
- ## Compass Provides
9
+ * [Compass Homepage](http://compass-style.org/)
10
+ * [Installing Compass](http://compass-style.org/install/)
11
+ * [Compass Reference](http://compass-style.org/install/reference/)
16
12
 
17
- 1. A [command line tool][command_line_wiki] for managing your Sass projects.
18
- 2. Simple integration with [Ruby-on-Rails][ruby_on_rails_wiki], [Merb][merb_wiki], [StaticMatic][static_matic_wiki], and even [non-ruby application servers][command_line_wiki].
19
- 3. Loads of Sass mixins to make building your website a snap.
13
+ ## Author
14
+ Compass is written by [Chris Eppstein](http://chriseppstein.github.com/).<br>
15
+ Chris is the Software Architect of [Caring.com](http://caring.com) and a member of the [Sass](https://github.com/nex3/sass) core team.
20
16
 
21
- ## Quick Start
17
+ ## Core Team Members
22
18
 
23
- $ (sudo) gem install compass
24
- $ compass create my_compass_project --using blueprint
25
- $ cd my_compass_project
26
- $ compass watch
19
+ * [Scott Davis](https://github.com/scottdavis)
20
+ * [Eric Meyer](https://github.com/ericam)
21
+ * [Brandon Mathis](https://github.com/imathis)
22
+ * [Anthony Short](https://github.com/anthonyshort/)
27
23
 
28
- ## More Information
29
- Please see the [wiki][wiki]
24
+ ## Major Contributors
30
25
 
31
- ## Author
32
- Compass is written by [Chris Eppstein][chris_eppstein].<br>
33
- Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team.
26
+ * [Nico Hagenburger](https://github.com/hagenburger)
34
27
 
35
28
  ## License
36
29
  Copyright (c) 2008-2009 Christopher M. Eppstein<br>
37
30
  All Rights Reserved.<br>
38
- Released under a [slightly modified MIT License][license].
39
-
40
- [sass]: http://sass-lang.com/ "Syntactically Awesome StyleSheets"
41
- [compass_core_website]: http://github.com/chriseppstein/compass/tree/master/frameworks/compass
42
- [compass_core_wiki]: http://github.com/chriseppstein/compass/wikis/compass-core-documentation
43
- [blueprint_website]: http://blueprintcss.org/
44
- [bleuprint_wiki]: http://github.com/chriseppstein/compass/wikis/blueprint-documentation
45
- [yui_website]: http://developer.yahoo.com/yui/grids/
46
- [yui_wiki]: http://github.com/chriseppstein/compass/wikis/yui-documentation
47
- [plugins_wiki]: http://github.com/chriseppstein/compass/wikis/compass-plugins
48
- [ninesixty_website]: http://960.gs/
49
- [ninesixty_wiki]: http://github.com/chriseppstein/compass/wikis/960gs-documentation
50
- [command_line_wiki]: http://wiki.github.com/chriseppstein/compass/command-line-tool
51
- [wiki]: http://github.com/chriseppstein/compass/wikis/home
52
- [ruby_on_rails_wiki]: http://wiki.github.com/chriseppstein/compass/ruby-on-rails-integration
53
- [merb_wiki]: http://wiki.github.com/chriseppstein/compass/merb-integration
54
- [static_matic_wiki]: http://wiki.github.com/chriseppstein/compass/staticmatic-integration
55
- [chris_eppstein]: http://chriseppstein.github.com
56
- [caring.com]: http://www.caring.com/ "Senior Care Resources"
57
- [license]: http://github.com/chriseppstein/compass/tree/master/LICENSE.markdown
58
- [susy_website]: http://www.oddbird.net/susy/
59
- [susy_wiki]: http://github.com/chriseppstein/compass/wikis/susy-documentation
31
+ Released under a [slightly modified MIT License](compass/blob/stable/LICENSE.markdown).
data/Rakefile CHANGED
@@ -1,7 +1,16 @@
1
1
  require 'rubygems'
2
- require 'bundler'
3
- Bundler.setup
4
- require 'rake/dsl_definition' rescue nil
2
+ if ENV["PKG"]
3
+ $: << File.expand_path(File.dirname(__FILE__))+"/lib"
4
+ else
5
+ require 'bundler'
6
+ Bundler.setup
7
+ end
8
+
9
+ begin
10
+ require 'rake/dsl_definition'
11
+ rescue LoadError
12
+ #pass
13
+ end
5
14
  require 'compass'
6
15
 
7
16
  # ----- Default: Testing ------
@@ -10,12 +19,17 @@ task :default => [:test, :features]
10
19
 
11
20
  require 'rake/testtask'
12
21
  require 'fileutils'
22
+
23
+ begin
13
24
  require 'cucumber'
14
25
  require 'cucumber/rake/task'
15
26
 
16
27
  Cucumber::Rake::Task.new(:features) do |t|
17
28
  t.cucumber_opts = "features --format progress"
18
29
  end
30
+ rescue LoadError
31
+ $stderr.puts "cannot load cucumber"
32
+ end
19
33
 
20
34
  Rake::TestTask.new :test do |t|
21
35
  t.libs << 'lib'
@@ -124,3 +138,20 @@ rescue LoadError => e
124
138
  puts "WARNING: #{e}"
125
139
  end
126
140
 
141
+ begin
142
+ require 'packager/rake_task'
143
+ require 'compass/version'
144
+ # Building a package:
145
+ # 1. Get packager installed and make sure your system is setup correctly according to their docs.
146
+ # 2. Make sure you are actually using a universal binary that has been nametooled.
147
+ # 3. PKG=1 OFFICIAL=1 rake packager:pkg
148
+ Packager::RakeTask.new(:pkg) do |t|
149
+ t.package_name = "Compass"
150
+ t.version = Compass::VERSION
151
+ t.domain = "compass-style.org"
152
+ t.bin_files = ["compass"]
153
+ t.resource_files = FileList["frameworks/**/*"] + ["VERSION.yml", "LICENSE.markdown"]
154
+ end
155
+ rescue LoadError => e
156
+ puts "WARNING: #{e}"
157
+ end
data/bin/compass CHANGED
@@ -22,7 +22,8 @@ fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
22
22
  end
23
23
 
24
24
  if defined?(Bundler)
25
- Bundler.require :assets
25
+ require 'bundler/shared_helpers'
26
+ Bundler.require :assets if Bundler::SharedHelpers.in_bundle?
26
27
  end
27
28
 
28
29
  runner = Proc.new do
@@ -151,6 +151,7 @@ Feature: Command Line
151
151
  | watch |
152
152
  And I should see the following "other" commands:
153
153
  | config |
154
+ | extension |
154
155
  | frameworks |
155
156
  | grid-img |
156
157
  | help |
@@ -256,7 +256,7 @@ end
256
256
 
257
257
  Then /^the image ([^ ]+) has a size of (\d+)x(\d+)$/ do |file, width, height|
258
258
  # see http://snippets.dzone.com/posts/show/805
259
- IO.read(file)[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i]
259
+ open(file, "rb").read[0x10..0x18].unpack('NN').should == [width.to_i, height.to_i]
260
260
  end
261
261
 
262
262
  Then /^I should see the following lines of output:$/ do |table|
@@ -14,3 +14,7 @@
14
14
  @import "css3/transform";
15
15
  @import "css3/transition";
16
16
  @import "css3/appearance";
17
+ @import "css3/regions";
18
+ @import "css3/hyphenation";
19
+ @import "css3/filter";
20
+ @import "css3/user-interface";
@@ -16,6 +16,10 @@ $legacy-support-for-ie8: $legacy-support-for-ie !default;
16
16
  // this combined variable.
17
17
  $legacy-support-for-ie: $legacy-support-for-ie6 or $legacy-support-for-ie7 or $legacy-support-for-ie8;
18
18
 
19
+ // Whether to output legacy support for mozilla.
20
+ // Usually this means hacks to support Firefox 3.6 or earlier.
21
+ $legacy-support-for-mozilla: true;
22
+
19
23
  // Support for mozilla in experimental css3 properties (-moz).
20
24
  $experimental-support-for-mozilla : true !default;
21
25
  // Support for webkit in experimental css3 properties (-webkit).
@@ -1,9 +1,13 @@
1
1
  @import "shared";
2
2
 
3
- // Change the appearance for Mozilla, Webkit and the future
3
+ // Change the appearance for Mozilla, Webkit and possibly the future.
4
+ // The appearance property is currently not present in any newer CSS specification.
4
5
  //
5
- // @param $ap
6
- // [ none | normal | icon | window | button | menu | field ]
6
+ // There is no official list of accepted values, but you might check these source:
7
+ //
8
+ // * [Mozilla](https://developer.mozilla.org/en/CSS/-moz-appearance)
9
+ // * [Webkit](http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365)
10
+ // (search for 'appearance' within the page)
7
11
 
8
12
  @mixin appearance($ap) {
9
13
  $ap: unquote($ap);
@@ -21,24 +21,18 @@ $default-border-radius: 5px !default;
21
21
  // .simple {
22
22
  // -webkit-border-radius: 4px 4px;
23
23
  // -moz-border-radius: 4px / 4px;
24
- // -o-border-radius: 4px / 4px;
25
- // -ms-border-radius: 4px / 4px;
26
24
  // -khtml-border-radius: 4px / 4px;
27
25
  // border-radius: 4px / 4px; }
28
26
  //
29
27
  // .compound {
30
28
  // -webkit-border-radius: 2px 3px;
31
29
  // -moz-border-radius: 2px 5px / 3px 6px;
32
- // -o-border-radius: 2px 5px / 3px 6px;
33
- // -ms-border-radius: 2px 5px / 3px 6px;
34
30
  // -khtml-border-radius: 2px 5px / 3px 6px;
35
31
  // border-radius: 2px 5px / 3px 6px; }
36
32
  //
37
33
  // .crazy {
38
34
  // -webkit-border-radius: 1px 2px;
39
35
  // -moz-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
40
- // -o-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
41
- // -ms-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
42
36
  // -khtml-border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px;
43
37
  // border-radius: 1px 3px 5px 7px / 2px 4px 6px 8px; }
44
38
 
@@ -58,8 +52,8 @@ $default-border-radius: 5px !default;
58
52
  @include experimental("border-radius", $radius unquote("/") $vertical-radius,
59
53
  -moz,
60
54
  not -webkit,
61
- -o,
62
- -ms,
55
+ not -o,
56
+ not -ms,
63
57
  -khtml,
64
58
  official
65
59
  );
@@ -87,8 +81,8 @@ $default-border-radius: 5px !default;
87
81
  @include experimental("border-#{$vert}-#{$horz}-radius", $radius,
88
82
  not -moz,
89
83
  -webkit,
90
- -o,
91
- -ms,
84
+ not -o,
85
+ not -ms,
92
86
  -khtml,
93
87
  official
94
88
  );
@@ -64,7 +64,7 @@ $default-box-ordinal-group: 1 !default;
64
64
 
65
65
  // mixin which takes an int argument for ordinal grouping and rearranging the order
66
66
  @mixin box-ordinal-group(
67
- $group: $default-ordinal-flex-group
67
+ $group: $default-box-ordinal-group
68
68
  ) {
69
69
  @include experimental(box-ordinal-group, $group,
70
70
  -moz, -webkit, not -o, -ms, not -khtml, official
@@ -108,4 +108,4 @@ $default-box-pack: start !default;
108
108
  @include experimental(box-pack, $pack,
109
109
  -moz, -webkit, not -o, -ms, not -khtml, official
110
110
  );
111
- }
111
+ }
@@ -1,46 +1,66 @@
1
1
  @import "shared";
2
2
 
3
+ // Specify the shorthand `columns` property.
4
+ //
5
+ // Example:
6
+ //
7
+ // @include columns(20em 2)
8
+ @mixin columns($width-and-count) {
9
+ @include experimental(columns, $width-and-count,
10
+ -moz, -webkit, -o, -ms, not -khtml, official
11
+ );
12
+ }
13
+
3
14
  // Specify the number of columns
4
15
  @mixin column-count($count) {
5
16
  @include experimental(column-count, $count,
6
- -moz, -webkit, -o, not -ms, not -khtml, official
17
+ -moz, -webkit, -o, -ms, not -khtml, official
7
18
  );
8
19
  }
9
20
 
10
21
  // Specify the gap between columns e.g. `20px`
11
22
  @mixin column-gap($width) {
12
23
  @include experimental(column-gap, $width,
13
- -moz, -webkit, -o, not -ms, not -khtml, official
24
+ -moz, -webkit, -o, -ms, not -khtml, official
14
25
  );
15
26
  }
16
27
 
17
28
  // Specify the width of columns e.g. `100px`
18
29
  @mixin column-width($width) {
19
30
  @include experimental(column-width, $width,
20
- -moz, -webkit, -o, not -ms, not -khtml, official
31
+ -moz, -webkit, -o, -ms, not -khtml, official
21
32
  );
22
33
  }
23
34
 
35
+ // Specify how many columns an element should span across.
36
+ //
37
+ // * legal values are 1, all
38
+ @mixin column-span($columns) {
39
+ @include experimental(column-span, $columns,
40
+ -moz, -webkit, -o, -ms, not -khtml, official
41
+ );
42
+ }
43
+
24
44
  // Specify the width of the rule between columns e.g. `1px`
25
45
  @mixin column-rule-width($width) {
26
- @include experimental(rule-width, $width,
27
- -moz, -webkit, -o, not -ms, not -khtml, official
46
+ @include experimental(column-rule-width, $width,
47
+ -moz, -webkit, -o, -ms, not -khtml, official
28
48
  );
29
49
  }
30
50
 
31
51
  // Specify the style of the rule between columns e.g. `dotted`.
32
52
  // This works like border-style.
33
53
  @mixin column-rule-style($style) {
34
- @include experimental(rule-style, unquote($style),
35
- -moz, -webkit, -o, not -ms, not -khtml, official
54
+ @include experimental(column-rule-style, unquote($style),
55
+ -moz, -webkit, -o, -ms, not -khtml, official
36
56
  );
37
57
  }
38
58
 
39
59
  // Specify the color of the rule between columns e.g. `blue`.
40
60
  // This works like border-color.
41
61
  @mixin column-rule-color($color) {
42
- @include experimental(rule-color, $color,
43
- -moz, -webkit, -o, not -ms, not -khtml, official
62
+ @include experimental(column-rule-color, $color,
63
+ -moz, -webkit, -o, -ms, not -khtml, official
44
64
  );
45
65
  }
46
66
 
@@ -55,6 +75,83 @@
55
75
  @mixin column-rule($width, $style: false, $color: false) {
56
76
  $full : -compass-space-list(compact($width, $style, $color));
57
77
  @include experimental(column-rule, $full,
58
- -moz, -webkit, -o, not -ms, not -khtml, official
78
+ -moz, -webkit, -o, -ms, not -khtml, official
59
79
  );
60
80
  }
81
+
82
+ // Mixin for setting column-break-before
83
+ //
84
+ // * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
85
+ //
86
+ // Example:
87
+ // h2.before {@include column-break-before(always);}
88
+ //
89
+ // Which generates:
90
+ //
91
+ // h2.before {
92
+ // -webkit-column-break-before: always;
93
+ // column-break-before: always;}
94
+ @mixin column-break-before($value: auto){
95
+ @include experimental(column-break-before, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
96
+ }
97
+
98
+ // Mixin for setting column-break-after
99
+ //
100
+ // * legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
101
+ //
102
+ // Example:
103
+ // h2.after {@include column-break-after(always); }
104
+ //
105
+ // Which generates:
106
+ //
107
+ // h2.after {
108
+ // -webkit-column-break-after: always;
109
+ // column-break-after: always; }
110
+ @mixin column-break-after($value: auto){
111
+ @include experimental(column-break-after, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
112
+ }
113
+
114
+ // Mixin for setting column-break-inside
115
+ //
116
+ // * legal values are auto, avoid, avoid-page, avoid-column
117
+ //
118
+ // Example:
119
+ // h2.inside {@include column-break-inside();}
120
+ // Which generates:
121
+ //
122
+ // h2.inside {
123
+ // -webkit-column-break-inside: auto;
124
+ // column-break-inside: auto;}
125
+ @mixin column-break-inside($value: auto){
126
+ @include experimental(column-break-inside, $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
127
+ }
128
+
129
+ // All-purpose mixin for setting column breaks.
130
+ //
131
+ // * legal values for $type : before, after, inside
132
+ // * legal values for '$value' are dependent on $type
133
+ // * when $type = before, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
134
+ // * when $type = after, legal values are auto, always, avoid, left, right, page, column, avoid-page, avoid-column
135
+ // * when $type = inside, legal values are auto, avoid, avoid-page, avoid-column
136
+ //
137
+ // Examples:
138
+ // h2.before {@include column-break(before, always);}
139
+ // h2.after {@include column-break(after, always); }
140
+ // h2.inside {@include column-break(inside); }
141
+ //
142
+ // Which generates:
143
+ // h2.before {
144
+ // -webkit-column-break-before: always;
145
+ // column-break-before: always;}
146
+ //
147
+ // h2.after {
148
+ // -webkit-column-break-after: always;
149
+ // column-break-after: always; }
150
+ //
151
+ // h2.inside {
152
+ // -webkit-column-break-inside: auto;
153
+ // column-break-inside: auto;}
154
+
155
+ @mixin column-break($type: before, $value: auto){
156
+ @include experimental("column-break-#{$type}", $value, not -moz, -webkit, not -o, not -ms, not -khtml, official );
157
+ }
@@ -0,0 +1,23 @@
1
+ @import "shared";
2
+
3
+ // Provides cross-browser support for the upcoming (?) css3 filter property.
4
+ //
5
+ // Each filter argument should adhere to the standard css3 syntax for the
6
+ // filter property.
7
+ @mixin filter (
8
+ $filter-1,
9
+ $filter-2 : false,
10
+ $filter-3 : false,
11
+ $filter-4 : false,
12
+ $filter-5 : false,
13
+ $filter-6 : false,
14
+ $filter-7 : false,
15
+ $filter-8 : false,
16
+ $filter-9 : false,
17
+ $filter-10: false
18
+ ) {
19
+ $filter : compact($filter-1, $filter-2, $filter-3, $filter-4, $filter-5, $filter-6, $filter-7, $filter-8, $filter-9, $filter-10);
20
+ @include experimental(filter, $filter,
21
+ -moz, -webkit, not -o, not -ms, not -khtml, official
22
+ );
23
+ }