compass 0.10.6 → 0.11.alpha.0

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 (182) hide show
  1. data/Rakefile +6 -6
  2. data/VERSION.yml +3 -3
  3. data/examples/blueprint_default/parts/forms.html.haml +8 -0
  4. data/examples/css3/src/main.scss +4 -0
  5. data/features/command_line.feature +20 -3
  6. data/features/step_definitions/command_line_steps.rb +7 -1
  7. data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -12
  8. data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +34 -34
  9. data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -28
  10. data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +3 -3
  11. data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +2 -2
  12. data/frameworks/blueprint/stylesheets/blueprint/_form.scss +14 -16
  13. data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +39 -37
  14. data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +17 -15
  15. data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +53 -44
  16. data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +26 -26
  17. data/frameworks/blueprint/stylesheets/blueprint/_print.scss +13 -20
  18. data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +32 -44
  19. data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +10 -12
  20. data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +18 -32
  21. data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +50 -25
  22. data/frameworks/compass/stylesheets/compass/_css3.scss +1 -15
  23. data/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
  24. data/frameworks/compass/stylesheets/compass/_support.scss +4 -0
  25. data/frameworks/compass/stylesheets/compass/css3/_box-shadow-v2.scss +98 -0
  26. data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -40
  27. data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -1
  28. data/frameworks/compass/stylesheets/compass/css3/_columns.scss +23 -18
  29. data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +2 -3
  30. data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +66 -42
  31. data/frameworks/compass/stylesheets/compass/css3/_images.scss +52 -0
  32. data/frameworks/compass/stylesheets/compass/css3/_shared.scss +1 -1
  33. data/frameworks/compass/stylesheets/compass/css3/_text-shadow-v2.scss +72 -0
  34. data/frameworks/compass/stylesheets/compass/css3/_transform-v2.scss +584 -0
  35. data/frameworks/compass/stylesheets/compass/css3/_version-1.scss +16 -0
  36. data/frameworks/compass/stylesheets/compass/css3/_version-2.scss +16 -0
  37. data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +24 -0
  38. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -4
  39. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +5 -1
  40. data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +7 -1
  41. data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +7 -1
  42. data/lib/compass/actions.rb +1 -1
  43. data/lib/compass/app_integration/rails/actionpack3/railtie.rb +18 -0
  44. data/lib/compass/app_integration/rails/configuration_defaults.rb +22 -0
  45. data/lib/compass/app_integration/rails/installer.rb +77 -34
  46. data/lib/compass/app_integration/rails/runtime.rb +3 -0
  47. data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -1
  48. data/lib/compass/commands/print_version.rb +1 -1
  49. data/lib/compass/commands/update_project.rb +2 -2
  50. data/lib/compass/commands/write_configuration.rb +10 -1
  51. data/lib/compass/compiler.rb +1 -5
  52. data/lib/compass/configuration.rb +2 -1
  53. data/lib/compass/configuration/adapters.rb +2 -1
  54. data/lib/compass/configuration/comments.rb +34 -1
  55. data/lib/compass/configuration/helpers.rb +3 -7
  56. data/lib/compass/configuration/paths.rb +1 -1
  57. data/lib/compass/exec/project_options_parser.rb +4 -0
  58. data/lib/compass/installers/base.rb +1 -1
  59. data/lib/compass/logger.rb +4 -2
  60. data/lib/compass/sass_extensions/functions.rb +6 -3
  61. data/lib/compass/sass_extensions/functions/colors.rb +58 -0
  62. data/lib/compass/sass_extensions/functions/constants.rb +1 -1
  63. data/lib/compass/sass_extensions/functions/display.rb +4 -2
  64. data/lib/compass/sass_extensions/functions/gradient_support.rb +343 -25
  65. data/lib/compass/sass_extensions/functions/if.rb +9 -0
  66. data/lib/compass/sass_extensions/functions/inline_image.rb +9 -3
  67. data/lib/compass/sass_extensions/functions/trig.rb +27 -0
  68. data/lib/compass/version.rb +6 -1
  69. data/lib/rails/init.rb +2 -0
  70. data/test/command_line_test.rb +6 -9
  71. data/test/compass_test.rb +2 -0
  72. data/test/configuration_test.rb +20 -0
  73. data/test/fixtures/stylesheets/blueprint/css/ie.css +16 -0
  74. data/test/fixtures/stylesheets/blueprint/css/screen.css +37 -34
  75. data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +5 -5
  76. data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +7 -5
  77. data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +5 -5
  78. data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +16 -0
  79. data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +12 -9
  80. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +23 -64
  81. data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +13 -37
  82. data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +5 -5
  83. data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +4 -4
  84. data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +12 -15
  85. data/test/fixtures/stylesheets/compass/config.rb +2 -0
  86. data/test/fixtures/stylesheets/compass/css/box.css +6 -13
  87. data/test/fixtures/stylesheets/compass/css/box_shadow.css +17 -0
  88. data/test/fixtures/stylesheets/compass/css/columns.css +47 -0
  89. data/test/fixtures/stylesheets/compass/css/gradients.css +240 -25
  90. data/test/fixtures/stylesheets/compass/css/lists.css +12 -4
  91. data/test/fixtures/stylesheets/compass/css/print.css +1 -1
  92. data/test/fixtures/stylesheets/compass/css/reset.css +2 -2
  93. data/test/fixtures/stylesheets/compass/css/stretching.css +66 -0
  94. data/test/fixtures/stylesheets/compass/css/transform.css +305 -0
  95. data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +5 -0
  96. data/test/fixtures/stylesheets/compass/sass/columns.scss +10 -0
  97. data/test/fixtures/stylesheets/compass/sass/gradients.sass +151 -19
  98. data/test/fixtures/stylesheets/compass/sass/stretching.sass +34 -0
  99. data/test/fixtures/stylesheets/compass/sass/transform.scss +87 -0
  100. data/test/sass_extensions_test.rb +44 -0
  101. metadata +42 -96
  102. data/frameworks/_blueprint_deprecated_imports/stylesheets/_blueprint.sass +0 -2
  103. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_buttons.sass +0 -2
  104. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_colors.sass +0 -2
  105. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_debug.sass +0 -2
  106. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_fancy_type.sass +0 -2
  107. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_form.sass +0 -2
  108. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_grid.sass +0 -2
  109. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_ie.sass +0 -2
  110. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_interaction.sass +0 -2
  111. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_link_icons.sass +0 -2
  112. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_liquid.sass +0 -2
  113. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_print.sass +0 -2
  114. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_reset.sass +0 -2
  115. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_rtl.sass +0 -2
  116. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_scaffolding.sass +0 -2
  117. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_screen.sass +0 -2
  118. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_typography.sass +0 -2
  119. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_utilities.sass +0 -2
  120. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_buttons.sass +0 -2
  121. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_colors.sass +0 -2
  122. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_debug.sass +0 -2
  123. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_fancy_type.sass +0 -2
  124. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_form.sass +0 -2
  125. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_grid.sass +0 -2
  126. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_interaction.sass +0 -2
  127. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_link_icons.sass +0 -2
  128. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_liquid.sass +0 -2
  129. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass +0 -2
  130. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_rtl.sass +0 -2
  131. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_scaffolding.sass +0 -2
  132. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_typography.sass +0 -2
  133. data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_utilities.sass +0 -2
  134. data/frameworks/_compass_deprecated_imports/stylesheets/_compass.sass +0 -2
  135. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_css3.sass +0 -2
  136. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_layout.sass +0 -2
  137. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +0 -1
  138. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.scss +0 -22
  139. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_reset.sass +0 -2
  140. data/frameworks/_compass_deprecated_imports/stylesheets/compass/_utilities.sass +0 -2
  141. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_clip.sass +0 -2
  142. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_origin.sass +0 -2
  143. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_size.sass +0 -2
  144. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_border_radius.sass +0 -2
  145. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_shadow.sass +0 -2
  146. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_sizing.sass +0 -2
  147. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_columns.sass +0 -2
  148. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_font_face.sass +0 -2
  149. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_gradient.sass +0 -2
  150. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +0 -2
  151. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_opacity.sass +0 -2
  152. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_text_shadow.sass +0 -2
  153. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transform.sass +0 -2
  154. data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transition.sass +0 -2
  155. data/frameworks/_compass_deprecated_imports/stylesheets/compass/layout/_sticky_footer.sass +0 -2
  156. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_general.sass +0 -2
  157. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_links.sass +0 -2
  158. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_lists.sass +0 -2
  159. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_print.sass +0 -2
  160. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_sprites.sass +0 -2
  161. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_tables.sass +0 -2
  162. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_text.sass +0 -2
  163. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_clearfix.sass +0 -2
  164. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_float.sass +0 -2
  165. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_hacks.sass +0 -2
  166. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_min.sass +0 -2
  167. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_reset.sass +0 -2
  168. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tabs.sass +0 -0
  169. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -2
  170. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_hover_link.sass +0 -2
  171. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_link_colors.sass +0 -2
  172. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -2
  173. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_bullets.sass +0 -2
  174. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_horizontal_list.sass +0 -2
  175. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_inline_list.sass +0 -2
  176. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -2
  177. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -2
  178. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_borders.sass +0 -2
  179. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -2
  180. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_ellipsis.sass +0 -2
  181. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_nowrap.sass +0 -2
  182. data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_replacement.sass +0 -2
