compass 0.12.alpha.0 → 0.12.alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (206) hide show
  1. data/Rakefile +1 -0
  2. data/VERSION.yml +1 -1
  3. data/bin/compass +1 -1
  4. data/bin/compass.compiled.rbc +707 -0
  5. data/examples/downloader.rb +3 -2
  6. data/examples/ninesixty/bootstrap.rb +1 -1
  7. data/features/command_line.feature +17 -17
  8. data/features/extensions.feature +6 -0
  9. data/features/step_definitions/command_line_steps.rb +2 -0
  10. data/frameworks/compass/stylesheets/compass/_support.scss +1 -1
  11. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -24
  12. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +0 -15
  13. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +12 -12
  14. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +6 -20
  15. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +38 -24
  16. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +19 -0
  17. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +12 -3
  18. data/frameworks/compass/stylesheets/compass/typography/lists/_bullets.scss +1 -1
  19. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-block-list.scss +14 -11
  20. data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite-img.scss +29 -6
  21. data/frameworks/compass/templates/pie/PIE.htc +83 -64
  22. data/lib/compass.rbc +42 -36
  23. data/lib/compass/actions.rb +0 -1
  24. data/lib/compass/actions.rbc +244 -85
  25. data/lib/compass/app_integration.rbc +28 -20
  26. data/lib/compass/app_integration/merb.rbc +8 -4
  27. data/lib/compass/app_integration/rails.rbc +664 -148
  28. data/lib/compass/app_integration/rails/actionpack31/helpers.rb +23 -0
  29. data/lib/compass/app_integration/rails/actionpack31/railtie.rb +8 -10
  30. data/lib/compass/app_integration/rails/configuration_defaults.rbc +1089 -332
  31. data/lib/compass/app_integration/rails/installer.rbc +145 -61
  32. data/lib/compass/app_integration/stand_alone.rbc +15 -15
  33. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +23 -23
  34. data/lib/compass/app_integration/stand_alone/installer.rbc +52 -32
  35. data/lib/compass/browser_support.rbc +35 -23
  36. data/lib/compass/commands.rbc +307 -0
  37. data/lib/compass/commands/base.rbc +1044 -0
  38. data/lib/compass/commands/clean_project.rbc +1856 -0
  39. data/lib/compass/commands/create_project.rbc +2691 -0
  40. data/lib/compass/commands/default.rbc +1677 -0
  41. data/lib/compass/commands/generate_grid_background.rbc +1939 -0
  42. data/lib/compass/commands/help.rbc +1921 -0
  43. data/lib/compass/commands/imports.rbc +969 -0
  44. data/lib/compass/commands/installer_command.rbc +807 -0
  45. data/lib/compass/commands/interactive.rbc +1341 -0
  46. data/lib/compass/commands/list_frameworks.rbc +1111 -0
  47. data/lib/compass/commands/print_version.rbc +2478 -0
  48. data/lib/compass/commands/project_base.rbc +2085 -0
  49. data/lib/compass/commands/project_stats.rb +7 -7
  50. data/lib/compass/commands/project_stats.rbc +4202 -0
  51. data/lib/compass/commands/registry.rbc +1350 -0
  52. data/lib/compass/commands/sprite.rbc +2212 -0
  53. data/lib/compass/commands/stamp_pattern.rbc +2011 -0
  54. data/lib/compass/commands/unpack_extension.rbc +2348 -0
  55. data/lib/compass/commands/update_project.rbc +3002 -0
  56. data/lib/compass/commands/validate_project.rbc +1686 -0
  57. data/lib/compass/commands/watch_project.rbc +4155 -0
  58. data/lib/compass/commands/write_configuration.rbc +2896 -0
  59. data/lib/compass/compiler.rb +3 -0
  60. data/lib/compass/compiler.rbc +591 -398
  61. data/lib/compass/configuration.rbc +134 -78
  62. data/lib/compass/configuration/adapters.rbc +98 -40
  63. data/lib/compass/configuration/comments.rbc +132 -51
  64. data/lib/compass/configuration/data.rb +6 -0
  65. data/lib/compass/configuration/data.rbc +541 -551
  66. data/lib/compass/configuration/defaults.rbc +764 -189
  67. data/lib/compass/configuration/file_data.rbc +37 -125
  68. data/lib/compass/configuration/helpers.rb +1 -0
  69. data/lib/compass/configuration/helpers.rbc +433 -153
  70. data/lib/compass/configuration/inheritance.rb +2 -0
  71. data/lib/compass/configuration/inheritance.rbc +412 -165
  72. data/lib/compass/configuration/paths.rbc +9 -9
  73. data/lib/compass/configuration/serialization.rbc +151 -84
  74. data/lib/compass/dependencies.rbc +16 -4
  75. data/lib/compass/errors.rbc +5 -5
  76. data/lib/compass/exec.rbc +500 -0
  77. data/lib/compass/exec/command_option_parser.rbc +676 -0
  78. data/lib/compass/exec/global_options_parser.rbc +1306 -0
  79. data/lib/compass/exec/helpers.rbc +758 -0
  80. data/lib/compass/exec/project_options_parser.rbc +1515 -0
  81. data/lib/compass/exec/sub_command_ui.rbc +1191 -0
  82. data/lib/compass/frameworks.rb +10 -4
  83. data/lib/compass/frameworks.rbc +118 -66
  84. data/lib/compass/grid_builder.rbc +0 -0
  85. data/lib/compass/installers.rbc +152 -0
  86. data/lib/compass/installers/bare_installer.rbc +939 -0
  87. data/lib/compass/installers/base.rbc +4427 -0
  88. data/lib/compass/installers/manifest.rbc +3335 -0
  89. data/lib/compass/installers/manifest_installer.rbc +1591 -0
  90. data/lib/compass/installers/template_context.rbc +1030 -0
  91. data/lib/compass/logger.rbc +2317 -0
  92. data/lib/compass/quick_cache.rbc +12 -8
  93. data/lib/compass/sass_extensions.rbc +8 -4
  94. data/lib/compass/sass_extensions/functions.rb +4 -2
  95. data/lib/compass/sass_extensions/functions.rbc +90 -57
  96. data/lib/compass/sass_extensions/functions/colors.rbc +22 -18
  97. data/lib/compass/sass_extensions/functions/constants.rbc +45 -25
  98. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +48 -36
  99. data/lib/compass/sass_extensions/functions/display.rbc +341 -107
  100. data/lib/compass/sass_extensions/functions/enumerate.rbc +9 -9
  101. data/lib/compass/sass_extensions/functions/env.rb +5 -0
  102. data/lib/compass/sass_extensions/functions/env.rbc +299 -0
  103. data/lib/compass/sass_extensions/functions/font_files.rb +32 -3
  104. data/lib/compass/sass_extensions/functions/font_files.rbc +540 -123
  105. data/lib/compass/sass_extensions/functions/gradient_support.rbc +379 -167
  106. data/lib/compass/sass_extensions/functions/image_size.rb +19 -16
  107. data/lib/compass/sass_extensions/functions/image_size.rbc +715 -400
  108. data/lib/compass/sass_extensions/functions/inline_image.rb +1 -1
  109. data/lib/compass/sass_extensions/functions/inline_image.rbc +152 -98
  110. data/lib/compass/sass_extensions/functions/lists.rbc +75 -39
  111. data/lib/compass/sass_extensions/functions/selectors.rbc +36 -28
  112. data/lib/compass/sass_extensions/functions/sprites.rb +27 -4
  113. data/lib/compass/sass_extensions/functions/sprites.rbc +255 -233
  114. data/lib/compass/sass_extensions/functions/trig.rbc +53 -51
  115. data/lib/compass/sass_extensions/functions/urls.rbc +3151 -1044
  116. data/lib/compass/sass_extensions/monkey_patches.rbc +5 -5
  117. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +63 -47
  118. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +36 -16
  119. data/lib/compass/sass_extensions/sprites.rbc +93 -13
  120. data/lib/compass/sass_extensions/sprites/engines.rbc +615 -6
  121. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +260 -94
  122. data/lib/compass/sass_extensions/sprites/image.rb +5 -5
  123. data/lib/compass/sass_extensions/sprites/image.rbc +694 -316
  124. data/lib/compass/sass_extensions/sprites/image_methods.rbc +900 -0
  125. data/lib/compass/sass_extensions/sprites/image_row.rbc +1168 -0
  126. data/lib/compass/sass_extensions/sprites/layout_methods.rb +12 -8
  127. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
  128. data/lib/compass/sass_extensions/sprites/row_fitter.rb +7 -1
  129. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
  130. data/lib/compass/sass_extensions/sprites/sprite_map.rb +1 -1
  131. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +714 -3641
  132. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +24 -4
  133. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
  134. data/lib/compass/sprite_importer.rb +15 -80
  135. data/lib/compass/sprite_importer.rbc +1125 -1495
  136. data/lib/compass/sprite_importer/binding.rb +11 -0
  137. data/lib/compass/sprite_importer/content.erb +81 -0
  138. data/lib/compass/util.rbc +19 -11
  139. data/lib/compass/version.rbc +53 -25
  140. data/test/fixtures/extensions/only_stylesheets/compass_init.rb +1 -0
  141. data/test/fixtures/extensions/only_stylesheets/scss/only_stylesheets/foo.scss +3 -0
  142. data/test/fixtures/fonts/bgrove.base64.txt +1 -0
  143. data/test/fixtures/fonts/bgrove.ttf +0 -0
  144. data/test/fixtures/sprites/public/images/bool/false.png +0 -0
  145. data/test/fixtures/sprites/public/images/bool/true.png +0 -0
  146. data/test/fixtures/stylesheets/blueprint/css/screen.css +1 -2
  147. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +1 -2
  148. data/test/fixtures/stylesheets/compass/css/border_radius.css +6 -9
  149. data/test/fixtures/stylesheets/compass/css/box.css +0 -19
  150. data/test/fixtures/stylesheets/compass/css/box_shadow.css +3 -6
  151. data/test/fixtures/stylesheets/compass/css/columns.css +8 -16
  152. data/test/fixtures/stylesheets/compass/css/grid_background.css +4 -8
  153. data/test/fixtures/stylesheets/compass/css/lists.css +7 -7
  154. data/test/fixtures/stylesheets/compass/css/pie.css +2 -3
  155. data/test/fixtures/stylesheets/compass/css/reset.css +0 -1
  156. data/test/fixtures/stylesheets/compass/css/sprites.css +1 -1
  157. data/test/fixtures/stylesheets/compass/css/text_shadow.css +0 -3
  158. data/test/fixtures/stylesheets/compass/css/transform.css +28 -92
  159. data/test/fixtures/stylesheets/compass/css/transition.css +11 -0
  160. data/test/fixtures/stylesheets/compass/css/user-interface.css +4 -0
  161. data/test/fixtures/stylesheets/compass/images/{flag-s8c3c755a68.png → flag-s8f1e8fdb9b.png} +0 -0
  162. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +0 -1
  163. data/test/fixtures/stylesheets/compass/sass/transition.scss +4 -0
  164. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +5 -0
  165. data/test/fixtures/stylesheets/envtest/config.rb +9 -0
  166. data/test/fixtures/stylesheets/envtest/css/env.css +2 -0
  167. data/test/fixtures/stylesheets/envtest/sass/env.scss +3 -0
  168. data/test/fixtures/stylesheets/envtest/tmp/env.css +2 -0
  169. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/config.rb +25 -0
  170. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/ie.scss +5 -0
  171. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/print.scss +3 -0
  172. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/sass/screen.scss +6 -0
  173. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/ie.css +5 -0
  174. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/print.css +3 -0
  175. data/test/fixtures/stylesheets/uses_only_stylesheets_ext/stylesheets/screen.css +68 -0
  176. data/test/helpers/command_line.rbc +2820 -0
  177. data/test/helpers/diff.rbc +1104 -0
  178. data/test/helpers/io.rbc +962 -0
  179. data/test/helpers/rails.rbc +1116 -0
  180. data/test/helpers/test_case.rbc +1255 -0
  181. data/test/integrations/compass_test.rb +24 -2
  182. data/test/integrations/compass_test.rbc +6589 -0
  183. data/test/integrations/rails_integration_test.rbc +1342 -0
  184. data/test/integrations/sprites_test.rb +123 -25
  185. data/test/integrations/sprites_test.rbc +6192 -0
  186. data/test/test_helper.rb +7 -5
  187. data/test/test_helper.rbc +1694 -0
  188. data/test/tmp/compass_rails/public/images/{selectors-sef52c5c63a.png → selectors-s4c703bbc05.png} +0 -0
  189. data/test/units/actions_test.rbc +644 -0
  190. data/test/units/command_line_test.rbc +1532 -0
  191. data/test/units/compass_png_test.rbc +0 -0
  192. data/test/units/configuration_test.rbc +3833 -0
  193. data/test/units/rails_configuration_test.rbc +1032 -0
  194. data/test/units/sass_extensions_test.rb +31 -0
  195. data/test/units/sass_extensions_test.rbc +3586 -0
  196. data/test/units/sprites/engine_test.rbc +962 -0
  197. data/test/units/sprites/image_row_test.rbc +1578 -0
  198. data/test/units/sprites/image_test.rb +3 -3
  199. data/test/units/sprites/image_test.rbc +2836 -0
  200. data/test/units/sprites/importer_test.rb +6 -0
  201. data/test/units/sprites/importer_test.rbc +2620 -0
  202. data/test/units/sprites/row_fitter_test.rbc +1479 -0
  203. data/test/units/sprites/sprite_command_test.rbc +1147 -0
  204. data/test/units/sprites/sprite_map_test.rb +19 -6
  205. data/test/units/sprites/sprite_map_test.rbc +6515 -0
  206. metadata +180 -54
