compass 0.12.2 → 0.13.alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. data/README.markdown +5 -5
  2. data/Rakefile +14 -9
  3. data/VERSION.yml +5 -4
  4. data/features/command_line.feature +8 -50
  5. data/features/step_definitions/command_line_steps.rb +3 -2
  6. data/frameworks/compass/stylesheets/compass/_css3.scss +3 -0
  7. data/frameworks/compass/stylesheets/compass/_support.scss +4 -4
  8. data/frameworks/compass/stylesheets/compass/css3/_animation.scss +121 -0
  9. data/frameworks/compass/stylesheets/compass/css3/_appearance.scss +14 -9
  10. data/frameworks/compass/stylesheets/compass/css3/_background-clip.scss +32 -36
  11. data/frameworks/compass/stylesheets/compass/css3/_background-origin.scss +32 -35
  12. data/frameworks/compass/stylesheets/compass/css3/_background-size.scss +12 -15
  13. data/frameworks/compass/stylesheets/compass/css3/_border-radius.scss +27 -48
  14. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +22 -35
  15. data/frameworks/compass/stylesheets/compass/css3/_box-sizing.scss +12 -8
  16. data/frameworks/compass/stylesheets/compass/css3/_box.scss +58 -83
  17. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +113 -71
  18. data/frameworks/compass/stylesheets/compass/css3/_filter.scss +38 -18
  19. data/frameworks/compass/stylesheets/compass/css3/_flexbox.scss +294 -0
  20. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +13 -22
  21. data/frameworks/compass/stylesheets/compass/css3/_images.scss +45 -48
  22. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +1 -1
  23. data/frameworks/compass/stylesheets/compass/css3/_regions.scss +12 -8
  24. data/frameworks/compass/stylesheets/compass/css3/_selection.scss +31 -0
  25. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +226 -2
  26. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +21 -26
  27. data/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss +3 -3
  28. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +8 -8
  29. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +3 -3
  30. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +43 -4
  31. data/frameworks/compass/stylesheets/compass/typography/_units.scss +152 -0
  32. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +180 -102
  33. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +5 -3
  34. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +6 -3
  35. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +1 -1
  36. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -3
  37. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +2 -2
  38. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +32 -13
  39. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +14 -9
  40. data/lib/compass/actions.rb +5 -1
  41. data/lib/compass/commands/project_base.rb +7 -1
  42. data/lib/compass/commands/update_project.rb +2 -3
  43. data/lib/compass/commands/watch_project.rb +11 -113
  44. data/lib/compass/commands.rb +1 -1
  45. data/lib/compass/compiler.rb +6 -0
  46. data/lib/compass/configuration/data.rb +1 -1
  47. data/lib/compass/configuration/helpers.rb +2 -0
  48. data/lib/compass/exec/global_options_parser.rb +1 -1
  49. data/lib/compass/exec/project_options_parser.rb +13 -1
  50. data/lib/compass/logger.rb +2 -0
  51. data/lib/compass/sass_extensions/functions/cross_browser_support.rb +1 -1
  52. data/lib/compass/sass_extensions/functions/env.rb +18 -0
  53. data/lib/compass/sass_extensions/functions/gradient_support.rb +101 -29
  54. data/lib/compass/sass_extensions/functions/image_size.rb +2 -1
  55. data/lib/compass/sass_extensions/functions/math.rb +14 -2
  56. data/lib/compass/sass_extensions/functions/sprites.rb +82 -22
  57. data/lib/compass/sass_extensions/functions/urls.rb +37 -6
  58. data/lib/compass/sass_extensions/functions/utility.rb +10 -0
  59. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +5 -1
  60. data/lib/compass/sass_extensions/sprites/engines.rb +3 -3
  61. data/lib/compass/sass_extensions/sprites/image.rb +7 -2
  62. data/lib/compass/sass_extensions/sprites/image_methods.rb +5 -1
  63. data/lib/compass/sass_extensions/sprites/images.rb +29 -0
  64. data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
  65. data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
  66. data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
  67. data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
  68. data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
  69. data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
  70. data/lib/compass/sass_extensions/sprites/sprite_map.rb +5 -1
  71. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +9 -14
  72. data/lib/compass/sass_extensions/sprites.rb +2 -0
  73. data/lib/compass/sprite_importer/content.erb +29 -24
  74. data/lib/compass/sprite_importer.rb +7 -11
  75. data/lib/compass/watcher/compiler.rb +59 -0
  76. data/lib/compass/watcher/project_watcher.rb +111 -0
  77. data/lib/compass/watcher/watch.rb +33 -0
  78. data/lib/compass/watcher.rb +11 -0
  79. data/lib/compass.rb +2 -2
  80. data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
  81. data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
  82. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +7 -0
  83. data/test/fixtures/stylesheets/busted_font_urls/fonts/grid.ttf +0 -0
  84. data/test/fixtures/stylesheets/busted_font_urls/fonts/sub/dk.ttf +0 -0
  85. data/test/fixtures/stylesheets/busted_font_urls/sass/screen.sass +11 -0
  86. data/test/fixtures/stylesheets/busted_font_urls/tmp/screen.css +7 -0
  87. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +33 -0
  88. data/test/fixtures/stylesheets/compass/css/animation.css +33 -0
  89. data/test/fixtures/stylesheets/compass/css/background-clip.css +5 -0
  90. data/test/fixtures/stylesheets/compass/css/background-origin.css +15 -0
  91. data/test/fixtures/stylesheets/compass/css/background-size.css +24 -0
  92. data/test/fixtures/stylesheets/compass/css/columns.css +32 -61
  93. data/test/fixtures/stylesheets/compass/css/flexbox.css +121 -0
  94. data/test/fixtures/stylesheets/compass/css/gradients.css +65 -37
  95. data/test/fixtures/stylesheets/compass/css/grid_background.css +10 -17
  96. data/test/fixtures/stylesheets/compass/css/hyphenation.css +4 -2
  97. data/test/fixtures/stylesheets/compass/css/lists.css +5 -5
  98. data/test/fixtures/stylesheets/compass/css/pie.css +0 -3
  99. data/test/fixtures/stylesheets/compass/css/regions.css +4 -2
  100. data/test/fixtures/stylesheets/compass/css/selection.css +13 -0
  101. data/test/fixtures/stylesheets/compass/css/sprites.css +251 -250
  102. data/test/fixtures/stylesheets/compass/css/text_shadow.css +6 -6
  103. data/test/fixtures/stylesheets/compass/css/transition.css +6 -0
  104. data/test/fixtures/stylesheets/compass/css/units.css +30 -0
  105. data/test/fixtures/stylesheets/compass/css/user-interface.css +22 -1
  106. data/test/fixtures/stylesheets/compass/css/utilities.css +15 -0
  107. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +196 -27
  108. data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
  109. data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +19 -0
  110. data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
  111. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +4 -2
  112. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +10 -0
  113. data/test/fixtures/stylesheets/compass/sass/background-size.scss +12 -0
  114. data/test/fixtures/stylesheets/compass/sass/columns.scss +10 -9
  115. data/test/fixtures/stylesheets/compass/sass/flexbox.scss +44 -0
  116. data/test/fixtures/stylesheets/compass/sass/gradients.sass +32 -3
  117. data/test/fixtures/stylesheets/compass/sass/selection.scss +13 -0
  118. data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -1
  119. data/test/fixtures/stylesheets/compass/sass/units.scss +45 -0
  120. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +13 -1
  121. data/test/fixtures/stylesheets/compass/sass/utilities.scss +10 -0
  122. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +208 -7
  123. data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
  124. data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
  125. data/test/fixtures/stylesheets/envtest/tmp/env.css +4 -4
  126. data/test/fixtures/stylesheets/valid/css/simple.css +4 -0
  127. data/test/helpers/diff.rb +1 -1
  128. data/test/integrations/compass_test.rb +23 -14
  129. data/test/integrations/sprites_test.rb +305 -63
  130. data/test/test_helper.rb +4 -13
  131. data/test/units/command_line_test.rb +0 -2
  132. data/test/units/compass_module_test.rb +1 -1
  133. data/test/units/configuration_test.rb +12 -0
  134. data/test/units/regressions_test.rb +8 -8
  135. data/test/units/sass_extensions_test.rb +13 -11
  136. data/test/units/sass_extenstions/gradients_test.rb +33 -0
  137. data/test/units/sprites/image_test.rb +5 -0
  138. data/test/units/sprites/images_test.rb +46 -0
  139. data/test/units/sprites/layout_test.rb +29 -4
  140. data/test/units/watcher/compiler_test.rb +39 -0
  141. data/test/units/watcher/project_watcher_test.rb +73 -0
  142. data/test/units/watcher/watch_test.rb +42 -0
  143. metadata +137 -241
  144. data/examples/compass/images/emblem-a043c4f148.png +0 -0
  145. data/examples/compass/images/flag-03c3b29b35.png +0 -0
  146. data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
  147. data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
  148. data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
  149. data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
  150. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
  151. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
  152. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
  153. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
  154. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
  155. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
  156. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
  157. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
  158. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
  159. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
  160. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
  161. data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
  162. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
  163. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
  164. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
  165. data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
  166. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -83
  167. data/frameworks/blueprint/templates/basic/grid.png +0 -0
  168. data/frameworks/blueprint/templates/basic/ie.sass +0 -4
  169. data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
  170. data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
  171. data/frameworks/blueprint/templates/basic/print.sass +0 -4
  172. data/frameworks/blueprint/templates/basic/screen.sass +0 -12
  173. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  174. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  175. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  176. data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
  177. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
  178. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  179. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  180. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  181. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  182. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  183. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  184. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  185. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  186. data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
  187. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
  188. data/frameworks/blueprint/templates/project/grid.png +0 -0
  189. data/frameworks/blueprint/templates/project/ie.sass +0 -16
  190. data/frameworks/blueprint/templates/project/manifest.rb +0 -30
  191. data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
  192. data/frameworks/blueprint/templates/project/print.sass +0 -8
  193. data/frameworks/blueprint/templates/project/screen.sass +0 -46
  194. data/frameworks/blueprint/templates/semantic/grid.png +0 -0
  195. data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
  196. data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
  197. data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
  198. data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
  199. data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
  200. data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
  201. data/frameworks/blueprint/templates/semantic/print.sass +0 -5
  202. data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
  203. data/lib/compass/commands/generate_grid_background.rb +0 -96
  204. data/lib/compass/grid_builder.rb +0 -102
  205. data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
  206. data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
  207. data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
  208. data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -815
  209. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -56
  210. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
  211. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -11
  212. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
  213. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
  214. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
  215. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
  216. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
  217. data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
  218. data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
  219. data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
  220. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -69
  221. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -42
  222. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
  223. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
  224. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
  225. data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
  226. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  227. data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
  228. data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
  229. data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
  230. data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
  231. data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
  232. data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
  233. data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
  234. data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
  235. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
  236. data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
  237. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
  238. data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
  239. data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
  240. data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
  241. data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
  242. data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
  243. data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
  244. data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
  245. data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
  246. data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
  247. data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
  248. data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
  249. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
  250. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
  251. data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
  252. data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
  253. data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
  254. data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
  255. data/test/fixtures/stylesheets/compass/images/flag-s4798b5a210.png +0 -0
  256. data/test/units/compass_png_test.rb +0 -46
  257. /data/{examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf → test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf} +0 -0
