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,9 @@
1
+ module Compass::SassExtensions::Functions::If
2
+ def if(truth, if_true, if_false = nil)
3
+ if truth.to_bool
4
+ if_true
5
+ else
6
+ if_false || Sass::Script::Bool.new(false)
7
+ end
8
+ end
9
+ end
@@ -3,8 +3,7 @@ module Compass::SassExtensions::Functions::InlineImage
3
3
  def inline_image(path, mime_type = nil)
4
4
  path = path.value
5
5
  real_path = File.join(Compass.configuration.images_path, path)
6
- url = "url('data:#{compute_mime_type(path,mime_type)};base64,#{data(real_path)}')"
7
- Sass::Script::String.new(url)
6
+ inline_image_string(data(real_path), compute_mime_type(path, mime_type))
8
7
  end
9
8
 
10
9
  def inline_font_files(*args)
@@ -19,6 +18,13 @@ module Compass::SassExtensions::Functions::InlineImage
19
18
  Sass::Script::String.new(files.join(", "))
20
19
  end
21
20
 
21
+ protected
22
+ def inline_image_string(data, mime_type)
23
+ data = [data].flatten.pack('m').gsub("\n","")
24
+ url = "url('data:#{mime_type};base64,#{data}')"
25
+ Sass::Script::String.new(url)
26
+ end
27
+
22
28
  private
23
29
  def compute_mime_type(path, mime_type = nil)
24
30
  return mime_type if mime_type
@@ -46,7 +52,7 @@ private
46
52
 
47
53
  def data(real_path)
48
54
  if File.readable?(real_path)
49
- [File.open(real_path, "rb") {|io| io.read}].pack('m').gsub("\n","")
55
+ File.open(real_path, "rb") {|io| io.read}
50
56
  else
51
57
  raise Compass::Error, "File not found or cannot be read: #{real_path}"
52
58
  end
@@ -0,0 +1,27 @@
1
+ module Compass::SassExtensions::Functions::Trig
2
+
3
+ def pi()
4
+ Sass::Script::Number.new(Math::PI)
5
+ end
6
+
7
+ def sin(number)
8
+ trig(:sin, number)
9
+ end
10
+
11
+ def cos(number)
12
+ trig(:cos, number)
13
+ end
14
+
15
+ def tan(number)
16
+ trig(:tan, number)
17
+ end
18
+
19
+ private
20
+ def trig(operation, number)
21
+ if number.numerator_units == ["deg"] && number.denominator_units == []
22
+ Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 360))
23
+ else
24
+ Sass::Script::Number.new(Math.send(operation, number.value), number.numerator_units, number.denominator_units)
25
+ end
26
+ end
27
+ end
@@ -24,8 +24,13 @@ module Compass
24
24
  require 'yaml'
25
25
  @version = YAML::load(File.read(scope('VERSION.yml')))
26
26
  @version[:teeny] = @version[:patch]
27
- @version[:string] = "#{@version[:major]}.#{@version[:minor]}.#{@version[:patch]}"
27
+ @version[:string] = "#{@version[:major]}.#{@version[:minor]}"
28
+ @version[:string] << ".#{@version[:patch]}" if @version[:patch]
29
+ @version[:string] << ".#{@version[:state]}" if @version[:state]
28
30
  @version[:string] << ".#{@version[:build]}" if @version[:build]
31
+ if !ENV['OFFICIAL'] && r = revision
32
+ @version[:string] << ".#{r[0..6]}"
33
+ end
29
34
  @version
30
35
  end
31
36
 
@@ -0,0 +1,2 @@
1
+ require 'compass'
2
+ require 'compass/app_integration/rails'
@@ -15,17 +15,16 @@ class CommandLineTest < Test::Unit::TestCase
15
15
 
16
16
  def test_print_version
17
17
  compass "-vq"
18
- assert_match /\d+\.\d+\.\d+( [0-9a-f]+)?/, @last_result
18
+ assert_match /\d+\.\d+\.(\d+|((alpha|beta|rc)\.\d+\.[0-9a-f]+))?/, @last_result
19
19
  end