@@ -9,8 +9,9 @@ def fetch(uri_str, limit = 10)
9
9
 
10
10
  url = URI.parse(uri_str)
11
11
  http = Net::HTTP.new(url.host, url.port)
12
- http.open_timeout = 2
12
+ http.open_timeout = 10
13
13
  http.read_timeout = 30
14
+ http.use_ssl = true
14
15
  response = http.start do |http|
15
16
  puts "getting #{url.path}"
16
17
  http.request_get(url.path)
@@ -25,7 +26,7 @@ def fetch(uri_str, limit = 10)
25
26
  end
26
27
 
27
28
  def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd)
28
- download_link = "http://github.com/#{user}/#{project}/zipball/#{branch}"
29
+ download_link = "https://github.com/#{user}/#{project}/zipball/#{branch}"
29
30
  extdir = File.join(working_directory,'extensions')
30
31
 
31
32
  if !File.exists?("#{extdir}/#{ext_name}")
@@ -1,4 +1,4 @@
1
1
  require File.join(File.dirname(__FILE__), '..', 'downloader')
2
2
 
3
- install_from_github('chriseppstein', 'compass-960-plugin', 'ninesixty')
3
+ install_from_github('nextmat', 'compass-960-plugin', 'ninesixty')
4
4
 
@@ -200,7 +200,7 @@ Feature: Command Line
200
200
  | tmp/box_shadow.css |