@@ -8,12 +8,12 @@
8
8
  text-shadow: 0px 0px 1px #cccccc; }
9
9
 
10
10
  .color-first-with-params {
11
- text-shadow: 2px 2px 5px #cccccc, 2px 2px 5px 2px #cccccc;
12
- text-shadow: 2px 2px 5px 2px #cccccc, 2px 2px 5px 2px #cccccc; }
11
+ text-shadow: 2px 2px 5px #cccccc;
12
+ text-shadow: 2px 2px 5px 2px #cccccc; }
13
13
 
14
14
  .color-last-with-params {
15
- text-shadow: 2px 2px 5px #cccccc, 2px 2px 5px 2px #cccccc;
16
- text-shadow: 2px 2px 5px 2px #cccccc, 2px 2px 5px 2px #cccccc; }
15
+ text-shadow: 2px 2px 5px #cccccc;
16
+ text-shadow: 2px 2px 5px 2px #cccccc; }
17
17
 
18
18
  .default-text-shadow {
19
19
  text-shadow: 0px 0px 1px #aaaaaa; }
@@ -25,5 +25,5 @@
25
25
  text-shadow: 4px 4px 10px #444444, 2px 2px 5px #222222; }
26
26
 
27
27
  .multiple-text-shadows-with-spread {
28
- text-shadow: 4px 4px 10px #444444, 4px 4px 10px 1px #444444, 2px 2px 5px #222222, 2px 2px 5px 3px #222222;
29
- text-shadow: 4px 4px 10px 1px #444444, 4px 4px 10px 1px #444444, 2px 2px 5px 3px #222222, 2px 2px 5px 3px #222222; }
28
+ text-shadow: 4px 4px 10px #444444, 2px 2px 5px #222222;
29
+ text-shadow: 4px 4px 10px 1px #444444, 2px 2px 5px 3px #222222; }
@@ -72,6 +72,12 @@
72
72
  -o-transition-property: opacity, -o-transform, left;
73
73
  transition-property: opacity, transform, left; }
74
74
 
75
+ .default-transition {
76
+ -webkit-transition: all 1s;
77
+ -moz-transition: all 1s;
78
+ -o-transition: all 1s;
79
+ transition: all 1s; }
80
+
75
81
  .transition-timing {
76
82
  -webkit-transition-timing-function: ease-in;
77
83
  -moz-transition-timing-function: ease-in;
@@ -0,0 +1,30 @@
1
+ .foo {
2
+ width: 600px;
3
+ height: 200px; }
4
+
5
+ .foo .test {
6
+ /* 16px for margins should be 1em */
7
+ margin-top: 1em;
8
+ /* 16px for margins should be 2.66667% (relative to parent's width) */
9
+ margin-right: 2.66667%;
10
+ /* 1.35em for margins should be 3.6% (relative to parent's width,
11
+ * even for top and bottom margins) */
12
+ margin-bottom: 3.6%;
13
+ /* 16px for margins should be 2ex */
14
+ margin-left: 2ex; }
15
+
16
+ .bar {
17
+ font-size: 18px;
18
+ width: 360px; }
19
+
20
+ .bar .test {
21
+ /* 150% for line-height should be 27px */
22
+ line-height: 27px;
23
+ /* 1px should always be .0625rem for this page */
24
+ border-top: 0.0625rem;
25
+ /* 2em for this element should be 9.525mm (relative to own font-size, as inherited) */
26
+ margin-top: 9.525mm;
27
+ /* 2px for margins should be .55556% (relative to parent's width) */
28
+ margin-right: 0.55556%;
29
+ /* 1rem should always be 16px for this page, even when own font-size is 18px */
30
+ margin-bottom: 16px; }
@@ -1,4 +1,25 @@
1
1
  .user-select {
2
+ -moz-user-select: -moz-none;
2
3
  -webkit-user-select: none;
3
- -moz-user-select: none;
4
+ -ms-user-select: none;
4
5
  user-select: none; }
6
+
7
+ ::-webkit-input-placeholder {
8
+ color: #bfbfbf;
9
+ font-style: italic; }
10
+ :-moz-placeholder {
11
+ color: #bfbfbf;
12
+ font-style: italic; }
13
+ :-ms-input-placeholder {
14
+ color: #bfbfbf;
15
+ font-style: italic; }
16
+
17
+ .input-placeholder::-webkit-input-placeholder {
18
+ color: #bfbfbf;
19
+ font-style: italic; }
20
+ .input-placeholder:-moz-placeholder {
21
+ color: #bfbfbf;
22
+ font-style: italic; }
23
+ .input-placeholder:-ms-input-placeholder {
24
+ color: #bfbfbf;
25
+ font-style: italic; }
@@ -54,3 +54,18 @@ tfoot th, tfoot td {
54
54
  background-color: white; }
55
55
  tfoot th.even, tfoot th:nth-child(2n), tfoot td.even, tfoot td:nth-child(2n) {
56
56
  background-color: yellow; }
57
+
58
+ p.ellipsis {
59
+ white-space: nowrap;
60
+ overflow: hidden;
61
+ -ms-text-overflow: ellipsis;
62
+ -o-text-overflow: ellipsis;
63
+ text-overflow: ellipsis; }
64
+
65
+ p.ellipsis.moz {
66
+ white-space: nowrap;
67
+ overflow: hidden;
68
+ -ms-text-overflow: ellipsis;
69
+ -o-text-overflow: ellipsis;
70
+ text-overflow: ellipsis;
71
+ -moz-binding: url('/tmp/xml/ellipsis.xml#ellipsis'); }
@@ -1,45 +1,214 @@
1
- * html {
2
- font-size: 87.5%; }
3
-
4
1
  html {
5
- font-size: 14px;
6
- line-height: 1.143em; }
2
+ font-size: 87.5%;
3
+ line-height: 1.14286em; }
7
4
 
8
5
  .small {
9
- font-size: 0.857em;
10
- line-height: 1.333em; }
6
+ font-size: 0.85714em;
7
+ line-height: 1.33333em; }
11
8
 
12
9
  .padded {
13
- margin-top: 1.143em;
14
- padding-top: 1.143em;
15
- padding-bottom: 1.143em;
16
- margin-bottom: 1.143em; }
10
+ margin-top: 1.14286em;
11
+ padding-top: 1.14286em;
12
+ padding-bottom: 1.14286em;
13
+ margin-bottom: 1.14286em; }
17
14
 
18
15
  .small-padded {
19
- font-size: 0.857em;
20
- line-height: 1.333em;
21
- margin-top: 1.333em;
22
- padding-top: 1.333em;
23
- padding-bottom: 1.333em;
24
- margin-bottom: 1.333em; }
16
+ font-size: 0.85714em;
17
+ line-height: 1.33333em;
18
+ margin-top: 1.33333em;
19
+ padding-top: 1.33333em;
20
+ padding-bottom: 1.33333em;
21
+ margin-bottom: 1.33333em; }
25
22
 