@@ -0,0 +1,34 @@
1
+ @import "compass/layout/stretching"
2
+
3
+ .stretched-completely
4
+ +stretch
5
+
6
+ .stretched-horizontally
7
+ +stretch-x
8
+
9
+ .stretched-right
10
+ +stretch-x(0, 50%)
11
+
12
+ .left-pane
13
+ +stretch(0, 50%, 0, 0)
14
+
15
+ .stretched-left
16
+ +stretch-x(50%, 0)
17
+
18
+ .right-pane
19
+ +stretch(0, 0, 0, 50%)
20
+
21
+ .stretched-down
22
+ +stretch-y(0, 50%)
23
+
24
+ .top-pane
25
+ +stretch(0, 0, 50%, 0)
26
+
27
+ .stretched-up
28
+ +stretch-y(50%, 0)
29
+
30
+ .bottom-pane
31
+ +stretch(50%, 0, 0, 0)
32
+
33
+ .viewport
34
+ +stretch(10px, 20px, 30px, 40px)
@@ -0,0 +1,87 @@
1
+ @import "compass/css3/transform-v2";
2
+
3
+ .apply-origin-2d { @include apply-origin(2px 5%, false); }
4
+ .apply-origin-3d { @include apply-origin(2px 5% 2in, true); }
5
+ .transform-origin-2d { @include transform-origin(100px, 100px); }
6
+ .transform-origin-3d { @include transform-origin(100px, 100px, 100px); }
7
+ .transform-2d { @include transform2d(rotateY(20deg)); }
8
+ .transform-3d { @include transform3d(rotateZ(20deg)); }
9
+ .perspective { @include perspective(500); }
10
+ .perspective-origin { @include perspective-origin(25% 25%)}
11
+ .transform-style { @include transform-style; }
12
+ .backface-visibility { @include backface-visibility;}
13
+ .scale { @include scale(30px, 50px);}
14
+ .scale-3d { @include scale(30px, 50px, false, true);}
15
+ .scale-with-perspective { @include scale(30px, 50px, 500);}
16
+ .scale-3d-with-perspective { @include scale(30px, 50px, 500, true);}
17
+ .scale-x { @include scaleX(30px);}
18
+ .scale-x-3d { @include scaleX(30px, false, true);}
19
+ .scale-x-with-perspective { @include scaleX(30px, 500);}
20
+ .scale-x-3d-with-perspective { @include scaleX(30px, 500, true);}
21
+ .scale-y { @include scaleY(50px);}
22
+ .scale-y-3d { @include scaleY(50px, false, true);}
23
+ .scale-y-with-perspective { @include scaleY(50px, 500);}
24
+ .scale-y-3d-with-perspective { @include scaleY(50px, 500, true);}
25
+ .scale-z { @include scaleZ(50px);}
26
+ .scale-z-with-perspective { @include scaleZ(50px, 500);}
27
+ .scale3d { @include scale3d(30px, 50px, 100px);}
28
+ .scaled3-with-perspective { @include scale3d(30px, 50px, 100px, 500);}
29
+ .rotate { @include rotate(25deg, 500);}
30
+ .rotate-with-perspective { @include rotate(25deg, 500);}
31
+ .rotate-z { @include rotateZ(25deg);}
32
+ .rotate-z-with-perspective { @include rotateZ(25deg, 500);}
33
+ .rotate-x { @include rotateX(25deg);}
34
+ .rotate-x-with-perspective { @include rotateX(25deg, 500);}
35
+ .rotate-y { @include rotateY(25deg);}
36
+ .rotate-y-with-perspective { @include rotateY(25deg, 500);}
37
+ .rotate-3d { @include rotate3d(5, 2, 1, 75deg);}
38
+ .rotate-3d-with-perspective { @include rotate3d(5, 2, 1, 75deg, 500);}
39
+ .translate { @include translate(20px, 30%);}
40
+ .translate-with-perspective { @include translate(20px, 30%, 500);}
41
+ .translate-3d { @include translate(20px, 30%, false, true);}
42
+ .translate-3d-with-perspective { @include translate(20px, 30%, 500, true);}
43
+ .translate-x { @include translateX(30px);}
44
+ .translate-x-3d { @include translateX(30px, false, true);}
45
+ .translate-x-with-perspective { @include translateX(30px, 500);}
46
+ .translate-x-3d-with-perspective { @include translateX(30px, 500, true);}
47
+ .translate-y { @include translateY(30px);}
48
+ .translate-y-3d { @include translateY(30px, false, true);}
49
+ .translate-y-with-perspective { @include translateY(30px, 500);}
50
+ .translate-y-3d-with-perspective { @include translateY(30px, 500, true);}
51
+ .translate-z { @include translateZ(30px);}
52
+ .translate-z-with-perspective { @include translateZ(30px, 500);}
53
+ .translate-3d { @include translate3d(30px, 50px, 75px);}
54
+ .translate-3d-with-perspective { @include translate3d(30px, 50px, 75px, 500);}
55
+ .skew { @include skew(20deg, 50deg);}
56
+ .skew-3d { @include skew(20deg, 50deg, true);}
57
+ .skew-x { @include skewX(20deg);}
58
+ .skew-x-3d { @include skewX(20deg, true);}
59
+ .skew-y { @include skewY(20deg);}
60
+ .skew-y-3d { @include skewY(20deg, true);}
61
+ .create-transform-2d { @include create-transform(
62
+ 500,
63
+ 20px, 20px, false,
64
+ 25deg, 25deg, false, false
65
+ 50px, 50px, false,
66
+ 50deg, 50deg,
67
+ 50%, 50%, false
68
+ );
69
+ }
70
+ .create-transform-3d { @include create-transform(
71
+ 500,
72
+ 20px, 20px, 20px,
73
+ 25deg, 25deg, 25deg, false
74
+ 50px, 50px, 50px,
75
+ 50deg, 50deg,
76
+ 50%, 50%, 50%
77
+ );
78
+ }
79
+
80
+ .simple-transform { @include simple-transform(
81
+ 25px,
82
+ 25deg,
83
+ 10px, 10px,
84
+ 30deg, 30deg,
85
+ 10%, 10%
86
+ );
87
+ }
@@ -37,6 +37,50 @@ class SassExtensionsTest < Test::Unit::TestCase
37
37
  assert_equal "h4, h5, h6", evaluate("headers(4,6)")
