compass 0.12.7 → 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 (254) hide show
  1. data/README.markdown +1 -1
  2. data/Rakefile +14 -9
  3. data/VERSION.yml +6 -0
  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 +2 -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 +10 -6
  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 +57 -82
  17. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +104 -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/_font-face.scss +4 -4
  21. data/frameworks/compass/stylesheets/compass/css3/_hyphenation.scss +13 -22
  22. data/frameworks/compass/stylesheets/compass/css3/_images.scss +45 -48
  23. data/frameworks/compass/stylesheets/compass/css3/_inline-block.scss +1 -1
  24. data/frameworks/compass/stylesheets/compass/css3/_regions.scss +12 -8
  25. data/frameworks/compass/stylesheets/compass/css3/_selection.scss +31 -0
  26. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +226 -2
  27. data/frameworks/compass/stylesheets/compass/css3/_text-shadow.scss +21 -26
  28. data/frameworks/compass/stylesheets/compass/css3/_transform-legacy.scss +3 -3
  29. data/frameworks/compass/stylesheets/compass/css3/_transform.scss +8 -8
  30. data/frameworks/compass/stylesheets/compass/css3/_transition.scss +3 -3
  31. data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +43 -4
  32. data/frameworks/compass/stylesheets/compass/typography/_units.scss +152 -0
  33. data/frameworks/compass/stylesheets/compass/typography/_vertical_rhythm.scss +180 -102
  34. data/frameworks/compass/stylesheets/compass/typography/lists/_horizontal-list.scss +5 -3
  35. data/frameworks/compass/stylesheets/compass/typography/lists/_inline-list.scss +6 -3
  36. data/frameworks/compass/stylesheets/compass/typography/text/_ellipsis.scss +1 -1
  37. data/frameworks/compass/stylesheets/compass/utilities/general/_float.scss +7 -3
  38. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +2 -2
  39. data/frameworks/compass/stylesheets/compass/utilities/sprites/_base.scss +32 -13
  40. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +14 -9
  41. data/lib/compass/actions.rb +3 -1
  42. data/lib/compass/commands/update_project.rb +1 -2
  43. data/lib/compass/commands/watch_project.rb +11 -113
  44. data/lib/compass/commands.rb +1 -1
  45. data/lib/compass/compiler.rb +8 -1
  46. data/lib/compass/configuration/data.rb +1 -1
  47. data/lib/compass/configuration/helpers.rb +2 -0
  48. data/lib/compass/exec/project_options_parser.rb +8 -0
  49. data/lib/compass/logger.rb +2 -0
  50. data/lib/compass/sass_extensions/functions/cross_browser_support.rb +1 -1
  51. data/lib/compass/sass_extensions/functions/env.rb +18 -0
  52. data/lib/compass/sass_extensions/functions/gradient_support.rb +101 -29
  53. data/lib/compass/sass_extensions/functions/image_size.rb +2 -1
  54. data/lib/compass/sass_extensions/functions/math.rb +13 -1
  55. data/lib/compass/sass_extensions/functions/sprites.rb +82 -22
  56. data/lib/compass/sass_extensions/functions/urls.rb +37 -6
  57. data/lib/compass/sass_extensions/functions/utility.rb +10 -0
  58. data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +11 -9
  59. data/lib/compass/sass_extensions/sprites/image.rb +7 -2
  60. data/lib/compass/sass_extensions/sprites/image_methods.rb +5 -1
  61. data/lib/compass/sass_extensions/sprites/images.rb +29 -0
  62. data/lib/compass/sass_extensions/sprites/layout/diagonal.rb +42 -0
  63. data/lib/compass/sass_extensions/sprites/layout/horizontal.rb +66 -0
  64. data/lib/compass/sass_extensions/sprites/layout/smart.rb +33 -0
  65. data/lib/compass/sass_extensions/sprites/layout/vertical.rb +68 -0
  66. data/lib/compass/sass_extensions/sprites/layout.rb +39 -0
  67. data/lib/compass/sass_extensions/sprites/layout_methods.rb +9 -115
  68. data/lib/compass/sass_extensions/sprites/sprite_map.rb +5 -1
  69. data/lib/compass/sass_extensions/sprites/sprite_methods.rb +8 -14
  70. data/lib/compass/sass_extensions/sprites.rb +2 -0
  71. data/lib/compass/sprite_importer/content.erb +29 -24
  72. data/lib/compass/sprite_importer.rb +7 -11
  73. data/lib/compass/version.rb +10 -13
  74. data/lib/compass/watcher/compiler.rb +59 -0
  75. data/lib/compass/watcher/project_watcher.rb +111 -0
  76. data/lib/compass/watcher/watch.rb +33 -0
  77. data/lib/compass/watcher.rb +11 -0
  78. data/lib/compass.rb +2 -2
  79. data/test/fixtures/sprites/public/images/numeric/200.png +0 -0
  80. data/test/fixtures/stylesheets/busted_font_urls/config.rb +32 -0
  81. data/test/fixtures/stylesheets/busted_font_urls/css/screen.css +7 -0
  82. data/test/fixtures/stylesheets/busted_font_urls/fonts/feed.ttf +0 -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/busted_image_urls/tmp/screen.css +9 -0
  88. data/test/fixtures/stylesheets/compass/css/animation-with-legacy-ie.css +33 -0
  89. data/test/fixtures/stylesheets/compass/css/animation.css +33 -0
  90. data/test/fixtures/stylesheets/compass/css/background-clip.css +5 -0
  91. data/test/fixtures/stylesheets/compass/css/background-origin.css +15 -0
  92. data/test/fixtures/stylesheets/compass/css/background-size.css +24 -0
  93. data/test/fixtures/stylesheets/compass/css/columns.css +27 -63
  94. data/test/fixtures/stylesheets/compass/css/flexbox.css +121 -0
  95. data/test/fixtures/stylesheets/compass/css/fonts.css +1 -1
  96. data/test/fixtures/stylesheets/compass/css/gradients.css +64 -36
  97. data/test/fixtures/stylesheets/compass/css/grid_background.css +7 -14
  98. data/test/fixtures/stylesheets/compass/css/hyphenation.css +4 -2
  99. data/test/fixtures/stylesheets/compass/css/lists.css +5 -5
  100. data/test/fixtures/stylesheets/compass/css/pie.css +0 -3
  101. data/test/fixtures/stylesheets/compass/css/regions.css +4 -2
  102. data/test/fixtures/stylesheets/compass/css/selection.css +13 -0
  103. data/test/fixtures/stylesheets/compass/css/sprites.css +251 -250
  104. data/test/fixtures/stylesheets/compass/css/text_shadow.css +6 -6
  105. data/test/fixtures/stylesheets/compass/css/transition.css +6 -0
  106. data/test/fixtures/stylesheets/compass/css/units.css +30 -0
  107. data/test/fixtures/stylesheets/compass/css/user-interface.css +22 -1
  108. data/test/fixtures/stylesheets/compass/css/utilities.css +15 -0
  109. data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +177 -8
  110. data/test/fixtures/stylesheets/compass/images/flag-s5b4f509715.png +0 -0
  111. data/test/fixtures/stylesheets/compass/sass/animation-with-legacy-ie.scss +19 -0
  112. data/test/fixtures/stylesheets/compass/sass/animation.scss +13 -0
  113. data/test/fixtures/stylesheets/compass/sass/background-clip.scss +4 -2
  114. data/test/fixtures/stylesheets/compass/sass/background-origin.scss +10 -0
  115. data/test/fixtures/stylesheets/compass/sass/background-size.scss +12 -0
  116. data/test/fixtures/stylesheets/compass/sass/columns.scss +9 -9
  117. data/test/fixtures/stylesheets/compass/sass/flexbox.scss +44 -0
  118. data/test/fixtures/stylesheets/compass/sass/gradients.sass +31 -0
  119. data/test/fixtures/stylesheets/compass/sass/selection.scss +13 -0
  120. data/test/fixtures/stylesheets/compass/sass/transition.scss +1 -1
  121. data/test/fixtures/stylesheets/compass/sass/units.scss +45 -0
  122. data/test/fixtures/stylesheets/compass/sass/user-interface.scss +13 -1
  123. data/test/fixtures/stylesheets/compass/sass/utilities.scss +10 -0
  124. data/test/fixtures/stylesheets/compass/sass/vertical_rhythm.scss +208 -7
  125. data/test/fixtures/stylesheets/envtest/css/env.css +8 -0
  126. data/test/fixtures/stylesheets/envtest/sass/env.scss +16 -0
  127. data/test/fixtures/stylesheets/envtest/tmp/env.css +14 -0
  128. data/test/fixtures/stylesheets/valid/css/simple.css +4 -0
  129. data/test/helpers/diff.rb +1 -1
  130. data/test/integrations/compass_test.rb +23 -14
  131. data/test/integrations/sprites_test.rb +305 -63
  132. data/test/test_helper.rb +5 -15
  133. data/test/units/command_line_test.rb +0 -2
  134. data/test/units/compass_module_test.rb +1 -1
  135. data/test/units/configuration_test.rb +12 -0
  136. data/test/units/regressions_test.rb +8 -8
  137. data/test/units/sass_extensions_test.rb +2 -0
  138. data/test/units/sass_extenstions/gradients_test.rb +33 -0
  139. data/test/units/sprites/image_test.rb +5 -0
  140. data/test/units/sprites/images_test.rb +46 -0
  141. data/test/units/sprites/layout_test.rb +29 -4
  142. data/test/units/watcher/compiler_test.rb +39 -0
  143. data/test/units/watcher/project_watcher_test.rb +73 -0
  144. data/test/units/watcher/watch_test.rb +42 -0
  145. metadata +171 -236
  146. checksums.yaml +0 -7
  147. data/frameworks/blueprint/stylesheets/_blueprint.scss +0 -37
  148. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +0 -101
  149. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +0 -36
  150. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +0 -28
  151. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +0 -88
  152. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +0 -66
  153. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +0 -258
  154. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +0 -111
  155. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +0 -66
  156. data/frameworks/blueprint/stylesheets/blueprint/_link-icons.scss +0 -37
  157. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +0 -152
  158. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +0 -86
  159. data/frameworks/blueprint/stylesheets/blueprint/_reset.scss +0 -3
  160. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +0 -121
  161. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +0 -52
  162. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +0 -90
  163. data/frameworks/blueprint/stylesheets/blueprint/_utilities.scss +0 -37
  164. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +0 -83
  165. data/frameworks/blueprint/templates/basic/grid.png +0 -0
  166. data/frameworks/blueprint/templates/basic/ie.sass +0 -4
  167. data/frameworks/blueprint/templates/basic/manifest.rb +0 -30
  168. data/frameworks/blueprint/templates/basic/partials/_base.sass +0 -10
  169. data/frameworks/blueprint/templates/basic/print.sass +0 -4
  170. data/frameworks/blueprint/templates/basic/screen.sass +0 -12
  171. data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
  172. data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
  173. data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
  174. data/frameworks/blueprint/templates/buttons/buttons.sass +0 -49
  175. data/frameworks/blueprint/templates/buttons/manifest.rb +0 -17
  176. data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
  177. data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
  178. data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
  179. data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
  180. data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
  181. data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
  182. data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
  183. data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
  184. data/frameworks/blueprint/templates/link_icons/link_icons.sass +0 -13
  185. data/frameworks/blueprint/templates/link_icons/manifest.rb +0 -23
  186. data/frameworks/blueprint/templates/project/grid.png +0 -0
  187. data/frameworks/blueprint/templates/project/ie.sass +0 -16
  188. data/frameworks/blueprint/templates/project/manifest.rb +0 -30
  189. data/frameworks/blueprint/templates/project/partials/_base.sass +0 -11
  190. data/frameworks/blueprint/templates/project/print.sass +0 -8
  191. data/frameworks/blueprint/templates/project/screen.sass +0 -46
  192. data/frameworks/blueprint/templates/semantic/grid.png +0 -0
  193. data/frameworks/blueprint/templates/semantic/ie.sass +0 -16
  194. data/frameworks/blueprint/templates/semantic/manifest.rb +0 -33
  195. data/frameworks/blueprint/templates/semantic/partials/_base.sass +0 -10
  196. data/frameworks/blueprint/templates/semantic/partials/_form.sass +0 -6
  197. data/frameworks/blueprint/templates/semantic/partials/_page.sass +0 -17
  198. data/frameworks/blueprint/templates/semantic/partials/_two_col.sass +0 -38
  199. data/frameworks/blueprint/templates/semantic/print.sass +0 -5
  200. data/frameworks/blueprint/templates/semantic/screen.sass +0 -14
  201. data/lib/compass/commands/generate_grid_background.rb +0 -96
  202. data/lib/compass/grid_builder.rb +0 -102
  203. data/test/fixtures/stylesheets/blueprint/config.rb +0 -14
  204. data/test/fixtures/stylesheets/blueprint/css/ie.css +0 -76
  205. data/test/fixtures/stylesheets/blueprint/css/print.css +0 -56
  206. data/test/fixtures/stylesheets/blueprint/css/screen.css +0 -815
  207. data/test/fixtures/stylesheets/blueprint/css/single-imports/buttons.css +0 -56
  208. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +0 -80
  209. data/test/fixtures/stylesheets/blueprint/css/single-imports/debug.css +0 -11
  210. data/test/fixtures/stylesheets/blueprint/css/single-imports/fancy-type.css +0 -30
  211. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +0 -42
  212. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +0 -435
  213. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +0 -76
  214. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +0 -46
  215. data/test/fixtures/stylesheets/blueprint/css/single-imports/link-icons.css +0 -40
  216. data/test/fixtures/stylesheets/blueprint/css/single-imports/liquid.css +0 -651
  217. data/test/fixtures/stylesheets/blueprint/css/single-imports/print.css +0 -60
  218. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +0 -75
  219. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +0 -42
  220. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +0 -437
  221. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +0 -45
  222. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +0 -146
  223. data/test/fixtures/stylesheets/blueprint/css/single-imports/utilities.css +0 -35
  224. data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
  225. data/test/fixtures/stylesheets/blueprint/images/link_icons/doc.png +0 -0
  226. data/test/fixtures/stylesheets/blueprint/images/link_icons/email.png +0 -0
  227. data/test/fixtures/stylesheets/blueprint/images/link_icons/external.png +0 -0
  228. data/test/fixtures/stylesheets/blueprint/images/link_icons/feed.png +0 -0
  229. data/test/fixtures/stylesheets/blueprint/images/link_icons/im.png +0 -0
  230. data/test/fixtures/stylesheets/blueprint/images/link_icons/pdf.png +0 -0
  231. data/test/fixtures/stylesheets/blueprint/images/link_icons/visited.png +0 -0
  232. data/test/fixtures/stylesheets/blueprint/images/link_icons/xls.png +0 -0
  233. data/test/fixtures/stylesheets/blueprint/sass/ie.sass +0 -3
  234. data/test/fixtures/stylesheets/blueprint/sass/print.sass +0 -3
  235. data/test/fixtures/stylesheets/blueprint/sass/screen.sass +0 -18
  236. data/test/fixtures/stylesheets/blueprint/sass/single-imports/buttons.scss +0 -4
  237. data/test/fixtures/stylesheets/blueprint/sass/single-imports/colors.scss +0 -34
  238. data/test/fixtures/stylesheets/blueprint/sass/single-imports/debug.scss +0 -3
  239. data/test/fixtures/stylesheets/blueprint/sass/single-imports/fancy-type.scss +0 -3
  240. data/test/fixtures/stylesheets/blueprint/sass/single-imports/form.scss +0 -5
  241. data/test/fixtures/stylesheets/blueprint/sass/single-imports/grid.scss +0 -3
  242. data/test/fixtures/stylesheets/blueprint/sass/single-imports/ie.scss +0 -3
  243. data/test/fixtures/stylesheets/blueprint/sass/single-imports/interaction.scss +0 -3
  244. data/test/fixtures/stylesheets/blueprint/sass/single-imports/link-icons.scss +0 -13
  245. data/test/fixtures/stylesheets/blueprint/sass/single-imports/liquid.scss +0 -3
  246. data/test/fixtures/stylesheets/blueprint/sass/single-imports/print.scss +0 -5
  247. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset-utilities.scss +0 -5
  248. data/test/fixtures/stylesheets/blueprint/sass/single-imports/reset.scss +0 -1
  249. data/test/fixtures/stylesheets/blueprint/sass/single-imports/rtl.scss +0 -3
  250. data/test/fixtures/stylesheets/blueprint/sass/single-imports/scaffolding.scss +0 -5
  251. data/test/fixtures/stylesheets/blueprint/sass/single-imports/typography.scss +0 -3
  252. data/test/fixtures/stylesheets/blueprint/sass/single-imports/utilities.scss +0 -3
  253. data/test/fixtures/stylesheets/compass/images/flag-s4798b5a210.png +0 -0
  254. data/test/units/compass_png_test.rb +0 -46