26
23
  .borders {
24
+ border-top-width: 0.07143em;
27
25
  border-top-style: solid;
28
- border-top-width: 0.071em;
29
- padding-top: 1.071em;
26
+ padding-top: 1.07143em;
27
+ border-bottom-width: 0.07143em;
30
28
  border-bottom-style: solid;
31
- border-bottom-width: 0.071em;
32
- padding-bottom: 1.071em; }
29
+ padding-bottom: 1.07143em; }
33
30
 
34
31
  .large-borders {
35
- font-size: 1.714em;
32
+ font-size: 1.71429em;
36
33
  line-height: 2em;
37
- border-top-style: solid;
38
34
  border-top-width: 0.25em;
39
- padding-top: 0.417em;
40
- border-bottom-style: solid;
35
+ border-top-style: solid;
36
+ padding-top: 0.41667em;
41
37
  border-bottom-width: 0.25em;
42
- padding-bottom: 0.417em; }
38
+ border-bottom-style: solid;
39
+ padding-bottom: 0.41667em; }
43
40
 
44
41
  .reset {
45
- line-height: 1.143em; }
42
+ line-height: 1.14286em; }
43
+
44
+ /* New test using em output */
45
+ html {
46
+ font-size: 112.5%;
47
+ line-height: 1.4em; }
48
+
49
+ .container {
50
+ background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
51
+ background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
52
+ background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
53
+ background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
54
+ -webkit-background-size: 100% 1.4em;
55
+ -moz-background-size: 100% 1.4em;
56
+ -o-background-size: 100% 1.4em;
57
+ background-size: 100% 1.4em;
58
+ background-position: left top; }
59
+
60
+ p {
61
+ margin-top: 1.4em;
62
+ margin-bottom: 1.4em; }
63
+
64
+ th,
65
+ td {
66
+ padding-top: 0.35em;
67
+ padding-bottom: 0.35em; }
68
+
69
+ .caption {
70
+ font-size: 0.72222em;
71
+ line-height: 1.55077em; }
72
+
73
+ .spaced-out {
74
+ line-height: 2.1em; }
75
+
76
+ blockquote {
77
+ margin-top: 1.4em;
78
+ margin-bottom: 1.4em;
79
+ padding: 0 1.4em; }
80
+
81
+ .fig-quote > blockquote {
82
+ margin-bottom: 0.7em; }
83
+ .fig-quote .source {
84
+ font-size: 0.72222em;
85
+ line-height: 1.93846em;
86
+ margin-bottom: 0.96923em; }
87
+
88
+ .panel {
89
+ font-size: 0.88889em;
90
+ line-height: 1.575em;
91
+ border-width: 0.0625em;
92
+ border-style: solid;
93
+ border-color: #aaaaaa;
94
+ padding: 1.5125em; }
95
+
96
+ /* New using rem output with pixel fallbacks */
97
+ html {
98
+ font-size: 112.5%;
99
+ line-height: 1.4em; }
100
+
101
+ .container {
102
+ background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
103
+ background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
104
+ background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
105
+ background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
106
+ -webkit-background-size: 100% 1.4rem;
107
+ -moz-background-size: 100% 1.4rem;
108
+ -o-background-size: 100% 1.4rem;
109
+ background-size: 100% 1.4rem;
110
+ background-position: left top; }
111
+
112
+ p {
113
+ margin-top: 25px;
114
+ margin-top: 1.4rem;
115
+ margin-bottom: 25px;
116
+ margin-bottom: 1.4rem; }
117
+
118
+ th,
119
+ td {
120
+ padding-top: 6px;
121
+ padding-top: 0.35rem;
122
+ padding-bottom: 6px;
123
+ padding-bottom: 0.35rem; }
124
+
125
+ /* Incremental leading made easy! */
126
+ .caption {
127
+ font-size: 15px;
128
+ font-size: 0.85rem;
129
+ line-height: 20px;
130
+ line-height: 1.12rem; }
131
+
132
+ .spaced-out {
133
+ line-height: 38px;
134
+ line-height: 2.1rem; }
135
+
136
+ blockquote {
137
+ margin-top: 25px;
138
+ margin-top: 1.4rem;
139
+ margin-bottom: 25px;
140
+ margin-bottom: 1.4rem;
141
+ padding: 0 1.4rem; }
142
+
143
+ .fig-quote > blockquote {
144
+ margin-bottom: 13px;
145
+ margin-bottom: 0.7rem; }
146
+ .fig-quote .source {
147
+ font-size: 15px;
148
+ font-size: 0.85rem;
149
+ line-height: 25px;
150
+ line-height: 1.4rem;
151
+ margin-bottom: 13px;
152
+ margin-bottom: 0.7rem; }
153
+
154
+ .panel {
155
+ border-width: 1px;
156
+ border-width: 0.05556rem;
157
+ border-style: solid;
158
+ border-color: #aaaaaa;
159
+ padding: 24px;
160
+ padding: 1.34444rem; }
161
+
162
+ /* New using px output */
163
+ * html {
164
+ font-size: 112.5%; }
165
+
166
+ html {
167
+ font-size: 18px;
168
+ line-height: 25px; }
169
+
170
+ .container {
171
+ background-image: -webkit-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
172
+ background-image: -moz-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
173
+ background-image: -o-linear-gradient(bottom, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
174
+ background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5) 5%, rgba(0, 0, 0, 0) 5%);
175
+ -webkit-background-size: 100% 25px;
176
+ -moz-background-size: 100% 25px;
177
+ -o-background-size: 100% 25px;
178
+ background-size: 100% 25px;
179
+ background-position: left top; }
180
+
181
+ p {
182
+ margin-top: 25px;
183
+ margin-bottom: 25px; }
184
+
185
+ th,
186
+ td {
187
+ padding-top: 6px;
188
+ padding-bottom: 6px; }
189
+
190
+ /* Incremental leading made easy! */
191
+ .caption {
192
+ font-size: 15px;
193
+ line-height: 20px; }
194
+
195
+ .spaced-out {
196
+ line-height: 37px; }
197
+
198
+ blockquote {
199
+ margin-top: 25px;
200
+ margin-bottom: 25px;
201
+ padding: 0 25px; }
202
+
203
+ .fig-quote > blockquote {
204
+ margin-bottom: 12px; }
205
+ .fig-quote .source {
206
+ font-size: 15px;
207
+ line-height: 25px;
208
+ margin-bottom: 12px; }
209
+
210
+ .panel {
211
+ border-width: 1px;
212
+ border-style: solid;
213
+ border-color: #aaaaaa;
214
+ padding: 24px; }
@@ -0,0 +1,19 @@
1
+ @import "compass/css3/animation";
2
+ @import "compass/css3/opacity";
3
+
4
+ $legacy-support-for-ie8: true;
5
+ $legacy-support-for-ie7: true;
6
+ $legacy-support-for-ie6: true;
7
+
8
+ @include keyframes(test) {
9
+ 0%, 100% {
10
+ @include opacity(1);
11
+ }
12
+ 50% {
13
+ @include opacity(0);
14
+ }
15
+ }
16
+
17
+ .animation {
18
+ @include animation(test);
19
+ }
@@ -0,0 +1,13 @@
1
+ @import "compass/css3/animation";
2
+
3
+ @include keyframes(test) {
4
+ 0%, 100% {
5
+ background-color: red; }
6
+ 50% {
7
+ background-color: blue;
8
+ }
9
+ }
10
+
11
+ .animation {
12
+ @include animation(test);
13
+ }
@@ -2,7 +2,9 @@
2
2
 