38
38
  end
39
39
 
40
+ def test_scale_lightness
41
+ assert_equal "75%", evaluate("lightness(scale-lightness(hsl(50deg, 50%, 50%), 50%))")
42
+ assert_equal "25%", evaluate("lightness(scale-lightness(hsl(50deg, 50%, 50%), -50%))")
43
+ end
44
+
45
+ def test_adjust_lightness
46
+ assert_equal "75%", evaluate("lightness(adjust-lightness(hsl(50deg, 50%, 50%), 25%))")
47
+ assert_equal "25%", evaluate("lightness(adjust-lightness(hsl(50deg, 50%, 50%), -25%))")
48
+ assert_equal "100%", evaluate("lightness(adjust-lightness(hsl(50deg, 50%, 50%), 500%))")
49
+ assert_equal "0%", evaluate("lightness(adjust-lightness(hsl(50deg, 50%, 50%), -500%))")
50
+ end
51
+
52
+ def test_scale_saturation
53
+ assert_equal "75%", evaluate("saturation(scale-saturation(hsl(50deg, 50%, 50%), 50%))")
54
+ assert_equal "25%", evaluate("saturation(scale-saturation(hsl(50deg, 50%, 50%), -50%))")
55
+ end
56
+
57
+ def test_adjust_saturation
58
+ assert_equal "75%", evaluate("saturation(adjust-saturation(hsl(50deg, 50%, 50%), 25%))")
59
+ assert_equal "25%", evaluate("saturation(adjust-saturation(hsl(50deg, 50%, 50%), -25%))")
60
+ end
61
+
62
+ def test_if_function
63
+ assert_equal "no", evaluate("if(false, yes, no)")
64
+ assert_equal "yes", evaluate("if(true, yes, no)")
65
+ end
66
+
67
+ def test_trig_functions
68
+ assert_equal "0.841px", evaluate("sin(1px)")
69
+ assert_equal "0.0", evaluate("sin(pi())")
70
+ assert_equal "1", evaluate("sin(pi() / 2)")
71
+ assert_equal "1", evaluate("sin(180deg)")
72
+ assert_equal "-1", evaluate("sin(3* pi() / 2)")
73
+ assert_equal "-1", evaluate("cos(pi())")
74
+ assert_equal "-1", evaluate("cos(360deg)")
75
+ assert_equal "1", evaluate("cos(2*pi())")
76
+ assert_equal "0.0", evaluate("cos(pi() / 2)")
77
+ assert_equal "0.0", evaluate("cos(3* pi() / 2)")
78
+ assert_equal "0.0", evaluate("tan(pi())")
79
+ assert_equal "0.0", evaluate("tan(360deg)")
80
+ assert evaluate("tan(pi()/2 - 0.0001)").to_f > 1000, evaluate("tan(pi()/2 - 0.0001)")
81
+ assert evaluate("tan(pi()/2 + 0.0001)").to_f < -1000, evaluate("tan(pi()/2 - 0.0001)")
82
+ end
83
+
40
84
  protected