201
201
  | tmp/columns.css |
202
202
  | tmp/fonts.css |
203
- | images/flag-s8c3c755a68.png |
203
+ | images/flag-s8f1e8fdb9b.png |
204
204
  And the following files are removed:
205
205
  | .sass-cache/ |
206
206
  | tmp/border_radius.css |
@@ -208,7 +208,7 @@ Feature: Command Line
208
208
  | tmp/box_shadow.css |
209
209
  | tmp/columns.css |
210
210
  | tmp/fonts.css |
211
- | images/flag-s8c3c755a68.png |
211
+ | images/flag-s8f1e8fdb9b.png |
212
212
 
213
213
  Scenario: Watching a project for changes
214
214
  Given ruby supports fork
@@ -277,21 +277,21 @@ Feature: Command Line
277
277
  Given I am using the existing project in test/fixtures/stylesheets/compass
278
278
  When I run: compass stats
279
279
  Then I am told statistics for each file:
280
- | Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS Rules | CSS Properties |
281
- | sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
282
- | sass/box.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
283
- | sass/fonts.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
284
- | sass/gradients.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
285
- | sass/image_size.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
286
- | sass/images.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
287
- | sass/layout.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
288
- | sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
289
- | sass/lists.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
290
- | sass/print.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
291
- | sass/reset.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
292
- | sass/utilities.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
293
- | ------------------------- | ----- | ---------- | -------------- | ----------- | --------- | -------------- |
294
- | Total.* | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
280
+ | Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS Selectors | CSS Properties |
281
+ | sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
282
+ | sass/box.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
283
+ | sass/fonts.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
284
+ | sass/gradients.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
285
+ | sass/image_size.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
286
+ | sass/images.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
287
+ | sass/layout.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
288
+ | sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
289
+ | sass/lists.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
290
+ | sass/print.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
291
+ | sass/reset.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
292
+ | sass/utilities.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
293
+ | ------------------------- | ----- | ---------- | -------------- | ----------- | ------------- | -------------- |
294
+ | Total.* | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
295
295
 