3
3
  .background-clip { @include background-clip('border-box'); }
4
4
 
5
- .background-clip-khtml {
5
+ .background-clip-multiple { @include background-clip('border-box', padding-box, content-box); }
6
+
7
+ .background-clip-khtml {
6
8
  $experimental-support-for-khtml:true;
7
- @include background-clip('border-box');
9
+ @include background-clip(border-box);
8
10
  }
@@ -0,0 +1,10 @@
1
+ @import "compass/css3/background-origin";
2
+
3
+ .background-origin { @include background-origin('border-box'); }
4
+
5
+ .background-origin-multiple { @include background-origin('border-box', padding-box, content-box); }
6
+
7
+ .background-origin-khtml {
8
+ $experimental-support-for-khtml:true;
9
+ @include background-origin(border-box);
10
+ }
@@ -0,0 +1,12 @@
1
+ @import "compass/css3/background-size";
2
+
3
+ .background-size-default { @include background-size; }
4
+
5
+ .background-size-single { @include background-size(50% 25%); }
6
+
7
+ .background-size-multiple { @include background-size(4em 3em, $default-background-size, 50%); }
8
+
9
+ .background-size-khtml {
10
+ $experimental-support-for-khtml:true;
11
+ @include background-size;
12
+ }
@@ -4,14 +4,15 @@
4
4
  .column-count { @include column-count(5); }
5
5
  .column-gap { @include column-gap(10px); }
6
6
  .column-width { @include column-width(90px); }
7
+ .column-span { @include column-span(all); }
7
8
  .column-rule-width { @include column-rule-width(1px); }
8
9
  .column-rule-style { @include column-rule-style(dotted); }
9
10
  .column-rule-color { @include column-rule-color(blue); }
10
11
  .column-rule { @include column-rule(1px, solid, blue); }
11
12
  .column-rule-spaced { @include column-rule(1px solid blue); }
12
- .column-break-before{ @include column-break('before', always);}
13
- .column-break-after { @include column-break('after', always); }
14
- .column-break-inside{ @include column-break('inside'); }
13
+ .column-break-before{ @include column-break(before, always);}
14
+ .column-break-after { @include column-break(after, always); }
15
+ .column-break-inside{ @include column-break(inside); }
15
16
  .column-count { @include column-count(5); }
16
17
  .column-gap { @include column-gap(10px); }
17
18
  .column-width { @include column-width(90px); }
@@ -20,9 +21,9 @@
20
21
  .column-rule-color { @include column-rule-color(blue); }
21
22
  .column-rule { @include column-rule(1px, solid, blue); }
22
23
  .column-rule-spaced { @include column-rule(1px solid blue); }
23
- .column-break-before { @include column-break-before(always); }
24
- .column-break-after { @include column-break-after(always); }
25
- .column-break-inside { @include column-break-inside(); }
26
- .column-break-before-shortcut { @include column-break('before', always);}
27
- .column-break-after-shortcut { @include column-break('after', always); }
28
- .column-break-inside-shortcut { @include column-break('inside'); }
24
+ .column-break-before { @include break-before(always); }
25
+ .column-break-after { @include break-after(always); }
26
+ .column-break-inside { @include break-inside(); }
27
+ .column-break-before-shortcut { @include column-break(before, always);}
28
+ .column-break-after-shortcut { @include column-break(after, always); }
29
+ .column-break-inside-shortcut { @include column-break(inside); }
@@ -0,0 +1,44 @@
1
+ @import "compass/css3/flexbox";
2
+
3
+ .flex {
4
+ @include display-flex;
5
+ @include flex-flow(column nowrap);
6
+ @include justify-content(space-between);
7
+ @include align-content(center);
8
+ @include align-items(flex-end);
9
+ }
10
+
11
+ .flex-item {
12
+ @include flex(1 1 auto);
13
+ @include align-self(flex-start);
14
+ @include order(2);
15
+ }
16
+
17
+ $flex-legacy-enabled: true;
18
+ .flex-legacy {
19
+ @include display-flex;
20
+ @include flex-flow(row nowrap);
21
+ @include justify-content(flex-end);
22
+ @include align-content(flex-start);
23
+ @include align-items(baseline);
24
+ }
25
+
26
+ .flex-item-legacy {
27
+ @include flex(2 1 20em);
28
+ @include align-self(stretch);
29
+ @include order(3);
30
+ }
31
+ $flex-wrap-required: true;
32
+ .flex-legacy {
33
+ @include display-flex;
34
+ @include flex-flow(row wrap);
35
+ @include justify-content(space-around);
36
+ @include align-content(stretch);
37
+ @include align-items(flex-start);
38
+ }
39
+
40
+ .flex-item-legacy {
41
+ @include flex(1 2 50%);
42
+ @include align-self(flex-start);
43
+ @include order(1);
44
+ }
@@ -15,7 +15,7 @@ $experimental-support-for-svg: true
15
15
 
16
16
  .bg-linear-gradient-angle2-svg
17
17
  +background-image(linear-gradient(top left, blue, black))
18
-
18
+
19
19
  .bg-all-gradient-types-with-simplification
20
20
  +background-with-css2-fallback(image-url("4x6.png"), linear-gradient(top left, #ddd, #aaa), radial-gradient(center center, #ddd, #aaa 100px), #ffcc00)
21
21
 
@@ -34,10 +34,17 @@ $experimental-support-for-svg: true
34
34
  .transparent-in-linear-gradient
35
35
  +background-image(#fff linear-gradient(top left, transparent, #aaa))
36
36
 
37
- .transparent-in-linear-gradient
38
- +background-image(radial-gradient(center center, #ddd, transparent 100px))
37
+ .currentColor-in-linear-gradient
38
+ +background-image(#fff linear-gradient(top left, transparent, currentColor))
39
+
40
+ .rgba-in-linear-gradient
41
+ +background-image(#fff linear-gradient(top left, rgba(255,255,255,0.8), rgba(0,0,0,0.1)))
39
42
 
40
43
  .bg-radial-gradient
44
+ +background-image(radial-gradient(center center, #ddd, transparent 100px))
45
+
46
+ .currentColor-in-radial-gradient
47
+ +background-image(radial-gradient(center center, currentColor, transparent 100px))
41
48
 
42
49
  .bg-linear-gradient-with-angle
43
50
  +background-image(linear-gradient(-45deg, #ddd, #aaa))
@@ -96,3 +103,25 @@ $experimental-support-for-svg: false
96
103
  .ie-alpha-filter
97
104
  +filter-gradient(rgba(#fff, 1), rgba(#fff, 0))
98
105
 
106
+ .linear-gradient-new
107
+ +background(linear-gradient(to bottom, #ff0000 0%, #88aa44 100%))
108
+
109
+ $use-legacy-gradient-syntax: true
110
+
111
+ .linear-gradient-old
112
+ +background(linear-gradient(top, #ff0000 0%, #88aa44 100%))
113
+
114
+ // This setting is only important when we can't tell which syntax is being used.
115
+ // * That is only ever true when the angle is specified in deg
116
+ // * original webkit syntax does not support deg (see output)
117
+ // * if $support-for-original-webkit-gradients and type-of($angle) == "number" : @WARN
118
+ $use-legacy-gradient-syntax: false
119
+
120
+ .linear-gradient-unknown-new
121
+ +background(linear-gradient(120deg, #ff0000 0%, #88aa44 100%))
122
+
123
+ $use-legacy-gradient-syntax: true
124
+
125
+ .linear-gradient-unknown-old
126
+ +background(linear-gradient(120deg, #ff0000 0%, #88aa44 100%))
127
+
@@ -0,0 +1,13 @@
1
+ @import "compass/css3/selection";
2
+
3
+ @include selection {
4
+ background-color: #fe57a1;
5
+ color: #fff;
6
+ }
7
+
8
+ .hot-pink {
9
+ @include selection("&") {
10
+ background-color: #fe57a1;
11
+ color: #fff;
12
+ }
13
+ }
@@ -12,6 +12,7 @@
12
12
  .transition-property { @include transition-property(transform); }
13
13
  .transition-properties { @include transition-property(transform, opacity, width, height, left, top); }
14
14
  .multiple-transition-properties { @include transition-property((opacity, transform, left)); }
15
+ .default-transition { @include transition(); }
15
16
  .transition-timing { @include transition-timing-function(ease-in); }
16
17
  .transition-timings { @include transition-timing-function(ease-in, cubic-bezier(1,0,1,0)); }
17
18
  .transition-timings-list { @include transition-timing-function((ease-in, cubic-bezier(1,0,1,0))); }
@@ -21,4 +22,3 @@
21
22
  .transition-delays-list { @include transition-delay((1s, 2s, 3s)); }
22
23
  .transition-delays-string { @include transition-delay("1s, 2s, 3s"); }
23
24
  .regression-912 { @include transition((background-color 0.5s ease-in 0s, width 0.5s ease-out 0s, height 0.5s ease-in 0s, top 0.5s ease-out 0s)); }
24
-
@@ -0,0 +1,45 @@
1
+ $base-font-size: 16px;
2
+
3
+ @import "compass/typography/units";
4
+
5
+ .foo {
6
+ width: 600px;
7
+ height: 200px;
8
+ }
9
+
10
+ .foo .test {
11
+ /* 16px for margins should be 1em */
12
+ margin-top: convert-length(16px, em);
13
+
14
+ /* 16px for margins should be 2.66667% (relative to parent's width) */
15
+ margin-right: convert-length(16px, '%', $to-context: 600px);
16
+
17
+ /* 1.35em for margins should be 3.6% (relative to parent's width,
18
+ * even for top and bottom margins) */
19
+ margin-bottom: convert-length(1.35em, '%', $to-context: 600px);
20
+
21
+ /* 16px for margins should be 2ex */
22
+ margin-left: convert-length(16px, ex);
23
+ }
24
+
25
+ .bar {
26
+ font-size: 18px;
27
+ width: 360px;
28
+ }
29
+
30
+ .bar .test {
31
+ /* 150% for line-height should be 27px */
32
+ line-height: convert-length(150%, px, 18px);
33
+
34
+ /* 1px should always be .0625rem for this page */
35
+ border-top: convert-length(1px, rem);
36
+
37
+ /* 2em for this element should be 9.525mm (relative to own font-size, as inherited) */
38
+ margin-top: convert-length(2em, mm, 18px);
39
+
40
+ /* 2px for margins should be .55556% (relative to parent's width) */
41
+ margin-right: convert-length(2px, '%', $to-context: 360px);
42
+
43
+ /* 1rem should always be 16px for this page, even when own font-size is 18px */
44
+ margin-bottom: convert-length(1rem, px);
45
+ }
@@ -2,4 +2,16 @@
2
2
 
3
3
  .user-select {
4
4
  @include user-select(none);
5
- }
5
+ }
6
+
7
+ @include input-placeholder {
8
+ color: #bfbfbf;
9
+ font-style: italic;
10
+ }
11
+
12
+ .input-placeholder {
13
+ @include input-placeholder("&") {
14
+ color: #bfbfbf;
15
+ font-style: italic;
16
+ }
17
+ }
@@ -18,3 +18,13 @@ p.dark-with-args { @include contrasted(#5F1210, green, blue); }
18
18
 
19
19
 
20
20
  @include alternating-rows-and-columns(red, white, blue);
21
+
22
+ p.ellipsis {
23
+ @include ellipsis;
24
+ }
25
+
26
+ p.ellipsis.moz {
27
+ $legacy-support-for-mozilla: true;
28
+ $use-mozilla-ellipsis-binding: true;
29
+ @include ellipsis;
30
+ }