20
20
 
21
21
  def test_basic_install
22
22
  within_tmp_directory do
23
23
  compass "--boring", "basic"
24
- assert File.exists?("basic/src/screen.scss")
24
+ assert File.exists?("basic/sass/screen.scss")
25
25
  assert File.exists?("basic/stylesheets/screen.css")
26
26
  assert_action_performed :directory, "basic/"
27
- assert_action_performed :create, "basic/src/screen.scss"
28
- assert_action_performed :compile, "basic/src/screen.scss"
27
+ assert_action_performed :create, "basic/sass/screen.scss"
29
28
  assert_action_performed :create, "basic/stylesheets/screen.css"
30
29
  end
31
30
  end
@@ -35,11 +34,10 @@ class CommandLineTest < Test::Unit::TestCase
35
34
  define_method "test_#{framework.name}_installation" do
36
35
  within_tmp_directory do
37
36
  compass *%W(--boring --framework #{framework.name} #{framework.name}_project)
38
- assert File.exists?("#{framework.name}_project/src/screen.scss"), "src/screen.scss is missing. Found: #{Dir.glob("#{framework.name}_project/**/*").join(", ")}"
37
+ assert File.exists?("#{framework.name}_project/sass/screen.scss"), "sass/screen.scss is missing. Found: #{Dir.glob("#{framework.name}_project/**/*").join(", ")}"
39
38
  assert File.exists?("#{framework.name}_project/stylesheets/screen.css")
40
39
  assert_action_performed :directory, "#{framework.name}_project/"
41
- assert_action_performed :create, "#{framework.name}_project/src/screen.scss"
42
- assert_action_performed :compile, "#{framework.name}_project/src/screen.scss"
40
+ assert_action_performed :create, "#{framework.name}_project/sass/screen.scss"
43
41
  assert_action_performed :create, "#{framework.name}_project/stylesheets/screen.css"
44
42
  end
45
43
  end
@@ -51,10 +49,9 @@ class CommandLineTest < Test::Unit::TestCase
51
49
  Dir.chdir "basic" do
52
50
  # basic update with timestamp caching
53
51
  compass "--boring"
54
- assert_action_performed :unchanged, "src/screen.scss"
52
+ assert_action_performed :unchanged, "sass/screen.scss"
55
53
  # basic update with force option set
56
54
  compass "--force", "--boring"
57
- assert_action_performed :compile, "src/screen.scss"
58
55
  assert_action_performed :identical, "stylesheets/screen.css"
59
56
  end
60
57
  end
@@ -1,6 +1,8 @@
1
1
  require 'test_helper'
2
2
  require 'fileutils'
3
3
  require 'compass'
4
+ require 'compass/logger'
5
+ require 'sass/plugin'
4
6
 
5
7
  class CompassTest < Test::Unit::TestCase
6
8
  include Compass::TestCaseHelper
@@ -24,6 +24,14 @@ class ConfigurationTest < Test::Unit::TestCase
24
24
  output_style = :nested
25
25
  # To enable relative paths to assets via compass helper functions. Uncomment:
26
26
  # relative_assets = true
27
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
28
+ # line_comments = false
29
+
30
+ # If you prefer the indented syntax, you might want to regenerate this
31
+ # project again passing --syntax sass, or you can uncomment this:
32
+ # preferred_syntax = :sass
33
+ # and then run:
34
+ # sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
27
35
  CONFIG
28
36
 
29
37
  Compass.add_configuration(contents, "test_parse")
@@ -90,9 +98,13 @@ project_path = "/home/chris/my_compass_project"
90
98
  # Set this to the root of your project when deployed:
91
99
  http_path = "/"
92
100
  css_dir = "css"
101
+ # You can select your preferred output style here (can be overridden via the command line):
102
+ # output_style = :expanded or :nested or :compact or :compressed
93
103
  # To enable relative paths to assets via compass helper functions. Uncomment:
94
104
  # relative_assets = true
95
105
  additional_import_paths = ["../foo", "/path/to/my/framework"]
106
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
107
+ # line_comments = false
96
108
  EXPECTED
97
109
  assert_equal "/", Compass.configuration.http_path
98
110
  assert_equal expected_serialization.split("\n"), Compass.configuration.serialize.split("\n")
@@ -120,9 +132,13 @@ project_path = "/home/chris/my_compass_project"
120
132
  # Set this to the root of your project when deployed:
121
133
  http_path = "/"
122
134
  css_dir = "css"
135
+ # You can select your preferred output style here (can be overridden via the command line):
136
+ # output_style = :expanded or :nested or :compact or :compressed
123
137
  # To enable relative paths to assets via compass helper functions. Uncomment:
124
138
  # relative_assets = true
125
139
  additional_import_paths = ["../foo", "/path/to/my/framework"]
140
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
141
+ # line_comments = false
126
142
  EXPECTED
127
143
  assert_equal "/", Compass.configuration.http_path
128
144
  assert_equal expected_serialization.split("\n"), Compass.configuration.serialize.split("\n")
@@ -142,9 +158,13 @@ EXPECTED
142
158
  # Require any additional compass plugins here.
143
159
  # Set this to the root of your project when deployed:
144
160
  http_path = "/"
161
+ # You can select your preferred output style here (can be overridden via the command line):
162
+ # output_style = :expanded or :nested or :compact or :compressed
145
163
  # To enable relative paths to assets via compass helper functions. Uncomment:
146
164
  # relative_assets = true
147
165
  sass_options = {:foo=>"bar"}
166
+ # To disable debugging comments that display the original location of your selectors. Uncomment:
167
+ # line_comments = false
148
168
  EXPECTED
149
169
 
150
170
  assert_equal expected_serialization, Compass.configuration.serialize
@@ -24,9 +24,25 @@ img {
24
24
  fieldset {
25
25
  padding-top: 0; }
26
26
 
27
+ legend {
28
+ margin-top: -0.2em;
29
+ margin-bottom: 1em;
30
+ margin-left: -0.5em; }
31
+
32
+ fieldset, #IE8#HACK {
33
+ padding-top: 1.4em; }
34
+
35
+ legend, #IE8#HACK {
36
+ margin-top: 0;
37
+ margin-bottom: 0; }
38
+
27
39
  textarea {
28
40
  overflow: auto; }
