radiant 1.0.0.rc1 → 1.0.0.rc2

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of radiant might be problematic. Click here for more details.

Files changed (623) hide show
  1. data/app/controllers/admin/resource_controller.rb +1 -0
  2. data/app/controllers/application_controller.rb +1 -1
  3. data/app/models/deprecated_tags.rb +5 -48
  4. data/app/models/user_action_observer.rb +8 -2
  5. data/app/views/layouts/application.html.haml +1 -1
  6. data/config/boot.rb +2 -2
  7. data/config/environment.rb +5 -3
  8. data/config/initializers/compass.rb +5 -0
  9. data/config/locales/en.yml +2 -2
  10. data/features/step_definitions/admin/pages_management_steps.rb +6 -1
  11. data/features/support/paths.rb +13 -0
  12. data/lib/generators/extension/templates/cucumber_env.rb +5 -1
  13. data/lib/generators/extension/templates/cucumber_paths.rb +20 -12
  14. data/lib/generators/extension/templates/gemspec.rb +10 -5
  15. data/lib/generators/instance/templates/instance_environment.rb +4 -2
  16. data/lib/radiant.rb +1 -1
  17. data/lib/radiant/gem_dependency_fix.rb +1 -1
  18. data/lib/radiant/taggable.rb +42 -3
  19. data/lib/tasks/framework.rake +6 -6
  20. data/{vendor/plugins/haml/test/sass/results/warn.css → log/.keep} +0 -0
  21. data/radiant.gemspec +3 -2
  22. data/script/console +2 -2
  23. data/spec/controllers/admin/pages_controller_spec.rb +1 -1
  24. data/spec/lib/radiant/taggable_spec.rb +53 -0
  25. data/vendor/extensions/archive/Rakefile +3 -3
  26. data/vendor/extensions/archive/features/support/env.rb +5 -1
  27. data/vendor/extensions/archive/features/support/paths.rb +20 -12
  28. data/vendor/extensions/archive/radiant-archive-extension.gemspec +10 -5
  29. data/vendor/extensions/archive/tmp/cache/meta/0e/da69d02186242cdfda62e46044566f2bc50f3a +0 -0
  30. data/vendor/extensions/{assets → clipped}/LICENSE +0 -0
  31. data/vendor/extensions/{assets → clipped}/README.md +21 -21
  32. data/vendor/extensions/{assets → clipped}/Rakefile +29 -31
  33. data/vendor/extensions/{assets → clipped}/app/controllers/admin/assets_controller.rb +16 -11
  34. data/vendor/extensions/clipped/app/controllers/admin/page_attachments_controller.rb +18 -0
  35. data/vendor/extensions/clipped/app/helpers/admin/assets_helper.rb +16 -0
  36. data/vendor/extensions/{assets → clipped}/app/models/asset.rb +12 -9
  37. data/vendor/extensions/{assets → clipped}/app/models/asset_tags.rb +36 -53
  38. data/vendor/extensions/{assets → clipped}/app/models/asset_type.rb +1 -7
  39. data/vendor/extensions/{assets → clipped}/app/models/old_page_attachment.rb +0 -0
  40. data/vendor/extensions/clipped/app/models/page_attachment.rb +21 -0
  41. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_asset.html.haml +2 -2
  42. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_asset_table.html.haml +4 -4
  43. data/vendor/extensions/clipped/app/views/admin/assets/_errors.html.haml +3 -0
  44. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_form.html.haml +2 -2
  45. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_page_assets.html.haml +1 -1
  46. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_search.html.haml +0 -0
  47. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/_search_results.html.haml +1 -1
  48. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/edit.html.haml +7 -8
  49. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/index.html.haml +3 -2
  50. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/new.html.haml +2 -2
  51. data/vendor/extensions/clipped/app/views/admin/assets/refresh.html.haml +14 -0
  52. data/vendor/extensions/{assets → clipped}/app/views/admin/assets/remove.html.haml +3 -3
  53. data/vendor/extensions/{assets → clipped}/app/views/admin/configuration/_edit.html.haml +1 -1
  54. data/vendor/extensions/{assets → clipped}/app/views/admin/configuration/_show.html.haml +1 -1
  55. data/vendor/extensions/clipped/app/views/admin/page_attachments/_attachment.html.haml +25 -0
  56. data/vendor/extensions/{assets → clipped}/app/views/admin/page_parts/_page_part.html.haml +3 -2
  57. data/vendor/extensions/{assets → clipped}/app/views/admin/pages/_asset_popups.html.haml +7 -7
  58. data/vendor/extensions/clipped/app/views/admin/pages/_assets.html.haml +11 -0
  59. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/_assets_bucket.html.haml +1 -1
  60. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/_assets_container.html.haml +9 -9
  61. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/_bucket.html.haml +1 -1
  62. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/_bucket_asset.html.haml +2 -2
  63. data/vendor/extensions/clipped/app/views/admin/removed/_show_bucket_link.html.haml +4 -0
  64. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/_upload_to_page.html.haml +2 -2
  65. data/vendor/extensions/{assets → clipped}/app/views/admin/removed/bucket/_iframe.html.haml +0 -0
  66. data/vendor/extensions/{assets → clipped}/artwork/icons.png +0 -0
  67. data/vendor/extensions/{assets/assets_extension.rb → clipped/clipped_extension.rb} +10 -10
  68. data/vendor/extensions/{assets → clipped}/config/initializers/interpolation.rb +0 -0
  69. data/vendor/extensions/clipped/config/initializers/processors.rb +12 -0
  70. data/vendor/extensions/{assets → clipped}/config/initializers/radiant_config.rb +5 -4
  71. data/vendor/extensions/{assets → clipped}/config/locales/en.yml +6 -3
  72. data/vendor/extensions/{assets → clipped}/config/locales/nl.yml +1 -1
  73. data/vendor/extensions/{assets → clipped}/config/routes.rb +2 -2
  74. data/vendor/extensions/clipped/cucumber.yml +1 -0
  75. data/vendor/extensions/{assets → clipped}/db/migrate/001_create_assets.rb +0 -0
  76. data/vendor/extensions/{assets → clipped}/db/migrate/002_create_paperclip_attributes.rb +0 -0
  77. data/vendor/extensions/{assets → clipped}/db/migrate/003_create_user_observer.rb +0 -0
  78. data/vendor/extensions/{assets → clipped}/db/migrate/004_create_page_attachments.rb +0 -0
  79. data/vendor/extensions/{assets → clipped}/db/migrate/005_rename_users.rb +0 -0
  80. data/vendor/extensions/{assets → clipped}/db/migrate/20090316132151_disable_file_types.rb +0 -0
  81. data/vendor/extensions/{assets → clipped}/db/migrate/20110513205050_asset_uuid.rb +0 -0
  82. data/vendor/extensions/clipped/features/support/env.rb +11 -0
  83. data/vendor/extensions/clipped/features/support/paths.rb +22 -0
  84. data/vendor/extensions/{assets/lib/assets_admin_ui.rb → clipped/lib/clipped_admin_ui.rb} +1 -1
  85. data/vendor/extensions/{assets → clipped}/lib/page_asset_associations.rb +1 -1
  86. data/vendor/extensions/{assets → clipped}/lib/paperclip/frame_grab.rb +0 -0
  87. data/vendor/extensions/clipped/lib/radiant-clipped-extension.rb +2 -0
  88. data/vendor/extensions/clipped/lib/radiant-clipped-extension/version.rb +3 -0
  89. data/vendor/extensions/{assets/lib/tasks/assets_extension_tasks.rake → clipped/lib/tasks/clipped_extension_tasks.rake} +22 -16
  90. data/vendor/extensions/{assets → clipped}/lib/tasks/paperclip_tasks.rake +0 -0
  91. data/{public → vendor/extensions/clipped/public}/flash/ZeroClipboard.swf +0 -0
  92. data/{public → vendor/extensions/clipped/public}/images/admin/assets/add.png +0 -0
  93. data/{public → vendor/extensions/clipped/public}/images/admin/assets/archive_icon.png +0 -0
  94. data/{public → vendor/extensions/clipped/public}/images/admin/assets/audio_icon.png +0 -0
  95. data/{public → vendor/extensions/clipped/public}/images/admin/assets/audio_thumbnail.png +0 -0
  96. data/{public → vendor/extensions/clipped/public}/images/admin/assets/c_icon.png +0 -0
  97. data/{public → vendor/extensions/clipped/public}/images/admin/assets/copy.png +0 -0
  98. data/{public → vendor/extensions/clipped/public}/images/admin/assets/css_icon.png +0 -0
  99. data/{public → vendor/extensions/clipped/public}/images/admin/assets/database_icon.png +0 -0
  100. data/{public → vendor/extensions/clipped/public}/images/admin/assets/delete.png +0 -0
  101. data/{public → vendor/extensions/clipped/public}/images/admin/assets/document_icon.png +0 -0
  102. data/{public → vendor/extensions/clipped/public}/images/admin/assets/document_thumbnail.png +0 -0
  103. data/{public → vendor/extensions/clipped/public}/images/admin/assets/flash_icon.png +0 -0
  104. data/{public → vendor/extensions/clipped/public}/images/admin/assets/flash_thumbnail.png +0 -0
  105. data/{public → vendor/extensions/clipped/public}/images/admin/assets/font_icon.png +0 -0
  106. data/{public → vendor/extensions/clipped/public}/images/admin/assets/gzip_icon.png +0 -0
  107. data/{public → vendor/extensions/clipped/public}/images/admin/assets/html_icon.png +0 -0
  108. data/{public → vendor/extensions/clipped/public}/images/admin/assets/image_icon.png +0 -0
  109. data/{public → vendor/extensions/clipped/public}/images/admin/assets/image_thumbnail.png +0 -0
  110. data/{public → vendor/extensions/clipped/public}/images/admin/assets/java_icon.png +0 -0
  111. data/{public → vendor/extensions/clipped/public}/images/admin/assets/page_edit.png +0 -0
  112. data/{public → vendor/extensions/clipped/public}/images/admin/assets/perl_icon.png +0 -0
  113. data/{public → vendor/extensions/clipped/public}/images/admin/assets/php_icon.png +0 -0
  114. data/{public → vendor/extensions/clipped/public}/images/admin/assets/presentation_icon.png +0 -0
  115. data/{public → vendor/extensions/clipped/public}/images/admin/assets/python_icon.png +0 -0
  116. data/{public → vendor/extensions/clipped/public}/images/admin/assets/reorder_assets.png +0 -0
  117. data/{public → vendor/extensions/clipped/public}/images/admin/assets/ruby_icon.png +0 -0
  118. data/{public → vendor/extensions/clipped/public}/images/admin/assets/script_icon.png +0 -0
  119. data/{public → vendor/extensions/clipped/public}/images/admin/assets/spreadsheet_icon.png +0 -0
  120. data/{public → vendor/extensions/clipped/public}/images/admin/assets/tar_icon.png +0 -0
  121. data/{public → vendor/extensions/clipped/public}/images/admin/assets/unknown_icon.png +0 -0
  122. data/{public → vendor/extensions/clipped/public}/images/admin/assets/unknown_thumbnail.png +0 -0
  123. data/{public → vendor/extensions/clipped/public}/images/admin/assets/video_icon.png +0 -0
  124. data/{public → vendor/extensions/clipped/public}/images/admin/assets/video_thumbnail.png +0 -0
  125. data/{public → vendor/extensions/clipped/public}/images/admin/assets/xml_icon.png +0 -0
  126. data/{public → vendor/extensions/clipped/public}/images/admin/assets/zip_icon.png +0 -0
  127. data/vendor/extensions/{assets → clipped}/public/javascripts/admin/assets.js +66 -8
  128. data/vendor/extensions/{assets → clipped}/public/stylesheets/sass/admin/assets.sass +12 -6
  129. data/vendor/extensions/clipped/radiant-clipped-extension.gemspec +33 -0
  130. data/vendor/extensions/{assets → clipped}/spec/controllers/admin/assets_controller_spec.rb +0 -0
  131. data/vendor/extensions/clipped/spec/controllers/admin/page_attachments_controller_spec.rb +50 -0
  132. data/vendor/extensions/{assets → clipped}/spec/datasets/assets_dataset.rb +2 -1
  133. data/vendor/extensions/{assets/spec/lib/tag_deprecation_spec.rb → clipped/spec/lib/asset_tags_spec.rb} +3 -15
  134. data/vendor/extensions/{assets → clipped}/spec/models/asset_spec.rb +3 -2
  135. data/vendor/extensions/{assets → clipped}/spec/models/asset_type_spec.rb +0 -0
  136. data/vendor/extensions/{assets → clipped}/spec/spec.opts +0 -0
  137. data/vendor/extensions/{assets → clipped}/spec/spec_helper.rb +0 -0
  138. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets-2.bmml +0 -0
  139. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets-2.png +0 -0
  140. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets-3.bmml +0 -0
  141. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets-3.png +0 -0
  142. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets.bmml +0 -0
  143. data/vendor/extensions/{assets → clipped}/wireframes/edit-page-assets.png +0 -0
  144. data/vendor/extensions/{assets → clipped}/wireframes/edit-page.bmml +0 -0
  145. data/vendor/extensions/{assets → clipped}/wireframes/edit-page.png +0 -0
  146. data/vendor/extensions/sheets/Rakefile +30 -18
  147. data/vendor/extensions/sheets/app/controllers/admin/sheet_resource_controller.rb +1 -1
  148. data/vendor/extensions/sheets/app/models/sheet.rb +4 -0
  149. data/vendor/extensions/sheets/app/views/admin/scripts/index.html.haml +9 -5
  150. data/vendor/extensions/sheets/app/views/admin/styles/index.html.haml +1 -1
  151. data/vendor/extensions/sheets/config/locales/en.yml +3 -1
  152. data/vendor/extensions/sheets/features/admin/managing_javascripts.feature +65 -0
  153. data/vendor/extensions/sheets/features/admin/managing_stylesheets.feature +65 -0
  154. data/vendor/extensions/sheets/features/support/env.rb +2 -7
  155. data/vendor/extensions/sheets/features/support/paths.rb +9 -12
  156. data/vendor/extensions/sheets/lib/radiant-sheets-extension/version.rb +1 -1
  157. data/vendor/extensions/sheets/radiant-sheets-extension.gemspec +9 -4
  158. data/vendor/extensions/sheets/spec/datasets/javascripts_dataset.rb +3 -1
  159. data/vendor/extensions/sheets/spec/datasets/stylesheets_dataset.rb +3 -1
  160. data/vendor/extensions/sheets/spec/lib/javascript_tags_spec.rb +4 -4
  161. data/vendor/extensions/sheets/spec/lib/stylesheet_tags_spec.rb +4 -4
  162. metadata +189 -599
  163. data/Gemfile +0 -3
  164. data/lib/generators/extension/templates/cucumber_datasets_loader.rb +0 -3
  165. data/public/assets/1/2375_1115822414591_1197894784_30347214_1109_n.jpg +0 -0
  166. data/public/assets/1/2375_1115822414591_1197894784_30347214_1109_n_icon.png +0 -0
  167. data/public/assets/1/2375_1115822414591_1197894784_30347214_1109_n_normal.jpg +0 -0
  168. data/public/assets/1/2375_1115822414591_1197894784_30347214_1109_n_thumbnail.png +0 -0
  169. data/public/images/roasters/banner.jpg +0 -0
  170. data/public/images/roasters/closelabel.gif +0 -0
  171. data/public/images/roasters/comment.png +0 -0
  172. data/public/images/roasters/gallery1.jpg +0 -0
  173. data/public/images/roasters/gallery2.jpg +0 -0
  174. data/public/images/roasters/gallery3.jpg +0 -0
  175. data/public/images/roasters/gallery4.jpg +0 -0
  176. data/public/images/roasters/gift.gif +0 -0
  177. data/public/images/roasters/green.gif +0 -0
  178. data/public/images/roasters/nav-background.gif +0 -0
  179. data/public/images/roasters/nav-divider.gif +0 -0
  180. data/public/images/roasters/nextlabel.gif +0 -0
  181. data/public/images/roasters/open.gif +0 -0
  182. data/public/images/roasters/preview-1.jpg +0 -0
  183. data/public/images/roasters/preview.jpg +0 -0
  184. data/public/images/roasters/prevlabel.gif +0 -0
  185. data/public/images/roasters/prize.gif +0 -0
  186. data/public/images/roasters/recycle.gif +0 -0
  187. data/public/images/roasters/rss.gif +0 -0
  188. data/public/images/roasters/thumb-grinder.jpg +0 -0
  189. data/public/images/roasters/thumb-grower.jpg +0 -0
  190. data/public/images/roasters/thumb-roaster.jpg +0 -0
  191. data/public/images/roasters/truck.gif +0 -0
  192. data/vendor/extensions/assets/HELP_admin.markdown +0 -69
  193. data/vendor/extensions/assets/VERSION +0 -1
  194. data/vendor/extensions/assets/app/controllers/admin/page_attachments_controller.rb +0 -45
  195. data/vendor/extensions/assets/app/helpers/admin/assets_helper.rb +0 -11
  196. data/vendor/extensions/assets/app/models/page_attachment.rb +0 -14
  197. data/vendor/extensions/assets/app/views/admin/assets/_errors.html.haml +0 -3
  198. data/vendor/extensions/assets/app/views/admin/page_attachments/_attachment.html.haml +0 -22
  199. data/vendor/extensions/assets/app/views/admin/page_attachments/_new_attachment.html.haml +0 -18
  200. data/vendor/extensions/assets/app/views/admin/pages/_assets.html.haml +0 -13
  201. data/vendor/extensions/assets/app/views/admin/removed/_show_bucket_link.html.haml +0 -4
  202. data/vendor/extensions/assets/lib/tag_deprecation.rb +0 -73
  203. data/vendor/extensions/assets/public/flash/ZeroClipboard.swf +0 -0
  204. data/vendor/extensions/assets/public/images/admin/assets/add.png +0 -0
  205. data/vendor/extensions/assets/public/images/admin/assets/archive_icon.png +0 -0
  206. data/vendor/extensions/assets/public/images/admin/assets/audio_icon.png +0 -0
  207. data/vendor/extensions/assets/public/images/admin/assets/audio_thumbnail.png +0 -0
  208. data/vendor/extensions/assets/public/images/admin/assets/c_icon.png +0 -0
  209. data/vendor/extensions/assets/public/images/admin/assets/copy.png +0 -0
  210. data/vendor/extensions/assets/public/images/admin/assets/css_icon.png +0 -0
  211. data/vendor/extensions/assets/public/images/admin/assets/database_icon.png +0 -0
  212. data/vendor/extensions/assets/public/images/admin/assets/delete.png +0 -0
  213. data/vendor/extensions/assets/public/images/admin/assets/document_icon.png +0 -0
  214. data/vendor/extensions/assets/public/images/admin/assets/document_thumbnail.png +0 -0
  215. data/vendor/extensions/assets/public/images/admin/assets/flash_icon.png +0 -0
  216. data/vendor/extensions/assets/public/images/admin/assets/flash_thumbnail.png +0 -0
  217. data/vendor/extensions/assets/public/images/admin/assets/font_icon.png +0 -0
  218. data/vendor/extensions/assets/public/images/admin/assets/gzip_icon.png +0 -0
  219. data/vendor/extensions/assets/public/images/admin/assets/html_icon.png +0 -0
  220. data/vendor/extensions/assets/public/images/admin/assets/image_icon.png +0 -0
  221. data/vendor/extensions/assets/public/images/admin/assets/image_thumbnail.png +0 -0
  222. data/vendor/extensions/assets/public/images/admin/assets/java_icon.png +0 -0
  223. data/vendor/extensions/assets/public/images/admin/assets/page_edit.png +0 -0
  224. data/vendor/extensions/assets/public/images/admin/assets/perl_icon.png +0 -0
  225. data/vendor/extensions/assets/public/images/admin/assets/php_icon.png +0 -0
  226. data/vendor/extensions/assets/public/images/admin/assets/presentation_icon.png +0 -0
  227. data/vendor/extensions/assets/public/images/admin/assets/python_icon.png +0 -0
  228. data/vendor/extensions/assets/public/images/admin/assets/reorder_assets.png +0 -0
  229. data/vendor/extensions/assets/public/images/admin/assets/ruby_icon.png +0 -0
  230. data/vendor/extensions/assets/public/images/admin/assets/script_icon.png +0 -0
  231. data/vendor/extensions/assets/public/images/admin/assets/spreadsheet_icon.png +0 -0
  232. data/vendor/extensions/assets/public/images/admin/assets/tar_icon.png +0 -0
  233. data/vendor/extensions/assets/public/images/admin/assets/unknown_icon.png +0 -0
  234. data/vendor/extensions/assets/public/images/admin/assets/unknown_thumbnail.png +0 -0
  235. data/vendor/extensions/assets/public/images/admin/assets/video_icon.png +0 -0
  236. data/vendor/extensions/assets/public/images/admin/assets/video_thumbnail.png +0 -0
  237. data/vendor/extensions/assets/public/images/admin/assets/xml_icon.png +0 -0
  238. data/vendor/extensions/assets/public/images/admin/assets/zip_icon.png +0 -0
  239. data/vendor/extensions/assets/spec/controllers/admin/page_attachment_controller_spec.rb +0 -51
  240. data/vendor/extensions/assets/spec/lib/asset_tags_spec.rb +0 -9
  241. data/vendor/plugins/haml/CONTRIBUTING +0 -4
  242. data/vendor/plugins/haml/MIT-LICENSE +0 -20
  243. data/vendor/plugins/haml/README.md +0 -298
  244. data/vendor/plugins/haml/Rakefile +0 -436
  245. data/vendor/plugins/haml/TODO +0 -53
  246. data/vendor/plugins/haml/VERSION +0 -1
  247. data/vendor/plugins/haml/VERSION_NAME +0 -1
  248. data/vendor/plugins/haml/bin/css2sass +0 -13
  249. data/vendor/plugins/haml/bin/haml +0 -9
  250. data/vendor/plugins/haml/bin/html2haml +0 -7
  251. data/vendor/plugins/haml/bin/sass +0 -8
  252. data/vendor/plugins/haml/bin/sass-convert +0 -7
  253. data/vendor/plugins/haml/doc-src/FAQ.md +0 -187
  254. data/vendor/plugins/haml/doc-src/HAML_CHANGELOG.md +0 -1091
  255. data/vendor/plugins/haml/doc-src/HAML_REFERENCE.md +0 -1344
  256. data/vendor/plugins/haml/doc-src/INDENTED_SYNTAX.md +0 -210
  257. data/vendor/plugins/haml/doc-src/SASS_CHANGELOG.md +0 -1914
  258. data/vendor/plugins/haml/doc-src/SASS_REFERENCE.md +0 -1680
  259. data/vendor/plugins/haml/doc-src/SCSS_FOR_SASS_USERS.md +0 -155
  260. data/vendor/plugins/haml/ext/extconf.rb +0 -10
  261. data/vendor/plugins/haml/extra/haml-mode.el +0 -753
  262. data/vendor/plugins/haml/extra/sass-mode.el +0 -207
  263. data/vendor/plugins/haml/extra/update_watch.rb +0 -13
  264. data/vendor/plugins/haml/haml.gemspec +0 -35
  265. data/vendor/plugins/haml/init.rb +0 -18
  266. data/vendor/plugins/haml/init.rbc +0 -404
  267. data/vendor/plugins/haml/lib/haml.rb +0 -44
  268. data/vendor/plugins/haml/lib/haml.rbc +0 -569
  269. data/vendor/plugins/haml/lib/haml/buffer.rb +0 -320
  270. data/vendor/plugins/haml/lib/haml/buffer.rbc +0 -4048
  271. data/vendor/plugins/haml/lib/haml/engine.rb +0 -308
  272. data/vendor/plugins/haml/lib/haml/engine.rbc +0 -3852
  273. data/vendor/plugins/haml/lib/haml/error.rb +0 -22
  274. data/vendor/plugins/haml/lib/haml/error.rbc +0 -339
  275. data/vendor/plugins/haml/lib/haml/exec.rb +0 -862
  276. data/vendor/plugins/haml/lib/haml/filters.rb +0 -371
  277. data/vendor/plugins/haml/lib/haml/filters.rbc +0 -5617
  278. data/vendor/plugins/haml/lib/haml/helpers.rb +0 -605
  279. data/vendor/plugins/haml/lib/haml/helpers.rbc +0 -7086
  280. data/vendor/plugins/haml/lib/haml/helpers/action_view_extensions.rb +0 -57
  281. data/vendor/plugins/haml/lib/haml/helpers/action_view_extensions.rbc +0 -522
  282. data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rb +0 -244
  283. data/vendor/plugins/haml/lib/haml/helpers/action_view_mods.rbc +0 -5515
  284. data/vendor/plugins/haml/lib/haml/helpers/xss_mods.rb +0 -165
  285. data/vendor/plugins/haml/lib/haml/html.rb +0 -428
  286. data/vendor/plugins/haml/lib/haml/html/erb.rb +0 -141
  287. data/vendor/plugins/haml/lib/haml/precompiler.rb +0 -1104
  288. data/vendor/plugins/haml/lib/haml/precompiler.rbc +0 -22247
  289. data/vendor/plugins/haml/lib/haml/railtie.rb +0 -21
  290. data/vendor/plugins/haml/lib/haml/railtie.rbc +0 -409
  291. data/vendor/plugins/haml/lib/haml/root.rb +0 -7
  292. data/vendor/plugins/haml/lib/haml/root.rbc +0 -160
  293. data/vendor/plugins/haml/lib/haml/shared.rb +0 -78
  294. data/vendor/plugins/haml/lib/haml/shared.rbc +0 -1137
  295. data/vendor/plugins/haml/lib/haml/template.rb +0 -97
  296. data/vendor/plugins/haml/lib/haml/template.rbc +0 -1838
  297. data/vendor/plugins/haml/lib/haml/template/options.rb +0 -16
  298. data/vendor/plugins/haml/lib/haml/template/options.rbc +0 -235
  299. data/vendor/plugins/haml/lib/haml/template/patch.rb +0 -58
  300. data/vendor/plugins/haml/lib/haml/template/plugin.rb +0 -122
  301. data/vendor/plugins/haml/lib/haml/template/plugin.rbc +0 -2720
  302. data/vendor/plugins/haml/lib/haml/util.rb +0 -809
  303. data/vendor/plugins/haml/lib/haml/util.rbc +0 -12059
  304. data/vendor/plugins/haml/lib/haml/util/subset_map.rb +0 -101
  305. data/vendor/plugins/haml/lib/haml/util/subset_map.rbc +0 -1316
  306. data/vendor/plugins/haml/lib/haml/version.rb +0 -102
  307. data/vendor/plugins/haml/lib/haml/version.rbc +0 -1671
  308. data/vendor/plugins/haml/lib/sass.rb +0 -29
  309. data/vendor/plugins/haml/lib/sass.rbc +0 -492
  310. data/vendor/plugins/haml/lib/sass/callbacks.rb +0 -52
  311. data/vendor/plugins/haml/lib/sass/callbacks.rbc +0 -388
  312. data/vendor/plugins/haml/lib/sass/css.rb +0 -294
  313. data/vendor/plugins/haml/lib/sass/engine.rb +0 -720
  314. data/vendor/plugins/haml/lib/sass/engine.rbc +0 -17020
  315. data/vendor/plugins/haml/lib/sass/environment.rb +0 -143
  316. data/vendor/plugins/haml/lib/sass/environment.rbc +0 -1751
  317. data/vendor/plugins/haml/lib/sass/error.rb +0 -198
  318. data/vendor/plugins/haml/lib/sass/error.rbc +0 -2801
  319. data/vendor/plugins/haml/lib/sass/files.rb +0 -160
  320. data/vendor/plugins/haml/lib/sass/files.rbc +0 -3118
  321. data/vendor/plugins/haml/lib/sass/less.rb +0 -382
  322. data/vendor/plugins/haml/lib/sass/plugin.rb +0 -276
  323. data/vendor/plugins/haml/lib/sass/plugin.rbc +0 -4356
  324. data/vendor/plugins/haml/lib/sass/plugin/configuration.rb +0 -221
  325. data/vendor/plugins/haml/lib/sass/plugin/configuration.rbc +0 -1343
  326. data/vendor/plugins/haml/lib/sass/plugin/generic.rb +0 -15
  327. data/vendor/plugins/haml/lib/sass/plugin/merb.rb +0 -37
  328. data/vendor/plugins/haml/lib/sass/plugin/rack.rb +0 -47
  329. data/vendor/plugins/haml/lib/sass/plugin/rack.rbc +0 -446
  330. data/vendor/plugins/haml/lib/sass/plugin/rails.rb +0 -32
  331. data/vendor/plugins/haml/lib/sass/plugin/rails.rbc +0 -879
  332. data/vendor/plugins/haml/lib/sass/plugin/staleness_checker.rb +0 -123
  333. data/vendor/plugins/haml/lib/sass/plugin/staleness_checker.rbc +0 -2019
  334. data/vendor/plugins/haml/lib/sass/repl.rb +0 -58
  335. data/vendor/plugins/haml/lib/sass/script.rb +0 -63
  336. data/vendor/plugins/haml/lib/sass/script.rbc +0 -1188
  337. data/vendor/plugins/haml/lib/sass/script/bool.rb +0 -18
  338. data/vendor/plugins/haml/lib/sass/script/bool.rbc +0 -366
  339. data/vendor/plugins/haml/lib/sass/script/color.rb +0 -491
  340. data/vendor/plugins/haml/lib/sass/script/color.rbc +0 -8148
  341. data/vendor/plugins/haml/lib/sass/script/css_lexer.rb +0 -29
  342. data/vendor/plugins/haml/lib/sass/script/css_lexer.rbc +0 -809
  343. data/vendor/plugins/haml/lib/sass/script/css_parser.rb +0 -31
  344. data/vendor/plugins/haml/lib/sass/script/css_parser.rbc +0 -628
  345. data/vendor/plugins/haml/lib/sass/script/funcall.rb +0 -77
  346. data/vendor/plugins/haml/lib/sass/script/funcall.rbc +0 -1805
  347. data/vendor/plugins/haml/lib/sass/script/functions.rb +0 -861
  348. data/vendor/plugins/haml/lib/sass/script/functions.rbc +0 -8418
  349. data/vendor/plugins/haml/lib/sass/script/interpolation.rb +0 -70
  350. data/vendor/plugins/haml/lib/sass/script/interpolation.rbc +0 -1225
  351. data/vendor/plugins/haml/lib/sass/script/lexer.rb +0 -337
  352. data/vendor/plugins/haml/lib/sass/script/lexer.rbc +0 -7231
  353. data/vendor/plugins/haml/lib/sass/script/literal.rb +0 -236
  354. data/vendor/plugins/haml/lib/sass/script/literal.rbc +0 -3365
  355. data/vendor/plugins/haml/lib/sass/script/node.rb +0 -112
  356. data/vendor/plugins/haml/lib/sass/script/node.rbc +0 -1418
  357. data/vendor/plugins/haml/lib/sass/script/number.rb +0 -423
  358. data/vendor/plugins/haml/lib/sass/script/number.rbc +0 -6024
  359. data/vendor/plugins/haml/lib/sass/script/operation.rb +0 -95
  360. data/vendor/plugins/haml/lib/sass/script/operation.rbc +0 -1856
  361. data/vendor/plugins/haml/lib/sass/script/parser.rb +0 -401
  362. data/vendor/plugins/haml/lib/sass/script/parser.rbc +0 -8418
  363. data/vendor/plugins/haml/lib/sass/script/string.rb +0 -67
  364. data/vendor/plugins/haml/lib/sass/script/string.rbc +0 -1357
  365. data/vendor/plugins/haml/lib/sass/script/string_interpolation.rb +0 -93
  366. data/vendor/plugins/haml/lib/sass/script/string_interpolation.rbc +0 -1643
  367. data/vendor/plugins/haml/lib/sass/script/unary_operation.rb +0 -57
  368. data/vendor/plugins/haml/lib/sass/script/unary_operation.rbc +0 -1144
  369. data/vendor/plugins/haml/lib/sass/script/variable.rb +0 -48
  370. data/vendor/plugins/haml/lib/sass/script/variable.rbc +0 -844
  371. data/vendor/plugins/haml/lib/sass/scss.rb +0 -17
  372. data/vendor/plugins/haml/lib/sass/scss.rbc +0 -242
  373. data/vendor/plugins/haml/lib/sass/scss/css_parser.rb +0 -46
  374. data/vendor/plugins/haml/lib/sass/scss/css_parser.rbc +0 -1106
  375. data/vendor/plugins/haml/lib/sass/scss/parser.rb +0 -846
  376. data/vendor/plugins/haml/lib/sass/scss/parser.rbc +0 -19348
  377. data/vendor/plugins/haml/lib/sass/scss/rx.rb +0 -126
  378. data/vendor/plugins/haml/lib/sass/scss/rx.rbc +0 -2849
  379. data/vendor/plugins/haml/lib/sass/scss/sass_parser.rb +0 -11
  380. data/vendor/plugins/haml/lib/sass/scss/sass_parser.rbc +0 -287
  381. data/vendor/plugins/haml/lib/sass/scss/script_lexer.rb +0 -15
  382. data/vendor/plugins/haml/lib/sass/scss/script_lexer.rbc +0 -439
  383. data/vendor/plugins/haml/lib/sass/scss/script_parser.rb +0 -25
  384. data/vendor/plugins/haml/lib/sass/scss/script_parser.rbc +0 -482
  385. data/vendor/plugins/haml/lib/sass/scss/static_parser.rb +0 -40
  386. data/vendor/plugins/haml/lib/sass/scss/static_parser.rbc +0 -971
  387. data/vendor/plugins/haml/lib/sass/selector.rb +0 -361
  388. data/vendor/plugins/haml/lib/sass/selector.rbc +0 -4193
  389. data/vendor/plugins/haml/lib/sass/selector/abstract_sequence.rb +0 -62
  390. data/vendor/plugins/haml/lib/sass/selector/abstract_sequence.rbc +0 -798
  391. data/vendor/plugins/haml/lib/sass/selector/comma_sequence.rb +0 -82
  392. data/vendor/plugins/haml/lib/sass/selector/comma_sequence.rbc +0 -1814
  393. data/vendor/plugins/haml/lib/sass/selector/sequence.rb +0 -237
  394. data/vendor/plugins/haml/lib/sass/selector/sequence.rbc +0 -4928
  395. data/vendor/plugins/haml/lib/sass/selector/simple.rb +0 -113
  396. data/vendor/plugins/haml/lib/sass/selector/simple.rbc +0 -1553
  397. data/vendor/plugins/haml/lib/sass/selector/simple_sequence.rb +0 -136
  398. data/vendor/plugins/haml/lib/sass/selector/simple_sequence.rbc +0 -2346
  399. data/vendor/plugins/haml/lib/sass/tree/charset_node.rb +0 -37
  400. data/vendor/plugins/haml/lib/sass/tree/charset_node.rbc +0 -606
  401. data/vendor/plugins/haml/lib/sass/tree/comment_node.rb +0 -128
  402. data/vendor/plugins/haml/lib/sass/tree/comment_node.rbc +0 -2397
  403. data/vendor/plugins/haml/lib/sass/tree/debug_node.rb +0 -36
  404. data/vendor/plugins/haml/lib/sass/tree/debug_node.rbc +0 -740
  405. data/vendor/plugins/haml/lib/sass/tree/directive_node.rb +0 -75
  406. data/vendor/plugins/haml/lib/sass/tree/directive_node.rbc +0 -1302
  407. data/vendor/plugins/haml/lib/sass/tree/extend_node.rb +0 -65
  408. data/vendor/plugins/haml/lib/sass/tree/extend_node.rbc +0 -1276
  409. data/vendor/plugins/haml/lib/sass/tree/for_node.rb +0 -67
  410. data/vendor/plugins/haml/lib/sass/tree/for_node.rbc +0 -1145
  411. data/vendor/plugins/haml/lib/sass/tree/if_node.rb +0 -81
  412. data/vendor/plugins/haml/lib/sass/tree/if_node.rbc +0 -1119
  413. data/vendor/plugins/haml/lib/sass/tree/import_node.rb +0 -102
  414. data/vendor/plugins/haml/lib/sass/tree/import_node.rbc +0 -2242
  415. data/vendor/plugins/haml/lib/sass/tree/mixin_def_node.rb +0 -60
  416. data/vendor/plugins/haml/lib/sass/tree/mixin_def_node.rbc +0 -1001
  417. data/vendor/plugins/haml/lib/sass/tree/mixin_node.rb +0 -123
  418. data/vendor/plugins/haml/lib/sass/tree/mixin_node.rbc +0 -3355
  419. data/vendor/plugins/haml/lib/sass/tree/node.rb +0 -465
  420. data/vendor/plugins/haml/lib/sass/tree/node.rbc +0 -5533
  421. data/vendor/plugins/haml/lib/sass/tree/prop_node.rb +0 -220
  422. data/vendor/plugins/haml/lib/sass/tree/prop_node.rbc +0 -3949
  423. data/vendor/plugins/haml/lib/sass/tree/root_node.rb +0 -157
  424. data/vendor/plugins/haml/lib/sass/tree/root_node.rbc +0 -3112
  425. data/vendor/plugins/haml/lib/sass/tree/rule_node.rb +0 -273
  426. data/vendor/plugins/haml/lib/sass/tree/rule_node.rbc +0 -5636
  427. data/vendor/plugins/haml/lib/sass/tree/variable_node.rb +0 -39
  428. data/vendor/plugins/haml/lib/sass/tree/variable_node.rbc +0 -845
  429. data/vendor/plugins/haml/lib/sass/tree/warn_node.rb +0 -42
  430. data/vendor/plugins/haml/lib/sass/tree/warn_node.rbc +0 -1043
  431. data/vendor/plugins/haml/lib/sass/tree/while_node.rb +0 -48
  432. data/vendor/plugins/haml/lib/sass/tree/while_node.rbc +0 -722
  433. data/vendor/plugins/haml/rails/init.rb +0 -1
  434. data/vendor/plugins/haml/test/benchmark.rb +0 -99
  435. data/vendor/plugins/haml/test/haml/engine_test.rb +0 -1805
  436. data/vendor/plugins/haml/test/haml/erb/_av_partial_1.erb +0 -12
  437. data/vendor/plugins/haml/test/haml/erb/_av_partial_2.erb +0 -8
  438. data/vendor/plugins/haml/test/haml/erb/action_view.erb +0 -62
  439. data/vendor/plugins/haml/test/haml/erb/standard.erb +0 -54
  440. data/vendor/plugins/haml/test/haml/helper_test.rb +0 -450
  441. data/vendor/plugins/haml/test/haml/html2haml/erb_tests.rb +0 -426
  442. data/vendor/plugins/haml/test/haml/html2haml_test.rb +0 -336
  443. data/vendor/plugins/haml/test/haml/markaby/standard.mab +0 -52
  444. data/vendor/plugins/haml/test/haml/mocks/article.rb +0 -6
  445. data/vendor/plugins/haml/test/haml/results/content_for_layout.xhtml +0 -12
  446. data/vendor/plugins/haml/test/haml/results/eval_suppressed.xhtml +0 -9
  447. data/vendor/plugins/haml/test/haml/results/filters.xhtml +0 -62
  448. data/vendor/plugins/haml/test/haml/results/helpers.xhtml +0 -70
  449. data/vendor/plugins/haml/test/haml/results/helpful.xhtml +0 -10
  450. data/vendor/plugins/haml/test/haml/results/just_stuff.xhtml +0 -70
  451. data/vendor/plugins/haml/test/haml/results/list.xhtml +0 -12
  452. data/vendor/plugins/haml/test/haml/results/nuke_inner_whitespace.xhtml +0 -40
  453. data/vendor/plugins/haml/test/haml/results/nuke_outer_whitespace.xhtml +0 -148
  454. data/vendor/plugins/haml/test/haml/results/original_engine.xhtml +0 -20
  455. data/vendor/plugins/haml/test/haml/results/partial_layout.xhtml +0 -5
  456. data/vendor/plugins/haml/test/haml/results/partials.xhtml +0 -21
  457. data/vendor/plugins/haml/test/haml/results/render_layout.xhtml +0 -3
  458. data/vendor/plugins/haml/test/haml/results/silent_script.xhtml +0 -74
  459. data/vendor/plugins/haml/test/haml/results/standard.xhtml +0 -162
  460. data/vendor/plugins/haml/test/haml/results/tag_parsing.xhtml +0 -23
  461. data/vendor/plugins/haml/test/haml/results/very_basic.xhtml +0 -5
  462. data/vendor/plugins/haml/test/haml/results/whitespace_handling.xhtml +0 -89
  463. data/vendor/plugins/haml/test/haml/spec/LICENSE +0 -14
  464. data/vendor/plugins/haml/test/haml/spec/README.md +0 -106
  465. data/vendor/plugins/haml/test/haml/spec/lua_haml_spec.lua +0 -38
  466. data/vendor/plugins/haml/test/haml/spec/perl_haml_test.pl +0 -81
  467. data/vendor/plugins/haml/test/haml/spec/ruby_haml_test.rb +0 -19
  468. data/vendor/plugins/haml/test/haml/spec/tests.json +0 -603
  469. data/vendor/plugins/haml/test/haml/spec_test.rb +0 -44
  470. data/vendor/plugins/haml/test/haml/template_test.rb +0 -417
  471. data/vendor/plugins/haml/test/haml/templates/_av_partial_1.haml +0 -9
  472. data/vendor/plugins/haml/test/haml/templates/_av_partial_1_ugly.haml +0 -9
  473. data/vendor/plugins/haml/test/haml/templates/_av_partial_2.haml +0 -5
  474. data/vendor/plugins/haml/test/haml/templates/_av_partial_2_ugly.haml +0 -5
  475. data/vendor/plugins/haml/test/haml/templates/_layout.erb +0 -3
  476. data/vendor/plugins/haml/test/haml/templates/_layout_for_partial.haml +0 -3
  477. data/vendor/plugins/haml/test/haml/templates/_partial.haml +0 -8
  478. data/vendor/plugins/haml/test/haml/templates/_text_area.haml +0 -3
  479. data/vendor/plugins/haml/test/haml/templates/action_view.haml +0 -47
  480. data/vendor/plugins/haml/test/haml/templates/action_view_ugly.haml +0 -47
  481. data/vendor/plugins/haml/test/haml/templates/breakage.haml +0 -8
  482. data/vendor/plugins/haml/test/haml/templates/content_for_layout.haml +0 -8
  483. data/vendor/plugins/haml/test/haml/templates/eval_suppressed.haml +0 -11
  484. data/vendor/plugins/haml/test/haml/templates/filters.haml +0 -66
  485. data/vendor/plugins/haml/test/haml/templates/helpers.haml +0 -55
  486. data/vendor/plugins/haml/test/haml/templates/helpful.haml +0 -11
  487. data/vendor/plugins/haml/test/haml/templates/just_stuff.haml +0 -85
  488. data/vendor/plugins/haml/test/haml/templates/list.haml +0 -12
  489. data/vendor/plugins/haml/test/haml/templates/nuke_inner_whitespace.haml +0 -32
  490. data/vendor/plugins/haml/test/haml/templates/nuke_outer_whitespace.haml +0 -144
  491. data/vendor/plugins/haml/test/haml/templates/original_engine.haml +0 -17
  492. data/vendor/plugins/haml/test/haml/templates/partial_layout.haml +0 -7
  493. data/vendor/plugins/haml/test/haml/templates/partialize.haml +0 -1
  494. data/vendor/plugins/haml/test/haml/templates/partials.haml +0 -12
  495. data/vendor/plugins/haml/test/haml/templates/render_layout.haml +0 -2
  496. data/vendor/plugins/haml/test/haml/templates/silent_script.haml +0 -40
  497. data/vendor/plugins/haml/test/haml/templates/standard.haml +0 -42
  498. data/vendor/plugins/haml/test/haml/templates/standard_ugly.haml +0 -42
  499. data/vendor/plugins/haml/test/haml/templates/tag_parsing.haml +0 -21
  500. data/vendor/plugins/haml/test/haml/templates/very_basic.haml +0 -4
  501. data/vendor/plugins/haml/test/haml/templates/whitespace_handling.haml +0 -87
  502. data/vendor/plugins/haml/test/haml/util/subset_map_test.rb +0 -91
  503. data/vendor/plugins/haml/test/haml/util_test.rb +0 -268
  504. data/vendor/plugins/haml/test/linked_rails.rb +0 -42
  505. data/vendor/plugins/haml/test/sass/callbacks_test.rb +0 -61
  506. data/vendor/plugins/haml/test/sass/conversion_test.rb +0 -1218
  507. data/vendor/plugins/haml/test/sass/css2sass_test.rb +0 -364
  508. data/vendor/plugins/haml/test/sass/data/hsl-rgb.txt +0 -319
  509. data/vendor/plugins/haml/test/sass/engine_test.rb +0 -2263
  510. data/vendor/plugins/haml/test/sass/extend_test.rb +0 -1348
  511. data/vendor/plugins/haml/test/sass/functions_test.rb +0 -556
  512. data/vendor/plugins/haml/test/sass/less_conversion_test.rb +0 -653
  513. data/vendor/plugins/haml/test/sass/more_results/more1.css +0 -9
  514. data/vendor/plugins/haml/test/sass/more_results/more1_with_line_comments.css +0 -26
  515. data/vendor/plugins/haml/test/sass/more_results/more_import.css +0 -29
  516. data/vendor/plugins/haml/test/sass/more_templates/_more_partial.sass +0 -2
  517. data/vendor/plugins/haml/test/sass/more_templates/more1.sass +0 -23
  518. data/vendor/plugins/haml/test/sass/more_templates/more_import.sass +0 -11
  519. data/vendor/plugins/haml/test/sass/plugin_test.rb +0 -433
  520. data/vendor/plugins/haml/test/sass/results/alt.css +0 -4
  521. data/vendor/plugins/haml/test/sass/results/basic.css +0 -9
  522. data/vendor/plugins/haml/test/sass/results/compact.css +0 -5
  523. data/vendor/plugins/haml/test/sass/results/complex.css +0 -86
  524. data/vendor/plugins/haml/test/sass/results/compressed.css +0 -1
  525. data/vendor/plugins/haml/test/sass/results/expanded.css +0 -19
  526. data/vendor/plugins/haml/test/sass/results/import.css +0 -31
  527. data/vendor/plugins/haml/test/sass/results/import_charset.css +0 -4
  528. data/vendor/plugins/haml/test/sass/results/import_charset_1_8.css +0 -4
  529. data/vendor/plugins/haml/test/sass/results/import_charset_ibm866.css +0 -4
  530. data/vendor/plugins/haml/test/sass/results/line_numbers.css +0 -49
  531. data/vendor/plugins/haml/test/sass/results/mixins.css +0 -95
  532. data/vendor/plugins/haml/test/sass/results/multiline.css +0 -24
  533. data/vendor/plugins/haml/test/sass/results/nested.css +0 -22
  534. data/vendor/plugins/haml/test/sass/results/options.css +0 -1
  535. data/vendor/plugins/haml/test/sass/results/parent_ref.css +0 -13
  536. data/vendor/plugins/haml/test/sass/results/script.css +0 -16
  537. data/vendor/plugins/haml/test/sass/results/scss_import.css +0 -31
  538. data/vendor/plugins/haml/test/sass/results/scss_importee.css +0 -2
  539. data/vendor/plugins/haml/test/sass/results/subdir/nested_subdir/nested_subdir.css +0 -1
  540. data/vendor/plugins/haml/test/sass/results/subdir/subdir.css +0 -3
  541. data/vendor/plugins/haml/test/sass/results/units.css +0 -11
  542. data/vendor/plugins/haml/test/sass/results/warn_imported.css +0 -0
  543. data/vendor/plugins/haml/test/sass/script_conversion_test.rb +0 -314
  544. data/vendor/plugins/haml/test/sass/script_test.rb +0 -470
  545. data/vendor/plugins/haml/test/sass/scss/css_test.rb +0 -916
  546. data/vendor/plugins/haml/test/sass/scss/rx_test.rb +0 -156
  547. data/vendor/plugins/haml/test/sass/scss/scss_test.rb +0 -1088
  548. data/vendor/plugins/haml/test/sass/scss/test_helper.rb +0 -37
  549. data/vendor/plugins/haml/test/sass/templates/_imported_charset_ibm866.sass +0 -4
  550. data/vendor/plugins/haml/test/sass/templates/_imported_charset_utf8.sass +0 -4
  551. data/vendor/plugins/haml/test/sass/templates/_partial.sass +0 -2
  552. data/vendor/plugins/haml/test/sass/templates/alt.sass +0 -16
  553. data/vendor/plugins/haml/test/sass/templates/basic.sass +0 -23
  554. data/vendor/plugins/haml/test/sass/templates/bork1.sass +0 -2
  555. data/vendor/plugins/haml/test/sass/templates/bork2.sass +0 -2
  556. data/vendor/plugins/haml/test/sass/templates/bork3.sass +0 -2
  557. data/vendor/plugins/haml/test/sass/templates/bork4.sass +0 -2
  558. data/vendor/plugins/haml/test/sass/templates/compact.sass +0 -17
  559. data/vendor/plugins/haml/test/sass/templates/complex.sass +0 -305
  560. data/vendor/plugins/haml/test/sass/templates/compressed.sass +0 -15
  561. data/vendor/plugins/haml/test/sass/templates/expanded.sass +0 -17
  562. data/vendor/plugins/haml/test/sass/templates/import.sass +0 -12
  563. data/vendor/plugins/haml/test/sass/templates/import_charset.sass +0 -7
  564. data/vendor/plugins/haml/test/sass/templates/import_charset_1_8.sass +0 -4
  565. data/vendor/plugins/haml/test/sass/templates/import_charset_ibm866.sass +0 -9
  566. data/vendor/plugins/haml/test/sass/templates/importee.less +0 -2
  567. data/vendor/plugins/haml/test/sass/templates/importee.sass +0 -19
  568. data/vendor/plugins/haml/test/sass/templates/line_numbers.sass +0 -13
  569. data/vendor/plugins/haml/test/sass/templates/mixin_bork.sass +0 -5
  570. data/vendor/plugins/haml/test/sass/templates/mixins.sass +0 -76
  571. data/vendor/plugins/haml/test/sass/templates/multiline.sass +0 -20
  572. data/vendor/plugins/haml/test/sass/templates/nested.sass +0 -25
  573. data/vendor/plugins/haml/test/sass/templates/nested_bork1.sass +0 -2
  574. data/vendor/plugins/haml/test/sass/templates/nested_bork2.sass +0 -2
  575. data/vendor/plugins/haml/test/sass/templates/nested_bork3.sass +0 -2
  576. data/vendor/plugins/haml/test/sass/templates/nested_bork4.sass +0 -2
  577. data/vendor/plugins/haml/test/sass/templates/nested_mixin_bork.sass +0 -6
  578. data/vendor/plugins/haml/test/sass/templates/options.sass +0 -2
  579. data/vendor/plugins/haml/test/sass/templates/parent_ref.sass +0 -25
  580. data/vendor/plugins/haml/test/sass/templates/script.sass +0 -101
  581. data/vendor/plugins/haml/test/sass/templates/scss_import.scss +0 -11
  582. data/vendor/plugins/haml/test/sass/templates/scss_importee.scss +0 -1
  583. data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/_nested_partial.sass +0 -2
  584. data/vendor/plugins/haml/test/sass/templates/subdir/nested_subdir/nested_subdir.sass +0 -3
  585. data/vendor/plugins/haml/test/sass/templates/subdir/subdir.sass +0 -6
  586. data/vendor/plugins/haml/test/sass/templates/units.sass +0 -11
  587. data/vendor/plugins/haml/test/sass/templates/warn.sass +0 -3
  588. data/vendor/plugins/haml/test/sass/templates/warn_imported.sass +0 -4
  589. data/vendor/plugins/haml/test/test_helper.rb +0 -98
  590. data/vendor/plugins/haml/vendor/fssm/LICENSE +0 -20
  591. data/vendor/plugins/haml/vendor/fssm/README.markdown +0 -55
  592. data/vendor/plugins/haml/vendor/fssm/Rakefile +0 -59
  593. data/vendor/plugins/haml/vendor/fssm/VERSION.yml +0 -5
  594. data/vendor/plugins/haml/vendor/fssm/example.rb +0 -9
  595. data/vendor/plugins/haml/vendor/fssm/fssm.gemspec +0 -77
  596. data/vendor/plugins/haml/vendor/fssm/lib/fssm.rb +0 -33
  597. data/vendor/plugins/haml/vendor/fssm/lib/fssm/backends/fsevents.rb +0 -36
  598. data/vendor/plugins/haml/vendor/fssm/lib/fssm/backends/inotify.rb +0 -26
  599. data/vendor/plugins/haml/vendor/fssm/lib/fssm/backends/polling.rb +0 -25
  600. data/vendor/plugins/haml/vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb +0 -131
  601. data/vendor/plugins/haml/vendor/fssm/lib/fssm/monitor.rb +0 -26
  602. data/vendor/plugins/haml/vendor/fssm/lib/fssm/path.rb +0 -91
  603. data/vendor/plugins/haml/vendor/fssm/lib/fssm/pathname.rb +0 -502
  604. data/vendor/plugins/haml/vendor/fssm/lib/fssm/state/directory.rb +0 -57
  605. data/vendor/plugins/haml/vendor/fssm/lib/fssm/state/file.rb +0 -24
  606. data/vendor/plugins/haml/vendor/fssm/lib/fssm/support.rb +0 -63
  607. data/vendor/plugins/haml/vendor/fssm/lib/fssm/tree.rb +0 -176
  608. data/vendor/plugins/haml/vendor/fssm/profile/prof-cache.rb +0 -40
  609. data/vendor/plugins/haml/vendor/fssm/profile/prof-fssm-pathname.html +0 -1231
  610. data/vendor/plugins/haml/vendor/fssm/profile/prof-pathname.rb +0 -68
  611. data/vendor/plugins/haml/vendor/fssm/profile/prof-plain-pathname.html +0 -988
  612. data/vendor/plugins/haml/vendor/fssm/profile/prof.html +0 -2379
  613. data/vendor/plugins/haml/vendor/fssm/spec/path_spec.rb +0 -75
  614. data/vendor/plugins/haml/vendor/fssm/spec/root/duck/quack.txt +0 -0
  615. data/vendor/plugins/haml/vendor/fssm/spec/root/file.css +0 -0
  616. data/vendor/plugins/haml/vendor/fssm/spec/root/file.rb +0 -0
  617. data/vendor/plugins/haml/vendor/fssm/spec/root/file.yml +0 -0
  618. data/vendor/plugins/haml/vendor/fssm/spec/root/moo/cow.txt +0 -0
  619. data/vendor/plugins/haml/vendor/fssm/spec/spec_helper.rb +0 -14
  620. data/vendor/plugins/haml/yard/callbacks.rb +0 -29
  621. data/vendor/plugins/haml/yard/default/fulldoc/html/css/common.sass +0 -26
  622. data/vendor/plugins/haml/yard/default/layout/html/footer.erb +0 -12
  623. data/vendor/plugins/haml/yard/inherited_hash.rb +0 -41