296
296
  @listframeworks
297
297
  Scenario: List frameworks registered with compass
@@ -28,3 +28,9 @@ Feature: Extensions
28
28
  And and I have a fake extension at ~/.compass/extensions/testing
29
29
  When I run: compass frameworks
30
30
  Then the list of frameworks includes "testing"
31
+
32
+ @listframeworks
33
+ Scenario: Frameworks without templates
34
+ Given I am using the existing project in test/fixtures/stylesheets/uses_only_stylesheets_ext
35
+ When I run: compass frameworks
36
+ Then the list of frameworks includes "only_stylesheets"
@@ -10,6 +10,8 @@ include Compass::RailsHelper
10
10
 
11
11
  Before do
12
12
  Compass.reset_configuration!
13
+ Compass::Frameworks::ALL.clear
14
+ Compass::Frameworks.discover :defaults
13
15
  @cleanup_directories = []
14
16
  @original_working_directory = Dir.pwd
15
17
  end
@@ -27,7 +27,7 @@ $experimental-support-for-opera : true !default;
27
27
  // Support for microsoft in experimental css3 properties (-ms).
28
28
  $experimental-support-for-microsoft : true !default;
29
29
  // Support for khtml in experimental css3 properties (-khtml).
30
- $experimental-support-for-khtml : true !default;
30
+ $experimental-support-for-khtml : false !default;
31
31
  // Support for svg in experimental css3 properties.