41
85
  def evaluate(value)
42
86
  Sass::Script::Parser.parse(value, 0, 0).perform(Sass::Environment.new).to_s
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass
3
3
  version: !ruby/object:Gem::Version
4
- hash: 59
5
- prerelease: false
4
+ prerelease: true
6
5
  segments:
7
6
  - 0
8
- - 10
9
- - 6
10
- version: 0.10.6
7
+ - 11
8
+ - alpha
9
+ - 0
10
+ version: 0.11.alpha.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Chris Eppstein
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-10-27 00:00:00 -07:00
20
+ date: 2010-11-15 00:00:00 -08:00
21
21
  default_executable: compass
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency
@@ -26,14 +26,13 @@ dependencies:
26
26
  requirement: &id001 !ruby/object:Gem::Requirement
27
27
  none: false
28
28
  requirements:
29
- - - ">="
29
+ - - ~>
30
30
  - !ruby/object:Gem::Version
31
- hash: 15
32
31
  segments:
33
32
  - 3
34
33
  - 0
35
- - 4
36
- version: 3.0.4
34
+ - 23
35
+ version: 3.0.23
37
36
  type: :runtime
38
37
  version_requirements: *id001
39
38
  description: Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS.
@@ -163,87 +162,6 @@ files:
163
162
  - examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass
164
163
  - examples/css3/extensions/fancy-fonts/templates/project/manifest.rb
165
164
  - examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf
166
- - frameworks/_blueprint_deprecated_imports/stylesheets/_blueprint.sass
167
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_buttons.sass
168
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_colors.sass
169
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_debug.sass
170
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_fancy_type.sass
171
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_form.sass
172
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_grid.sass
173
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_ie.sass
174
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_interaction.sass
175
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_link_icons.sass
176
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_liquid.sass
177
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_print.sass
178
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_reset.sass
179
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_rtl.sass
180
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_scaffolding.sass
181
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_screen.sass
182
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_typography.sass
183
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_utilities.sass
184
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_buttons.sass
185
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_colors.sass
186
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_debug.sass
187
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_fancy_type.sass
188
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_form.sass
189
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_grid.sass
190
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_interaction.sass
191
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_link_icons.sass
192
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_liquid.sass
193
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass
194
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_rtl.sass
195
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_scaffolding.sass
196
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_typography.sass
197
- - frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_utilities.sass
198
- - frameworks/_compass_deprecated_imports/stylesheets/_compass.sass
199
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_css3.sass
200
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_layout.sass
201
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass
202
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.scss
203
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_reset.sass
204
- - frameworks/_compass_deprecated_imports/stylesheets/compass/_utilities.sass
205
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_clip.sass
206
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_origin.sass
207
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_size.sass
208
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_border_radius.sass
209
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_shadow.sass
210
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_sizing.sass
211
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_columns.sass
212
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_font_face.sass
213
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_gradient.sass
214
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass
215
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_opacity.sass
216
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_text_shadow.sass
217
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transform.sass
218
- - frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transition.sass
219
- - frameworks/_compass_deprecated_imports/stylesheets/compass/layout/_sticky_footer.sass
220
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_general.sass
221
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_links.sass
222
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_lists.sass
223
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_print.sass
224
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_sprites.sass
225
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_tables.sass
226
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_text.sass
227
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_clearfix.sass
228
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_float.sass
229
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_hacks.sass
230
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_min.sass
231
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_reset.sass
232
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tabs.sass
233
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tag_cloud.sass
234
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_hover_link.sass
235
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_link_colors.sass
236
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_unstyled_link.sass
237
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_bullets.sass
238
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_horizontal_list.sass
239
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_inline_list.sass
240
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/sprites/_sprite_img.sass
241
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass
242
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_borders.sass
243
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_scaffolding.sass
244
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_ellipsis.sass
245
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_nowrap.sass
246
- - frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_replacement.sass
247
165
  - frameworks/blueprint/stylesheets/_blueprint.scss