@@ -1,210 +0,0 @@
1
- # Sass Indented Syntax
2
-
3
- * Table of contents
4
- {:toc}
5
-
6
- Sass's indented syntax (also known simply as "Sass")
7
- is designed to provide a more concise
8
- and, for some, more aesthetically appealing alternative
9
- to the CSS-based SCSS syntax.
10
- It's not compatible with CSS;
11
- instead of using `{` and `}` to delimit blocks of styles,
12
- it uses indentation,
13
- and instead of using semicolons to separate statements it uses newlines.
14
- This usually leads to substantially less text
15
- when saying the same thing.
16
-
17
- Each statement in Sass, such as property declarations and selectors,
18
- must be placed on its own line.
19
- In addition, everything that would be within `{` and `}` after a statement
20
- must be on a new line and indented one level deeper than that statement.
21
- For example, this CSS:
22
-
23
- #main {
24
- color: blue;
25
- font-size: 0.3em;
26
- }
27
-
28
- would be this Sass:
29
-
30
- #main
31
- color: blue
32
- font-size: 0.3em
33
-
34
- Similarly, this SCSS:
35
-
36
- #main {
37
- color: blue;
38
- font-size: 0.3em;
39
-
40
- a {
41
- font: {
42
- weight: bold;
43
- family: serif;
44
- }
45
- &:hover {
46
- background-color: #eee;
47
- }
48
- }
49
- }
50
-
51
- would be this Sass:
52
-
53
- #main
54
- color: blue
55
- font-size: 0.3em
56
-
57
- a
58
- font:
59
- weight: bold
60
- family: serif
61
- &:hover
62
- background-color: #eee
63
-
64
- ## Sass Syntax Differences
65
-
66
- In general, most CSS and SCSS syntax
67
- works straightforwardly in Sass
68
- by using newlines instead of semicolons
69
- and indentation instead of braces.
70
- However, there are some cases where there are differences or subtleties,
71
- which are detailed below.
72
-
73
- ## Property Synax
74
-
75
- The indented syntax supports two ways of declaring CSS properties.
76
- The first is just like CSS, except without the semicolon.
77
- The second, however, places the colon *before* the property name.
78
- For example:
79
-
80
- #main
81
- :color blue
82
- :font-size 0.3em
83
-
84
- By default, both ways may be used.
85
- However, the {file:SASS_REFERENCE.md#property_syntax-option `:property_syntax` option}
86
- may be used to specify that only one property syntax is allowed.
87
-
88
- ### Multiline Selectors
89
-
90
- Normally in the indented syntax, a single selector must take up a single line.
91
- There is one exception, however:
92
- selectors can contain newlines as long as they only appear after commas.
93
- For example:
94
-
95
- .users #userTab,
96
- .posts #postTab
97
- width: 100px
98
- height: 30px
99
-
100
- ### Comments
101
-
102
- Like everything else in the indented syntax,
103
- comments are line-based.
104
- This means that they don't work the same way as in SCSS.
105
- They must take up an entire line,
106
- and they also encompass all text nested beneath them.
107
-
108
- Like SCSS, the indented syntax supports two kinds of comments.
109
- Comments beginning with `/*` are preserved in the CSS output,
110
- although unlike SCSS they don't require a closing `*/`.
111
- Comments beginning with `//` are removed entirely.
112
- For example:
113
-
114
- /* This comment will appear in the CSS output.
115
- This is nested beneath the comment,
116
- so it's part of it
117
- body
118
- color: black
119
-
120
- // This comment will not appear in the CSS output.
121
- This is nested beneath the comment as well,
122
- so it also won't appear
123
- a
124
- color: green
125
-
126
- is compiled to:
127
-
128
- /* This comment will appear in the CSS output.
129
- * This is nested beneath the comment,
130
- * so it's part of it */
131
- body {
132
- color: black; }
133
-
134
- a {
135
- color: green; }
136
-
137
- ### `@import`
138
-
139
- The `@import` directive in Sass does not require quotes, although they may be used.
140
- For example, this SCSS:
141
-
142
- @import "themes/dark";
143
- @import "font.sass";
144
-
145
- would be this Sass:
146
-
147
- @import themes/dark
148
- @import font.sass
149
-
150
- ### Mixin Directives
151
-
152
- Sass supports shorthands for the `@mixin` and `@include` directives.
153
- Instead of writing `@mixin`, you can use the character `=`;
154
- instead of writing `@include`, you can use the character `+`.
155
- For example:
156
-
157
- =large-text
158
- font:
159
- family: Arial
160
- size: 20px
161
- weight: bold
162
- color: #ff0000
163
-
164
- h1
165
- +large-text
166
-
167
- is the same as:
168
-
169
- @mixin large-text
170
- font:
171
- family: Arial
172
- size: 20px
173
- weight: bold
174
- color: #ff0000
175
-
176
- h1
177
- @include large-text
178
-
179
- ## Deprecated Syntax
180
-
181
- Since the indented syntax has been around for a while,
182
- previous versions have made some syntactic decisions
183
- that have since been changed.
184
- Some of the old syntax still works, though,
185
- so it's documented here.
186
-
187
- **Note that this syntax is not recommended
188
- for use in new Sass files**.
189
- It will print a warning if it's used,
190
- and it will be removed in a future version.
191
-
192
- ### `=` for Properties and Variables
193
-
194
- `=` used to be used instead of `:` when setting variables
195
- and when setting properties to SassScript values.
196
- It has slightly different semantics than `:`;
197
- see {file:SASS_CHANGELOG.md#3-0-0-sass-script-context this changelog entry} for details.
198
-
199
- ### `||=` for Default Variables
200
-
201
- `||=` used to be used instead of `:` when setting the default value of a variable.
202
- The `!default` flag was not used.
203
- The variable value has the same semantics as `=`;
204
- see {file:SASS_CHANGELOG.md#3-0-0-sass-script-context this changelog entry} for details.
205
-
206
- ### `!` Prefix for Variables
207
-
208
- `!` used to be used as the variable prefix instead of `$`.
209
- This had no difference in functionality;
210
- it was a purely aesthetic change.
@@ -1,1914 +0,0 @@
1
- # Sass Changelog
2
-
3
- * Table of contents
4
- {:toc}
5
-
6
- ## 3.0.23
7
-
8
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.23).
9
-
10
- * Fix the error message for unloadable modules when running the executables under Ruby 1.9.2.
11
-
12
- ### `@charset` Change
13
-
14
- The behavior of `@charset` has changed in version 3.0.23
15
- in order to work around a bug in Safari,
16
- where `@charset` declarations placed anywhere other than the beginning of the document
17
- cause some CSS rules to be ignored.
18
- This change also makes `@charset`s in imported files behave in a more useful way.
19
-
20
- #### Ruby 1.9
21
-
22
- When using Ruby 1.9, which keeps track of the character encoding of the Sass document internally,
23
- `@charset` directive in the Sass stylesheet and any stylesheets it imports
24
- are no longer directly output to the generated CSS.
25
- They're still used for determining the encoding of the input and output stylesheets,
26
- but they aren't rendered in the same way other directives are.
27
-
28
- Instead, Sass adds a single `@charset` directive at the beginning of the output stylesheet
29
- if necessary, whether or not the input stylesheet had a `@charset` directive.
30
- It will add this directive if and only if the output stylesheet contains non-ASCII characters.
31
- By default, the declared charset will be UTF-8,
32
- but if the Sass stylesheet declares a different charset then that will be used instead if possible.
33
-
34
- One important consequence of this scheme is that it's possible for a Sass file
35
- to import partials with different encodings (e.g. one encoded as UTF-8 and one as IBM866).
36
- The output will then be UTF-8, unless the importing stylesheet
37
- declares a different charset.
38
-
39
- #### Ruby 1.8
40
-
41
- Ruby 1.8 doesn't have good support for encodings, so it uses a simpler but less accurate
42
- scheme for figuring out what `@charset` declaration to use for the output stylesheet.
43
- It just takes the first `@charset` declaration to appear in the stylesheet
44
- or any of its imports and moves it to the beginning of the document.
45
- This means that under Ruby 1.8 it's *not* safe to import files with different encodings.
46
-
47
- ## 3.0.22
48
-
49
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.22).
50
-
51
- * Remove `vendor/sass`, which snuck into the gem by mistake
52
- and was causing trouble for Heroku users (thanks to [Jacques Crocker](http://railsjedi.com/)).
53
-
54
- * `sass-convert` now understands better when it's acceptable
55
- to remove parentheses from expressions.
56
-
57
- ## 3.0.21
58
-
59
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.21).
60
-
61
- * Fix the permissions errors for good.
62
-
63
- * Fix more `#options` attribute errors.
64
-
65
- ## 3.0.20
66
-
67
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.20).
68
-
69
- * Fix some permissions errors.
70
-
71
- * Fix `#options` attribute errors when CSS functions were used with commas.
72
-
73
- ## 3.0.19
74
-
75
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.19).
76
-
77
- * Make the alpha value for `rgba` colors respect {Sass::Script::Number::PRECISION}.
78
-
79
- * Remove all newlines in selectors in `:compressed` mode.
80
-
81
- * Make color names case-insensitive.
82
-
83
- * Properly detect SCSS files when using `sass -c`.
84
-
85
- * Remove spaces after commas in `:compressed` mode.
86
-
87
- * Allow the `--unix-newlines` flag to work on Unix, where it's a no-op.
88
-
89
- ## 3.0.18
90
-
91
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.18).
92
-
93
- * Don't require `rake` in the gemspec, for bundler compatibility under
94
- JRuby. Thanks to [Gordon McCreight](http://www.gmccreight.com/blog).
95
-
96
- * Add a command-line option `--stop-on-error` that causes Sass to exit
97
- when a file fails to compile using `--watch` or `--update`.
98
-
99
- * Fix a bug in `haml_tag` that would allow duplicate attributes to be added
100
- and make `data-` attributes not work.
101
-
102
- * Get rid of the annoying RDoc errors on install.
103
-
104
- * Disambiguate references to the `Rails` module when `haml-rails` is installed.
105
-
106
- * Allow `@import` in SCSS to import multiple files in the same `@import` rule.
107
-
108
- ## 3.0.17
109
-
110
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.17).
111
-
112
- * Disallow `#{}` interpolation in `@media` queries or unrecognized directives.
113
- This was never allowed, but now it explicitly throws an error
114
- rather than just producing invalid CSS.
115
-
116
- * Make `sass --watch` not throw an error when passed a single file or directory.
117
-
118
- * Understand that mingw counts as Windows.
119
-
120
- * Make `sass --update` return a non-0 exit code if one or more files being updated
121
- contained an error.
122
-
123
- ## 3.0.16
124
-
125
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.16).
126
-
127
- * Fix a bug where certain sorts of comments would get improperly
128
- rendered in the `:compact` style.
129
-
130
- * Always allow a trailing `*/` in loud comments in the indented syntax.
131
-
132
- * Fix a performance issue with SCSS parsing in rare cases.
133
- Thanks to [Chris Eppstein](http://chriseppstein.github.com).
134
-
135
- * Use better heuristics for figuring out when someone might be using
136
- the wrong syntax with `sass --watch`.
137
-
138
- ## 3.0.15
139
-
140
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.15).
141
-
142
- * Fix a bug where `sass --watch` and `sass --update` were completely broken.
143
-
144
- * Allow `@import`ed values to contain commas.
145
-
146
- ## 3.0.14
147
-
148
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.14).
149
-
150
- * Properly parse paths with drive letters on Windows (e.g. `C:\Foo\Bar.sass`)
151
- in the Sass executable.
152
-
153
- * Compile Sass files in a deterministic order.
154
-
155
- * Fix a bug where comments after `@if` statements in SCSS
156
- weren't getting passed through to the output document.
157
-
158
- ## 3.0.13
159
-
160
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.13).
161
-
162
- ## CSS `@import` Directives
163
-
164
- Sass is now more intelligent about when to compile `@import` directives to plain CSS.
165
- Any of the following conditions will cause a literal CSS `@import`:
166
-
167
- * Importing a path with a `.css` extension (e.g. `@import "foo.css"`).
168
- * Importing a path with a media type (e.g. `@import "foo" screen;`).
169
- * Importing an HTTP path (e.g. `@import "http://foo.com/style.css"`).
170
- * Importing any URL (e.g. `@import url(foo)`).
171
-
172
- The former two conditions always worked, but the latter two are new.
173
-
174
- ## `-moz-calc` Support
175
-
176
- The new [`-moz-calc()` function](http://hacks.mozilla.org/2010/06/css3-calc/) in Firefox 4
177
- will now be properly parsed by Sass.
178
- `calc()` was already supported, but because the parsing rules are different
179
- than for normal CSS functions, this had to be expanded to include `-moz-calc`.
180
-
181
- In anticipation of wider browser support, in fact,
182
- *any* function named `-*-calc` (such as `-webkit-calc` or `-ms-calc`)
183
- will be parsed the same as the `calc` function.
184
-
185
- ## `:-moz-any` Support
186
-
187
- The [`:-moz-any` pseudoclass selector](http://hacks.mozilla.org/2010/05/moz-any-selector-grouping/)
188
- is now parsed by Sass.
189
-
190
- ## `--require` Flag
191
-
192
- The Sass command-line executable can now require Ruby files
193
- using the `--require` flag (or `-r` for short).
194
-
195
- ## Rails Support
196
-
197
- Make sure the default Rails options take precedence over the default non-Rails options.
198
- This makes `./script/server --daemon` work again.
199
-
200
- ### Rails 3 Support
201
-
202
- Support for Rails 3 versions prior to beta 4 has been removed.
203
- Upgrade to Rails 3.0.0.beta4 if you haven't already.
204
-
205
- ## 3.0.12
206
-
207
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.12).
208
-
209
- ## Rails 3 Support
210
-
211
- Apparently the last version broke in new and exciting ways under Rails 3,
212
- due to the inconsistent load order caused by certain combinations of gems.
213
- 3.0.12 hacks around that inconsistency, and *should* be fully Rails 3-compatible.
214
-
215
- ### Deprecated: Rails 3 Beta 3
216
-
217
- Haml's support for Rails 3.0.0.beta.3 has been deprecated.
218
- Haml 3.0.13 will only support 3.0.0.beta.4.
219
-
220
- ## 3.0.11
221
-
222
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.11).
223
-
224
- There were no changes made to Haml between versions 3.0.10 and 3.0.11.
225
-
226
- ## Rails 3 Support
227
-
228
- Make sure Sass *actually* regenerates stylesheets under Rails 3.
229
- The fix in 3.0.10 didn't work because the Rack stack we were modifying
230
- wasn't reloaded at the proper time.
231
-
232
- ## Bug Fixes
233
-
234
- * Give a decent error message when `--recursive` is used
235
- in `sass-convert` without a directory.
236
-
237
- ## 3.0.10
238
-
239
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.10).
240
-
241
- ### Appengine-JRuby Support
242
-
243
- The way we determine the location of the Haml installation
244
- no longer breaks the version of JRuby
245
- used by [`appengine-jruby`](http://code.google.com/p/appengine-jruby/).
246
-
247
- ### Rails 3 Support
248
-
249
- Sass will regenerate stylesheets under Rails 3
250
- even when no controllers are being accessed.
251
-
252
- ### Other Improvements
253
-
254
- * When using `sass-convert --from sass2 --to sass --recursive`,
255
- suggest the use of `--in-place` as well.
256
-
257
- ## 3.0.9
258
-
259
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.9).
260
-
261
- There were no changes made to Sass between versions 3.0.8 and 3.0.9.
262
- A bug in Gemcutter caused the gem to be uploaded improperly.
263
-
264
- ## 3.0.8
265
-
266
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.8).
267
-
268
- * Fix a bug with Rails versions prior to Rails 3.
269
-
270
- ## 3.0.7
271
-
272
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.7).
273
-
274
- ### Encoding Support
275
-
276
- Sass 3.0.7 adds support for `@charset` for declaring the encoding of a stylesheet.
277
- For details see {file:SASS_REFERENCE.md#encodings the reference}.
278
-
279
- The `sass` and `sass-convert` executables also now take an `-E` option
280
- for specifying the encoding of Sass/SCSS/CSS files.
281
-
282
- ### Bug Fixes
283
-
284
- * When compiling a file named `.sass` but with SCSS syntax specified,
285
- use the latter (and vice versa).
286
-
287
- * Fix a bug where interpolation would cause some selectors to render improperly.
288
-
289
- * If a line in a Sass comment starts with `*foo`,
290
- render it as `*foo` rather than `* *foo`.
291
-
292
- ## 3.0.6
293
-
294
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.6).
295
-
296
- There were no changes made to Sass between versions 3.0.5 and 3.0.6.
297
-
298
- ## 3.0.5
299
-
300
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.5).
301
-
302
- ### `#{}` Interpolation in Properties
303
-
304
- Previously, using `#{}` in some places in properties
305
- would cause a syntax error.
306
- Now it can be used just about anywhere.
307
-
308
- Note that when `#{}` is used near operators like `/`,
309
- those operators are treated as plain CSS
310
- rather than math operators.
311
- For example:
312
-
313
- p {
314
- $font-size: 12px;
315
- $line-height: 30px;
316
- font: #{$font-size}/#{$line-height};
317
- }
318
-
319
- is compiled to:
320
-
321
- p {
322
- font: 12px/30px;
323
- }
324
-
325
- This is useful, since normally {file:SASS_REFERENCE.md#division-and-slash
326
- a slash with variables is treated as division}.
327
-
328
- ### Recursive Mixins
329
-
330
- Mixins that include themselves will now print
331
- much more informative error messages.
332
- For example:
333
-
334
- @mixin foo {@include bar}
335
- @mixin bar {@include foo}
336
- @include foo
337
-
338
- will print:
339
-
340
- An @include loop has been found:
341
- foo includes bar
342
- bar includes foo
343
-
344
- Although it was previously possible to use recursive mixins
345
- without causing infinite looping, this is now disallowed,
346
- since there's no good reason to do it.
347
-
348
- ### Rails 3 Support
349
-
350
- Fix Sass configuration under Rails 3.
351
- Thanks [Dan Cheail](http://github.com/codeape).
352
-
353
- ### `sass --no-cache`
354
-
355
- Make the `--no-cache` flag properly forbid Sass from writing `.sass-cache` files.
356
-
357
- ## 3.0.4
358
-
359
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.4).
360
-
361
- * Raise an informative error when function arguments have a mispaced comma,
362
- as in `foo(bar, )`.
363
-
364
- * Fix a performance problem when using long function names
365
- such as `-moz-linear-gradient`.
366
-
367
- ## 3.0.3
368
-
369
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.3).
370
-
371
- ### Rails 3 Support
372
-
373
- Make sure Sass is loaded properly when using Rails 3
374
- along with non-Rails-3-compatible plugins like some versions of `will_paginate`.
375
-
376
- Also, In order to make some Rails loading errors like the above easier to debug,
377
- Sass will now raise an error if `Rails.root` is `nil` when Sass is loading.
378
- Previously, this would just cause the paths to be mis-set.
379
-
380
- ### Merb Support
381
-
382
- Merb, including 1.1.0 as well as earlier versions,
383
- should *really* work with this release.
384
-
385
- ### Bug Fixes
386
-
387
- * Raise an informative error when mixin arguments have a mispaced comma,
388
- as in `@include foo(bar, )`.
389
-
390
- * Make sure SassScript subtraction happens even when nothing else dynamic is going on.
391
-
392
- * Raise an error when colors are used with the wrong number of digits.
393
-
394
- ## 3.0.2
395
-
396
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.2).
397
-
398
- ### Merb 1.1.0 Support
399
-
400
- Fixed a bug inserting the Sass plugin into the Merb 1.1.0 Rack application.
401
-
402
- ### Bug Fixes
403
-
404
- * Allow identifiers to begin with multiple underscores.
405
-
406
- * Don't raise an error when using `haml --rails` with older Rails versions.
407
-
408
- ## 3.0.1
409
-
410
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.1).
411
-
412
- ### Installation in Rails
413
-
414
- `haml --rails` is no longer necessary for installing Sass in Rails.
415
- Now all you need to do is add `gem "haml"` to the Gemfile for Rails 3,
416
- or add `config.gem "haml"` to `config/environment.rb` for previous versions.
417
-
418
- `haml --rails` will still work,
419
- but it has been deprecated and will print an error message.
420
- It will not work in the next version of Sass.
421
-
422
- ### Rails 3 Beta Integration
423
-
424
- * Make sure manually importing the Sass Rack plugin still works with Rails,
425
- even though it's not necessary now.
426
-
427
- * Allow Sass to be configured in Rails even when it's being lazy-loaded.
428
-
429
- ### `:template_location` Methods
430
-
431
- The {file:SASS_REFERENCE.md#template_location-option `:template_location` option}
432
- can be either a String, a Hash, or an Array.
433
- This makes it difficult to modify or use with confidence.
434
- Thus, three new methods have been added for handling it:
435
-
436
- * {Sass::Plugin#template_location_array} --
437
- Returns the template locations and CSS locations formatted as an array.
438
-
439
- * {Sass::Plugin#add_template_location} --
440
- Converts the template location option to an array and adds a new location.
441
-
442
- * {Sass::Plugin#remove_template_location} --
443
- Converts the template location option to an array and removes an existing location.
444
-
445
- ## 3.0.0
446
- {#3-0-0}
447
-
448
- [Tagged on GitHub](http://github.com/nex3/haml/commit/3.0.0).
449
-
450
- ### Deprecations -- Must Read!
451
- {#3-0-0-deprecations}
452
-
453
- * Using `=` for SassScript properties and variables is deprecated,
454
- and will be removed in Sass 3.2.
455
- Use `:` instead.
456
- See also [this changelog entry](#3-0-0-sass-script-context)
457
-
458
- * Because of the above, property values using `:`
459
- will be parsed more thoroughly than they were before.
460
- Although all valid CSS3 properties
461
- as well as most hacks and proprietary syntax should be supported,
462
- it's possible that some properties will break.
463
- If this happens, please report it to [the Sass mailing list](http://groups.google.com/group/haml).
464
-
465
- * In addition, setting the default value of variables
466
- with `||=` is now deprecated
467
- and will be removed in Sass 3.2.
468
- Instead, add `!default` to the end of the value.
469
- See also [this changelog entry](#3-0-0-default-flag)
470
-
471
- * The `!` prefix for variables is deprecated,
472
- and will be removed in Sass 3.2.
473
- Use `$` as a prefix instead.
474
- See also [this changelog entry](#3-0-0-dollar-prefix).
475
-
476
- * The `css2sass` command-line tool has been deprecated,
477
- and will be removed in Sass 3.2.
478
- Use the new `sass-convert` tool instead.
479
- See also [this changelog entry](#3-0-0-sass-convert).
480
-
481
- * Selector parent references using `&` can now only be used
482
- where element names are valid.
483
- This is because Sass 3 fully parses selectors
484
- to support the new [`@extend` directive](#3-0-0-extend),
485
- and it's possible that the `&` could be replaced by an element name.
486
-
487
- ### SCSS (Sassy CSS)
488
-
489
- Sass 3 introduces a new syntax known as SCSS
490
- which is fully compatible with the syntax of CSS3,
491
- while still supporting the full power of Sass.
492
- This means that every valid CSS3 stylesheet
493
- is a valid SCSS file with the same meaning.
494
- In addition, SCSS understands most CSS hacks
495
- and vendor-specific syntax, such as [IE's old `filter` syntax](http://msdn.microsoft.com/en-us/library/ms533754%28VS.85%29.aspx).
496
-
497
- SCSS files use the `.scss` extension.
498
- They can import `.sass` files, and vice-versa.
499
- Their syntax is fully described in the {file:SASS_REFERENCE.md Sass reference};
500
- if you're already familiar with Sass, though,
501
- you may prefer the {file:SCSS_FOR_SASS_USERS.md intro to SCSS for Sass users}.
502
-
503
- Since SCSS is a much more approachable syntax for those new to Sass,
504
- it will be used as the default syntax for the reference,
505
- as well as for most other Sass documentation.
506
- The indented syntax will continue to be fully supported, however.
507
-
508
- Sass files can be converted to SCSS using the new `sass-convert` command-line tool.
509
- For example:
510
-
511
- # Convert a Sass file to SCSS
512
- $ sass-convert style.sass style.scss
513
-
514
- **Note that if you're converting a Sass file written for Sass 2**,
515
- you should use the `--from sass2` flag.
516
- For example:
517
-
518
- # Convert a Sass file to SCSS
519
- $ sass-convert --from sass2 style.sass style.scss
520
-
521
- # Convert all Sass files to SCSS
522
- $ sass-convert --recursive --in-place --from sass2 --to scss stylesheets/
523
-
524
- ### Syntax Changes {#3-0-0-syntax-changes}
525
-
526
- #### SassScript Context
527
- {#3-0-0-sass-script-context}
528
-
529
- The `=` character is no longer required for properties that use SassScript
530
- (that is, variables and operations).
531
- All properties now use SassScript automatically;
532
- this means that `:` should be used instead.
533
- Variables should also be set with `:`.
534
- For example, what used to be
535
-
536
- // Indented syntax
537
- .page
538
- color = 5px + 9px
539
-
540
- should now be
541
-
542
- // Indented syntax
543
- .page
544
- color: 5px + 9px
545
-
546
- This means that SassScript is now an extension of the CSS3 property syntax.
547
- All valid CSS3 properties are valid SassScript,
548
- and will compile without modification
549
- (some invalid properties work as well, such as Microsoft's proprietary `filter` syntax).
550
- This entails a few changes to SassScript to make it fully CSS3-compatible,
551
- which are detailed below.
552
-
553
- This also means that Sass will now be fully parsing all property values,
554
- rather than passing them through unchanged to the CSS.
555
- Although care has been taken to support all valid CSS3,
556
- as well as hacks and proprietary syntax,
557
- it's possible that a property that worked in Sass 2 won't work in Sass 3.
558
- If this happens, please report it to [the Sass mailing list](http://groups.google.com/group/haml).
559
-
560
- Note that if `=` is used,
561
- SassScript will be interpreted as backwards-compatibly as posssible.
562
- In particular, the changes listed below don't apply in an `=` context.
563
-
564
- The `sass-convert` command-line tool can be used
565
- to upgrade Sass files to the new syntax using the `--in-place` flag.
566
- For example:
567
-
568
- # Upgrade style.sass:
569
- $ sass-convert --in-place style.sass
570
-
571
- # Upgrade all Sass files:
572
- $ sass-convert --recursive --in-place --from sass2 --to sass stylesheets/
573
-
574
- ##### Quoted Strings
575
-
576
- Quoted strings (e.g. `"foo"`) in SassScript now render with quotes.
577
- In addition, unquoted strings are no longer deprecated,
578
- and render without quotes.
579
- This means that almost all strings that had quotes in Sass 2
580
- should not have quotes in Sass 3.
581
-
582
- Although quoted strings render with quotes when used with `:`,
583
- they do not render with quotes when used with `#{}`.
584
- This allows quoted strings to be used for e.g. selectors
585
- that are passed to mixins.
586
-
587
- Strings can be forced to be quoted and unquoted using the new
588
- \{Sass::Script::Functions#unquote unquote} and \{Sass::Script::Functions#quote quote}
589
- functions.
590
-
591
- ##### Division and `/`
592
-
593
- Two numbers separated by a `/` character
594
- are allowed as property syntax in CSS,
595
- e.g. for the `font` property.
596
- SassScript also uses `/` for division, however,
597
- which means it must decide what to do
598
- when it encounters numbers separated by `/`.
599
-
600
- For CSS compatibility, SassScript does not perform division by default.
601
- However, division will be done in almost all cases where division is intended.
602
- In particular, SassScript will perform division
603
- in the following three situations:
604
-
605
- 1. If the value, or any part of it, is stored in a variable.
606
- 2. If the value is surrounded by parentheses.
607
- 3. If the value is used as part of another arithmetic expression.
608
-
609
- For example:
610
-
611
- p
612
- font: 10px/8px
613
- $width: 1000px
614
- width: $width/2
615
- height: (500px/2)
616
- margin-left: 5px + 8px/2px
617
-
618
- is compiled to:
619
-
620
- p {
621
- font: 10px/8px;
622
- width: 500px;
623
- height: 250px;
624
- margin-left: 9px; }
625
-
626
- ##### Variable Defaults
627
-
628
- Since `=` is no longer used for variable assignment,
629
- assigning defaults to variables with `||=` no longer makes sense.
630
- Instead, the `!default` flag
631
- should be added to the end of the variable value.
632
- This syntax is meant to be similar to CSS's `!important` flag.
633
- For example:
634
-
635
- $var: 12px !default;
636
-
637
- #### Variable Prefix Character
638
- {#3-0-0-dollar-prefix}
639
-
640
- The Sass variable character has been changed from `!`
641
- to the more aesthetically-appealing `$`.
642
- For example, what used to be
643
-
644
- !width = 13px
645
- .icon
646
- width = !width
647
-
648
- should now be
649
-
650
- $width: 13px
651
- .icon
652
- width: $width
653
-
654
- The `sass-convert` command-line tool can be used
655
- to upgrade Sass files to the new syntax using the `--in-place` flag.
656
- For example:
657
-
658
- # Upgrade style.sass:
659
- $ sass-convert --in-place style.sass
660
-
661
- # Upgrade all Sass files:
662
- $ sass-convert --recursive --in-place --from sass2 --to sass stylesheets/
663
-
664
- `!` may still be used, but it's deprecated and will print a warning.
665
- It will be removed in the next version of Sass, 3.2.
666
-
667
- #### Variable and Mixin Names
668
-
669
- SassScript variable and mixin names may now contain hyphens.
670
- In fact, they may be any valid CSS3 identifier.
671
- For example:
672
-
673
- $prettiest-color: #542FA9
674
- =pretty-text
675
- color: $prettiest-color
676
-
677
- In order to allow frameworks like [Compass](http://compass-style.org)
678
- to use hyphens in variable names
679
- while maintaining backwards-compatibility,
680
- variables and mixins using hyphens may be referred to
681
- with underscores, and vice versa.
682
- For example:
683
-
684
- $prettiest-color: #542FA9
685
- .pretty
686
- // Using an underscore instead of a hyphen works
687
- color: $prettiest_color
688
-
689
- #### Single-Quoted Strings
690
-
691
- SassScript now supports single-quoted strings.
692
- They behave identically to double-quoted strings,
693
- except that single quotes need to be backslash-escaped
694
- and double quotes do not.
695
-
696
- #### Mixin Definition and Inclusion
697
-
698
- Sass now supports the `@mixin` directive as a way of defining mixins (like `=`),
699
- as well as the `@include` directive as a way of including them (like `+`).
700
- The old syntax is *not* deprecated,
701
- and the two are fully compatible.
702
- For example:
703
-
704
- @mixin pretty-text
705
- color: $prettiest-color
706
-
707
- a
708
- @include pretty-text
709
-
710
- is the same as:
711
-
712
- =pretty-text
713
- color: $prettiest-color
714
-
715
- a
716
- +pretty-text
717
-
718
- #### Sass Properties
719
-
720
- New-style properties (with the colon after the name) in indented syntax
721
- now allow whitespace before the colon. For example:
722
-
723
- foo
724
- color : blue
725
-
726
- #### Sass `@import`
727
-
728
- The Sass `@import` statement now allows non-CSS files to be specified with quotes,
729
- for similarity with the SCSS syntax. For example, `@import "foo.sass"`
730
- will now import the `foo.sass` file, rather than compiling to `@import "foo.sass";`.
731
-
732
- ### `@extend`
733
- {#3-0-0-extend}
734
-
735
- There are often cases when designing a page
736
- when one class should have all the styles of another class,
737
- as well as its own specific styles.
738
- The most common way of handling this is to use both the more general class
739
- and the more specific class in the HTML.
740
- For example, suppose we have a design for a normal error
741
- and also for a serious error. We might write our markup like so:
742
-
743
- <div class="error seriousError">
744
- Oh no! You've been hacked!
745
- </div>
746
-
747
- And our styles like so:
748
-
749
- .error {
750
- border: 1px #f00;
751
- background-color: #fdd;
752
- }
753
- .seriousError {
754
- border-width: 3px;
755
- }
756
-
757
- Unfortunately, this means that we have to always remember
758
- to use `.error` with `.seriousError`.
759
- This is a maintenance burden, leads to tricky bugs,
760
- and can bring non-semantic style concerns into the markup.
761
-
762
- The `@extend` directive avoids these problems
763
- by telling Sass that one selector should inherit the styles of another selector.
764
- For example:
765
-
766
- .error {
767
- border: 1px #f00;
768
- background-color: #fdd;
769
- }
770
- .seriousError {
771
- @extend .error;
772
- border-width: 3px;
773
- }
774
-
775
- This means that all styles defined for `.error`
776
- are also applied to `.seriousError`,
777
- in addition to the styles specific to `.seriousError`.
778
- In effect, everything with class `.seriousError` also has class `.error`.
779
-
780
- Other rules that use `.error` will work for `.seriousError` as well.
781
- For example, if we have special styles for errors caused by hackers:
782
-
783
- .error.intrusion {
784
- background-image: url("/image/hacked.png");
785
- }
786
-
787
- Then `<div class="seriousError intrusion">`
788
- will have the `hacked.png` background image as well.
789
-
790
- #### How it Works
791
-
792
- `@extend` works by inserting the extending selector (e.g. `.seriousError`)
793
- anywhere in the stylesheet that the extended selector (.e.g `.error`) appears.
794
- Thus the example above:
795
-
796
- .error {
797
- border: 1px #f00;
798
- background-color: #fdd;
799
- }
800
- .error.intrusion {
801
- background-image: url("/image/hacked.png");
802
- }
803
- .seriousError {
804
- @extend .error;
805
- border-width: 3px;
806
- }
807
-
808
- is compiled to:
809
-
810
- .error, .seriousError {
811
- border: 1px #f00;
812
- background-color: #fdd; }
813
-
814
- .error.intrusion, .seriousError.intrusion {
815
- background-image: url("/image/hacked.png"); }
816
-
817
- .seriousError {
818
- border-width: 3px; }
819
-
820
- When merging selectors, `@extend` is smart enough
821
- to avoid unnecessary duplication,
822
- so something like `.seriousError.seriousError` gets translated to `.seriousError`.
823
- In addition, it won't produce selectors that can't match anything, like `#main#footer`.
824
-
825
- See also {file:SASS_REFERENCE.md#extend the `@extend` reference documentation}.
826
-
827
- ### Colors
828
-
829
- SassScript color values are much more powerful than they were before.
830
- Support was added for alpha channels,
831
- and most of Chris Eppstein's [compass-colors](http://chriseppstein.github.com/compass-colors) plugin
832
- was merged in, providing color-theoretic functions for modifying colors.
833
-
834
- One of the most interesting of these functions is {Sass::Script::Functions#mix mix},
835
- which mixes two colors together.
836
- This provides a much better way of combining colors and creating themes
837
- than standard color arithmetic.
838
-
839
- #### Alpha Channels
840
-
841
- Sass now supports colors with alpha channels,
842
- constructed via the {Sass::Script::Functions#rgba rgba}
843
- and {Sass::Script::Functions#hsla hsla} functions.
844
- Alpha channels are unaffected by color arithmetic.
845
- However, the {Sass::Script::Functions#opacify opacify}
846
- and {Sass::Script::Functions#transparentize transparentize} functions
847
- allow colors to be made more and less opaque, respectively.
848
-
849
- Sass now also supports functions that return the values of the
850
- {Sass::Script::Functions#red red},
851
- {Sass::Script::Functions#blue blue},
852
- {Sass::Script::Functions#green green},
853
- and {Sass::Script::Functions#alpha alpha}
854
- components of colors.
855
-
856
- #### HSL Colors
857
-
858
- Sass has many new functions for using the HSL values of colors.
859
- For an overview of HSL colors, check out [the CSS3 Spec](http://www.w3.org/TR/css3-color/#hsl-color).
860
- All these functions work just as well on RGB colors
861
- as on colors constructed with the {Sass::Script::Functions#hsl hsl} function.
862
-
863
- * The {Sass::Script::Functions#lighten lighten}
864
- and {Sass::Script::Functions#darken darken}
865
- functions adjust the lightness of a color.
866
-
867
- * The {Sass::Script::Functions#saturate saturate}
868
- and {Sass::Script::Functions#desaturate desaturate}
869
- functions adjust the saturation of a color.
870
-
871
- * The {Sass::Script::Functions#adjust_hue adjust-hue}
872
- function adjusts the hue of a color.
873
-
874
- * The {Sass::Script::Functions#hue hue},
875
- {Sass::Script::Functions#saturation saturation},
876
- and {Sass::Script::Functions#lightness lightness}
877
- functions return the corresponding HSL values of the color.
878
-
879
- * The {Sass::Script::Functions#grayscale grayscale}
880
- function converts a color to grayscale.
881
-
882
- * The {Sass::Script::Functions#complement complement}
883
- function returns the complement of a color.
884
-
885
- ### Other New Functions
886
-
887
- Several other new functions were added to make it easier to have
888
- more flexible arguments to mixins and to enable deprecation
889
- of obsolete APIs.
890
-
891
- * {Sass::Script::Functions#type_of `type-of`} -- Returns the type of a value.
892
- * {Sass::Script::Functions#unit `unit`} --
893
- Returns the units associated with a number.
894
- * {Sass::Script::Functions#unitless `unitless`} --
895
- Returns whether a number has units or not.
896
- * {Sass::Script::Functions#comparable `comparable`} --
897
- Returns whether two numbers can be added or compared.
898
-
899
- ### Watching for Updates
900
- {#3-0-0-watch}
901
-
902
- The `sass` command-line utility has a new flag: `--watch`.
903
- `sass --watch` monitors files or directories for updated Sass files
904
- and compiles those files to CSS automatically.
905
- This will allow people not using Ruby or [Compass](http://compass-style.org)
906
- to use Sass without having to manually recompile all the time.
907
-
908
- Here's the syntax for watching a directory full of Sass files:
909
-
910
- sass --watch app/stylesheets:public/stylesheets
911
-
912
- This will watch every Sass file in `app/stylesheets`.
913
- Whenever one of them changes,
914
- the corresponding CSS file in `public/stylesheets` will be regenerated.
915
- Any files that import that file will be regenerated, too.
916
-
917
- The syntax for watching individual files is the same:
918
-
919
- sass --watch style.sass:out.css
920
-
921
- You can also omit the output filename if you just want it to compile to name.css.
922
- For example:
923
-
924
- sass --watch style.sass
925
-
926
- This will update `style.css` whenever `style.sass` changes.
927
-
928
- You can list more than one file and/or directory,
929
- and all of them will be watched:
930
-
931
- sass --watch foo/style:public/foo bar/style:public/bar
932
- sass --watch screen.sass print.sass awful-hacks.sass:ie.css
933
- sass --watch app/stylesheets:public/stylesheets public/stylesheets/test.sass
934
-
935
- File and directory watching is accessible from Ruby,
936
- using the {Sass::Plugin#watch} function.
937
-
938
- #### Bulk Updating
939
-
940
- Another new flag for the `sass` command-line utility is `--update`.
941
- It checks a group of Sass files to see if their CSS needs to be updated,
942
- and updates if so.
943
-
944
- The syntax for `--update` is just like watch:
945
-
946
- sass --update app/stylesheets:public/stylesheets
947
- sass --update style.sass:out.css
948
- sass --watch screen.sass print.sass awful-hacks.sass:ie.css
949
-
950
- In fact, `--update` work exactly the same as `--watch`,
951
- except that it doesn't continue watching the files
952
- after the first check.
953
-
954
- ### `sass-convert` (née `css2sass`) {#3-0-0-sass-convert}
955
-
956
- The `sass-convert` tool, which used to be known as `css2sass`,
957
- has been greatly improved in various ways.
958
- It now uses a full-fledged CSS3 parser,
959
- so it should be able to handle any valid CSS3,
960
- as well as most hacks and proprietary syntax.
961
-
962
- `sass-convert` can now convert between Sass and SCSS.
963
- This is normally inferred from the filename,
964
- but it can also be specified using the `--from` and `--to` flags.
965
- For example:
966
-
967
- $ generate-sass | sass-convert --from sass --to scss | consume-scss
968
-
969
- It's also now possible to convert a file in-place --
970
- that is, overwrite the old file with the new file.
971
- This is useful for converting files in the [Sass 2 syntax](#3-0-0-deprecations)
972
- to the new Sass 3 syntax,
973
- e.g. by doing `sass-convert --in-place --from sass2 style.sass`.
974
-
975
- #### `--recursive`
976
-
977
- The `--recursive` option allows `sass-convert` to convert an entire directory of files.
978
- `--recursive` requires both the `--from` and `--to` flags to be specified.
979
- For example:
980
-
981
- # Convert all .sass files in stylesheets/ to SCSS.
982
- # "sass2" means that these files are assumed to use the Sass 2 syntax.
983
- $ sass-convert --recursive --from sass2 --to scss stylesheets/
984
-
985
- #### `--dasherize`
986
-
987
- The `--dasherize` options converts all underscores to hyphens,
988
- which are now allowed as part of identifiers in Sass.
989
- Note that since underscores may still be used in place of hyphens
990
- when referring to mixins and variables,
991
- this won't cause any backwards-incompatibilities.
992
-
993
- #### Convert Less to SCSS
994
-
995
- `sass-convert` can also convert [Less](http://lesscss.org) files
996
- to SCSS (or the indented syntax, although I anticipate less interest in that).
997
- For example:
998
-
999
- # Convert all .less files in the current directory into .scss files
1000
- sass-convert --from less --to scss --recursive .
1001
-
1002
- This is done using the Less parser, so it requires that the `less` RubyGem be installed.
1003
-
1004
- ##### Incompatibilities
1005
-
1006
- Because of the reasonably substantial differences between Sass and Less,
1007
- there are some things that can't be directly translated,
1008
- and one feature that can't be translated at all.
1009
- In the tests I've run on open-source Less stylesheets,
1010
- none of these have presented issues, but it's good to be aware of them.
1011
-
1012
- First, Less doesn't distinguish fully between mixins and selector inheritance.
1013
- In Less, all classes and some other selectors may be used as mixins,
1014
- alongside more Sass-like mixins.
1015
- If a class is being used as a mixin,
1016
- it may also be used directly in the HTML,
1017
- so it's not safe to translate it into a Sass mixin.
1018
- What `sass-convert` does instead is leave the class in the stylesheet as a class,
1019
- and use {file:SASS_REFERENCE.md#extend `@extend`}
1020
- rather than {file:SASS_REFERENCE.md#including_a_mixin `@include`}
1021
- to take on the styles of that class.
1022
- Although `@extend` and mixins work quite differently,
1023
- using `@extend` here doesn't actually seem to make a difference in practice.
1024
-
1025
- Another issue with Less mixins is that Less allows nested selectors
1026
- (such as `.body .button` or `.colors > .teal`) to be used
1027
- as a means of "namespacing" mixins.
1028
- Sass's `@extend` doesn't work that way,
1029
- so it does away with the namespacing and just extends the base class
1030
- (so `.colors > .teal` becomes simply `@extend .teal`).
1031
- In practice, this feature doesn't seem to be widely-used,
1032
- but `sass-convert` will print a warning and leave a comment
1033
- when it encounters it just in case.
1034
-
1035
- Finally, Less has the ability to directly access variables and property values
1036
- defined in other selectors, which Sass does not support.
1037
- Whenever such an accessor is used,
1038
- `sass-convert` will print a warning
1039
- and comment it out in the SCSS output.
1040
- Like namespaced mixins, though,
1041
- this does not seem to be a widely-used feature.
1042
-
1043
- ### `@warn` Directive
1044
-
1045
- A new directive `@warn` has been added that allows Sass libraries to emit warnings.
1046
- This can be used to issue deprecation warnings, discourage sloppy use of mixins, etc.
1047
- `@warn` takes a single argument: a SassScript expression that will be
1048
- displayed on the console along with a stylesheet trace for locating the warning.
1049
- For example:
1050
-
1051
- @mixin blue-text {
1052
- @warn "The blue-text mixin is deprecated. Use new-blue-text instead.";
1053
- color: #00f;
1054
- }
1055
-
1056
- Warnings may be silenced with the new `--quiet` command line option,
1057
- or the corresponding {file:SASS_REFERENCE.md#quiet-option `:quiey` Sass option}.
1058
- This option will also affect warnings printed by Sass itself.
1059
- Warnings are off by default in the Rails, Rack, and Merb production environments.
1060
-
1061
- ### Sass::Plugin API
1062
-
1063
- {Sass::Plugin} now has a large collection of callbacks that allow users
1064
- to run code when various actions are performed.
1065
- For example:
1066
-
1067
- Sass::Plugin.on_updating_stylesheet do |template, css|
1068
- puts "#{template} has been compiled to #{css}!"
1069
- end
1070
-
1071
- For a full list of callbacks and usage notes, see the {Sass::Plugin} documentation.
1072
-
1073
- {Sass::Plugin} also has a new method,
1074
- {Sass::Plugin#force_update_stylesheets force_update_stylesheets}.
1075
- This works just like {Sass::Plugin#update_stylesheets},
1076
- except that it doesn't check modification times and doesn't use the cache;
1077
- all stylesheets are always compiled anew.
1078
-
1079
- ### Output Formatting
1080
-
1081
- Properties with a value and *also* nested properties
1082
- are now rendered with the nested properties indented.
1083
- For example:
1084
-
1085
- margin: auto
1086
- top: 10px
1087
- bottom: 20px
1088
-
1089
- is now compiled to:
1090
-
1091
- margin: auto;
1092
- margin-top: 10px;
1093
- margin-bottom: 20px;
1094
-
1095
- #### `:compressed` Style
1096
-
1097
- When the `:compressed` style is used,
1098
- colors will be output as the minimal possible representation.
1099
- This means whichever is smallest of the HTML4 color name
1100
- and the hex representation (shortened to the three-letter version if possible).
1101
-
1102
- ### Stylesheet Updating Speed
1103
-
1104
- Several caching layers were added to Sass's stylesheet updater.
1105
- This means that it should run significantly faster.
1106
- This benefit will be seen by people using Sass in development mode
1107
- with Rails, Rack, and Merb,
1108
- as well as people using `sass --watch` from the command line,
1109
- and to a lesser (but still significant) extent `sass --update`.
1110
- Thanks to [thedarkone](http://github.com/thedarkone).
1111
-
1112
- ### Error Backtraces
1113
-
1114
- Numerous bugs were fixed with the backtraces given for Sass errors,
1115
- especially when importing files and using mixins.
1116
- All imports and mixins will now show up in the Ruby backtrace,
1117
- with the proper filename and line number.
1118
-
1119
- In addition, when the `sass` executable encounters an error,
1120
- it now prints the filename where the error occurs,
1121
- as well as a backtrace of Sass imports and mixins.
1122
-
1123
- ### Ruby 1.9 Support
1124
-
1125
- * Sass and `css2sass` now produce more descriptive errors
1126
- when given a template with invalid byte sequences for that template's encoding,
1127
- including the line number and the offending character.
1128
-
1129
- * Sass and `css2sass` now accept Unicode documents with a
1130
- [byte-order-mark](http://en.wikipedia.org/wiki/Byte_order_mark).
1131
-
1132
- ### Firebug Support
1133
-
1134
- A new {file:SASS_REFERENCE.md#debug_info-option `:debug_info` option}
1135
- has been added that emits line-number and filename information
1136
- to the CSS file in a browser-readable format.
1137
- This can be used with the new [FireSass Firebug extension](https://addons.mozilla.org/en-US/firefox/addon/103988)
1138
- to report the Sass filename and line number for generated CSS files.
1139
-
1140
- This is also available via the `--debug-info` command-line flag.
1141
-
1142
- ### Minor Improvements
1143
-
1144
- * If a CSS or Sass function is used that has the name of a color,
1145
- it will now be parsed as a function rather than as a color.
1146
- For example, `fuchsia(12)` now renders as `fuchsia(12)`
1147
- rather than `fuchsia 12`,
1148
- and `tealbang(12)` now renders as `tealbang(12)`
1149
- rather than `teal bang(12)`.
1150
-
1151
- * The Sass Rails and Merb plugins now use Rack middleware by default.
1152
-
1153
- * Haml is now compatible with the [Rip](http://hellorip.com/) package management system.
1154
- Thanks to [Josh Peek](http://joshpeek.com/).
1155
-
1156
- * Indented-syntax `/*` comments may now include `*` on lines beyond the first.
1157
-
1158
- * A {file:SASS_REFERENCE.md#read_cache-option `:read_cache`} option has been added
1159
- to allow the Sass cache to be read from but not written to.
1160
-
1161
- * Stylesheets are no longer checked during each request
1162
- when running tests in Rails.
1163
- This should speed up some tests significantly.
1164
-
1165
- ## 2.2.24
1166
-
1167
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.24).
1168
-
1169
- * Parent references -- the `&` character --
1170
- may only be placed at the beginning of simple selector sequences in Sass 3.
1171
- Placing them elsewhere is deprecated in 2.2.24 and will print a warning.
1172
- For example, `foo &.bar` is allowed, but `foo .bar&` is not.
1173
-
1174
- ## 2.2.23
1175
-
1176
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.23).
1177
-
1178
- * Don't crash when `rake gems` is run in Rails with Sass installed.
1179
- Thanks to [Florian Frank](http://github.com/flori).
1180
-
1181
- * When raising a file-not-found error,
1182
- add a list of load paths that were checked.
1183
-
1184
- * If an import isn't found for a cached Sass file and the
1185
- {file:SASS_REFERENCE.md#full_exception `:full_exception option`} is enabled,
1186
- print the full exception rather than raising it.
1187
-
1188
- * Fix a bug with a weird interaction with Haml, DataMapper, and Rails 3
1189
- that caused some tag helpers to go into infinite recursion.
1190
-
1191
- ## 2.2.22
1192
-
1193
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.22).
1194
-
1195
- * Add a railtie so Haml and Sass will be automatically loaded in Rails 3.
1196
- Thanks to [Daniel Neighman](http://pancakestacks.wordpress.com/).
1197
-
1198
- * Make loading the gemspec not crash on read-only filesystems like Heroku's.
1199
-
1200
- ## 2.2.21
1201
-
1202
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.21).
1203
-
1204
- * Fix a few bugs in the git-revision-reporting in {Haml::Version#version}.
1205
- In particular, it will still work if `git gc` has been called recently,
1206
- or if various files are missing.
1207
-
1208
- * Always use `__FILE__` when reading files within the Haml repo in the `Rakefile`.
1209
- According to [this bug report](http://github.com/carlhuda/bundler/issues/issue/44),
1210
- this should make Sass work better with Bundler.
1211
-
1212
- ## 2.2.20
1213
-
1214
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.20).
1215
-
1216
- * If the cache file for a given Sass file is corrupt
1217
- because it doesn't have enough content,
1218
- produce a warning and read the Sass file
1219
- rather than letting the exception bubble up.
1220
- This is consistent with other sorts of sassc corruption handling.
1221
-
1222
- * Calls to `defined?` shouldn't interfere with Rails' autoloading
1223
- in very old versions (1.2.x).
1224
-
1225
- ## 2.2.19
1226
-
1227
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.18).
1228
-
1229
- There were no changes made to Sass between versions 2.2.18 and 2.2.19.
1230
-
1231
- ## 2.2.18
1232
-
1233
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.18).
1234
-
1235
- * Use `Rails.env` rather than `RAILS_ENV` when running under Rails 3.0.
1236
- Thanks to [Duncan Grazier](http://duncangrazier.com/).
1237
-
1238
- * Support `:line_numbers` as an alias for {file:SASS_REFERENCE.md#line_numbers-option `:line_comments`},
1239
- since that's what the docs have said forever.
1240
- Similarly, support `--line-numbers` as a command-line option.
1241
-
1242
- * Add a `--unix-newlines` flag to all executables
1243
- for outputting Unix-style newlines on Windows.
1244
-
1245
- * Add a {file:SASS_REFERENCE.md#unix_newlines-option `:unix_newlines` option}
1246
- for {Sass::Plugin} for outputting Unix-style newlines on Windows.
1247
-
1248
- * Fix the `--cache-location` flag, which was previously throwing errors.
1249
- Thanks to [tav](http://tav.espians.com/).
1250
-
1251
- * Allow comments at the beginning of the document to have arbitrary indentation,
1252
- just like comments elsewhere.
1253
- Similarly, comment parsing is a little nicer than before.
1254
-
1255
- ## 2.2.17
1256
-
1257
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.16).
1258
-
1259
- * When the {file:SASS_REFERENCE.md#full_exception-option `:full_exception` option}
1260
- is false, raise the error in Ruby code rather than swallowing it
1261
- and printing something uninformative.
1262
-
1263
- * Fixed error-reporting when something goes wrong when loading Sass
1264
- using the `sass` executable.
1265
- This used to raise a NameError because `Sass::SyntaxError` wasn't defined.
1266
- Now it'll raise the correct exception instead.
1267
-
1268
- * Report the filename in warnings about selectors without properties.
1269
-
1270
- * `nil` values for Sass options are now ignored,
1271
- rather than raising errors.
1272
-
1273
- * Fix a bug that appears when Plugin template locations
1274
- have multiple trailing slashes.
1275
- Thanks to [Jared Grippe](http://jaredgrippe.com/).
1276
-
1277
- ### Must Read!
1278
-
1279
- * When `@import` is given a filename without an extension,
1280
- the behavior of rendering a CSS `@import` if no Sass file is found
1281
- is deprecated.
1282
- In future versions, `@import foo` will either import the template
1283
- or raise an error.
1284
-
1285
- ## 2.2.16
1286
-
1287
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.16).
1288
-
1289
- * Fixed a bug where modules containing user-defined Sass functions
1290
- weren't made available when simply included in {Sass::Script::Functions}
1291
- ({Sass::Script::Functions Functions} needed to be re-included in
1292
- {Sass::Script::Functions::EvaluationContext Functions::EvaluationContext}).
1293
- Now the module simply needs to be included in {Sass::Script::Functions}.
1294
-
1295
- ## 2.2.15
1296
-
1297
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.15).
1298
-
1299
- * Added {Sass::Script::Color#with} for a way of setting color channels
1300
- that's easier than manually constructing a new color
1301
- and is forwards-compatible with alpha-channel colors
1302
- (to be introduced in Sass 2.4).
1303
-
1304
- * Added a missing require in Sass that caused crashes
1305
- when it was being run standalone.
1306
-
1307
- ## 2.2.14
1308
-
1309
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.14).
1310
-
1311
- * All Sass functions now raise explicit errors if their inputs
1312
- are of the incorrect type.
1313
-
1314
- * Allow the SassScript `rgb()` function to take percentages
1315
- in addition to numerical values.
1316
-
1317
- * Fixed a bug where SassScript strings with `#` followed by `#{}` interpolation
1318
- didn't evaluate the interpolation.
1319
-
1320
- ### SassScript Ruby API
1321
-
1322
- These changes only affect people defining their own Sass functions
1323
- using {Sass::Script::Functions}.
1324
-
1325
- * {Sass::Script::Color#value} attribute is deprecated.
1326
- Use {Sass::Script::Color#rgb} instead.
1327
- The returned array is now frozen as well.
1328
-
1329
- * Add an `assert_type` function that's available to {Sass::Script::Functions}.
1330
- This is useful for typechecking the inputs to functions.
1331
-
1332
- ### Rack Support
1333
-
1334
- Sass 2.2.14 includes Rack middleware for running Sass,
1335
- meaning that all Rack-enabled frameworks can now use Sass.
1336
- To activate this, just add
1337
-
1338
- require 'sass/plugin/rack'
1339
- use Sass::Plugin::Rack
1340
-
1341
- to your `config.ru`.
1342
- See the {Sass::Plugin::Rack} documentation for more details.
1343
-
1344
- ## 2.2.13
1345
-
1346
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.13).
1347
-
1348
- There were no changes made to Sass between versions 2.2.12 and 2.2.13.
1349
-
1350
- ## 2.2.12
1351
-
1352
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.12).
1353
-
1354
- * Fix a stupid bug introduced in 2.2.11 that broke the Sass Rails plugin.
1355
-
1356
- ## 2.2.11
1357
-
1358
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.11).
1359
-
1360
- * Added a note to errors on properties that could be pseudo-classes (e.g. `:focus`)
1361
- indicating that they should be backslash-escaped.
1362
-
1363
- * Automatically interpret properties that could be pseudo-classes as such
1364
- if {file:SASS_REFERENCE.md.html#property_syntax-option `:property_syntax`}
1365
- is set to `:new`.
1366
-
1367
- * Fixed `css2sass`'s generation of pseudo-classes so that they're backslash-escaped.
1368
-
1369
- * Don't crash if the Haml plugin skeleton is installed and `rake gems:install` is run.
1370
-
1371
- * Don't use `RAILS_ROOT` directly.
1372
- This no longer exists in Rails 3.0.
1373
- Instead abstract this out as `Haml::Util.rails_root`.
1374
- This changes makes Haml fully compatible with edge Rails as of this writing.
1375
-
1376
- * Make use of a Rails callback rather than a monkeypatch to check for stylesheet updates
1377
- in Rails 3.0+.
1378
-
1379
- ## 2.2.10
1380
-
1381
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.10).
1382
-
1383
- * Add support for attribute selectors with spaces around the `=`.
1384
- For example:
1385
-
1386
- a[href = http://google.com]
1387
- color: blue
1388
-
1389
- ## 2.2.9
1390
-
1391
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.9).
1392
-
1393
- There were no changes made to Sass between versions 2.2.8 and 2.2.9.
1394
-
1395
- ## 2.2.8
1396
-
1397
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.8).
1398
-
1399
- There were no changes made to Sass between versions 2.2.7 and 2.2.8.
1400
-
1401
- ## 2.2.7
1402
-
1403
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.7).
1404
-
1405
- There were no changes made to Sass between versions 2.2.6 and 2.2.7.
1406
-
1407
- ## 2.2.6
1408
-
1409
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.6).
1410
-
1411
- * Don't crash when the `__FILE__` constant of a Ruby file is a relative path,
1412
- as apparently happens sometimes in TextMate
1413
- (thanks to [Karl Varga](http://github.com/kjvarga)).
1414
-
1415
- * Add "Sass" to the `--version` string for the executables.
1416
-
1417
- ## 2.2.5
1418
-
1419
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.5).
1420
-
1421
- There were no changes made to Sass between versions 2.2.4 and 2.2.5.
1422
-
1423
- ## 2.2.4
1424
-
1425
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.4).
1426
-
1427
- * Don't add `require 'rubygems'` to the top of init.rb when installed
1428
- via `sass --rails`. This isn't necessary, and actually gets
1429
- clobbered as soon as haml/template is loaded.
1430
-
1431
- * Document the previously-undocumented {file:SASS_REFERENCE.md#line-option `:line` option},
1432
- which allows the number of the first line of a Sass file to be set for error reporting.
1433
-
1434
- ## 2.2.3
1435
-
1436
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.3).
1437
-
1438
- Sass 2.2.3 prints line numbers for warnings about selectors
1439
- with no properties.
1440
-
1441
- ## 2.2.2
1442
-
1443
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.2).
1444
-
1445
- Sass 2.2.2 is a minor bug-fix release.
1446
- Notable changes include better parsing of mixin definitions and inclusions
1447
- and better support for Ruby 1.9.
1448
-
1449
- ## 2.2.1
1450
-
1451
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.1).
1452
-
1453
- Sass 2.2.1 is a minor bug-fix release.
1454
-
1455
- ### Must Read!
1456
-
1457
- * It used to be acceptable to use `-` immediately following variable names,
1458
- without any whitespace in between (for example, `!foo-!bar`).
1459
- This is now deprecated, so that in the future variables with hyphens
1460
- can be supported. Surround `-` with spaces.
1461
-
1462
- ## 2.2.0
1463
-
1464
- [Tagged on GitHub](http://github.com/nex3/haml/commit/2.2.0).
1465
-
1466
- The 2.2 release marks a significant step in the evolution of the Sass
1467
- language. The focus has been to increase the power of Sass to keep
1468
- your stylesheets maintainable by allowing new forms of abstraction to
1469
- be created within your stylesheets and the stylesheets provided by
1470
- others that you can download and import into your own. The fundamental
1471
- units of abstraction in Sass are variables and mixins. Please read
1472
- below for a list of changes:
1473
-
1474
- ### Must Read!
1475
-
1476
- * Sass Comments (//) used to only comment out a single line. This was deprecated
1477
- in 2.0.10 and starting in 2.2, Sass comments will comment out any lines indented
1478
- under them. Upgrade to 2.0.10 in order to see deprecation warnings where this change
1479
- affects you.
1480
-
1481
- * Implicit Strings within SassScript are now deprecated and will be removed in 2.4.
1482
- For example: `border= !width solid #00F` should now be written as `border: #{!width} solid #00F`
1483
- or as `border= !width "solid" #00F`. After upgrading to 2.2, you will see deprecation warnings
1484
- if you have sass files that use implicit strings.
1485
-
1486
-
1487
- ### Sass Syntax Changes
1488
-
1489
- #### Flexible Indentation
1490
-
1491
- The indentation of Sass documents is now flexible. The first indent
1492
- that is detected will determine the indentation style for that
1493
- document. Tabs and spaces may never be mixed, but within a document,
1494
- you may choose to use tabs or a flexible number of spaces.
1495
-
1496
- #### Multiline Sass Comments
1497
-
1498
- Sass Comments (//) will now comment out whatever is indented beneath
1499
- them. Previously they were single line when used at the top level of a
1500
- document. Upgrading to the latest stable version will give you
1501
- deprecation warnings if you have silent comments with indentation
1502
- underneath them.
1503
-
1504
- #### Mixin Arguments
1505
-
1506
- Sass Mixins now accept any number of arguments. To define a mixin with
1507
- arguments, specify the arguments as a comma-delimited list of
1508
- variables like so:
1509
-
1510
- =my-mixin(!arg1, !arg2, !arg3)
1511
-
1512
- As before, the definition of the mixin is indented below the mixin
1513
- declaration. The variables declared in the argument list may be used
1514
- and will be bound to the values passed to the mixin when it is
1515
- invoked. Trailing arguments may have default values as part of the
1516
- declaration:
1517
-
1518
- =my-mixin(!arg1, !arg2 = 1px, !arg3 = blue)
1519
-
1520
- In the example above, the mixin may be invoked by passing 1, 2 or 3
1521
- arguments to it. A similar syntax is used to invoke a mixin that
1522
- accepts arguments:
1523
-
1524
- div.foo
1525
- +my-mixin(1em, 3px)
1526
-
1527
- When a mixin has no required arguments, the parenthesis are optional.
1528
-
1529
- The default values for mixin arguments are evaluated in the global
1530
- context at the time when the mixin is invoked, they may also reference
1531
- the previous arguments in the declaration. For example:
1532
-
1533
- !default_width = 30px
1534
- =my-fancy-mixin(!width = !default_width, !height = !width)
1535
- width= !width
1536
- height= !height
1537
-
1538
- .default-box
1539
- +my-fancy-mixin
1540
-
1541
- .square-box
1542
- +my-fancy-mixin(50px)
1543
-
1544
- .rectangle-box
1545
- +my-fancy-mixin(25px, 75px)
1546
-
1547
- !default_width = 10px
1548
- .small-default-box
1549
- +my-fancy-mixin
1550
-
1551
-
1552
- compiles to:
1553
-
1554
- .default-box {
1555
- width: 30px;
1556
- height: 30px; }
1557
-
1558
- .square-box {
1559
- width: 50px;
1560
- height: 50px; }
1561
-
1562
- .rectangle-box {
1563
- width: 25px;
1564
- height: 75px; }
1565
-
1566
- .small-default-box {
1567
- width: 10px;
1568
- height: 10px; }
1569
-
1570
-
1571
- ### Sass, Interactive
1572
-
1573
- The sass command line option -i now allows you to quickly and
1574
- interactively experiment with SassScript expressions. The value of the
1575
- expression you enter will be printed out after each line. Example:
1576
-
1577
- $ sass -i
1578
- >> 5px
1579
- 5px
1580
- >> 5px + 10px
1581
- 15px
1582
- >> !five_pixels = 5px
1583
- 5px
1584
- >> !five_pixels + 10px
1585
- 15px
1586
-
1587
- ### SassScript
1588
-
1589
- The features of SassScript have been greatly enhanced with new control
1590
- directives, new fundamental data types, and variable scoping.
1591
-
1592
- #### New Data Types
1593
-
1594
- SassScript now has four fundamental data types:
1595
-
1596
- 1. Number
1597
- 2. String
1598
- 3. Boolean (New in 2.2)
1599
- 4. Colors
1600
-
1601
- #### More Flexible Numbers
1602
-
1603
- Like JavaScript, SassScript numbers can now change between floating
1604
- point and integers. No explicit casting or decimal syntax is
1605
- required. When a number is emitted into a CSS file it will be rounded
1606
- to the nearest thousandth, however the internal representation
1607
- maintains much higher precision.
1608
-
1609
- #### Improved Handling of Units
1610
-
1611
- While Sass has long supported numbers with units, it now has a much
1612
- deeper understanding of them. The following are examples of legal
1613
- numbers in SassScript:
1614
-
1615
- 0, 1000, 6%, -2px, 5pc, 20em, or 2foo.
1616
-
1617
- Numbers of the same unit may always be added and subtracted. Numbers
1618
- that have units that Sass understands and finds comparable, can be
1619
- combined, taking the unit of the first number. Numbers that have
1620
- non-comparable units may not be added nor subtracted -- any attempt to
1621
- do so will cause an error. However, a unitless number takes on the
1622
- unit of the other number during a mathematical operation. For example:
1623
-
1624
- >> 3mm + 4cm
1625
- 43mm
1626
- >> 4cm + 3mm
1627
- 4.3cm
1628
- >> 3cm + 2in
1629
- 8.08cm
1630
- >> 5foo + 6foo
1631
- 11foo
1632
- >> 4% + 5px
1633
- SyntaxError: Incompatible units: 'px' and '%'.
1634
- >> 5 + 10px
1635
- 15px
1636
-
1637
- Sass allows compound units to be stored in any intermediate form, but
1638
- will raise an error if you try to emit a compound unit into your css
1639
- file.
1640
-
1641
- >> !em_ratio = 1em / 16px
1642
- 0.063em/px
1643
- >> !em_ratio * 32px
1644
- 2em
1645
- >> !em_ratio * 40px
1646
- 2.5em
1647
-
1648
- #### Colors
1649
-
1650
- A color value can be declared using a color name, hexadecimal,
1651
- shorthand hexadecimal, the rgb function, or the hsl function. When
1652
- outputting a color into css, the color name is used, if any, otherwise
1653
- it is emitted as hexadecimal value. Examples:
1654
-
1655
- > #fff
1656
- white
1657
- >> white
1658
- white
1659
- >> #FFFFFF
1660
- white
1661
- >> hsl(180, 100, 100)
1662
- white
1663
- >> rgb(255, 255, 255)
1664
- white
1665
- >> #AAA
1666
- #aaaaaa
1667
-
1668
- Math on color objects is performed piecewise on the rgb
1669
- components. However, these operations rarely have meaning in the
1670
- design domain (mostly they make sense for gray-scale colors).
1671
-
1672
- >> #aaa + #123
1673
- #bbccdd
1674
- >> #333 * 2
1675
- #666666
1676
-
1677
- #### Booleans
1678
-
1679
- Boolean objects can be created by comparison operators or via the
1680
- `true` and `false` keywords. Booleans can be combined using the
1681
- `and`, `or`, and `not` keywords.
1682
-
1683
- >> true
1684
- true
1685
- >> true and false
1686
- false
1687
- >> 5 < 10
1688
- true
1689
- >> not (5 < 10)
1690
- false
1691
- >> not (5 < 10) or not (10 < 5)
1692
- true
1693
- >> 30mm == 3cm
1694
- true
1695
- >> 1px == 1em
1696
- false
1697
-
1698
- #### Strings
1699
-
1700
- Unicode escapes are now allowed within SassScript strings.
1701
-
1702
- ### Control Directives
1703
-
1704
- New directives provide branching and looping within a sass stylesheet
1705
- based on SassScript expressions. See the [Sass
1706
- Reference](SASS_REFERENCE.md.html#control_directives) for complete
1707
- details.
1708
-
1709
- #### @for
1710
-
1711
- The `@for` directive loops over a set of numbers in sequence, defining
1712
- the current number into the variable specified for each loop. The
1713
- `through` keyword means that the last iteration will include the
1714
- number, the `to` keyword means that it will stop just before that
1715
- number.
1716
-
1717
- @for !x from 1px through 5px
1718
- .border-#{!x}
1719
- border-width= !x
1720
-
1721
- compiles to:
1722
-
1723
- .border-1px {
1724
- border-width: 1px; }
1725
-
1726
- .border-2px {
1727
- border-width: 2px; }
1728
-
1729
- .border-3px {
1730
- border-width: 3px; }
1731
-
1732
- .border-4px {
1733
- border-width: 4px; }
1734
-
1735
- .border-5px {
1736
- border-width: 5px; }
1737
-
1738
- #### @if / @else if / @else
1739
-
1740
- The branching directives `@if`, `@else if`, and `@else` let you select
1741
- between several branches of sass to be emitted, based on the result of
1742
- a SassScript expression. Example:
1743
-
1744
- !type = "monster"
1745
- p
1746
- @if !type == "ocean"
1747
- color: blue
1748
- @else if !type == "matador"
1749
- color: red
1750
- @else if !type == "monster"
1751
- color: green
1752
- @else
1753
- color: black
1754
-
1755
- is compiled to:
1756
-
1757
- p {
1758
- color: green; }
1759
-
1760
- #### @while
1761
-
1762
- The `@while` directive lets you iterate until a condition is
1763
- met. Example:
1764
-
1765
- !i = 6
1766
- @while !i > 0
1767
- .item-#{!i}
1768
- width = 2em * !i
1769
- !i = !i - 2
1770
-
1771
- is compiled to:
1772
-
1773
- .item-6 {
1774
- width: 12em; }
1775
-
1776
- .item-4 {
1777
- width: 8em; }
1778
-
1779
- .item-2 {
1780
- width: 4em; }
1781
-
1782
- ### Variable Scoping
1783
-
1784
- The term "constant" has been renamed to "variable." Variables can be
1785
- declared at any scope (a.k.a. nesting level) and they will only be
1786
- visible to the code until the next outdent. However, if a variable is
1787
- already defined in a higher level scope, setting it will overwrite the
1788
- value stored previously.
1789
-
1790
- In this code, the `!local_var` variable is scoped and hidden from
1791
- other higher level scopes or sibling scopes:
1792
-
1793
- .foo
1794
- .bar
1795
- !local_var = 1px
1796
- width= !local_var
1797
- .baz
1798
- // this will raise an undefined variable error.
1799
- width= !local_var
1800
- // as will this
1801
- width= !local_var
1802
-
1803
- In this example, since the `!global_var` variable is first declared at
1804
- a higher scope, it is shared among all lower scopes:
1805
-
1806
- !global_var = 1px
1807
- .foo
1808
- .bar
1809
- !global_var = 2px
1810
- width= !global_var
1811
- .baz
1812
- width= !global_var
1813
- width= !global_var
1814
-
1815
- compiles to:
1816
-
1817
- .foo {
1818
- width: 2px; }
1819
- .foo .bar {
1820
- width: 2px; }
1821
- .foo .baz {
1822
- width: 2px; }
1823
-
1824
-
1825
- ### Interpolation
1826
-
1827
- Interpolation has been added. This allows SassScript to be used to
1828
- create dynamic properties and selectors. It also cleans up some uses
1829
- of dynamic values when dealing with compound properties. Using
1830
- interpolation, the result of a SassScript expression can be placed
1831
- anywhere:
1832
-
1833
- !x = 1
1834
- !d = 3
1835
- !property = "border"
1836
- div.#{!property}
1837
- #{!property}: #{!x + !d}px solid
1838
- #{!property}-color: blue
1839
-
1840
- is compiled to:
1841
-
1842
- div.border {
1843
- border: 4px solid;
1844
- border-color: blue; }
1845
-
1846
- ### Sass Functions
1847
-
1848
- SassScript defines some useful functions that are called using the
1849
- normal CSS function syntax:
1850
-
1851
- p
1852
- color = hsl(0, 100%, 50%)
1853
-
1854
- is compiled to:
1855
-
1856
- #main {
1857
- color: #ff0000; }
1858
-
1859
- The following functions are provided: `hsl`, `percentage`, `round`,
1860
- `ceil`, `floor`, and `abs`. You can define additional functions in
1861
- ruby.
1862
-
1863
- See {Sass::Script::Functions} for more information.
1864
-
1865
-
1866
- ### New Options
1867
-
1868
- #### `:line_comments`
1869
-
1870
- To aid in debugging, You may set the `:line_comments` option to
1871
- `true`. This will cause the sass engine to insert a comment before
1872
- each selector saying where that selector was defined in your sass
1873
- code.
1874
-
1875
- #### `:template_location`
1876
-
1877
- The {Sass::Plugin} `:template_location` option now accepts a hash of
1878
- sass paths to corresponding css paths. Please be aware that it is
1879
- possible to import sass files between these separate locations -- they
1880
- are not isolated from each other.
1881
-
1882
- ### Miscellaneous Features
1883
-
1884
- #### `@debug` Directive
1885
-
1886
- The `@debug` directive accepts a SassScript expression and emits the
1887
- value of that expression to the terminal (stderr).
1888
-
1889
- Example:
1890
-
1891
- @debug 1px + 2px
1892
-
1893
- During compilation the following will be printed:
1894
-
1895
- Line 1 DEBUG: 3px
1896
-
1897
- #### Ruby 1.9 Support
1898
-
1899
- Sass now fully supports Ruby 1.9.1.
1900
-
1901
- #### Sass Cache
1902
-
1903
- By default, Sass caches compiled templates and
1904
- [partials](SASS_REFERENCE.md.html#partials). This dramatically speeds
1905
- up re-compilation of large collections of Sass files, and works best
1906
- if the Sass templates are split up into separate files that are all
1907
- [`@import`](SASS_REFERENCE.md.html#import)ed into one large file.
1908
-
1909
- Without a framework, Sass puts the cached templates in the
1910
- `.sass-cache` directory. In Rails and Merb, they go in
1911
- `tmp/sass-cache`. The directory can be customized with the
1912
- [`:cache_location`](#cache_location-option) option. If you don't want
1913
- Sass to use caching at all, set the [`:cache`](#cache-option) option
1914
- to `false`.