compass 0.10.0.pre5 → 0.10.0.pre6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/CHANGELOG.markdown +48 -0
  2. data/VERSION.yml +1 -1
  3. data/examples/css3/extensions/compass-colors/README.markdown +50 -0
  4. data/examples/css3/extensions/compass-colors/VERSION.yml +5 -0
  5. data/examples/css3/extensions/compass-colors/example/config.rb +13 -0
  6. data/examples/css3/extensions/compass-colors/example/src/_split_compliment_theme.sass +28 -0
  7. data/examples/css3/extensions/compass-colors/example/src/screen.sass +40 -0
  8. data/examples/css3/extensions/compass-colors/lib/compass-colors.rb +9 -0
  9. data/examples/css3/extensions/compass-colors/lib/compass-colors/compass_extension.rb +7 -0
  10. data/examples/css3/extensions/compass-colors/lib/compass-colors/hsl.rb +109 -0
  11. data/examples/css3/extensions/compass-colors/lib/compass-colors/sass_extensions.rb +112 -0
  12. data/examples/css3/extensions/compass-colors/spec/approximate_color_matching.rb +43 -0
  13. data/examples/css3/extensions/compass-colors/spec/sass_extensions_spec.rb +54 -0
  14. data/examples/css3/extensions/compass-colors/templates/analogous/_theme.sass +28 -0
  15. data/examples/css3/extensions/compass-colors/templates/analogous/manifest.rb +1 -0
  16. data/examples/css3/extensions/compass-colors/templates/basic/_theme.sass +7 -0
  17. data/examples/css3/extensions/compass-colors/templates/basic/manifest.rb +1 -0
  18. data/examples/css3/extensions/compass-colors/templates/complementary/_theme.sass +20 -0
  19. data/examples/css3/extensions/compass-colors/templates/complementary/manifest.rb +1 -0
  20. data/examples/css3/extensions/compass-colors/templates/split_complement/_theme.sass +28 -0
  21. data/examples/css3/extensions/compass-colors/templates/split_complement/manifest.rb +1 -0
  22. data/examples/css3/extensions/compass-colors/templates/triadic/_theme.sass +28 -0
  23. data/examples/css3/extensions/compass-colors/templates/triadic/manifest.rb +1 -0
  24. data/examples/css3/gradients.html.haml +60 -0
  25. data/examples/css3/index.html.haml +10 -8
  26. data/examples/css3/src/fancy-fonts.sass +1 -1
  27. data/examples/css3/src/gradients.sass +69 -0
  28. data/examples/css3/src/main.sass +38 -10
  29. data/frameworks/blueprint/stylesheets/blueprint/_liquid.sass +12 -10
  30. data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +1 -1
  31. data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +1 -1
  32. data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +1 -1
  33. data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +1 -1
  34. data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +1 -1
  35. data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +1 -1
  36. data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +1 -1
  37. data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +1 -1
  38. data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +1 -1
  39. data/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +1 -1
  40. data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +1 -1
  41. data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +1 -1
  42. data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +1 -1
  43. data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +1 -1
  44. data/frameworks/compass/stylesheets/compass/css3/_gradient.sass +54 -36
  45. data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +1 -0
  46. data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +7 -7
  47. data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +6 -2
  48. data/lib/compass.rb +1 -1
  49. data/lib/compass/app_integration/rails.rb +6 -0
  50. data/lib/compass/app_integration/rails/{action_controller.rb → actionpack2/action_controller.rb} +0 -0
  51. data/lib/compass/app_integration/rails/{sass_plugin.rb → actionpack2/sass_plugin.rb} +0 -0
  52. data/lib/compass/app_integration/rails/{urls.rb → actionpack2/urls.rb} +0 -0
  53. data/lib/compass/app_integration/rails/installer.rb +8 -5
  54. data/lib/compass/app_integration/rails/runtime.rb +8 -4
  55. data/lib/compass/commands/installer_command.rb +1 -3
  56. data/lib/compass/commands/project_base.rb +1 -3
  57. data/lib/compass/commands/write_configuration.rb +5 -2
  58. data/lib/compass/compiler.rb +7 -0
  59. data/lib/compass/configuration/adapters.rb +3 -3
  60. data/lib/compass/configuration/defaults.rb +4 -0
  61. data/lib/compass/configuration/helpers.rb +16 -0
  62. data/lib/compass/configuration/inheritance.rb +6 -2
  63. data/lib/compass/configuration/serialization.rb +8 -3
  64. data/lib/compass/exec.rb +5 -1
  65. data/lib/compass/frameworks.rb +15 -5
  66. data/lib/compass/logger.rb +8 -4
  67. data/lib/compass/sass_extensions/functions.rb +3 -2
  68. data/lib/compass/sass_extensions/functions/gradient_support.rb +186 -0
  69. data/lib/compass/sass_extensions/functions/image_size.rb +97 -0
  70. data/test/compass_test.rb +1 -1
  71. data/test/configuration_test.rb +30 -0
  72. data/test/fixtures/stylesheets/compass/100x150.jpg +0 -0
  73. data/test/fixtures/stylesheets/compass/css/gradients.css +71 -0
  74. data/test/fixtures/stylesheets/compass/css/image_size.css +15 -0
  75. data/test/fixtures/stylesheets/compass/css/layout.css +1 -0
  76. data/test/fixtures/stylesheets/compass/images/100x150.gif +0 -0
  77. data/test/fixtures/stylesheets/compass/images/100x150.jpeg +0 -0
  78. data/test/fixtures/stylesheets/compass/images/100x150.jpg +0 -0
  79. data/test/fixtures/stylesheets/compass/images/100x150.png +0 -0
  80. data/test/fixtures/stylesheets/compass/sass/gradients.sass +48 -0
  81. data/test/fixtures/stylesheets/compass/sass/image_size.sass +12 -0
  82. metadata +70 -15
  83. data/examples/css3/src/gradient.sass +0 -10
  84. data/lib/compass/sass_extensions/functions/color_stop.rb +0 -10