248
166
  - frameworks/blueprint/stylesheets/blueprint/_buttons.scss
249
167
  - frameworks/blueprint/stylesheets/blueprint/_colors.scss
@@ -308,19 +226,26 @@ files:
308
226
  - frameworks/compass/stylesheets/compass/css3/_background-origin.scss
309
227
  - frameworks/compass/stylesheets/compass/css3/_background-size.scss
310
228
  - frameworks/compass/stylesheets/compass/css3/_border-radius.scss
229
+ - frameworks/compass/stylesheets/compass/css3/_box-shadow-v2.scss
311
230
  - frameworks/compass/stylesheets/compass/css3/_box-shadow.scss
312
231
  - frameworks/compass/stylesheets/compass/css3/_box-sizing.scss
313
232
  - frameworks/compass/stylesheets/compass/css3/_box.scss
314
233
  - frameworks/compass/stylesheets/compass/css3/_columns.scss
315
234
  - frameworks/compass/stylesheets/compass/css3/_font-face.scss
316
235
  - frameworks/compass/stylesheets/compass/css3/_gradient.scss
236
+ - frameworks/compass/stylesheets/compass/css3/_images.scss
317
237
  - frameworks/compass/stylesheets/compass/css3/_inline-block.scss
318
238
  - frameworks/compass/stylesheets/compass/css3/_opacity.scss
319
239
  - frameworks/compass/stylesheets/compass/css3/_shared.scss
240
+ - frameworks/compass/stylesheets/compass/css3/_text-shadow-v2.scss
320
241
  - frameworks/compass/stylesheets/compass/css3/_text-shadow.scss
242
+ - frameworks/compass/stylesheets/compass/css3/_transform-v2.scss
321
243
  - frameworks/compass/stylesheets/compass/css3/_transform.scss
322
244
  - frameworks/compass/stylesheets/compass/css3/_transition.scss
245
+ - frameworks/compass/stylesheets/compass/css3/_version-1.scss
246
+ - frameworks/compass/stylesheets/compass/css3/_version-2.scss
323
247
  - frameworks/compass/stylesheets/compass/layout/_sticky-footer.scss
248
+ - frameworks/compass/stylesheets/compass/layout/_stretching.scss
324
249
  - frameworks/compass/stylesheets/compass/reset/_utilities.scss
325
250
  - frameworks/compass/stylesheets/compass/utilities/_general.scss
