alphasights-compass 0.8.12
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +528 -0
- data/LICENSE.markdown +29 -0
- data/README.markdown +44 -0
- data/REVISION +1 -0
- data/Rakefile +127 -0
- data/VERSION.yml +4 -0
- data/bin/compass +8 -0
- data/deps.rip +1 -0
- data/examples/README.markdown +4 -0
- data/examples/blueprint_default/config.rb +7 -0
- data/examples/blueprint_default/images/grid.png +0 -0
- data/examples/blueprint_default/index.html.haml +85 -0
- data/examples/blueprint_default/parts/elements.html.haml +282 -0
- data/examples/blueprint_default/parts/forms.html.haml +190 -0
- data/examples/blueprint_default/parts/grid.html.haml +274 -0
- data/examples/blueprint_default/parts/test-small.jpg +0 -0
- data/examples/blueprint_default/parts/test.jpg +0 -0
- data/examples/blueprint_default/parts/valid.png +0 -0
- data/examples/blueprint_default/src/ie.sass +3 -0
- data/examples/blueprint_default/src/images/grid.png +0 -0
- data/examples/blueprint_default/src/print.sass +3 -0
- data/examples/blueprint_default/src/screen.sass +8 -0
- data/examples/blueprint_plugins/config.rb +8 -0
- data/examples/blueprint_plugins/images/buttons/cross.png +0 -0
- data/examples/blueprint_plugins/images/buttons/key.png +0 -0
- data/examples/blueprint_plugins/images/buttons/tick.png +0 -0
- data/examples/blueprint_plugins/images/grid.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/doc.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/email.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/external.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/feed.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/im.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/pdf.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/visited.png +0 -0
- data/examples/blueprint_plugins/images/link_icons/xls.png +0 -0
- data/examples/blueprint_plugins/images/test-small.jpg +0 -0
- data/examples/blueprint_plugins/images/test.jpg +0 -0
- data/examples/blueprint_plugins/images/valid.png +0 -0
- data/examples/blueprint_plugins/index.html.haml +96 -0
- data/examples/blueprint_plugins/plugins/buttons.html.haml +67 -0
- data/examples/blueprint_plugins/plugins/fancy_type.html.haml +100 -0
- data/examples/blueprint_plugins/plugins/link_icons.html.haml +61 -0
- data/examples/blueprint_plugins/plugins/rtl.html.haml +100 -0
- data/examples/blueprint_plugins/src/buttons.sass +49 -0
- data/examples/blueprint_plugins/src/ie.sass +3 -0
- data/examples/blueprint_plugins/src/images/grid.png +0 -0
- data/examples/blueprint_plugins/src/link_icons.sass +13 -0
- data/examples/blueprint_plugins/src/print.sass +3 -0
- data/examples/blueprint_plugins/src/rtl_screen.sass +13 -0
- data/examples/blueprint_plugins/src/screen.sass +11 -0
- data/examples/blueprint_scoped/images/grid.png +0 -0
- data/examples/blueprint_scoped/src/ie.sass +3 -0
- data/examples/blueprint_scoped/src/print.sass +3 -0
- data/examples/blueprint_scoped/src/screen.sass +4 -0
- data/examples/blueprint_scoped_form/images/grid.png +0 -0
- data/examples/blueprint_scoped_form/src/ie.sass +3 -0
- data/examples/blueprint_scoped_form/src/print.sass +3 -0
- data/examples/blueprint_scoped_form/src/screen.sass +10 -0
- data/examples/blueprint_semantic/config.rb +7 -0
- data/examples/blueprint_semantic/images/grid.png +0 -0
- data/examples/blueprint_semantic/index.html.haml +86 -0
- data/examples/blueprint_semantic/parts/fancy_type.html.haml +100 -0
- data/examples/blueprint_semantic/parts/liquid.html.haml +100 -0
- data/examples/blueprint_semantic/parts/test-small.jpg +0 -0
- data/examples/blueprint_semantic/parts/test.jpg +0 -0
- data/examples/blueprint_semantic/parts/valid.png +0 -0
- data/examples/blueprint_semantic/src/ie.sass +3 -0
- data/examples/blueprint_semantic/src/images/grid.png +0 -0
- data/examples/blueprint_semantic/src/liquid.sass +70 -0
- data/examples/blueprint_semantic/src/print.sass +3 -0
- data/examples/blueprint_semantic/src/screen.sass +71 -0
- data/examples/compass/compass.html.haml +39 -0
- data/examples/compass/config.rb +7 -0
- data/examples/compass/images/blue_arrow.gif +0 -0
- data/examples/compass/src/compass.sass +47 -0
- data/examples/compass/src/images/blue_arrow.gif +0 -0
- data/examples/compass/src/sticky_footer.sass +11 -0
- data/examples/compass/src/utilities.sass +108 -0
- data/examples/compass/sticky_footer.html.haml +14 -0
- data/examples/compass/utilities.html.haml +189 -0
- data/examples/logo/logo.html.haml +40 -0
- data/examples/logo/src/ie.sass +6 -0
- data/examples/logo/src/print.sass +6 -0
- data/examples/logo/src/screen.sass +29 -0
- data/examples/yui/divisions.html.haml +179 -0
- data/examples/yui/index.html.haml +19 -0
- data/examples/yui/src/screen.sass +13 -0
- data/examples/yui/sub_divisions.html.haml +169 -0
- data/examples/yui/templates.html.haml +54 -0
- data/examples/yui/test.jpg +0 -0
- data/examples/yui/typography.html.haml +132 -0
- data/frameworks/blueprint.rb +2 -0
- data/frameworks/blueprint/stylesheets/_blueprint.sass +3 -0
- data/frameworks/blueprint/stylesheets/blueprint/_ie.sass +93 -0
- data/frameworks/blueprint/stylesheets/blueprint/_print.sass +83 -0
- data/frameworks/blueprint/stylesheets/blueprint/_reset.sass +3 -0
- data/frameworks/blueprint/stylesheets/blueprint/_screen.sass +15 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_buttons.sass +84 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_colors.sass +33 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_debug.sass +9 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_fancy_type.sass +82 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_form.sass +55 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_grid.sass +168 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_interaction.sass +58 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_link_icons.sass +44 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_liquid.sass +141 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_reset.sass +56 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_rtl.sass +104 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_scaffolding.sass +47 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_typography.sass +155 -0
- data/frameworks/blueprint/stylesheets/blueprint/modules/_utilities.sass +37 -0
- data/frameworks/blueprint/templates/buttons/buttons.sass +49 -0
- data/frameworks/blueprint/templates/buttons/buttons/cross.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/key.png +0 -0
- data/frameworks/blueprint/templates/buttons/buttons/tick.png +0 -0
- data/frameworks/blueprint/templates/buttons/manifest.rb +5 -0
- data/frameworks/blueprint/templates/link_icons/link_icons.sass +13 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/doc.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/email.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/external.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/feed.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/im.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/pdf.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/visited.png +0 -0
- data/frameworks/blueprint/templates/link_icons/link_icons/xls.png +0 -0
- data/frameworks/blueprint/templates/link_icons/manifest.rb +10 -0
- data/frameworks/blueprint/templates/project/grid.png +0 -0
- data/frameworks/blueprint/templates/project/ie.sass +15 -0
- data/frameworks/blueprint/templates/project/manifest.rb +6 -0
- data/frameworks/blueprint/templates/project/partials/_base.sass +11 -0
- data/frameworks/blueprint/templates/project/print.sass +3 -0
- data/frameworks/blueprint/templates/project/screen.sass +40 -0
- data/frameworks/compass.rb +2 -0
- data/frameworks/compass/stylesheets/_compass.sass +1 -0
- data/frameworks/compass/stylesheets/compass/_layout.sass +1 -0
- data/frameworks/compass/stylesheets/compass/_misc.sass +24 -0
- data/frameworks/compass/stylesheets/compass/_reset.sass +3 -0
- data/frameworks/compass/stylesheets/compass/_utilities.sass +6 -0
- data/frameworks/compass/stylesheets/compass/layout/_sticky_footer.sass +17 -0
- data/frameworks/compass/stylesheets/compass/utilities/_general.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/_links.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_lists.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_print.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.sass +1 -0
- data/frameworks/compass/stylesheets/compass/utilities/_tables.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/_text.sass +2 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_clearfix.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_float.sass +17 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_hacks.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_inline_block.sass +6 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_reset.sass +134 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tabs.sass +0 -0
- data/frameworks/compass/stylesheets/compass/utilities/general/_tag_cloud.sass +19 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_hover_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_link_colors.sass +24 -0
- data/frameworks/compass/stylesheets/compass/utilities/links/_unstyled_link.sass +5 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_bullets.sass +21 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_horizontal_list.sass +52 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline_list.sass +29 -0
- data/frameworks/compass/stylesheets/compass/utilities/sprites/_sprite_img.sass +12 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_alternating_rows_and_columns.sass +20 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_borders.sass +27 -0
- data/frameworks/compass/stylesheets/compass/utilities/tables/_scaffolding.sass +9 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_ellipsis.sass +13 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_nowrap.sass +3 -0
- data/frameworks/compass/stylesheets/compass/utilities/text/_replacement.sass +17 -0
- data/frameworks/compass/templates/ellipsis/ellipsis.sass +6 -0
- data/frameworks/compass/templates/ellipsis/manifest.rb +2 -0
- data/frameworks/compass/templates/ellipsis/xml/ellipsis.xml +14 -0
- data/frameworks/compass/templates/project/ie.sass +6 -0
- data/frameworks/compass/templates/project/manifest.rb +3 -0
- data/frameworks/compass/templates/project/print.sass +6 -0
- data/frameworks/compass/templates/project/screen.sass +13 -0
- data/frameworks/yui.rb +2 -0
- data/frameworks/yui/stylesheets/_yui.sass +7 -0
- data/frameworks/yui/stylesheets/yui/modules/_base.sass +60 -0
- data/frameworks/yui/stylesheets/yui/modules/_fonts.sass +38 -0
- data/frameworks/yui/stylesheets/yui/modules/_grids.sass +341 -0
- data/frameworks/yui/stylesheets/yui/modules/_reset.sass +61 -0
- data/frameworks/yui/templates/project/manifest.rb +1 -0
- data/frameworks/yui/templates/project/screen.sass +4 -0
- data/lib/compass.rb +23 -0
- data/lib/compass/actions.rb +110 -0
- data/lib/compass/app_integration.rb +5 -0
- data/lib/compass/app_integration/merb.rb +43 -0
- data/lib/compass/app_integration/rails.rb +12 -0
- data/lib/compass/app_integration/rails/action_controller.rb +15 -0
- data/lib/compass/app_integration/rails/sass_plugin.rb +5 -0
- data/lib/compass/app_integration/rails/templates/compass-install-rails.rb +80 -0
- data/lib/compass/app_integration/rails/urls.rb +14 -0
- data/lib/compass/commands/base.rb +33 -0
- data/lib/compass/commands/create_project.rb +19 -0
- data/lib/compass/commands/generate_grid_background.rb +24 -0
- data/lib/compass/commands/installer_command.rb +31 -0
- data/lib/compass/commands/list_frameworks.rb +16 -0
- data/lib/compass/commands/print_version.rb +23 -0
- data/lib/compass/commands/project_base.rb +112 -0
- data/lib/compass/commands/stamp_pattern.rb +33 -0
- data/lib/compass/commands/update_project.rb +34 -0
- data/lib/compass/commands/validate_project.rb +21 -0
- data/lib/compass/commands/watch_project.rb +50 -0
- data/lib/compass/commands/write_configuration.rb +28 -0
- data/lib/compass/compiler.rb +54 -0
- data/lib/compass/configuration.rb +324 -0
- data/lib/compass/core_ext.rb +14 -0
- data/lib/compass/dependencies.rb +10 -0
- data/lib/compass/errors.rb +7 -0
- data/lib/compass/exec.rb +251 -0
- data/lib/compass/frameworks.rb +29 -0
- data/lib/compass/grid_builder.rb +72 -0
- data/lib/compass/installers.rb +5 -0
- data/lib/compass/installers/base.rb +158 -0
- data/lib/compass/installers/manifest.rb +58 -0
- data/lib/compass/installers/rails.rb +135 -0
- data/lib/compass/installers/stand_alone.rb +60 -0
- data/lib/compass/logger.rb +42 -0
- data/lib/compass/sass_extensions.rb +5 -0
- data/lib/compass/sass_extensions/functions.rb +19 -0
- data/lib/compass/sass_extensions/functions/display.rb +22 -0
- data/lib/compass/sass_extensions/functions/enumerate.rb +6 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +35 -0
- data/lib/compass/sass_extensions/functions/selectors.rb +39 -0
- data/lib/compass/sass_extensions/functions/urls.rb +105 -0
- data/lib/compass/sass_extensions/monkey_patches.rb +3 -0
- data/lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb +23 -0
- data/lib/compass/test_case.rb +38 -0
- data/lib/compass/validator.rb +10 -0
- data/lib/compass/version.rb +57 -0
- data/test/command_line_helper.rb +102 -0
- data/test/command_line_test.rb +66 -0
- data/test/compass_test.rb +141 -0
- data/test/configuration_test.rb +118 -0
- data/test/fixtures/stylesheets/blueprint/config.rb +9 -0
- data/test/fixtures/stylesheets/blueprint/css/typography.css +158 -0
- data/test/fixtures/stylesheets/blueprint/images/grid.png +0 -0
- data/test/fixtures/stylesheets/blueprint/sass/ie.sass +3 -0
- data/test/fixtures/stylesheets/blueprint/sass/print.sass +3 -0
- data/test/fixtures/stylesheets/blueprint/sass/screen.sass +17 -0
- data/test/fixtures/stylesheets/blueprint/sass/typography.sass +3 -0
- data/test/fixtures/stylesheets/compass/config.rb +9 -0
- data/test/fixtures/stylesheets/compass/css/layout.css +13 -0
- data/test/fixtures/stylesheets/compass/css/print.css +18 -0
- data/test/fixtures/stylesheets/compass/css/reset.css +60 -0
- data/test/fixtures/stylesheets/compass/css/utilities.css +17 -0
- data/test/fixtures/stylesheets/compass/sass/layout.sass +3 -0
- data/test/fixtures/stylesheets/compass/sass/print.sass +5 -0
- data/test/fixtures/stylesheets/compass/sass/reset.sass +10 -0
- data/test/fixtures/stylesheets/compass/sass/utilities.sass +6 -0
- data/test/fixtures/stylesheets/image_urls/config.rb +17 -0
- data/test/fixtures/stylesheets/image_urls/css/screen.css +3 -0
- data/test/fixtures/stylesheets/image_urls/images/grid.png +0 -0
- data/test/fixtures/stylesheets/image_urls/sass/screen.sass +6 -0
- data/test/fixtures/stylesheets/yui/config.rb +9 -0
- data/test/fixtures/stylesheets/yui/css/mixins.css +13 -0
- data/test/fixtures/stylesheets/yui/sass/base.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/fonts.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/grids.sass +3 -0
- data/test/fixtures/stylesheets/yui/sass/mixins.sass +16 -0
- data/test/rails_integration_test.rb +83 -0
- data/test/sass_extensions_test.rb +31 -0
- data/test/test_case_helper.rb +13 -0
- data/test/test_helper.rb +21 -0
- data/test/test_rails_helper.rb +20 -0
- metadata +359 -0
@@ -0,0 +1,118 @@
|
|
1
|
+
require File.dirname(__FILE__)+'/test_helper'
|
2
|
+
require 'compass'
|
3
|
+
|
4
|
+
class ConfigurationTest < Test::Unit::TestCase
|
5
|
+
|
6
|
+
def setup
|
7
|
+
Compass.configuration.reset!
|
8
|
+
end
|
9
|
+
|
10
|
+
def test_parse_and_serialize
|
11
|
+
contents = <<-CONFIG
|
12
|
+
require 'compass'
|
13
|
+
# Require any additional compass plugins here.
|
14
|
+
|
15
|
+
project_type = :stand_alone
|
16
|
+
# Set this to the root of your project when deployed:
|
17
|
+
http_path = "/"
|
18
|
+
css_dir = "css"
|
19
|
+
sass_dir = "sass"
|
20
|
+
images_dir = "img"
|
21
|
+
javascripts_dir = "js"
|
22
|
+
output_style = :nested
|
23
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
24
|
+
# relative_assets = true
|
25
|
+
CONFIG
|
26
|
+
|
27
|
+
Compass.configuration.parse_string(contents, "test_parse")
|
28
|
+
|
29
|
+
assert_equal 'sass', Compass.configuration.sass_dir
|
30
|
+
assert_equal 'css', Compass.configuration.css_dir
|
31
|
+
assert_equal 'img', Compass.configuration.images_dir
|
32
|
+
assert_equal 'js', Compass.configuration.javascripts_dir
|
33
|
+
|
34
|
+
expected_lines = contents.split("\n").map{|l|l.strip}
|
35
|
+
actual_lines = Compass.configuration.serialize.split("\n").map{|l|l.strip}
|
36
|
+
assert_equal expected_lines, actual_lines
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_serialization_fails_with_asset_host_set
|
40
|
+
contents = <<-CONFIG
|
41
|
+
asset_host do |path|
|
42
|
+
"http://example.com"
|
43
|
+
end
|
44
|
+
CONFIG
|
45
|
+
|
46
|
+
Compass.configuration.parse_string(contents, "test_serialization_fails_with_asset_host_set")
|
47
|
+
|
48
|
+
assert_raise Compass::Error do
|
49
|
+
Compass.configuration.serialize
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
def test_serialization_fails_with_asset_cache_buster_set
|
54
|
+
contents = <<-CONFIG
|
55
|
+
asset_cache_buster do |path|
|
56
|
+
"http://example.com"
|
57
|
+
end
|
58
|
+
CONFIG
|
59
|
+
|
60
|
+
Compass.configuration.parse_string(contents, "test_serialization_fails_with_asset_cache_buster_set")
|
61
|
+
|
62
|
+
assert_raise Compass::Error do
|
63
|
+
Compass.configuration.serialize
|
64
|
+
end
|
65
|
+
end
|
66
|
+
|
67
|
+
def test_additional_import_paths
|
68
|
+
contents = <<-CONFIG
|
69
|
+
http_path = "/"
|
70
|
+
project_path = "/home/chris/my_compass_project"
|
71
|
+
css_dir = "css"
|
72
|
+
additional_import_paths = ["../foo"]
|
73
|
+
add_import_path "/path/to/my/framework"
|
74
|
+
CONFIG
|
75
|
+
|
76
|
+
Compass.configuration.parse_string(contents, "test_additional_import_paths")
|
77
|
+
|
78
|
+
assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/home/chris/my_compass_project/../foo")
|
79
|
+
assert Compass.configuration.to_sass_engine_options[:load_paths].include?("/path/to/my/framework"), Compass.configuration.to_sass_engine_options[:load_paths].inspect
|
80
|
+
assert_equal "/home/chris/my_compass_project/css/framework", Compass.configuration.to_sass_plugin_options[:template_location]["/path/to/my/framework"]
|
81
|
+
assert_equal "/home/chris/my_compass_project/css/foo", Compass.configuration.to_sass_plugin_options[:template_location]["/home/chris/my_compass_project/../foo"]
|
82
|
+
|
83
|
+
expected_serialization = <<EXPECTED
|
84
|
+
# Require any additional compass plugins here.
|
85
|
+
project_path = "/home/chris/my_compass_project"
|
86
|
+
# Set this to the root of your project when deployed:
|
87
|
+
http_path = "/"
|
88
|
+
css_dir = "css"
|
89
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
90
|
+
# relative_assets = true
|
91
|
+
additional_import_paths = ["../foo", "/path/to/my/framework"]
|
92
|
+
EXPECTED
|
93
|
+
assert_equal "/", Compass.configuration.http_path
|
94
|
+
assert_equal expected_serialization, Compass.configuration.serialize
|
95
|
+
end
|
96
|
+
|
97
|
+
def test_sass_options
|
98
|
+
contents = <<-CONFIG
|
99
|
+
sass_options = {:foo => 'bar'}
|
100
|
+
CONFIG
|
101
|
+
|
102
|
+
Compass.configuration.parse_string(contents, "test_sass_options")
|
103
|
+
|
104
|
+
assert_equal 'bar', Compass.configuration.to_sass_engine_options[:foo]
|
105
|
+
assert_equal 'bar', Compass.configuration.to_sass_plugin_options[:foo]
|
106
|
+
|
107
|
+
expected_serialization = <<EXPECTED
|
108
|
+
# Require any additional compass plugins here.
|
109
|
+
# Set this to the root of your project when deployed:
|
110
|
+
# To enable relative paths to assets via compass helper functions. Uncomment:
|
111
|
+
# relative_assets = true
|
112
|
+
sass_options = {:foo=>"bar"}
|
113
|
+
EXPECTED
|
114
|
+
|
115
|
+
assert_equal expected_serialization, Compass.configuration.serialize
|
116
|
+
end
|
117
|
+
|
118
|
+
end
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
project_type = :stand_alone
|
3
|
+
css_dir = "tmp"
|
4
|
+
sass_dir = "sass"
|
5
|
+
images_dir = "images"
|
6
|
+
output_style = :nested
|
7
|
+
# To enable relative image paths using the images_url() function:
|
8
|
+
# http_images_path = :relative
|
9
|
+
http_images_path = "/images"
|
@@ -0,0 +1,158 @@
|
|
1
|
+
body {
|
2
|
+
line-height: 1.5;
|
3
|
+
font-family: Helvetica Neue, Arial, Helvetica, sans-serif;
|
4
|
+
color: #333333;
|
5
|
+
font-size: 75%; }
|
6
|
+
|
7
|
+
h1 {
|
8
|
+
font-weight: normal;
|
9
|
+
color: #222222;
|
10
|
+
font-size: 3em;
|
11
|
+
line-height: 1;
|
12
|
+
margin-bottom: 0.5em; }
|
13
|
+
h1 img {
|
14
|
+
margin: 0; }
|
15
|
+
|
16
|
+
h2 {
|
17
|
+
font-weight: normal;
|
18
|
+
color: #222222;
|
19
|
+
font-size: 2em;
|
20
|
+
margin-bottom: 0.75em; }
|
21
|
+
|
22
|
+
h3 {
|
23
|
+
font-weight: normal;
|
24
|
+
color: #222222;
|
25
|
+
font-size: 1.5em;
|
26
|
+
line-height: 1;
|
27
|
+
margin-bottom: 1em; }
|
28
|
+
|
29
|
+
h4 {
|
30
|
+
font-weight: normal;
|
31
|
+
color: #222222;
|
32
|
+
font-size: 1.2em;
|
33
|
+
line-height: 1.25;
|
34
|
+
margin-bottom: 1.25em; }
|
35
|
+
|
36
|
+
h5 {
|
37
|
+
font-weight: normal;
|
38
|
+
color: #222222;
|
39
|
+
font-size: 1em;
|
40
|
+
font-weight: bold;
|
41
|
+
margin-bottom: 1.5em; }
|
42
|
+
|
43
|
+
h6 {
|
44
|
+
font-weight: normal;
|
45
|
+
color: #222222;
|
46
|
+
font-size: 1em;
|
47
|
+
font-weight: bold; }
|
48
|
+
|
49
|
+
h2 img, h3 img, h4 img, h5 img, h6 img {
|
50
|
+
margin: 0; }
|
51
|
+
|
52
|
+
p {
|
53
|
+
margin: 0 0 1.5em; }
|
54
|
+
p img.left {
|
55
|
+
display: inline;
|
56
|
+
float: left;
|
57
|
+
margin: 1.5em 1.5em 1.5em 0;
|
58
|
+
padding: 0; }
|
59
|
+
p img.right {
|
60
|
+
display: inline;
|
61
|
+
float: right;
|
62
|
+
margin: 1.5em 0 1.5em 1.5em;
|
63
|
+
padding: 0; }
|
64
|
+
|
65
|
+
a {
|
66
|
+
text-decoration: underline;
|
67
|
+
color: #000099; }
|
68
|
+
a:visited {
|
69
|
+
color: #000066; }
|
70
|
+
a:focus {
|
71
|
+
color: black; }
|
72
|
+
a:hover {
|
73
|
+
color: black; }
|
74
|
+
a:active {
|
75
|
+
color: #cc0099; }
|
76
|
+
|
77
|
+
blockquote {
|
78
|
+
margin: 1.5em;
|
79
|
+
color: #666;
|
80
|
+
font-style: italic; }
|
81
|
+
|
82
|
+
strong {
|
83
|
+
font-weight: bold; }
|
84
|
+
|
85
|
+
em {
|
86
|
+
font-style: italic; }
|
87
|
+
|
88
|
+
dfn {
|
89
|
+
font-style: italic;
|
90
|
+
font-weight: bold; }
|
91
|
+
|
92
|
+
sup, sub {
|
93
|
+
line-height: 0; }
|
94
|
+
|
95
|
+
abbr, acronym {
|
96
|
+
border-bottom: 1px dotted #666; }
|
97
|
+
|
98
|
+
address {
|
99
|
+
margin: 0 0 1.5em;
|
100
|
+
font-style: italic; }
|
101
|
+
|
102
|
+
del {
|
103
|
+
color: #666; }
|
104
|
+
|
105
|
+
pre {
|
106
|
+
margin: 1.5em 0;
|
107
|
+
white-space: pre; }
|
108
|
+
|
109
|
+
pre, code, tt {
|
110
|
+
font: 1em 'andale mono', 'lucida console', monospace;
|
111
|
+
line-height: 1.5; }
|
112
|
+
|
113
|
+
li ul, li ol {
|
114
|
+
margin: 0 1.5em; }
|
115
|
+
|
116
|
+
ul {
|
117
|
+
margin: 0 1.5em 1.5em 1.5em;
|
118
|
+
list-style-type: disc; }
|
119
|
+
|
120
|
+
ol {
|
121
|
+
margin: 0 1.5em 1.5em 1.5em;
|
122
|
+
list-style-type: decimal; }
|
123
|
+
|
124
|
+
dl {
|
125
|
+
margin: 0 0 1.5em 0; }
|
126
|
+
dl dt {
|
127
|
+
font-weight: bold; }
|
128
|
+
|
129
|
+
dd {
|
130
|
+
margin-left: 1.5em; }
|
131
|
+
|
132
|
+
table {
|
133
|
+
margin-bottom: 1.4em;
|
134
|
+
width: 100%; }
|
135
|
+
|
136
|
+
th {
|
137
|
+
font-weight: bold; }
|
138
|
+
|
139
|
+
thead th {
|
140
|
+
background: #c3d9ff; }
|
141
|
+
|
142
|
+
th, td, caption {
|
143
|
+
padding: 4px 10px 4px 5px; }
|
144
|
+
|
145
|
+
tr.even td {
|
146
|
+
background: #e5ecf9; }
|
147
|
+
|
148
|
+
tfoot {
|
149
|
+
font-style: italic; }
|
150
|
+
|
151
|
+
caption {
|
152
|
+
background: #eee; }
|
153
|
+
|
154
|
+
.quiet {
|
155
|
+
color: #666666; }
|
156
|
+
|
157
|
+
.loud {
|
158
|
+
color: #111111; }
|
Binary file
|
@@ -0,0 +1,17 @@
|
|
1
|
+
@import blueprint/screen
|
2
|
+
@import compass/reset
|
3
|
+
|
4
|
+
+blueprint
|
5
|
+
#main.container
|
6
|
+
#top
|
7
|
+
+column(24, true)
|
8
|
+
#middle
|
9
|
+
+column(24, true)
|
10
|
+
#left
|
11
|
+
+column(6)
|
12
|
+
#content
|
13
|
+
+column(12)
|
14
|
+
#right
|
15
|
+
+column(6, true)
|
16
|
+
#bottom
|
17
|
+
+column(24, true)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
# Require any additional compass plugins here.
|
2
|
+
project_type = :stand_alone
|
3
|
+
css_dir = "tmp"
|
4
|
+
sass_dir = "sass"
|
5
|
+
images_dir = "images"
|
6
|
+
output_style = :nested
|
7
|
+
# To enable relative image paths using the images_url() function:
|
8
|
+
# http_images_path = :relative
|
9
|
+
http_images_path = "/images"
|
@@ -0,0 +1,18 @@
|
|
1
|
+
.noprint,
|
2
|
+
.no-print {
|
3
|
+
display: none; }
|
4
|
+
|
5
|
+
address.print-only, blockquote.print-only, center.print-only, dir.print-only, div.print-only, dd.print-only, dl.print-only, dt.print-only,
|
6
|
+
fieldset.print-only, form.print-only, frameset.print-only, h1.print-only, h2.print-only, h3.print-only, h4.print-only, h5.print-only, h6.print-only, hr.print-only,
|
7
|
+
isindex.print-only, li.print-only, menu.print-only, noframes.print-only, noscript.print-only, ol.print-only, p.print-only, pre.print-only,
|
8
|
+
table.print-only, tbody.print-only, td.print-only, tfoot.print-only, th.print-only, thead.print-only, tr.print-only, ul.print-only {
|
9
|
+
display: block; }
|
10
|
+
|
11
|
+
a.print-only, abbr.print-only, acronym.print-only, b.print-only, basefont.print-only, bdo.print-only, big.print-only, br.print-only, cite.print-only,
|
12
|
+
code.print-only, dfn.print-only, em.print-only, font.print-only, i.print-only, img.print-only, input.print-only, kbd.print-only, label.print-only, q.print-only, s.print-only,
|
13
|
+
samp.print-only, select.print-only, small.print-only, span.print-only, strike.print-only, strong.print-only, sub.print-only, sup.print-only,
|
14
|
+
textarea.print-only, tt.print-only, u.print-only, var.print-only {
|
15
|
+
display: inline; }
|
16
|
+
|
17
|
+
.print-only {
|
18
|
+
display: none; }
|
@@ -0,0 +1,60 @@
|
|
1
|
+
html, body, div, span, applet, object, iframe,
|
2
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
3
|
+
a, abbr, acronym, address, big, cite, code,
|
4
|
+
del, dfn, em, font, img, ins, kbd, q, s, samp,
|
5
|
+
small, strike, strong, sub, sup, tt, var,
|
6
|
+
dl, dt, dd, ol, ul, li,
|
7
|
+
fieldset, form, label, legend,
|
8
|
+
table, caption, tbody, tfoot, thead, tr, th, td {
|
9
|
+
margin: 0;
|
10
|
+
padding: 0;
|
11
|
+
border: 0;
|
12
|
+
outline: 0;
|
13
|
+
font-weight: inherit;
|
14
|
+
font-style: inherit;
|
15
|
+
font-size: 100%;
|
16
|
+
font-family: inherit;
|
17
|
+
vertical-align: baseline; }
|
18
|
+
|
19
|
+
*:focus {
|
20
|
+
outline: 0; }
|
21
|
+
|
22
|
+
body {
|
23
|
+
line-height: 1em;
|
24
|
+
color: black;
|
25
|
+
background: #fff; }
|
26
|
+
|
27
|
+
ol, ul {
|
28
|
+
list-style: none; }
|
29
|
+
|
30
|
+
/* tables still need 'cellspacing="0"' in the markup */
|
31
|
+
table {
|
32
|
+
border-collapse: separate;
|
33
|
+
border-spacing: 0;
|
34
|
+
vertical-align: middle; }
|
35
|
+
|
36
|
+
caption, th, td {
|
37
|
+
text-align: left;
|
38
|
+
font-weight: normal;
|
39
|
+
vertical-align: middle; }
|
40
|
+
|
41
|
+
q, blockquote {
|
42
|
+
quotes: "" ""; }
|
43
|
+
q:before, q:after, blockquote:before, blockquote:after {
|
44
|
+
content: ""; }
|
45
|
+
|
46
|
+
img a {
|
47
|
+
border: none; }
|
48
|
+
|
49
|
+
.unregistered-only, .registered-only {
|
50
|
+
display: none; }
|
51
|
+
|
52
|
+
body.registered a.registered-only, body.registered abbr.registered-only, body.registered acronym.registered-only, body.registered b.registered-only, body.registered basefont.registered-only, body.registered bdo.registered-only, body.registered big.registered-only, body.registered br.registered-only, body.registered cite.registered-only, body.registered code.registered-only, body.registered dfn.registered-only, body.registered em.registered-only, body.registered font.registered-only, body.registered i.registered-only, body.registered img.registered-only, body.registered input.registered-only, body.registered kbd.registered-only, body.registered label.registered-only, body.registered q.registered-only, body.registered s.registered-only, body.registered samp.registered-only, body.registered select.registered-only, body.registered small.registered-only, body.registered span.registered-only, body.registered strike.registered-only, body.registered strong.registered-only, body.registered sub.registered-only, body.registered sup.registered-only, body.registered textarea.registered-only, body.registered tt.registered-only, body.registered u.registered-only, body.registered var.registered-only {
|
53
|
+
display: inline; }
|
54
|
+
body.registered address.registered-only, body.registered blockquote.registered-only, body.registered center.registered-only, body.registered dir.registered-only, body.registered div.registered-only, body.registered dd.registered-only, body.registered dl.registered-only, body.registered dt.registered-only, body.registered fieldset.registered-only, body.registered form.registered-only, body.registered frameset.registered-only, body.registered h1.registered-only, body.registered h2.registered-only, body.registered h3.registered-only, body.registered h4.registered-only, body.registered h5.registered-only, body.registered h6.registered-only, body.registered hr.registered-only, body.registered isindex.registered-only, body.registered menu.registered-only, body.registered noframes.registered-only, body.registered noscript.registered-only, body.registered ol.registered-only, body.registered p.registered-only, body.registered pre.registered-only, body.registered ul.registered-only {
|
55
|
+
display: block; }
|
56
|
+
|
57
|
+
body.unregistered a.unregistered-only, body.unregistered abbr.unregistered-only, body.unregistered acronym.unregistered-only, body.unregistered b.unregistered-only, body.unregistered basefont.unregistered-only, body.unregistered bdo.unregistered-only, body.unregistered big.unregistered-only, body.unregistered br.unregistered-only, body.unregistered cite.unregistered-only, body.unregistered code.unregistered-only, body.unregistered dfn.unregistered-only, body.unregistered em.unregistered-only, body.unregistered font.unregistered-only, body.unregistered i.unregistered-only, body.unregistered img.unregistered-only, body.unregistered input.unregistered-only, body.unregistered kbd.unregistered-only, body.unregistered label.unregistered-only, body.unregistered q.unregistered-only, body.unregistered s.unregistered-only, body.unregistered samp.unregistered-only, body.unregistered select.unregistered-only, body.unregistered small.unregistered-only, body.unregistered span.unregistered-only, body.unregistered strike.unregistered-only, body.unregistered strong.unregistered-only, body.unregistered sub.unregistered-only, body.unregistered sup.unregistered-only, body.unregistered textarea.unregistered-only, body.unregistered tt.unregistered-only, body.unregistered u.unregistered-only, body.unregistered var.unregistered-only {
|
58
|
+
display: inline; }
|
59
|
+
body.unregistered address.unregistered-only, body.unregistered blockquote.unregistered-only, body.unregistered center.unregistered-only, body.unregistered dir.unregistered-only, body.unregistered div.unregistered-only, body.unregistered dd.unregistered-only, body.unregistered dl.unregistered-only, body.unregistered dt.unregistered-only, body.unregistered fieldset.unregistered-only, body.unregistered form.unregistered-only, body.unregistered frameset.unregistered-only, body.unregistered h1.unregistered-only, body.unregistered h2.unregistered-only, body.unregistered h3.unregistered-only, body.unregistered h4.unregistered-only, body.unregistered h5.unregistered-only, body.unregistered h6.unregistered-only, body.unregistered hr.unregistered-only, body.unregistered isindex.unregistered-only, body.unregistered menu.unregistered-only, body.unregistered noframes.unregistered-only, body.unregistered noscript.unregistered-only, body.unregistered ol.unregistered-only, body.unregistered p.unregistered-only, body.unregistered pre.unregistered-only, body.unregistered ul.unregistered-only {
|
60
|
+
display: block; }
|
@@ -0,0 +1,17 @@
|
|
1
|
+
.clearfix {
|
2
|
+
overflow: hidden;
|
3
|
+
display: inline-block; }
|
4
|
+
.clearfix {
|
5
|
+
display: block; }
|
6
|
+
|
7
|
+
.pie-clearfix {
|
8
|
+
display: inline-block; }
|
9
|
+
.pie-clearfix:after {
|
10
|
+
content: " ";
|
11
|
+
display: block;
|
12
|
+
height: 0;
|
13
|
+
clear: both;
|
14
|
+
overflow: hidden;
|
15
|
+
visibility: hidden; }
|
16
|
+
.pie-clearfix {
|
17
|
+
display: block; }
|