compass 0.13.alpha.0 → 0.13.alpha.2

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.
Files changed (367) hide show
  1. data/README.markdown +6 -4
  2. data/Rakefile +9 -0
  3. data/VERSION.yml +2 -2
  4. data/bin/compass +2 -1
  5. data/features/command_line.feature +5 -27
  6. data/features/step_definitions/command_line_steps.rb +3 -2
  7. data/frameworks/compass/stylesheets/compass/_css3.scss +3 -0
  8. data/frameworks/compass/stylesheets/compass/_support.scss +6 -0
  9. data/frameworks/compass/stylesheets/compass/css3/_animation.scss +77 -76
  10. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +15 -9
  11. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +35 -36
  12. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +36 -34
  13. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +15 -15
  14. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +30 -48
  15. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +22 -27
  16. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +13 -8
  17. data/frameworks/compass/stylesheets/compass/css3/_box.scss +60 -82
  18. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +145 -25
  19. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +44 -0
  20. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +77 -0
  21. data/frameworks/compass/stylesheets/compass/css3/_images.scss +2 -2
  22. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +14 -8
  23. data/frameworks/compass/stylesheets/compass/css3/_selection.scss +31 -0
  24. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +207 -21
  25. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +52 -13
  26. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +14 -14
  27. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +127 -60
  28. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +35 -15
  29. data/frameworks/compass/stylesheets/compass/typography/_units.scss +152 -0
  30. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +174 -98
  31. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +5 -3
  32. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +6 -3
  33. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +1 -1
  34. data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +35 -9
  35. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -3
  36. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +2 -2
  37. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +25 -10
  38. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +14 -9
  39. data/lib/compass.rb +2 -2
  40. data/lib/compass/actions.rb +5 -1
  41. data/lib/compass/commands/project_base.rb +7 -1
  42. data/lib/compass/commands/update_project.rb +2 -2
  43. data/lib/compass/commands/watch_project.rb +6 -86
  44. data/lib/compass/compiler.rb +6 -0
  45. data/lib/compass/configuration/data.rb +1 -1
  46. data/lib/compass/configuration/helpers.rb +2 -0
  47. data/lib/compass/exec/global_options_parser.rb +1 -1
  48. data/lib/compass/exec/project_options_parser.rb +4 -0
  49. data/lib/compass/logger.rb +2 -0
  50. data/lib/compass/sass_extensions/functions/colors.rb +14 -0
  51. data/lib/compass/sass_extensions/functions/constants.rb +9 -0
  52. data/lib/compass/sass_extensions/functions/gradient_support.rb +44 -5
  53. data/lib/compass/sass_extensions/functions/image_size.rb +2 -1
  54. data/lib/compass/sass_extensions/functions/math.rb +14 -2
  55. data/lib/compass/sass_extensions/functions/sprites.rb +81 -14
  56. data/lib/compass/sass_extensions/functions/urls.rb +29 -2
  57. data/lib/compass/sass_extensions/sprites.rb +2 -0
  58. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +5 -1
  59. data/lib/compass/sass_extensions/sprites/image.rb +7 -2
  60. data/lib/compass/sass_extensions/sprites/image_methods.rb +5 -2
  61. data/lib/compass/sass_extensions/sprites/images.rb +29 -0
  62. data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
  63. data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
  64. data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
  65. data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
  66. data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
  67. data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
  68. data/lib/compass/sass_extensions/sprites/sprite_map.rb +5 -0
  69. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +9 -5
  70. data/lib/compass/sprite_importer.rb +3 -3
  71. data/lib/compass/sprite_importer/content.erb +14 -12
  72. data/lib/compass/version.rb +2 -1
  73. data/lib/compass/watcher.rb +11 -0
  74. data/lib/compass/watcher/compiler.rb +59 -0
  75. data/lib/compass/watcher/project_watcher.rb +108 -0
  76. data/lib/compass/watcher/watch.rb +33 -0
  77. data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
  78. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +7 -0
  79. data/{examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf → test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf} +0 -0
  80. data/test/fixtures/stylesheets/busted_font_urls/fonts/grid.ttf +0 -0
  81. data/test/fixtures/stylesheets/busted_font_urls/fonts/sub/dk.ttf +0 -0
  82. data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +11 -0
  83. data/test/fixtures/stylesheets/busted_font_urls/tmp/screen.css +7 -0
  84. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +0 -8
  85. data/test/fixtures/stylesheets/compass/css/animation.css +0 -8
  86. data/test/fixtures/stylesheets/compass/css/background-clip.css +5 -0
  87. data/test/fixtures/stylesheets/compass/css/background-origin.css +15 -0
  88. data/test/fixtures/stylesheets/compass/css/background-size.css +24 -0
  89. data/test/fixtures/stylesheets/compass/css/columns.css +81 -9
  90. data/test/fixtures/stylesheets/compass/css/filters.css +29 -0
  91. data/test/fixtures/stylesheets/compass/css/gradients.css +30 -27
  92. data/test/fixtures/stylesheets/compass/css/grid_background.css +7 -14
  93. data/test/fixtures/stylesheets/compass/css/hyphenation.css +16 -0
  94. data/test/fixtures/stylesheets/compass/css/lists.css +11 -13
  95. data/test/fixtures/stylesheets/compass/css/pie.css +0 -3
  96. data/test/fixtures/stylesheets/compass/css/replacement.css +59 -0
  97. data/test/fixtures/stylesheets/compass/css/reset.css +1 -1
  98. data/test/fixtures/stylesheets/compass/css/selection.css +13 -0
  99. data/test/fixtures/stylesheets/compass/css/sprites.css +250 -250
  100. data/test/fixtures/stylesheets/compass/css/text_shadow.css +22 -4
  101. data/test/fixtures/stylesheets/compass/css/transition.css +67 -11
  102. data/test/fixtures/stylesheets/compass/css/units.css +30 -0
  103. data/test/fixtures/stylesheets/compass/css/user-interface.css +12 -1
  104. data/test/fixtures/stylesheets/compass/css/utilities.css +15 -0
  105. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +199 -27
  106. data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
  107. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +4 -2
  108. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +10 -0
  109. data/test/fixtures/stylesheets/compass/sass/background-size.scss +12 -0
  110. data/test/fixtures/stylesheets/compass/sass/columns.scss +18 -0
  111. data/test/fixtures/stylesheets/compass/sass/filters.scss +24 -0
  112. data/test/fixtures/stylesheets/compass/sass/gradients.sass +10 -3
  113. data/test/fixtures/stylesheets/compass/sass/hyphenation.scss +11 -0
  114. data/test/fixtures/stylesheets/compass/sass/replacement.scss +22 -0
  115. data/test/fixtures/stylesheets/compass/sass/selection.scss +13 -0
  116. data/test/fixtures/stylesheets/compass/sass/text_shadow.scss +6 -1
  117. data/test/fixtures/stylesheets/compass/sass/transition.scss +11 -0
  118. data/test/fixtures/stylesheets/compass/sass/units.scss +45 -0
  119. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +10 -5
  120. data/test/fixtures/stylesheets/compass/sass/utilities.scss +10 -0
  121. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +208 -7
  122. data/test/fixtures/stylesheets/envtest/tmp/env.css +4 -4
  123. data/test/fixtures/stylesheets/valid/css/simple.css +4 -0
  124. data/test/helpers/test_case.rb +8 -1
  125. data/test/integrations/compass_test.rb +13 -13
  126. data/test/integrations/sprites_test.rb +173 -8
  127. data/test/test_helper.rb +4 -0
  128. data/test/units/command_line_test.rb +0 -2
  129. data/test/units/regressions_test.rb +35 -0
  130. data/test/units/sass_extensions_test.rb +23 -11
  131. data/test/units/sprites/image_test.rb +5 -0
  132. data/test/units/sprites/images_test.rb +46 -0
  133. data/test/units/sprites/layout_test.rb +18 -2
  134. data/test/units/watcher/compiler_test.rb +39 -0
  135. data/test/units/watcher/project_watcher_test.rb +65 -0
  136. data/test/units/watcher/watch_test.rb +42 -0
  137. metadata +83 -317
  138. data/bin/compass.compiled.rbc +0 -707
  139. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  140. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  141. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  142. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  143. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  144. data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
  145. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
  146. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
  147. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
  148. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
  149. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
  150. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
  151. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
  152. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
  153. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
  154. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
  155. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
  156. data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
  157. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
  158. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
  159. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
  160. data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
  161. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -80
  162. data/frameworks/blueprint/templates/basic/grid.png +0 -0
  163. data/frameworks/blueprint/templates/basic/ie.sass +0 -4
  164. data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
  165. data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
  166. data/frameworks/blueprint/templates/basic/print.sass +0 -4
  167. data/frameworks/blueprint/templates/basic/screen.sass +0 -12
  168. data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
  169. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  170. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  171. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  172. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
  173. data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
  174. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  175. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  176. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  177. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  178. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  179. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  180. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  181. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  182. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
  183. data/frameworks/blueprint/templates/project/grid.png +0 -0
  184. data/frameworks/blueprint/templates/project/ie.sass +0 -16
  185. data/frameworks/blueprint/templates/project/manifest.rb +0 -30
  186. data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
  187. data/frameworks/blueprint/templates/project/print.sass +0 -8
  188. data/frameworks/blueprint/templates/project/screen.sass +0 -46
  189. data/frameworks/blueprint/templates/semantic/grid.png +0 -0
  190. data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
  191. data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
  192. data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
  193. data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
  194. data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
  195. data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
  196. data/frameworks/blueprint/templates/semantic/print.sass +0 -5
  197. data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
  198. data/lib/compass.rbc +0 -796
  199. data/lib/compass/actions.rbc +0 -2736
  200. data/lib/compass/app_integration.rbc +0 -836
  201. data/lib/compass/app_integration/merb.rbc +0 -106
  202. data/lib/compass/app_integration/rails.rbc +0 -2096
  203. data/lib/compass/app_integration/rails/configuration_defaults.rbc +0 -2430
  204. data/lib/compass/app_integration/rails/installer.rbc +0 -3677
  205. data/lib/compass/app_integration/stand_alone.rbc +0 -589
  206. data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +0 -721
  207. data/lib/compass/app_integration/stand_alone/installer.rbc +0 -1487
  208. data/lib/compass/browser_support.rbc +0 -1144
  209. data/lib/compass/commands.rbc +0 -307
  210. data/lib/compass/commands/base.rbc +0 -1044
  211. data/lib/compass/commands/clean_project.rbc +0 -1856
  212. data/lib/compass/commands/create_project.rbc +0 -2691
  213. data/lib/compass/commands/default.rbc +0 -1677
  214. data/lib/compass/commands/generate_grid_background.rbc +0 -1939
  215. data/lib/compass/commands/help.rbc +0 -1921
  216. data/lib/compass/commands/imports.rbc +0 -969
  217. data/lib/compass/commands/installer_command.rbc +0 -807
  218. data/lib/compass/commands/interactive.rbc +0 -1341
  219. data/lib/compass/commands/list_frameworks.rbc +0 -1111
  220. data/lib/compass/commands/print_version.rbc +0 -2478
  221. data/lib/compass/commands/project_base.rbc +0 -2085
  222. data/lib/compass/commands/project_stats.rbc +0 -4202
  223. data/lib/compass/commands/registry.rbc +0 -1350
  224. data/lib/compass/commands/sprite.rbc +0 -2212
  225. data/lib/compass/commands/stamp_pattern.rbc +0 -2011
  226. data/lib/compass/commands/unpack_extension.rbc +0 -2348
  227. data/lib/compass/commands/update_project.rbc +0 -3002
  228. data/lib/compass/commands/validate_project.rbc +0 -1686
  229. data/lib/compass/commands/watch_project.rbc +0 -4155
  230. data/lib/compass/commands/write_configuration.rbc +0 -2896
  231. data/lib/compass/compiler.rbc +0 -4913
  232. data/lib/compass/configuration.rbc +0 -1398
  233. data/lib/compass/configuration/adapters.rbc +0 -2088
  234. data/lib/compass/configuration/comments.rbc +0 -843
  235. data/lib/compass/configuration/data.rbc +0 -2633
  236. data/lib/compass/configuration/defaults.rbc +0 -3617
  237. data/lib/compass/configuration/file_data.rbc +0 -643
  238. data/lib/compass/configuration/helpers.rbc +0 -3500
  239. data/lib/compass/configuration/inheritance.rbc +0 -3592
  240. data/lib/compass/configuration/paths.rbc +0 -412
  241. data/lib/compass/configuration/serialization.rbc +0 -1996
  242. data/lib/compass/dependencies.rbc +0 -232
  243. data/lib/compass/errors.rbc +0 -176
  244. data/lib/compass/exec.rbc +0 -500
  245. data/lib/compass/exec/command_option_parser.rbc +0 -676
  246. data/lib/compass/exec/global_options_parser.rbc +0 -1306
  247. data/lib/compass/exec/helpers.rbc +0 -758
  248. data/lib/compass/exec/project_options_parser.rbc +0 -1515
  249. data/lib/compass/exec/sub_command_ui.rbc +0 -1191
  250. data/lib/compass/frameworks.rbc +0 -3640
  251. data/lib/compass/grid_builder.rbc +0 -0
  252. data/lib/compass/installers.rbc +0 -152
  253. data/lib/compass/installers/bare_installer.rbc +0 -939
  254. data/lib/compass/installers/base.rbc +0 -4427
  255. data/lib/compass/installers/manifest.rbc +0 -3335
  256. data/lib/compass/installers/manifest_installer.rbc +0 -1591
  257. data/lib/compass/installers/template_context.rbc +0 -1030
  258. data/lib/compass/logger.rbc +0 -2317
  259. data/lib/compass/quick_cache.rbc +0 -324
  260. data/lib/compass/sass_extensions.rbc +0 -213
  261. data/lib/compass/sass_extensions/functions.rbc +0 -808
  262. data/lib/compass/sass_extensions/functions/colors.rbc +0 -1279
  263. data/lib/compass/sass_extensions/functions/constants.rbc +0 -1921
  264. data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +0 -1966
  265. data/lib/compass/sass_extensions/functions/display.rbc +0 -1227
  266. data/lib/compass/sass_extensions/functions/enumerate.rbc +0 -446
  267. data/lib/compass/sass_extensions/functions/env.rbc +0 -299
  268. data/lib/compass/sass_extensions/functions/font_files.rbc +0 -821
  269. data/lib/compass/sass_extensions/functions/gradient_support.rbc +0 -14147
  270. data/lib/compass/sass_extensions/functions/image_size.rbc +0 -3152
  271. data/lib/compass/sass_extensions/functions/inline_image.rbc +0 -1678
  272. data/lib/compass/sass_extensions/functions/lists.rbc +0 -2601
  273. data/lib/compass/sass_extensions/functions/selectors.rbc +0 -1592
  274. data/lib/compass/sass_extensions/functions/sprites.rbc +0 -3792
  275. data/lib/compass/sass_extensions/functions/trig.rbc +0 -811
  276. data/lib/compass/sass_extensions/functions/urls.rbc +0 -5248
  277. data/lib/compass/sass_extensions/monkey_patches.rbc +0 -134
  278. data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +0 -2169
  279. data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +0 -660
  280. data/lib/compass/sass_extensions/sprites.rbc +0 -363
  281. data/lib/compass/sass_extensions/sprites/base.rbc +0 -4529
  282. data/lib/compass/sass_extensions/sprites/engines.rbc +0 -662
  283. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +0 -1074
  284. data/lib/compass/sass_extensions/sprites/image.rbc +0 -2961
  285. data/lib/compass/sass_extensions/sprites/image_methods.rbc +0 -900
  286. data/lib/compass/sass_extensions/sprites/image_row.rbc +0 -1168
  287. data/lib/compass/sass_extensions/sprites/layout_methods.rbc +0 -3236
  288. data/lib/compass/sass_extensions/sprites/row_fitter.rbc +0 -2067
  289. data/lib/compass/sass_extensions/sprites/sprite_map.rbc +0 -1991
  290. data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +0 -3190
  291. data/lib/compass/sass_extensions/sprites/sprites.rbc +0 -1573
  292. data/lib/compass/sprite_importer.rbc +0 -3573
  293. data/lib/compass/util.rbc +0 -552
  294. data/lib/compass/version.rbc +0 -1245
  295. data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
  296. data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
  297. data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
  298. data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -816
  299. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -58
  300. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
  301. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -12
  302. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
  303. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
  304. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
  305. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
  306. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
  307. data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
  308. data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
  309. data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
  310. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -36
  311. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -40
  312. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
  313. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
  314. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
  315. data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
  316. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  317. data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
  318. data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
  319. data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
  320. data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
  321. data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
  322. data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
  323. data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
  324. data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
  325. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
  326. data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
  327. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
  328. data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
  329. data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
  330. data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
  331. data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
  332. data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
  333. data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
  334. data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
  335. data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
  336. data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
  337. data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
  338. data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
  339. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
  340. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
  341. data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
  342. data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
  343. data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
  344. data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
  345. data/test/fixtures/stylesheets/compass/images/flag-s4798b5a210.png +0 -0
  346. data/test/helpers/command_line.rbc +0 -2820
  347. data/test/helpers/diff.rbc +0 -1104
  348. data/test/helpers/io.rbc +0 -962
  349. data/test/helpers/rails.rbc +0 -1116
  350. data/test/helpers/test_case.rbc +0 -1255
  351. data/test/integrations/compass_test.rbc +0 -6589
  352. data/test/integrations/rails_integration_test.rbc +0 -1342
  353. data/test/integrations/sprites_test.rbc +0 -6192
  354. data/test/test_helper.rbc +0 -1694
  355. data/test/units/actions_test.rbc +0 -644
  356. data/test/units/command_line_test.rbc +0 -1532
  357. data/test/units/compass_png_test.rbc +0 -0
  358. data/test/units/configuration_test.rbc +0 -3833
  359. data/test/units/rails_configuration_test.rbc +0 -1032
  360. data/test/units/sass_extensions_test.rbc +0 -3586
  361. data/test/units/sprites/engine_test.rbc +0 -962
  362. data/test/units/sprites/image_row_test.rbc +0 -1578
  363. data/test/units/sprites/image_test.rbc +0 -2836
  364. data/test/units/sprites/importer_test.rbc +0 -2620
  365. data/test/units/sprites/row_fitter_test.rbc +0 -1479
  366. data/test/units/sprites/sprite_command_test.rbc +0 -1147
  367. data/test/units/sprites/sprite_map_test.rbc +0 -6515