32
32
  // Setting this to true might add significant size to your
33
33
  // generated stylesheets.
@@ -40,30 +40,13 @@ $default-box-shadow-inset : false !default;
40
40
  $shadow-9 : false,
41
41
  $shadow-10: false
42
42
  ) {
43
- // This has to be on a single line due to a bug in the scss parser: https://github.com/nex3/sass/issues/issue/26
44
- $legacy: (type-of($shadow-1) == color and type-of(if($shadow-2, $shadow-2, 0)) == number and type-of(if($shadow-3, $shadow-3, 0)) == number and type-of(if($shadow-4, $shadow-4, 0)) == number and type-of(if($shadow-5, $shadow-5, 0)) == number and ($shadow-6 == inset or type-of($shadow-6) == bool) and ($shadow-2 or $shadow-3 or $shadow-4 or $shadow-5 or $shadow-6));
45
- @if $legacy {
46
- @warn "Passing separate arguments for a single shadow to box-shadow is deprecated. " +
47
- "Pass the values as a single space-separated list, or use the single-box-shadow mixin. " +
48
- "See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.";
49
- @include single-box-shadow(
50
- if($shadow-1, $shadow-1, $default-box-shadow-color),
51
- if($shadow-2, $shadow-2, $default-box-shadow-h-offset),
52
- if($shadow-3, $shadow-3, $default-box-shadow-v-offset),
53
- if($shadow-4, $shadow-4, $default-box-shadow-blur),
54
- if($shadow-5, $shadow-5, $default-box-shadow-spread),
55
- if($shadow-6, $shadow-6, $default-box-shadow-inset)
56
- );
57
- }
58
- @else {
59
- @if $shadow-1 == default {
60
- $shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
61
- }
62
- $shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
63
- @include experimental(box-shadow, $shadow,
64
- -moz, -webkit, -o, not -ms, not -khtml, official
65
- );
43
+ @if $shadow-1 == default {
44
+ $shadow-1 : -compass-space-list(compact(if($default-box-shadow-inset, inset, false), $default-box-shadow-h-offset, $default-box-shadow-v-offset, $default-box-shadow-blur, $default-box-shadow-spread, $default-box-shadow-color));
66
45
  }
46
+ $shadow : compact($shadow-1, $shadow-2, $shadow-3, $shadow-4, $shadow-5, $shadow-6, $shadow-7, $shadow-8, $shadow-9, $shadow-10);
47
+ @include experimental(box-shadow, $shadow,
48
+ -moz, -webkit, -o, not -ms, not -khtml, official
49
+ );
67
50
  }
68
51
 
69
52
  // Provides a single cross-browser CSS box shadow for Webkit, Gecko, and CSS3.
@@ -90,4 +73,4 @@ $default-box-shadow-inset : false !default;
90
73
  @if $inset { $full: inset $full; }
91
74
  @include box-shadow($full);
92
75
  }
93
- }
76
+ }
@@ -46,18 +46,3 @@
46
46
  }
47
47
  }
48
48
  }
49
-
50
- // EXAMPLE
51
- // +font-face("this name", font-files("this.woff", "woff", "this.otf", "opentype"), "this.eot", bold, italic)
52
- //
53
- // will generate:
54
- //
55
- // @font-face {
56
- // font-family: 'this name';
57
- // src: url('fonts/this.eot');
58
- // src: local("☺"),
59
- // url('fonts/this.otf') format('woff'),
60
- // url('fonts/this.woff') format('opentype');
61
- // font-weight: bold;
62
- // font-style: italic;
63
- // }
@@ -5,34 +5,34 @@
5
5
  // the implementations are identical except for the property