29
41
 
42
+ label {
43
+ position: relative;
44
+ top: -0.25em; }
45
+
30
46
  input.text {
31
47
  margin: 0.5em 0;
32
48
  background-color: white;
@@ -84,12 +84,12 @@ h6 {
84
84
 
85
85
  p {
86
86
  margin: 0 0 1.5em; }
87
- p img.left {
87
+ p .left {
88
88
  display: inline;
89
89
  float: left;
90
90
  margin: 1.5em 1.5em 1.5em 0;
91
91
  padding: 0; }
92
- p img.right {
92
+ p .right {
93
93
  display: inline;
94
94
  float: right;
95
95
  margin: 1.5em 0 1.5em 1.5em;
@@ -97,31 +97,27 @@ p {
97
97
 
98
98
  a {
99
99
  text-decoration: underline;
100
- color: #000099; }
100
+ color: #0066cc; }
101
101
  a:visited {
102
- color: #000066; }
102
+ color: #004c99; }
103
103
  a:focus {
104
- color: black; }
104
+ color: #0099ff; }
105
105
  a:hover {
106
- color: black; }
106
+ color: #0099ff; }
107
107
  a:active {
108
- color: #cc0099; }
108
+ color: #bf00ff; }
109
109
 
110
110
  blockquote {
111
111
  margin: 1.5em;
112
112
  color: #666666;
113
113
  font-style: italic; }
114
114
 
115
- strong {
115
+ strong, dfn {
116
116
  font-weight: bold; }
117
117
 
118
- em {
118
+ em, dfn {
119
119
  font-style: italic; }
120
120
 
121
- dfn {
122
- font-style: italic;
123
- font-weight: bold; }
124
-
125
121
  sup, sub {
126
122
  line-height: 0; }
127
123
 
@@ -148,7 +144,7 @@ li ul, li ol {
148
144
 
149
145
  ul, ol {
150
146
  margin: 0 1.5em 1.5em 0;
151
- padding-left: 3.333em; }
147
+ padding-left: 1.5em; }
152
148
 
153
149
  ul {
154
150
  list-style-type: disc; }
@@ -177,7 +173,8 @@ thead th {
177
173
  th, td, caption {
178
174
  padding: 4px 10px 4px 5px; }
179
175
 
180
- tr.even td {
176
+ table.striped tr:nth-child(even) td,
177
+ table tr.even td {
181
178
  background: #e5ecf9; }
182
179
 
183
180
  tfoot {
@@ -234,14 +231,14 @@ caption {
234
231
  overflow: hidden;
235
232
  *zoom: 1; }
236
233
 
237
- .column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {
234
+ .column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {
238
235
  display: inline;
239
236
  float: left;
240
237
  margin-right: 10px; }
241
- * html .column, * html div.span-1, * html div.span-2, * html div.span-3, * html div.span-4, * html div.span-5, * html div.span-6, * html div.span-7, * html div.span-8, * html div.span-9, * html div.span-10, * html div.span-11, * html div.span-12, * html div.span-13, * html div.span-14, * html div.span-15, * html div.span-16, * html div.span-17, * html div.span-18, * html div.span-19, * html div.span-20, * html div.span-21, * html div.span-22, * html div.span-23, * html div.span-24 {
238
+ * html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {
242
239
  overflow-x: hidden; }
243
240
 
244
- .last, div.last {
241
+ .last {
245
242
  margin-right: 0; }
246
243
 
247
244
  .span-1 {
@@ -313,7 +310,7 @@ caption {
313
310
  .span-23 {
314
311
  width: 910px; }
315
312
 
316
- .span-24, div.span-24 {
313
+ .span-24 {
317
314
  width: 950px;
318
315
  margin: 0; }
319
316
 
@@ -583,7 +580,7 @@ input.span-24, textarea.span-24, select.span-24 {
583
580
 
584
581
  .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {
585
582
  display: inline;
586
- float: right;
583
+ float: left;
587
584
  position: relative; }
588
585
 
589
586
  .push-1 {
@@ -667,20 +664,19 @@ input.span-24, textarea.span-24, select.span-24 {
667
664
  .showgrid {
668
665
  background: url('/images/grid.png?busted=true'); }
669
666
 
670
- .error {
667
+ .feedback, .error, .alert, .notice, .success, .info {
671
668
  padding: 0.8em;
672
669
  margin-bottom: 1em;
673
- border: 2px solid #dddddd;
670
+ border: 2px solid #dddddd; }
671
+
672
+ .error, .alert {
674
673
  background: #fbe3e4;
675
674
  color: #8a1f11;
676
675
  border-color: #fbc2c4; }
677
- .error a {
676
+ .error a, .alert a {
678
677
  color: #8a1f11; }
679
678
 
680
679
  .notice {
681
- padding: 0.8em;
682
- margin-bottom: 1em;
683
- border: 2px solid #dddddd;
684
680
  background: #fff6bf;
685
681
  color: #514721;
686
682
  border-color: #ffd324; }
@@ -688,15 +684,19 @@ input.span-24, textarea.span-24, select.span-24 {
688
684
  color: #514721; }
689
685
 
690
686
  .success {
691
- padding: 0.8em;
692
- margin-bottom: 1em;
693
- border: 2px solid #dddddd;
694
687
  background: #e6efc2;
695
688
  color: #264409;
696
689
  border-color: #c6d880; }
697
690
  .success a {
698
691
  color: #264409; }
699
692
 
693
+ .info {
694
+ background: #d5edf8;
695
+ color: #205791;
696
+ border-color: #92cae4; }
697
+ .info a {
698
+ color: #205791; }
699
+
700
700
  .hide {
701
701
  display: none; }
702
702
 
@@ -728,9 +728,6 @@ input.text, input.title, input[type=email], input[type=text], input[type=passwor
728
728
  padding: 5px; }
729
729
  input.title {
730
730
  font-size: 1.5em; }
731
- input[type=checkbox], input.checkbox, input[type=radio], input.radio {
732
- position: relative;
733
- top: 0.25em; }
734
731
 
735
732
  textarea {
736
733
  margin: 0.5em 0;
@@ -743,12 +740,18 @@ fieldset {
743
740
  border: 1px solid #cccccc; }
744
741
 
745
742
  input.text, input.title, input[type=email], input[type=text], input[type=password],
746
- textarea, select {
743
+ textarea {
744
+ background-color: #fff;
747
745
  border: 1px solid #bbbbbb; }
748
746
  input.text:focus, input.title:focus, input[type=email]:focus, input[type=text]:focus, input[type=password]:focus,
749
- textarea:focus, select:focus {
747
+ textarea:focus {
750
748
  border: 1px solid #666666; }
751
749
 
750
+ select {
751
+ background-color: #fff;
752
+ border-width: 1px;
753
+ border-style: solid; }
754
+
752
755
  input.text, input.title, input[type=email], input[type=text], input[type=password] {
753
756
  width: 300px; }
754
757
 
@@ -14,19 +14,19 @@
14
14
  color: #666666; }
15
15
 
16
16
  .link-color {
17
- color: #000099; }
17
+ color: #0066cc; }
18
18
 
19
19
  .link-hover-color {
20
- color: black; }
20
+ color: #0099ff; }
21
21
 
22
22
  .link-focus-color {
23
- color: black; }
23
+ color: #0099ff; }
24
24
 
25
25
  .link-active-color {
26
- color: #cc0099; }
26
+ color: #bf00ff; }
27
27
 
28
28
  .link-visited-color {
29
- color: #000066; }
29
+ color: #004c99; }
30
30
 
31
31
  .feedback-border-color {
32
32
  color: #dddddd; }
@@ -17,9 +17,6 @@ form.bp input.text, form.bp input.title, form.bp input[type=email], form.bp inpu
17
17
  padding: 5px; }
18
18
  form.bp input.title {
19
19
  font-size: 1.5em; }
20
- form.bp input[type=checkbox], form.bp input.checkbox, form.bp input[type=radio], form.bp input.radio {
21
- position: relative;
22
- top: 0.25em; }
23
20
  form.bp textarea {
24
21
  margin: 0.5em 0;
25
22
  padding: 5px; }
@@ -28,11 +25,16 @@ form.bp select {
28
25
  form.bp fieldset {
29
26
  border: 1px solid #cccccc; }
30
27
  form.bp input.text, form.bp input.title, form.bp input[type=email], form.bp input[type=text], form.bp input[type=password],
31
- form.bp textarea, form.bp select {
28
+ form.bp textarea {
29
+ background-color: #fff;
32
30
  border: 1px solid #bbbbbb; }
33
31
  form.bp input.text:focus, form.bp input.title:focus, form.bp input[type=email]:focus, form.bp input[type=text]:focus, form.bp input[type=password]:focus,
34
- form.bp textarea:focus, form.bp select:focus {
32
+ form.bp textarea:focus {
35
33
  border: 1px solid #666666; }
34
+ form.bp select {
35
+ background-color: #fff;
36
+ border-width: 1px;
37
+ border-style: solid; }
36
38
  form.bp input.text, form.bp input.title, form.bp input[type=email], form.bp input[type=text], form.bp input[type=password] {
37
39
  width: 300px; }
38
40
  form.bp textarea {