@@ -1,6 +1,8 @@
1
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
+
5
+ Code Quality: [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/chriseppstein/compass)
4
6
 
5
7
  ## Resources
6
8
 
@@ -9,8 +11,8 @@ Build Status: ![Build Status](https://secure.travis-ci.org/chriseppstein/compass
9
11
  * [Compass Reference](http://compass-style.org/install/reference/)
10
12
 
11
13
  ## Author
12
- Compass is written by [Chris Eppstein][chris_eppstein].<br>
13
- Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team.
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.
14
16
 
15
17
  ## Core Team Members
16
18
 
@@ -26,4 +28,4 @@ Chris is the Software Architect of [Caring.com][caring.com] and a member of the
26
28
  ## License
27
29
  Copyright (c) 2008-2009 Christopher M. Eppstein<br>
28
30
  All Rights Reserved.<br>
29
- Released under a [slightly modified MIT License][license].
31
+ Released under a [slightly modified MIT License](compass/blob/stable/LICENSE.markdown).
data/Rakefile CHANGED
@@ -53,6 +53,15 @@ Rake::TestTask.new :units do |t|
53
53
  t.verbose = true
54
54
  end
55
55
 
56
+ Rake::TestTask.new :integrations do |t|
57
+ t.libs << 'lib'
58
+ t.libs << 'test'
59
+ test_files = FileList['test/integrations/**/*_test.rb']
60
+ test_files.exclude('test/rails/*', 'test/haml/*')
61
+ t.test_files = test_files
62
+ t.verbose = true
63
+ end
64
+
56
65
 
57
66
  desc "Compile Examples into HTML and CSS"
58
67
  task :examples do
@@ -1,6 +1,6 @@
1
- ---
1
+ ---
2
2
  :major: 0
3
3
  :minor: 13
4
4
  :state: alpha
5
- :build: 0
5
+ :iteration: 2
6
6
  :name: Markab
@@ -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
@@ -17,30 +17,13 @@ Feature: Command Line
17
17
  And I am told how to link to /stylesheets/print.css for media "print"
18
18
  And I am told how to conditionally link "IE" to /stylesheets/ie.css for media "screen, projection"
19
19
 
20
- Scenario: Install a project with blueprint
21
- When I create a project using: compass create bp_project --using blueprint
22
- Then a directory bp_project/ is created
23
- And a configuration file bp_project/config.rb is created
24
- And a sass file bp_project/sass/screen.scss is created
25
- And a sass file bp_project/sass/print.scss is created
26
- And a sass file bp_project/sass/ie.scss is created
27
- And a css file bp_project/stylesheets/screen.css is created
28
- And a css file bp_project/stylesheets/print.css is created
29
- And a css file bp_project/stylesheets/ie.css is created
30
- And an image file bp_project/images/grid.png is created
31
- And I am told how to link to /stylesheets/screen.css for media "screen, projection"
32
- And I am told how to link to /stylesheets/print.css for media "print"
33
- And I am told how to conditionally link "lt IE 8" to /stylesheets/ie.css for media "screen, projection"
34
-
35
20
  Scenario: Install a project with specific directories
36
- When I create a project using: compass create custom_project --using blueprint --sass-dir sass --css-dir css --images-dir assets/imgs
21
+ When I create a project using: compass create custom_project --using compass --sass-dir sass --css-dir css --images-dir assets/imgs
37
22
  Then a directory custom_project/ is created
38
23
  And a directory custom_project/sass/ is created
39
24
  And a directory custom_project/css/ is created
40
- And a directory custom_project/assets/imgs/ is created
41
25
  And a sass file custom_project/sass/screen.scss is created
42
26
  And a css file custom_project/css/screen.css is created
43
- And an image file custom_project/assets/imgs/grid.png is created
44
27
 
45
28
  Scenario: Perform a dry run of creating a project
46
29
  When I create a project using: compass create my_project --dry-run
@@ -134,12 +117,8 @@ Feature: Command Line
134
117
 
135
118
  Scenario: Installing a pattern into a project
136
119
  Given I am using the existing project in test/fixtures/stylesheets/compass
137
- When I run: compass install blueprint/buttons
138
- Then a sass file sass/buttons.scss is created
139
- And an image file images/buttons/cross.png is created
140
- And an image file images/buttons/key.png is created
141
- And an image file images/buttons/tick.png is created
142
- And a css file tmp/buttons.css is created
120
+ When I run: compass install compass/pie
121
+ Then a sass file sass/pie.scss is created
143
122
 
144
123
  Scenario: Basic help
145
124
  When I run: compass help
@@ -191,7 +170,7 @@ Feature: Command Line
191
170
  | tmp/box_shadow.css |
192
171
  | tmp/columns.css |
193
172
  | tmp/fonts.css |
194
- | images/flag-s4798b5a210.png |
173
+ | images/flag-s5b4f509715.png |
195
174
  And the following files are removed:
196
175
  | .sass-cache/ |
197
176
  | tmp/border_radius.css |
@@ -199,7 +178,7 @@ Feature: Command Line
199
178
  | tmp/box_shadow.css |
200
179
  | tmp/columns.css |
201
180
  | tmp/fonts.css |
202
- | images/flag-s4798b5a210.png |
181
+ | images/flag-s5b4f509715.png |
203
182
 
204
183
  Scenario: Watching a project for changes
205
184
  Given ruby supports fork
@@ -287,6 +266,5 @@ Feature: Command Line
287
266
  Scenario: List frameworks registered with compass
288
267
  When I run: compass frameworks
289
268
  Then I should see the following lines of output:
290
- | blueprint |
291
269
  | compass |
292
270
 
@@ -256,11 +256,12 @@ 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
+ size = File.open(file, "rb") {|io| io.read}[0x10..0x18].unpack('NN')
260
+ size.should == [width.to_i, height.to_i]
260
261
  end
261
262
 
262
263
  Then /^I should see the following lines of output:$/ do |table|
263
- table.diff!([['blueprint'],['compass']])
264
+ table.diff!([['compass']])
264
265
  end
265
266
 
266
267
  Then /^I should see the following output: (.+)$/ do |expected|
@@ -16,3 +16,6 @@
16
16
  @import "css3/appearance";
17
17
  @import "css3/animation";
18
18
  @import "css3/regions";
19
+ @import "css3/hyphenation";
20
+ @import "css3/filter";
21
+ @import "css3/user-interface";
@@ -16,6 +16,12 @@ $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
+ $legacy-support-for-mozilla: true;
21
+
22
+ // Whether to output legacy support for webkit.
23
+ $legacy-support-for-webkit: true;
24
+
19
25
  // Support for mozilla in experimental css3 properties (-moz).
20
26
  $experimental-support-for-mozilla : true !default;
21
27
  // Support for webkit in experimental css3 properties (-webkit).
@@ -1,34 +1,39 @@
1
1
  @import "shared";
2
2
 
3
- // CSS Animations.
3
+ // ----------------------------------------------------------------------------
4
+ // @private css3-feature-support variables must always include a list of five boolean values
5
+ // representing in order: -moz, -webkit, -o, -ms, -khtml.
6
+ $animation-support: -moz, -webkit, -o, not -ms, -khtml;
4
7
 
5
- // Apply an animation property and value with the correct browser support
6
- @mixin animation-support($property, $value) {
7
- @include experimental($property, $value, -moz, -webkit, -o, -ms, not -khtml, official); }
8
+ // ----------------------------------------------------------------------------
9
+ // Defaults
8
10
 
9
11
  // Name of any animation as a string.
10
- $default-animation-name : false !default;
12
+ $default-animation-name : null !default;
11
13
 
12
14
  // Duration of the entire animation in seconds.
13
- $default-animation-duration : false !default;
15
+ $default-animation-duration : null !default;
14
16
 
15
17
  // Delay for start of animation in seconds.
16
- $default-animation-delay : false !default;
18
+ $default-animation-delay : null !default;
17
19
 
18
20
  // The timing function(s) to be used between keyframes. [ease | linear | ease-in | ease-out | ease-in-out | cubic-bezier($number, $number, $number, $number)]
19
- $default-animation-timing-function : false !default;
21
+ $default-animation-timing-function : null !default;
20
22
 
21
23
  // The number of times an animation cycle is played. [infinite | $number]
22
- $default-animation-iteration-count : false !default;
24
+ $default-animation-iteration-count : null !default;
23
25
 
24
26
  // Whether or not the animation should play in reverse on alternate cycles. [normal | alternate]
25
- $default-animation-direction : false !default;
27
+ $default-animation-direction : null !default;
26
28
 
27
29
  // What values are applied by the animation outside the time it is executing. [none | forwards | backwards | both]
28
- $default-animation-fill-mode : false !default;
30
+ $default-animation-fill-mode : null !default;
29
31
 
30
32
  // Whether the animation is running or paused. [running | paused]
31
- $default-animation-play-state : false !default;
33
+ $default-animation-play-state : null !default;
34
+
35
+ // ----------------------------------------------------------------------------
36
+ // Keyframes
32
37
 
33
38
  // Create a named animation sequence that can be applied to elements later.
34
39
  //
@@ -36,34 +41,28 @@ $default-animation-play-state : false !default;
36
41
  // @content - The keyframes of the animation.
37
42
  @mixin keyframes(
38
43
  $name,
39
- $moz: $experimental-support-for-mozilla,
40
- $webkit: $experimental-support-for-webkit,
41
- $o: $experimental-support-for-opera,
42
- $ms: $experimental-support-for-microsoft,
43
- $khtml: $experimental-support-for-khtml,
44
- $official: true
44
+ $moz : $experimental-support-for-mozilla,
45
+ $webkit : $experimental-support-for-webkit,
46
+ $o : $experimental-support-for-opera,
47
+ $khtml : $experimental-support-for-khtml,
48
+ $official : true
45
49
  ) {
46
- @if $moz {
50
+ @if $moz and nth($animation-support,1) {
47
51
  @include with-only-support-for($moz: true) {
48
52
  @-moz-keyframes #{$name} { @content; }
49
53
  }
50
54
  }
51
- @if $webkit {
55
+ @if $webkit and nth($animation-support,2) {
52
56
  @include with-only-support-for($webkit: true) {
53
57
  @-webkit-keyframes #{$name} { @content; }
54
58
  }
55
59
  }
56
- @if $o {
60
+ @if $o and nth($animation-support,3) {
57
61
  @include with-only-support-for($o: true) {
58
62
  @-o-keyframes #{$name} { @content; }
59
63
  }
60
64
  }
61
- @if $ms {
62
- @include with-only-support-for($ms: true) {
63
- @-ms-keyframes #{$name} { @content; }
64
- }
65
- }
66
- @if $khtml {
65
+ @if $khtml and nth($animation-support,5) {
67
66
  @include with-only-support-for($khtml: true) {
68
67
  @-khtml-keyframes #{$name} { @content; }
69
68
  }
@@ -75,53 +74,55 @@ $default-animation-play-state : false !default;
75
74
  }
76
75
  }
77
76
 
78
- // Apply 1-10 animation names.
79
- @mixin animation-name($name-1: $default-animation-name, $name-2: false, $name-3: false, $name-4: false, $name-5: false, $name-6: false, $name-7: false, $name-8: false, $name-9: false, $name-10: false) {
80
- $name: compact($name-1, $name-2, $name-3, $name-4, $name-5, $name-6, $name-7, $name-8, $name-9, $name-10);
81
- @include animation-support(animation-name, $name); }
82
-
83
- // Apply 1-10 animation durations.
84
- @mixin animation-duration($duration-1: $default-animation-duration, $duration-2: false, $duration-3: false, $duration-4: false, $duration-5: false, $duration-6: false, $duration-7: false, $duration-8: false, $duration-9: false, $duration-10: false) {
85
- $duration: compact($duration-1, $duration-2, $duration-3, $duration-4, $duration-5, $duration-6, $duration-7, $duration-8, $duration-9, $duration-10);
86
- @include animation-support(animation-duration, $duration); }
87
-
88
- // Apply 1-10 animation delays.
89
- @mixin animation-delay($delay-1: $default-animation-delay, $delay-2: false, $delay-3: false, $delay-4: false, $delay-5: false, $delay-6: false, $delay-7: false, $delay-8: false, $delay-9: false, $delay-10: false) {
90
- $delay: compact($delay-1, $delay-2, $delay-3, $delay-4, $delay-5, $delay-6, $delay-7, $delay-8, $delay-9, $delay-10);
91
- @include animation-support(animation-delay, $delay); }
92
-
93
- // Apply 1-10 animation timing functions.
94
- @mixin animation-timing-function($function-1: $default-animation-timing-function, $function-2: false, $function-3: false, $function-4: false, $function-5: false, $function-6: false, $function-7: false, $function-8: false, $function-9: false, $function-10: false) {
95
- $function: compact($function-1, $function-2, $function-3, $function-4, $function-5, $function-6, $function-7, $function-8, $function-9, $function-10);
96
- @include animation-support(animation-timing-function, $function); }
97
-
98
- // Apply 1-10 animation iteration counts.
99
- @mixin animation-iteration-count($count-1: $default-animation-iteration-count, $count-2: false, $count-3: false, $count-4: false, $count-5: false, $count-6: false, $count-7: false, $count-8: false, $count-9: false, $count-10: false) {
100
- $count: compact($count-1, $count-2, $count-3, $count-4, $count-5, $count-6, $count-7, $count-8, $count-9, $count-10);
101
- @include animation-support(animation-iteration-count, $count); }
102
-
103
- // Apply 1-10 animation directions.
104
- @mixin animation-direction($direction-1: $default-animation-direction, $direction-2: false, $direction-3: false, $direction-4: false, $direction-5: false, $direction-6: false, $direction-7: false, $direction-8: false, $direction-9: false, $direction-10: false) {
105
- $direction: compact($direction-1, $direction-2, $direction-3, $direction-4, $direction-5, $direction-6, $direction-7, $direction-8, $direction-9, $direction-10);
106
- @include animation-support(animation-direction, $direction); }
107
-
108
- // Apply 1-10 animation fill modes.
109
- @mixin animation-fill-mode($mode-1: $default-animation-fill-mode, $mode-2: false, $mode-3: false, $mode-4: false, $mode-5: false, $mode-6: false, $mode-7: false, $mode-8: false, $mode-9: false, $mode-10: false) {
110
- $mode: compact($mode-1, $mode-2, $mode-3, $mode-4, $mode-5, $mode-6, $mode-7, $mode-8, $mode-9, $mode-10);
111
- @include animation-support(animation-fill-mode, $mode); }
112
-
113
- // Apply 1-10 animation play states.
114
- @mixin animation-play-state($state-1: $default-animation-play-state, $state-2: false, $state-3: false, $state-4: false, $state-5: false, $state-6: false, $state-7: false, $state-8: false, $state-9: false, $state-10: false) {
115
- $state: compact($state-1, $state-2, $state-3, $state-4, $state-5, $state-6, $state-7, $state-8, $state-9, $state-10);
116
- @include animation-support(animation-play-state, $state); }
117
-
118
- // Shortcut to apply a named animation to an element, with all the settings.
77
+ // ----------------------------------------------------------------------------
78
+ // Animation
79
+
80
+ // Apply any number of animation names.
81
+ @mixin animation-name($name...) {
82
+ $name: set-arglist-default($name, $default-animation-name);
83
+ @include experimental(animation-name, $name, $animation-support...); }
84
+
85
+ // Apply any number of animation durations.
86
+ @mixin animation-duration($duration...) {
87
+ $duration: set-arglist-default($duration, $default-animation-duration);
88
+ @include experimental(animation-duration, $duration, $animation-support...); }
89
+
90
+ // Apply any number of animation delays.
91
+ @mixin animation-delay($delay...) {
92
+ $delay: set-arglist-default($delay, $default-animation-delay);
93
+ @include experimental(animation-delay, $delay, $animation-support...); }
94
+
95
+ // Apply any number of animation timing functions.
96
+ @mixin animation-timing-function($function...) {
97
+ $function: set-arglist-default($function, $default-animation-timing-function);
98
+ @include experimental(animation-timing-function, $function, $animation-support...); }
99
+
100
+ // Apply any number of animation iteration counts.
101
+ @mixin animation-iteration-count($count...) {
102
+ $count: set-arglist-default($count, $default-animation-iteration-count);
103
+ @include experimental(animation-iteration-count, $count, $animation-support...); }
104
+
105
+ // Apply any number of animation directions.
106
+ @mixin animation-direction($direction...) {
107
+ $direction: set-arglist-default($direction, $default-animation-direction);
108
+ @include experimental(animation-direction, $direction, $animation-support...); }
109
+
110
+ // Apply any number of animation fill modes.
111
+ @mixin animation-fill-mode($mode...) {
112
+ $mode: set-arglist-default($mode, $default-animation-fill-mode);
113
+ @include experimental(animation-fill-mode, $mode, $animation-support...); }
114
+
115
+ // Apply any number of animation play states.
116
+ @mixin animation-play-state($state...) {
117
+ $state: set-arglist-default($state, $default-animation-play-state);
118
+ @include experimental(animation-play-state, $state, $animation-support...); }
119
+
120
+ // Shortcut to apply any number of animations to an element, with all the settings.
119
121
  //
120
- // $animation-1 : Name and settings for the first animation. [<values> | default]
121
- // ...
122
- // $animation-10 : Name and settings for the tenth animation. <values>
123
- @mixin animation($animation-1: default, $animation-2: false, $animation-3: false, $animation-4: false, $animation-5: false, $animation-6: false, $animation-7: false, $animation-8: false, $animation-9: false, $animation-10: false) {
124
- @if $animation-1 == default {
125
- $animation-1: -compass-space-list(compact($default-animation-name, $default-animation-duration, $default-animation-timing-function, $default-animation-delay, $default-animation-iteration-count, $default-animation-direction, $default-animation-fill-mode, $default-animation-play-state)); }
126
- $animation: compact($animation-1, $animation-2, $animation-3, $animation-4, $animation-5, $animation-6, $animation-7, $animation-8, $animation-9, $animation-10);
127
- @include animation-support(animation, $animation); }
122
+ // $animation... : Name and settings. [<values> | default]
123
+ @mixin animation($animation...) {
124
+ $default: -compass-space-list(compact($default-animation-name $default-animation-duration $default-animation-timing-function $default-animation-delay $default-animation-iteration-count $default-animation-direction $default-animation-fill-mode $default-animation-play-state));
125
+ $animation: set-arglist-default($animation, $default);
126
+ @include experimental(animation, $animation, $animation-support...);
127
+ }
128
+
@@ -1,16 +1,22 @@
1
1
  @import "shared";
2
2
 
3
+ // ----------------------------------------------------------------------------
4
+ // @private css3-feature-support variables must always include a list of five boolean values
5
+ // representing in order: -moz, -webkit, -o, -ms, -khtml.
6
+ $appearance-support: -moz, -webkit, not -o, not -ms, not -khtml;
7
+
8
+ // ----------------------------------------------------------------------------
9
+ // Mixin
10
+
3
11
  // Change the appearance for Mozilla, Webkit and possibly the future.
4
12
  // The appearance property is currently not present in any newer CSS specification.
5
13
  //
6
14
  // There is no official list of accepted values, but you might check these source:
7
- // Mozilla : https://developer.mozilla.org/en/CSS/-moz-appearance
8
- // Webkit : http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365
9
- // (search for 'appearance' within the page)
10
-
11
- @mixin appearance($ap) {
12
- $ap: unquote($ap);
13
- @include experimental(appearance, $ap,
14
- -moz, -webkit, not -o, not -ms, not -khtml, official
15
- );
15
+ //
16
+ // * [Mozilla](https://developer.mozilla.org/en/CSS/-moz-appearance)
17
+ // * [Webkit](http://code.google.com/p/webkit-mirror/source/browse/Source/WebCore/css/CSSValueKeywords.in?spec=svnf1aea559dcd025a8946aa7da6e4e8306f5c1b604&r=63c7d1af44430b314233fea342c3ddb2a052e365)
18
+ // (search for 'appearance' within the page)
19
+ @mixin appearance($appearance) {
20
+ $appearance: unquote($appearance);
21
+ @include experimental(appearance, $appearance, $appearance-support...);
16
22
  }
@@ -1,43 +1,42 @@
1
1
  @import "shared";
2
2
 
3
- // The default value is `padding-box` -- the box model used by modern browsers.
4
- //
5
- // If you wish to do so, you can override the default constant with `border-box`
6
- //
7
- // To override to the default border-box model, use this code:
8
- // $default-background-clip: border-box
3
+ // ----------------------------------------------------------------------------
4
+ // @private css3-feature-support variables must always include a list of five boolean values
5
+ // representing in order: -moz, -webkit, -o, -ms, -khtml
6
+ // - mozilla/webkit legacy support handled seperately below
7
+ $background-clip-support: not -moz, not -webkit, not -o, not -ms, -khtml;
9
8
 
9
+ // ----------------------------------------------------------------------------
10
+ // Default
11
+
12
+ // The default border-box model: [border-box | padding-box | content-box]
10
13
  $default-background-clip: padding-box !default;
11
14
 
12
- // Clip the background (image and color) at the edge of the padding or border.
13
- //
14
- // Legal Values:
15
- //
16
- // * padding-box
17
- // * border-box
18
- // * text
19
-
20
- @mixin background-clip($clip: $default-background-clip) {
21
- // webkit and mozilla use the deprecated short [border | padding]
22
- $clip: unquote($clip);
23
- $deprecated: $clip;
24
- @if $clip == padding-box { $deprecated: padding; }
25
- @if $clip == border-box { $deprecated: border; }
26
- // Support for webkit and mozilla's use of the deprecated short form
27
- @include experimental(background-clip, $deprecated,
28
- -moz,
29
- -webkit,
30
- not -o,
31
- not -ms,
32
- not -khtml,
33
- not official
34
- );
35
- @include experimental(background-clip, $clip,
36
- not -moz,
37
- not -webkit,
38
- not -o,
39
- not -ms,
40
- -khtml,
41
- official
15
+ // ----------------------------------------------------------------------------
16
+ // Mixin
17
+
18
+ // Clip the background (image and color) at the edge of the padding, border, or content.
19
+ // $clip... : [padding-box | border-box | content-box]
20
+ @mixin background-clip($clip...) {
21
+ $output: compact();
22
+ $deprecated: compact();
23
+
24
+ @if (length($clip) > 0) {
25
+ @each $layer in $clip {
26
+ $output: append($output, unquote($layer));
27
+ $deprecated: append($deprecated, legacy-box($layer));
28
+ }
29
+ } @else {
30
+ $output: $default-background-clip;
31
+ $deprecated: legacy-box($default-background-clip);
32
+ }
33
+
34
+ // Legacy versions of Mozilla support a different syntax, prefixed.
35
+ @include experimental-only-for(background-clip, $deprecated,
36
+ $moz: $legacy-support-for-mozilla,
37
+ $webkit: $legacy-support-for-webkit
42
38
  );
39
+
40
+ // Official syntax for the rest
41
+ @include experimental(background-clip, $output, $background-clip-support...);
43
42
  }