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.
- data/Rakefile +6 -6
- data/VERSION.yml +3 -3
- data/examples/blueprint_default/parts/forms.html.haml +8 -0
- data/examples/css3/src/main.scss +4 -0
- data/features/command_line.feature +20 -3
- data/features/step_definitions/command_line_steps.rb +7 -1
- data/frameworks/blueprint/stylesheets/_blueprint.scss +2 -12
- data/frameworks/blueprint/stylesheets/blueprint/_buttons.scss +34 -34
- data/frameworks/blueprint/stylesheets/blueprint/_colors.scss +32 -28
- data/frameworks/blueprint/stylesheets/blueprint/_debug.scss +3 -3
- data/frameworks/blueprint/stylesheets/blueprint/_fancy-type.scss +2 -2
- data/frameworks/blueprint/stylesheets/blueprint/_form.scss +14 -16
- data/frameworks/blueprint/stylesheets/blueprint/_grid.scss +39 -37
- data/frameworks/blueprint/stylesheets/blueprint/_ie.scss +17 -15
- data/frameworks/blueprint/stylesheets/blueprint/_interaction.scss +53 -44
- data/frameworks/blueprint/stylesheets/blueprint/_liquid.scss +26 -26
- data/frameworks/blueprint/stylesheets/blueprint/_print.scss +13 -20
- data/frameworks/blueprint/stylesheets/blueprint/_rtl.scss +32 -44
- data/frameworks/blueprint/stylesheets/blueprint/_scaffolding.scss +10 -12
- data/frameworks/blueprint/stylesheets/blueprint/_typography.scss +18 -32
- data/frameworks/blueprint/stylesheets/blueprint/reset/_utilities.scss +50 -25
- data/frameworks/compass/stylesheets/compass/_css3.scss +1 -15
- data/frameworks/compass/stylesheets/compass/_layout.scss +1 -0
- data/frameworks/compass/stylesheets/compass/_support.scss +4 -0
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow-v2.scss +98 -0
- data/frameworks/compass/stylesheets/compass/css3/_box-shadow.scss +7 -40
- data/frameworks/compass/stylesheets/compass/css3/_box.scss +0 -1
- data/frameworks/compass/stylesheets/compass/css3/_columns.scss +23 -18
- data/frameworks/compass/stylesheets/compass/css3/_font-face.scss +2 -3
- data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +66 -42
- data/frameworks/compass/stylesheets/compass/css3/_images.scss +52 -0
- data/frameworks/compass/stylesheets/compass/css3/_shared.scss +1 -1
- data/frameworks/compass/stylesheets/compass/css3/_text-shadow-v2.scss +72 -0
- data/frameworks/compass/stylesheets/compass/css3/_transform-v2.scss +584 -0
- data/frameworks/compass/stylesheets/compass/css3/_version-1.scss +16 -0
- data/frameworks/compass/stylesheets/compass/css3/_version-2.scss +16 -0
- data/frameworks/compass/stylesheets/compass/layout/_stretching.scss +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.scss +4 -4
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal-list.scss +5 -1
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-list.scss +7 -1
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.scss +7 -1
- data/lib/compass/actions.rb +1 -1
- data/lib/compass/app_integration/rails/actionpack3/railtie.rb +18 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rb +22 -0
- data/lib/compass/app_integration/rails/installer.rb +77 -34
- data/lib/compass/app_integration/rails/runtime.rb +3 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rb +1 -1
- data/lib/compass/commands/print_version.rb +1 -1
- data/lib/compass/commands/update_project.rb +2 -2
- data/lib/compass/commands/write_configuration.rb +10 -1
- data/lib/compass/compiler.rb +1 -5
- data/lib/compass/configuration.rb +2 -1
- data/lib/compass/configuration/adapters.rb +2 -1
- data/lib/compass/configuration/comments.rb +34 -1
- data/lib/compass/configuration/helpers.rb +3 -7
- data/lib/compass/configuration/paths.rb +1 -1
- data/lib/compass/exec/project_options_parser.rb +4 -0
- data/lib/compass/installers/base.rb +1 -1
- data/lib/compass/logger.rb +4 -2
- data/lib/compass/sass_extensions/functions.rb +6 -3
- data/lib/compass/sass_extensions/functions/colors.rb +58 -0
- data/lib/compass/sass_extensions/functions/constants.rb +1 -1
- data/lib/compass/sass_extensions/functions/display.rb +4 -2
- data/lib/compass/sass_extensions/functions/gradient_support.rb +343 -25
- data/lib/compass/sass_extensions/functions/if.rb +9 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +9 -3
- data/lib/compass/sass_extensions/functions/trig.rb +27 -0
- data/lib/compass/version.rb +6 -1
- data/lib/rails/init.rb +2 -0
- data/test/command_line_test.rb +6 -9
- data/test/compass_test.rb +2 -0
- data/test/configuration_test.rb +20 -0
- data/test/fixtures/stylesheets/blueprint/css/ie.css +16 -0
- data/test/fixtures/stylesheets/blueprint/css/screen.css +37 -34
- data/test/fixtures/stylesheets/blueprint/css/single-imports/colors.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/form.css +7 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/grid.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/ie.css +16 -0
- data/test/fixtures/stylesheets/blueprint/css/single-imports/interaction.css +12 -9
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset-utilities.css +23 -64
- data/test/fixtures/stylesheets/blueprint/css/single-imports/reset.css +13 -37
- data/test/fixtures/stylesheets/blueprint/css/single-imports/rtl.css +5 -5
- data/test/fixtures/stylesheets/blueprint/css/single-imports/scaffolding.css +4 -4
- data/test/fixtures/stylesheets/blueprint/css/single-imports/typography.css +12 -15
- data/test/fixtures/stylesheets/compass/config.rb +2 -0
- data/test/fixtures/stylesheets/compass/css/box.css +6 -13
- data/test/fixtures/stylesheets/compass/css/box_shadow.css +17 -0
- data/test/fixtures/stylesheets/compass/css/columns.css +47 -0
- data/test/fixtures/stylesheets/compass/css/gradients.css +240 -25
- data/test/fixtures/stylesheets/compass/css/lists.css +12 -4
- data/test/fixtures/stylesheets/compass/css/print.css +1 -1
- data/test/fixtures/stylesheets/compass/css/reset.css +2 -2
- data/test/fixtures/stylesheets/compass/css/stretching.css +66 -0
- data/test/fixtures/stylesheets/compass/css/transform.css +305 -0
- data/test/fixtures/stylesheets/compass/sass/box_shadow.scss +5 -0
- data/test/fixtures/stylesheets/compass/sass/columns.scss +10 -0
- data/test/fixtures/stylesheets/compass/sass/gradients.sass +151 -19
- data/test/fixtures/stylesheets/compass/sass/stretching.sass +34 -0
- data/test/fixtures/stylesheets/compass/sass/transform.scss +87 -0
- data/test/sass_extensions_test.rb +44 -0
- metadata +42 -96
- data/frameworks/_blueprint_deprecated_imports/stylesheets/_blueprint.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_buttons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_colors.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_debug.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_fancy_type.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_form.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_grid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_ie.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_interaction.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_link_icons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_liquid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_print.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_reset.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_rtl.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_scaffolding.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_screen.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_typography.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/_utilities.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_buttons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_colors.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_debug.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_fancy_type.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_form.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_grid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_interaction.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_link_icons.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_liquid.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_rtl.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_scaffolding.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_typography.sass +0 -2
- data/frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_utilities.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/_compass.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_css3.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_layout.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.sass +0 -1
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_misc.scss +0 -22
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_reset.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/_utilities.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_clip.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_origin.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_background_size.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_border_radius.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_shadow.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_box_sizing.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_columns.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_font_face.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_gradient.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_inline_block.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_opacity.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_text_shadow.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transform.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/css3/_transition.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/layout/_sticky_footer.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_general.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_links.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_lists.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_print.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_sprites.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_tables.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/_text.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_clearfix.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_float.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_hacks.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_min.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_reset.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/general/_tag_cloud.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_hover_link.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_link_colors.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/links/_unstyled_link.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_bullets.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_horizontal_list.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/lists/_inline_list.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/sprites/_sprite_img.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_borders.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/tables/_scaffolding.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_ellipsis.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_nowrap.sass +0 -2
- data/frameworks/_compass_deprecated_imports/stylesheets/compass/utilities/text/_replacement.sass +0 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
data/lib/compass/version.rb
CHANGED
|
@@ -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]}
|
|
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
|
|
data/lib/rails/init.rb
ADDED
data/test/command_line_test.rb
CHANGED
|
@@ -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
|
|
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/
|
|
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/
|
|
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/
|
|
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/
|
|
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, "
|
|
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
|
data/test/compass_test.rb
CHANGED
data/test/configuration_test.rb
CHANGED
|
@@ -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
|
|
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
|
|
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: #
|
|
100
|
+
color: #0066cc; }
|
|
101
101
|
a:visited {
|
|
102
|
-
color: #
|
|
102
|
+
color: #004c99; }
|
|
103
103
|
a:focus {
|
|
104
|
-
color:
|
|
104
|
+
color: #0099ff; }
|
|
105
105
|
a:hover {
|
|
106
|
-
color:
|
|
106
|
+
color: #0099ff; }
|
|
107
107
|
a:active {
|
|
108
|
-
color: #
|
|
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:
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
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
|
|
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:
|
|
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
|
|
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
|
|
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: #
|
|
17
|
+
color: #0066cc; }
|
|
18
18
|
|
|
19
19
|
.link-hover-color {
|
|
20
|
-
color:
|
|
20
|
+
color: #0099ff; }
|
|
21
21
|
|
|
22
22
|
.link-focus-color {
|
|
23
|
-
color:
|
|
23
|
+
color: #0099ff; }
|
|
24
24
|
|
|
25
25
|
.link-active-color {
|
|
26
|
-
color: #
|
|
26
|
+
color: #bf00ff; }
|
|
27
27
|
|
|
28
28
|
.link-visited-color {
|
|
29
|
-
color: #
|
|
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
|
|
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
|
|
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 {
|