@@ -42,7 +42,7 @@ class CompassTest < Test::Unit::TestCase
42
42
  each_css_file(proj.css_path) do |css_file|
43
43
  assert_no_errors css_file, 'compass'
44
44
  end
45
- assert_renders_correctly :reset, :layout, :utilities
45
+ assert_renders_correctly :reset, :layout, :utilities, :gradients, :image_size
46
46
  end
47
47
  end
48
48
 
@@ -93,6 +93,36 @@ css_dir = "css"
93
93
  # To enable relative paths to assets via compass helper functions. Uncomment:
94
94
  # relative_assets = true
95
95
  additional_import_paths = ["../foo", "/path/to/my/framework"]
96
+ EXPECTED
97
+ assert_equal "/", Compass.configuration.http_path
98
+ assert_equal expected_serialization.split("\n"), Compass.configuration.serialize.split("\n")
99
+ end
100
+
101
+ def test_config_with_pathname
102
+ contents = StringIO.new(<<-CONFIG)
103
+ http_path = "/"
104
+ project_path = Pathname.new("/home/chris/my_compass_project")
105
+ css_dir = "css"
106
+ additional_import_paths = ["../foo"]
107
+ add_import_path "/path/to/my/framework"
108
+ CONFIG
109
+
110
+ Compass.add_configuration(contents, "test_additional_import_paths")
111
+
112
+ assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/home/chris/my_compass_project/../foo")
113
+ assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/path/to/my/framework"), Compass.configuration.to_sass_engine_options[:load_paths].inspect
114
+ assert_equal "/home/chris/my_compass_project/css/framework", Compass.configuration.to_sass_plugin_options[:template_location]["/path/to/my/framework"]
115
+ assert_equal "/home/chris/my_compass_project/css/foo", Compass.configuration.to_sass_plugin_options[:template_location]["/home/chris/my_compass_project/../foo"]
116
+
117
+ expected_serialization = <<EXPECTED
118
+ # Require any additional compass plugins here.
119
+ project_path = "/home/chris/my_compass_project"
120
+ # Set this to the root of your project when deployed:
121
+ http_path = "/"
122
+ css_dir = "css"
123
+ # To enable relative paths to assets via compass helper functions. Uncomment:
124
+ # relative_assets = true
125
+ additional_import_paths = ["../foo", "/path/to/my/framework"]
96
126
  EXPECTED