326
251
  - frameworks/compass/stylesheets/compass/utilities/_links.scss
@@ -368,6 +293,7 @@ files:
368
293
  - lib/compass/app_integration/rails/actionpack2/action_controller.rb
369
294
  - lib/compass/app_integration/rails/actionpack2/sass_plugin.rb
370
295
  - lib/compass/app_integration/rails/actionpack2/urls.rb
296
+ - lib/compass/app_integration/rails/actionpack3/railtie.rb
371
297
  - lib/compass/app_integration/rails/configuration_defaults.rb
372
298
  - lib/compass/app_integration/rails/installer.rb
373
299
  - lib/compass/app_integration/rails/runtime.rb
@@ -425,15 +351,18 @@ files:
425
351
  - lib/compass/installers/template_context.rb
426
352
  - lib/compass/installers.rb
427
353
  - lib/compass/logger.rb
354
+ - lib/compass/sass_extensions/functions/colors.rb
428
355
  - lib/compass/sass_extensions/functions/constants.rb
429
356
  - lib/compass/sass_extensions/functions/display.rb
430
357
  - lib/compass/sass_extensions/functions/enumerate.rb
431
358
  - lib/compass/sass_extensions/functions/font_files.rb
432
359
  - lib/compass/sass_extensions/functions/gradient_support.rb
360
+ - lib/compass/sass_extensions/functions/if.rb
433
361
  - lib/compass/sass_extensions/functions/image_size.rb
434
362
  - lib/compass/sass_extensions/functions/inline_image.rb
435
363
  - lib/compass/sass_extensions/functions/lists.rb
436
364
  - lib/compass/sass_extensions/functions/selectors.rb
365
+ - lib/compass/sass_extensions/functions/trig.rb
437
366
  - lib/compass/sass_extensions/functions/urls.rb
438
367
  - lib/compass/sass_extensions/functions.rb
439
368
  - lib/compass/sass_extensions/monkey_patches/traversal.rb
@@ -444,6 +373,7 @@ files:
444
373
  - lib/compass/validator.rb
445
374
  - lib/compass/version.rb
446
375
  - lib/compass.rb
376
+ - lib/rails/init.rb
447
377
  - lib/vendor/fssm/fssm/backends/fsevents.rb
448
378
  - lib/vendor/fssm/fssm/backends/inotify.rb
449
379
  - lib/vendor/fssm/fssm/backends/polling.rb
@@ -515,6 +445,8 @@ files:
515
445
  - test/fixtures/stylesheets/compass/config.rb
516
446
  - test/fixtures/stylesheets/compass/css/border_radius.css
517
447
  - test/fixtures/stylesheets/compass/css/box.css
448
+ - test/fixtures/stylesheets/compass/css/box_shadow.css
449
+ - test/fixtures/stylesheets/compass/css/columns.css
518
450
  - test/fixtures/stylesheets/compass/css/fonts.css
519
451
  - test/fixtures/stylesheets/compass/css/gradients.css
520
452
  - test/fixtures/stylesheets/compass/css/image_size.css
@@ -524,6 +456,8 @@ files:
524
456
  - test/fixtures/stylesheets/compass/css/lists.css
525
457
  - test/fixtures/stylesheets/compass/css/print.css
526
458
  - test/fixtures/stylesheets/compass/css/reset.css
459
+ - test/fixtures/stylesheets/compass/css/stretching.css
460
+ - test/fixtures/stylesheets/compass/css/transform.css
527
461
  - test/fixtures/stylesheets/compass/css/utilities.css
528
462
  - test/fixtures/stylesheets/compass/images/100x150.gif
529
463
  - test/fixtures/stylesheets/compass/images/100x150.jpeg
@@ -532,6 +466,8 @@ files:
532
466
  - test/fixtures/stylesheets/compass/images/4x6.png
533
467
  - test/fixtures/stylesheets/compass/sass/border_radius.scss
534
468
  - test/fixtures/stylesheets/compass/sass/box.sass
469
+ - test/fixtures/stylesheets/compass/sass/box_shadow.scss
470
+ - test/fixtures/stylesheets/compass/sass/columns.scss
535
471
  - test/fixtures/stylesheets/compass/sass/fonts.sass