6
6
  // prefix.
7
7
  @mixin experimental($property, $value,
8
- $moz : $experimental-support-for-mozilla,
9
8
  $webkit : $experimental-support-for-webkit,
10
- $o : $experimental-support-for-opera,
11
- $ms : $experimental-support-for-microsoft,
12
9
  $khtml : $experimental-support-for-khtml,
10
+ $moz : $experimental-support-for-mozilla,
11
+ $ms : $experimental-support-for-microsoft,
12
+ $o : $experimental-support-for-opera,
13
13
  $official : true
14
14
  ) {
15
- @if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
16
15
  @if $webkit and $experimental-support-for-webkit { -webkit-#{$property} : $value; }
17
- @if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
18
- @if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
19
16
  @if $khtml and $experimental-support-for-khtml { -khtml-#{$property} : $value; }
17
+ @if $moz and $experimental-support-for-mozilla { -moz-#{$property} : $value; }
18
+ @if $ms and $experimental-support-for-microsoft { -ms-#{$property} : $value; }
19
+ @if $o and $experimental-support-for-opera { -o-#{$property} : $value; }
20
20
  @if $official { #{$property} : $value; }
21
21
  }
22
22
 
23
23
  // Same as experimental(), but for cases when the property is the same and the value is vendorized
24
24
  @mixin experimental-value($property, $value,
25
- $moz : $experimental-support-for-mozilla,
26
25
  $webkit : $experimental-support-for-webkit,
27
- $o : $experimental-support-for-opera,
28
- $ms : $experimental-support-for-microsoft,
29
26
  $khtml : $experimental-support-for-khtml,
27
+ $moz : $experimental-support-for-mozilla,
28
+ $ms : $experimental-support-for-microsoft,
29
+ $o : $experimental-support-for-opera,
30
30
  $official : true
31
31
  ) {
32
- @if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
33
32
  @if $webkit and $experimental-support-for-webkit { #{$property} : -webkit-#{$value}; }
34
- @if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
35
- @if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
36
33
  @if $khtml and $experimental-support-for-khtml { #{$property} : -khtml-#{$value}; }
34
+ @if $moz and $experimental-support-for-mozilla { #{$property} : -moz-#{$value}; }
35
+ @if $ms and $experimental-support-for-microsoft { #{$property} : -ms-#{$value}; }
36
+ @if $o and $experimental-support-for-opera { #{$property} : -o-#{$value}; }
37
37
  @if $official { #{$property} : #{$value}; }
38
38
  }
@@ -23,26 +23,12 @@ $default-text-shadow-blur: 1px !default;
23
23
  $shadow-9 : false,
24
24
  $shadow-10: false
25
25
  ) {
26
- // This has to be on a single line due to a bug in the scss parser: https://github.com/nex3/sass/issues/issue/26
27
- $legacy: type-of($shadow-1) == color and type-of(if($shadow-2, $shadow-2, 0)) == number and type-of(if($shadow-3, $shadow-3, 0)) == number and type-of(if($shadow-4, $shadow-4, 0)) == number and ($shadow-2 or $shadow-3 or $shadow-4) and not($shadow-5 or $shadow-6 or $shadow-7 or $shadow-8 or $shadow-9 or $shadow-10);
28
- @if $legacy {
29
- @warn "Passing separate arguments for a single shadow to text-shadow is deprecated. " +
30
- "Pass the values as a single space-separated list, or use the single-text-shadow mixin. " +
31
- "See http://beta.compass-style.org/help/tutorials/upgrading/antares/ for more info.";
32
- @include single-text-shadow(
33
- $shadow-1,
34
- if($shadow-2, $shadow-2, $default-text-shadow-h-offset),
35
- if($shadow-3, $shadow-3, $default-text-shadow-v-offset),
36
- if($shadow-4, $shadow-4, $default-text-shadow-blur)
37
- );
38
- } @else {
39
- @if $shadow-1 == default {
40
- $shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur;
41
- }
42
- text-shadow: compact($shadow-1, $shadow-2, $shadow-3,
43
- $shadow-4, $shadow-5, $shadow-6,
44
- $shadow-7, $shadow-8, $shadow-9, $shadow-10);
26
+ @if $shadow-1 == default {
27
+ $shadow-1: $default-text-shadow-color $default-text-shadow-h-offset $default-text-shadow-v-offset $default-text-shadow-blur;
45
28
  }
29
+ text-shadow: compact($shadow-1, $shadow-2, $shadow-3,
30
+ $shadow-4, $shadow-5, $shadow-6,
31
+ $shadow-7, $shadow-8, $shadow-9, $shadow-10);
46
32
  }
47
33
 
48
34
  // Provides a single cross-browser CSS text shadow.
@@ -57,6 +43,6 @@ $default-text-shadow-blur: 1px !default;
57
43
  @if $color == none {
58
44
  text-shadow: none;
59
45
  } @else {
60
- text-shadow: $color $hoff $voff $blur;
46
+ text-shadow: $color $hoff $voff $blur;
61
47
  }
62
48
  }
@@ -73,15 +73,42 @@ $default-transition-delay: false !default;
73
73
  // Transition all-in-one shorthand
74
74
 
75
75
  @mixin single-transition(
76
- $properties: $default-transition-property,
76
+ $property: $default-transition-property,
77
77
  $duration: $default-transition-duration,
78
78
  $function: $default-transition-function,
79
79
  $delay: $default-transition-delay
80
80
  ) {
81
- @include transition-property($properties);
82
- @include transition-duration($duration);
83
- @if $function { @include transition-timing-function($function); }
84
- @if $delay { @include transition-delay($delay); }
81
+ @if $property and $duration and $function {
82
+ // Shorthand (see https://github.com/chriseppstein/compass/issues/585)
83
+ @if $delay {
84
+ -webkit-transition: $property $duration $function;
85
+ -webkit-transition-delay: $delay;
86
+ @include experimental(transition, $property $duration $function $delay,
87
+ -moz,
88
+ not -webkit,
89
+ -o,
90
+ not -ms,
91
+ not -khtml,
92
+ official
93
+ );
94
+ }
95
+ @else {
96
+ @include experimental(transition, $property $duration $function,
97
+ -moz,
98
+ -webkit,
99
+ -o,
100
+ not -ms,
101
+ not -khtml,
102
+ official
103
+ );
104
+ }
105
+ }
106
+ @else {
107
+ @include transition-property($property);
108
+ @include transition-duration($duration);
109
+ @if $function { @include transition-timing-function($function); }
110
+ @if $delay { @include transition-delay($delay); }
111
+ }
85
112
  }
86
113
 
87
114
  @mixin transition(
@@ -96,24 +123,11 @@ $default-transition-delay: false !default;
96
123
  $transition-9 : false,
97
124
  $transition-10: false
98
125
  ) {
99
- $legacy: (type-of($transition-1) == string and type-of(if($transition-2, $transition-2, 0)) == number and type-of(if($transition-3, $transition-3, '')) == string and type-of(if($transition-4, $transition-4, 0)) == number and ($transition-2 or $transition-3 or $transition-4));
100
- @if $legacy {
101
- @warn "Passing separate arguments for a single transition to transition is deprecated. " +
102
- "Pass the values as a single space-separated list, or use the single-transition mixin.";
103
- @include single-transition(
104
- if($transition-1, $transition-1, $default-transition-property),
105
- if($transition-2, $transition-2, $default-transition-duration),
106
- if($transition-3, $transition-3, $default-transition-function),
107
- if($transition-4, $transition-4, $default-transition-delay)
108
- );
109
- }
110
- @else {
111
- @if $transition-1 == default {
112
- $transition-1 : -compass-space-list(compact($default-transition-property, $default-transition-duration, $default-transition-function, $default-transition-delay));
113
- }
114
- $transition : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
115
- @include experimental(transition, $transition,
116
- -moz, -webkit, -o, not -ms, not -khtml, official
117
- );
126
+ @if $transition-1 == default {
127
+ $transition-1 : -compass-space-list(compact($default-transition-property, $default-transition-duration, $default-transition-function, $default-transition-delay));
118
128
  }
129
+ $transition : compact($transition-1, $transition-2, $transition-3, $transition-4, $transition-5, $transition-6, $transition-7, $transition-8, $transition-9, $transition-10);
130
+ @include experimental(transition, $transition,
131
+ -moz, -webkit, -o, not -ms, not -khtml, official
132
+ );
119
133
  }
@@ -0,0 +1,19 @@
1
+ @import "shared";
2
+
3
+ // User Interface ------------------------------------------------------------
4
+ // This file can be expanded to handle all the user interface properties as
5
+ // they become available in browsers:
6
+ // http://www.w3.org/TR/2000/WD-css3-userint-20000216
7
+
8
+ // User Select ---------------------------------------------------------------
9
+ // This property controls the selection model and granularity of an element.
10
+ //
11
+ // @param $select
12
+ // [ none | text | toggle | element | elements | all | inherit ]
13
+
14
+ @mixin user-select($select) {
15
+ $select: unquote($select);
16
+ @include experimental(user-select, $select,
17
+ -moz, -webkit, not -o, not -ms, -khtml, official
18
+ );
19
+ }
@@ -1,3 +1,5 @@
1
+ @import "compass/layout/grid-background";
2
+
1
3
  // The base font size
2
4
  $base-font-size: 16px !default;
3
5
 
@@ -58,8 +60,14 @@ $base-half-leader: $base-leader / 2;
58
60
  }
59
61
 
60
62
  // Show a background image that can be used to debug your alignments.
61
- @mixin debug-vertical-alignment($img: 'underline.png') {
62
- background: url($img);
63
+ // include the $img argument if you would rather use your own image than the
64
+ // Compass default gradient image.
65
+ @mixin debug-vertical-alignment($img: false) {
66
+ @if $img {
67
+ background: image-url($img);
68
+ } @else {
69
+ @include baseline-grid-background($base-rhythm-unit);
70
+ }
63
71
  }
64
72
 
65
73
  // Adjust a block to have a different font size and leading to maintain the rhythm.
@@ -149,7 +157,8 @@ $base-half-leader: $base-leader / 2;
149
157
  @include trailer($trailer, $font-size);
150
158
  }
151
159
 
152
- // Apply a border width to any side without destroying the vertical rhythm
160
+ // Apply a border width to any side without destroying the vertical rhythm.
161
+ // The available space ($lines) must be greater than the width of your border.
153
162
  @mixin apply-side-rhythm-border($side, $width: 1px, $lines: 1, $font-size: $base-font-size, $border-style: $default-rhythm-border-style) {
154
163
  @if not $relative-font-sizing and $font-size != $base-font-size {
155
164
  @warn "$relative-font-sizing is false but a relative font size was passed to apply-side-rhythm-border";
@@ -2,7 +2,7 @@
2
2
  @mixin no-bullet {
3
3
  list-style-image : none;
4
4
  list-style-type : none;
5
- margin-left : 0px;
5
+ margin-left : 0;
6
6
  }
7
7
 
8
8
  // turns off the bullets for an entire list
@@ -2,18 +2,22 @@
2
2
  //
3
3
  // Easy mode using simple descendant li selectors:
4
4
  //
5
- // ul.nav
6
- // +inline-block-list
5
+ // ul.nav {
6
+ // @import inline-block-list;
7
+ // }
7
8
  //
8
9
  // Advanced mode:
9
10
  // If you need to target the list items using a different selector then use
10
- // +inline-block-list-container on your ul/ol and +inline-block-list-item on your li.
11
- // This may help when working on layouts involving nested lists. For example:
11
+ // `@include inline-block-list-container` on your ul/ol and
12
+ // `@include inline-block-list-item` on your li. This may help when working
13
+ // on layouts involving nested lists. For example:
12
14
  //
13
- // ul.nav
14
- // +inline-block-list-container
15
- // > li
16
- // +inline-block-list-item
15
+ // ul.nav {
16
+ // @include inline-block-list-container;
17
+ // > li {
18
+ // @include inline-block-list-item;
19
+ // }
20
+ // }
17
21
 
18
22
  @import "bullets";
19
23
  @import "horizontal-list";
@@ -21,13 +25,12 @@
21
25
  @import "compass/css3/inline-block";
22
26
 
23
27
  // Can be mixed into any selector that target a ul or ol that is meant
24
- // to have an inline-block layout. Used to implement +inline-block-list.
28
+ // to have an inline-block layout. Used to implement `inline-block-list`.
25
29
  @mixin inline-block-list-container {
26
30
  @include horizontal-list-container; }
27
31
 
28
32
  // Can be mixed into any li selector that is meant to participate in a horizontal layout.
29
- // Used to implement +inline-block-list.
30
-
33
+ // Used to implement `inline-block-list`.
31
34
  @mixin inline-block-list-item($padding: false) {
32
35
  @include no-bullet;
33
36
  @include inline-block;