97
127
  assert_equal "/", Compass.configuration.http_path
98
128
  assert_equal expected_serialization.split("\n"), Compass.configuration.serialize.split("\n")
@@ -0,0 +1,71 @@
1
+ .linear-1 {
2
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
3
+ background-image: -moz-linear-gradient(top, #dddddd 0%, #aaaaaa 100%); }
4
+
5
+ .linear-2 {
6
+ background-image: -webkit-gradient(linear, 0% 0%, 100% 0%, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
7
+ background-image: -moz-linear-gradient(left, #dddddd 0%, #aaaaaa 100%); }
8
+
9
+ .linear-3 {
10
+ background-image: -webkit-gradient(linear, 0% 0%, 100% 100%, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
11
+ background-image: -moz-linear-gradient(top left, #dddddd 0%, #aaaaaa 100%); }
12
+
13
+ .linear-4 {
14
+ background-image: -webkit-gradient(linear, 100% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
15
+ background-image: -moz-linear-gradient(top right, #dddddd 0%, #aaaaaa 100%); }
16
+
17
+ .linear-5 {
18
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(50%, #cccccc), color-stop(100%, #aaaaaa));
19
+ background-image: -moz-linear-gradient(top, #dddddd 0%, #cccccc 50%, #aaaaaa 100%); }
20
+
21
+ .linear-6 {
22
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(20%, #cccccc), color-stop(100%, #aaaaaa));
23
+ background-image: -moz-linear-gradient(top, #dddddd 0%, #cccccc 20%, #aaaaaa 100%); }
24
+
25
+ .linear-7 {
26
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(20%, #cccccc), color-stop(50.1%, #eeeeee), color-stop(100%, #aaaaaa));
27
+ background-image: -moz-linear-gradient(top, #dddddd 0%, #cccccc 20%, #eeeeee 50.1%, #aaaaaa 100%); }
28
+
29
+ .linear-8 {
30
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(80%, #dddddd), color-stop(100%, #aaaaaa));
31
+ background-image: -moz-linear-gradient(top, #dddddd 80%, #aaaaaa 100%); }
32
+
33
+ .linear-9 {
34
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
35
+ background-image: -moz-linear-gradient(top, #dddddd 0%, #aaaaaa 20%); }
36
+
37
+ .linear-10 {
38
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(80%, #dddddd), color-stop(100%, #aaaaaa));
39
+ background-image: -moz-linear-gradient(top, #dddddd 40%, #aaaaaa 50%); }
40
+
41
+ .linear-11 {
42
+ background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(80%, #dddddd), color-stop(90%, black), color-stop(100%, #aaaaaa));
43
+ background-image: -moz-linear-gradient(top, #dddddd 40%, black 45%, #aaaaaa 50%); }
44
+
45
+ .radial-1 {
46
+ background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 100, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
47
+ background-image: -moz-radial-gradient(center center, circle, #dddddd 0%, #aaaaaa 100%); }
48
+
49
+ .radial-2 {
50
+ background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 100, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
51
+ background-image: -moz-radial-gradient(center center, circle, #dddddd 0%, #aaaaaa 100%); }
52
+
53
+ .radial-3 {
54
+ background-image: -webkit-gradient(radial, 50% 0%, 0, 50% 0%, 100, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
55
+ background-image: -moz-radial-gradient(top center, circle, #dddddd 0%, #aaaaaa 100%); }
56
+
57
+ .radial-4 {
58
+ background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 100, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
59
+ background-image: -moz-radial-gradient(center center, circle, #dddddd 0%, #aaaaaa 100%); }
60
+
61
+ .radial-5 {
62
+ background-image: -webkit-gradient(radial, 50% 0%, 0, 50% 0%, 100, color-stop(0%, #dddddd), color-stop(100%, #aaaaaa));
63
+ background-image: -moz-radial-gradient(top center, circle, #dddddd 0%, #aaaaaa 100%); }
64
+
65
+ .radial-6 {
66
+ background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 50, color-stop(40%, #dddddd), color-stop(100%, #aaaaaa));
67
+ background-image: -moz-radial-gradient(center center, circle, #dddddd 20px, #aaaaaa 50px); }
68
+
69
+ .radial-7 {
70
+ background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 50, color-stop(20%, #dddddd), color-stop(100%, #aaaaaa));
71
+ background-image: -moz-radial-gradient(center center, circle, #dddddd 20%, #aaaaaa 50px); }
@@ -0,0 +1,15 @@
1
+ .png {
2
+ width: 100px;
3
+ height: 150px; }
4
+
5
+ .jpg {
6
+ width: 100px;
7
+ height: 150px; }
8
+
9
+ .jpeg {
10
+ width: 100px;
11
+ height: 150px; }
12
+
13
+ .gif {
14
+ width: 100px;
15
+ height: 150px; }
@@ -2,6 +2,7 @@ html, body {
2
2
  height: 100%; }
3
3
 
4
4
  #layout {
5
+ clear: both;
5
6
  min-height: 100%;
6
7
  height: auto !important;
7
8
  height: 100%;
@@ -0,0 +1,48 @@
1
+ @import compass/css3.sass
2
+
3
+ .linear-1
4
+ +linear-gradient(color_stops(#ddd, #aaa))
5
+ .linear-2
6
+ +linear-gradient(color_stops(#ddd, #aaa), "left")
7
+ .linear-3
8
+ +linear-gradient(color_stops(#ddd, #aaa), "top left")
9
+ .linear-4
10
+ +linear-gradient(color_stops(#ddd, #aaa), "top right")
11
+ .linear-5
12
+ +linear-gradient(color_stops(#ddd, #ccc, #aaa))
13
+ .linear-6
14
+ +linear-gradient(color_stops(#ddd, #ccc 20%, #aaa))
15
+ .linear-7
16
+ +linear-gradient(color_stops(#ddd, #ccc 20%, #eee, #aaa))
17
+ .linear-8
18
+ +linear-gradient(color_stops(#ddd 80%, #aaa))
19
+ .linear-9
20
+ +linear-gradient(color_stops(#ddd, #aaa 20%))
21
+ .linear-10
22
+ +linear-gradient(color_stops(#ddd 40%, #aaa 50%))
23
+ .linear-11
24
+ +linear-gradient(color_stops(#ddd 40%, #000, #aaa 50%))
25
+ .radial-1
26
+ // A default radial gradient:
27
+ // A centered gradient having the shape of the container (aka ellipse)
28
+ +radial-gradient(color_stops(#ddd, #aaa))
29
+ .radial-2
30
+ // A centered gradient having the shape of the container (aka ellipse)
31
+ +radial-gradient(color_stops(#ddd, #aaa))
32
+ .radial-3
33
+ // A centered gradient at the top having the shape of the container (aka ellipse)
34
+ +radial-gradient(color_stops(#ddd, #aaa), "top center")
35
+ .radial-4
36
+ // A centered gradient having a circular shape
37
+ +radial-gradient(color_stops(#ddd, #aaa))
38
+ .radial-5
39
+ // A centered gradient at the top having a circular shape
40
+ +radial-gradient(color_stops(#ddd, #aaa), "top center")
41
+ .radial-6
42
+ // A centered circular gradient with color stops
43
+ // The color stops must be absolute units
44
+ +radial-gradient(color_stops(#ddd 20px, #aaa 50px))
45
+ .radial-7
46
+ // A centered elliptical gradient with color stops
47
+ // The color stops must be relative units
48
+ +radial-gradient(color_stops(#ddd 20%, #aaa 50px))
@@ -0,0 +1,12 @@
1
+ .png
2
+ width= image_width("100x150.png")
3
+ height= image_height("100x150.png")
4
+ .jpg
5
+ width= image_width("100x150.jpg")
6
+ height= image_height("100x150.jpg")
7
+ .jpeg
8
+ width= image_width("100x150.jpeg")
9
+ height= image_height("100x150.jpeg")
10
+ .gif
11
+ width= image_width("100x150.gif")
12
+ height= image_height("100x150.gif")
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: compass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.pre5
4
+ prerelease: true
5
+ segments:
6
+ - 0
7
+ - 10
8
+ - 0
9
+ - pre6
10
+ version: 0.10.0.pre6
5
11
  platform: ruby
6
12
  authors:
7
13
  - Chris Eppstein
@@ -9,19 +15,23 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2010-01-19 00:00:00 -08:00
18
+ date: 2010-02-22 00:00:00 -08:00
13
19
  default_executable: compass
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: haml
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
20
25
  requirements:
21
26
  - - ">="
22
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 2
30
+ - 2
31
+ - 14
23
32
  version: 2.2.14
24
- version:
33
+ type: :runtime
34
+ version_requirements: *id001
25
35
  description: Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS.
26
36
  email: chris@eppsteins.net
27
37
  executables:
@@ -120,15 +130,37 @@ files:
120
130
  - examples/compass/sticky_footer.html.haml
121
131
  - examples/compass/utilities.html.haml
122
132
  - examples/css3/config.rb
133
+ - examples/css3/extensions/compass-colors/README.markdown
134
+ - examples/css3/extensions/compass-colors/VERSION.yml
135
+ - examples/css3/extensions/compass-colors/example/config.rb
136
+ - examples/css3/extensions/compass-colors/example/src/_split_compliment_theme.sass
137
+ - examples/css3/extensions/compass-colors/example/src/screen.sass
138
+ - examples/css3/extensions/compass-colors/lib/compass-colors.rb
139
+ - examples/css3/extensions/compass-colors/lib/compass-colors/compass_extension.rb
140
+ - examples/css3/extensions/compass-colors/lib/compass-colors/hsl.rb
141
+ - examples/css3/extensions/compass-colors/lib/compass-colors/sass_extensions.rb
142
+ - examples/css3/extensions/compass-colors/spec/approximate_color_matching.rb
143
+ - examples/css3/extensions/compass-colors/spec/sass_extensions_spec.rb
144
+ - examples/css3/extensions/compass-colors/templates/analogous/_theme.sass
145
+ - examples/css3/extensions/compass-colors/templates/analogous/manifest.rb
146
+ - examples/css3/extensions/compass-colors/templates/basic/_theme.sass
147
+ - examples/css3/extensions/compass-colors/templates/basic/manifest.rb
148
+ - examples/css3/extensions/compass-colors/templates/complementary/_theme.sass
149
+ - examples/css3/extensions/compass-colors/templates/complementary/manifest.rb
150
+ - examples/css3/extensions/compass-colors/templates/split_complement/_theme.sass
151
+ - examples/css3/extensions/compass-colors/templates/split_complement/manifest.rb
152
+ - examples/css3/extensions/compass-colors/templates/triadic/_theme.sass
153
+ - examples/css3/extensions/compass-colors/templates/triadic/manifest.rb
123
154
  - examples/css3/extensions/fancy-fonts/templates/project/Vtks Revolt.ttf
124
155
  - examples/css3/extensions/fancy-fonts/templates/project/angelina.ttf
125
156
  - examples/css3/extensions/fancy-fonts/templates/project/fancy-fonts.sass
126
157
  - examples/css3/extensions/fancy-fonts/templates/project/manifest.rb
158
+ - examples/css3/gradients.html.haml
127
159
  - examples/css3/images/fresh-peas.jpg
128
160
  - examples/css3/index.html.haml
129
161
  - examples/css3/src/_base.sass
130
162
  - examples/css3/src/fancy-fonts.sass
131
- - examples/css3/src/gradient.sass
163
+ - examples/css3/src/gradients.sass
132
164
  - examples/css3/src/main.sass
133
165
  - examples/css3/stylesheets/fonts/Vtks Revolt.ttf
134
166
  - examples/css3/stylesheets/fonts/angelina.ttf
@@ -355,13 +387,13 @@ files:
355
387
  - lib/compass/app_integration/merb.rb
356
388
  - lib/compass/app_integration/merb/runtime.rb
357
389
  - lib/compass/app_integration/rails.rb
358
- - lib/compass/app_integration/rails/action_controller.rb
390
+ - lib/compass/app_integration/rails/actionpack2/action_controller.rb
391
+ - lib/compass/app_integration/rails/actionpack2/sass_plugin.rb
392
+ - lib/compass/app_integration/rails/actionpack2/urls.rb
359
393
  - lib/compass/app_integration/rails/configuration_defaults.rb
360
394
  - lib/compass/app_integration/rails/installer.rb
361
395
  - lib/compass/app_integration/rails/runtime.rb
362
- - lib/compass/app_integration/rails/sass_plugin.rb
363
396
  - lib/compass/app_integration/rails/templates/compass-install-rails.rb
364
- - lib/compass/app_integration/rails/urls.rb
365
397
  - lib/compass/app_integration/stand_alone.rb
366
398
  - lib/compass/app_integration/stand_alone/configuration_defaults.rb
367
399
  - lib/compass/app_integration/stand_alone/installer.rb
@@ -413,10 +445,11 @@ files:
413
445
  - lib/compass/logger.rb
414
446
  - lib/compass/sass_extensions.rb
415
447
  - lib/compass/sass_extensions/functions.rb
416
- - lib/compass/sass_extensions/functions/color_stop.rb
417
448
  - lib/compass/sass_extensions/functions/display.rb
418
449
  - lib/compass/sass_extensions/functions/enumerate.rb
419
450
  - lib/compass/sass_extensions/functions/font_files.rb
451
+ - lib/compass/sass_extensions/functions/gradient_support.rb
452
+ - lib/compass/sass_extensions/functions/image_size.rb
420
453
  - lib/compass/sass_extensions/functions/inline_image.rb
421
454
  - lib/compass/sass_extensions/functions/selectors.rb
422
455
  - lib/compass/sass_extensions/functions/urls.rb
@@ -451,11 +484,20 @@ files:
451
484
  - test/fixtures/stylesheets/blueprint/sass/print.sass
452
485
  - test/fixtures/stylesheets/blueprint/sass/screen.sass
453
486
  - test/fixtures/stylesheets/blueprint/sass/typography.sass
487
+ - test/fixtures/stylesheets/compass/100x150.jpg
454
488
  - test/fixtures/stylesheets/compass/config.rb
489
+ - test/fixtures/stylesheets/compass/css/gradients.css
490
+ - test/fixtures/stylesheets/compass/css/image_size.css
455
491
  - test/fixtures/stylesheets/compass/css/layout.css
456
492
  - test/fixtures/stylesheets/compass/css/print.css
457
493
  - test/fixtures/stylesheets/compass/css/reset.css
458
494
  - test/fixtures/stylesheets/compass/css/utilities.css
495
+ - test/fixtures/stylesheets/compass/images/100x150.gif
496
+ - test/fixtures/stylesheets/compass/images/100x150.jpeg
497
+ - test/fixtures/stylesheets/compass/images/100x150.jpg
498
+ - test/fixtures/stylesheets/compass/images/100x150.png
499
+ - test/fixtures/stylesheets/compass/sass/gradients.sass
500
+ - test/fixtures/stylesheets/compass/sass/image_size.sass
459
501
  - test/fixtures/stylesheets/compass/sass/layout.sass
460
502
  - test/fixtures/stylesheets/compass/sass/print.sass
461
503
  - test/fixtures/stylesheets/compass/sass/reset.sass
@@ -479,7 +521,7 @@ files:
479
521
  - test/test_case_helper.rb
480
522
  - test/test_helper.rb
481
523
  - test/test_rails_helper.rb
482
- has_rdoc: true
524
+ has_rdoc: false
483
525
  homepage: http://compass-style.org
484
526
  licenses: []
485
527
 
@@ -492,18 +534,22 @@ required_ruby_version: !ruby/object:Gem::Requirement
492
534
  requirements:
493
535
  - - ">="
494
536
  - !ruby/object:Gem::Version
537
+ segments:
538
+ - 0
495
539
  version: "0"
496
- version:
497
540
  required_rubygems_version: !ruby/object:Gem::Requirement
498
541
  requirements:
499
542
  - - ">"
500
543
  - !ruby/object:Gem::Version
544
+ segments:
545
+ - 1
546
+ - 3
547
+ - 1
501
548
  version: 1.3.1
502
- version:
503
549
  requirements: []
504
550
 
505
551
  rubyforge_project: compass
506
- rubygems_version: 1.3.5
552
+ rubygems_version: 1.3.6
507
553
  signing_key:
508
554
  specification_version: 3
509
555
  summary: A Real Stylesheet Framework
@@ -520,11 +566,20 @@ test_files:
520
566
  - test/fixtures/stylesheets/blueprint/sass/print.sass
521
567
  - test/fixtures/stylesheets/blueprint/sass/screen.sass
522
568
  - test/fixtures/stylesheets/blueprint/sass/typography.sass
569
+ - test/fixtures/stylesheets/compass/100x150.jpg
523
570
  - test/fixtures/stylesheets/compass/config.rb
571
+ - test/fixtures/stylesheets/compass/css/gradients.css
572
+ - test/fixtures/stylesheets/compass/css/image_size.css
524
573
  - test/fixtures/stylesheets/compass/css/layout.css
525
574
  - test/fixtures/stylesheets/compass/css/print.css
526
575
  - test/fixtures/stylesheets/compass/css/reset.css
527
576
  - test/fixtures/stylesheets/compass/css/utilities.css
577
+ - test/fixtures/stylesheets/compass/images/100x150.gif
578
+ - test/fixtures/stylesheets/compass/images/100x150.jpeg
579
+ - test/fixtures/stylesheets/compass/images/100x150.jpg
580
+ - test/fixtures/stylesheets/compass/images/100x150.png
581
+ - test/fixtures/stylesheets/compass/sass/gradients.sass
582
+ - test/fixtures/stylesheets/compass/sass/image_size.sass
528
583
  - test/fixtures/stylesheets/compass/sass/layout.sass
529
584
  - test/fixtures/stylesheets/compass/sass/print.sass
530
585
  - test/fixtures/stylesheets/compass/sass/reset.sass
@@ -1,10 +0,0 @@
1
- @import compass/css3/gradient.sass
2
-
3
- #gradient
4
- width: 200px
5
- height: 100px
6
- border: 1px solid #777
7
- .linear
8
- +v-gradient(#fff, #aaa, color_stop(50%, #ccc, 50%, #bbb))
9
- .radial
10
- +radial-gradient("45 45, 10, 52 50, 30", "Cyan", "DodgerBlue")
@@ -1,10 +0,0 @@
1
- module Compass::SassExtensions::Functions::ColorStop
2
- def color_stop(*args)
3
- raise Sass::SyntaxError, "An even number of arguments must be passed to color-stop()" unless args.size % 2 == 0
4
- stops = []
5
- while args.size > 0
6
- stops << "color-stop(#{args.shift}, #{args.shift})"
7
- end
8
- Sass::Script::String.new(stops.join(", "))
9
- end
10
- end