@@ -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,8 +1,5 @@
1
- * html {
2
- font-size: 87.5%; }
3
-
4
1
  html {
5
- font-size: 14px;
2
+ font-size: 87.5%;
6
3
  line-height: 1.14286em; }
7
4
 
8
5
  .small {
@@ -24,22 +21,194 @@ html {
24
21
  margin-bottom: 1.33333em; }
25
22
 
26
23
  .borders {
27
- border-top-style: solid;
28
24
  border-top-width: 0.07143em;
25
+ border-top-style: solid;
29
26
  padding-top: 1.07143em;
30
- border-bottom-style: solid;
31
27
  border-bottom-width: 0.07143em;
28
+ border-bottom-style: solid;
32
29
  padding-bottom: 1.07143em; }
33
30
 
34
31
  .large-borders {
35
32
  font-size: 1.71429em;
36
33
  line-height: 2em;
37
- border-top-style: solid;
38
34
  border-top-width: 0.25em;
35
+ border-top-style: solid;
39
36
  padding-top: 0.41667em;
40
- border-bottom-style: solid;
41
37
  border-bottom-width: 0.25em;
38
+ border-bottom-style: solid;
42
39
  padding-bottom: 0.41667em; }
43
40
 
44
41
  .reset {
45
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
+ }
@@ -10,9 +10,9 @@
10
10
  .column-rule-color { @include column-rule-color(blue); }
11
11
  .column-rule { @include column-rule(1px, solid, blue); }
12
12
  .column-rule-spaced { @include column-rule(1px solid blue); }
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'); }
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); }
16
16
  .column-count { @include column-count(5); }
17
17
  .column-gap { @include column-gap(10px); }
18
18
  .column-width { @include column-width(90px); }
@@ -21,9 +21,9 @@
21
21
  .column-rule-color { @include column-rule-color(blue); }
22
22
  .column-rule { @include column-rule(1px, solid, blue); }
23
23
  .column-rule-spaced { @include column-rule(1px solid blue); }
24
- .column-break-before { @include column-break-before(always); }
25
- .column-break-after { @include column-break-after(always); }
26
- .column-break-inside { @include column-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'); }
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
+ }
@@ -34,9 +34,18 @@ $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
+ .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)))
42
+
37
43
  .bg-radial-gradient
38
44
  +background-image(radial-gradient(center center, #ddd, transparent 100px))
39
45
 
46
+ .currentColor-in-radial-gradient
47
+ +background-image(radial-gradient(center center, currentColor, transparent 100px))
48
+
40
49
  .bg-linear-gradient-with-angle
41
50
  +background-image(linear-gradient(-45deg, #ddd, #aaa))
42
51
 
@@ -94,3 +103,25 @@ $experimental-support-for-svg: false
94
103
  .ie-alpha-filter
95
104
  +filter-gradient(rgba(#fff, 1), rgba(#fff, 0))
96
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
+ }