536
472
  - test/fixtures/stylesheets/compass/sass/gradients.sass
537
473
  - test/fixtures/stylesheets/compass/sass/image_size.sass
@@ -541,6 +477,8 @@ files:
541
477
  - test/fixtures/stylesheets/compass/sass/lists.scss
542
478
  - test/fixtures/stylesheets/compass/sass/print.sass
543
479
  - test/fixtures/stylesheets/compass/sass/reset.sass
480
+ - test/fixtures/stylesheets/compass/sass/stretching.sass
481
+ - test/fixtures/stylesheets/compass/sass/transform.scss
544
482
  - test/fixtures/stylesheets/compass/sass/utilities.scss
545
483
  - test/fixtures/stylesheets/image_urls/config.rb
546
484
  - test/fixtures/stylesheets/image_urls/css/screen.css
@@ -579,19 +517,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
579
517
  requirements:
580
518
  - - ">="
581
519
  - !ruby/object:Gem::Version
582
- hash: 3
583
520
  segments:
584
521
  - 0
585
522
  version: "0"
586
523
  required_rubygems_version: !ruby/object:Gem::Requirement
587
524
  none: false
588
525
  requirements:
589
- - - ">="
526
+ - - ">"
590
527
  - !ruby/object:Gem::Version
591
- hash: 3
592
528
  segments:
593
- - 0
594
- version: "0"
529
+ - 1
530
+ - 3
531
+ - 1
532
+ version: 1.3.1
595
533
  requirements: []
596
534
 
597
535
  rubyforge_project:
@@ -659,6 +597,8 @@ test_files:
659
597
  - test/fixtures/stylesheets/compass/config.rb
660
598
  - test/fixtures/stylesheets/compass/css/border_radius.css
661
599
  - test/fixtures/stylesheets/compass/css/box.css
600
+ - test/fixtures/stylesheets/compass/css/box_shadow.css
601
+ - test/fixtures/stylesheets/compass/css/columns.css
662
602
  - test/fixtures/stylesheets/compass/css/fonts.css
663
603
  - test/fixtures/stylesheets/compass/css/gradients.css
664
604
  - test/fixtures/stylesheets/compass/css/image_size.css
@@ -668,6 +608,8 @@ test_files:
668
608
  - test/fixtures/stylesheets/compass/css/lists.css
669
609
  - test/fixtures/stylesheets/compass/css/print.css
670
610
  - test/fixtures/stylesheets/compass/css/reset.css
611
+ - test/fixtures/stylesheets/compass/css/stretching.css
612
+ - test/fixtures/stylesheets/compass/css/transform.css
671
613
  - test/fixtures/stylesheets/compass/css/utilities.css
672
614
  - test/fixtures/stylesheets/compass/images/100x150.gif
673
615
  - test/fixtures/stylesheets/compass/images/100x150.jpeg
@@ -676,6 +618,8 @@ test_files:
676
618
  - test/fixtures/stylesheets/compass/images/4x6.png
677
619
  - test/fixtures/stylesheets/compass/sass/border_radius.scss
678
620
  - test/fixtures/stylesheets/compass/sass/box.sass
621
+ - test/fixtures/stylesheets/compass/sass/box_shadow.scss
622
+ - test/fixtures/stylesheets/compass/sass/columns.scss
679
623
  - test/fixtures/stylesheets/compass/sass/fonts.sass
680
624
  - test/fixtures/stylesheets/compass/sass/gradients.sass
681
625
  - test/fixtures/stylesheets/compass/sass/image_size.sass
@@ -685,6 +629,8 @@ test_files:
685
629
  - test/fixtures/stylesheets/compass/sass/lists.scss
686
630
  - test/fixtures/stylesheets/compass/sass/print.sass
687
631
  - test/fixtures/stylesheets/compass/sass/reset.sass
632
+ - test/fixtures/stylesheets/compass/sass/stretching.sass
633
+ - test/fixtures/stylesheets/compass/sass/transform.scss
688
634
  - test/fixtures/stylesheets/compass/sass/utilities.scss
689
635
  - test/fixtures/stylesheets/image_urls/config.rb
690
636
  - test/fixtures/stylesheets/image_urls/css/screen.css