diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000000..c9716c8f3f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,56 @@ +# This workflow uses actions that are not certified by GitHub. +# They are provided by a third-party and are governed by +# separate terms of service, privacy policy, and support +# documentation. +# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake +# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby + +name: Ruby + +on: + push: + branches: [ 'stable' ] + pull_request: + branches: [ 'stable' ] + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + ruby-version: + - '3.1' + - '3.2' + - '3.3' + gemfile: + - core/Gemfile + - cli/gemfiles/sass_3_4.gemfile + - cli/gemfiles/listen_2.gemfile + component: + - cli + - core + exclude: + - gemfile: cli/gemfiles/sass_3_4.gemfile + component: core + - gemfile: cli/gemfiles/listen_2.gemfile + component: core + - gemfile: core/Gemfile + component: cli + + env: # $BUNDLE_GEMFILE must be set at the job level, so it is set for all steps + BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }} + CI_TEST: ${{ matrix.component }} + + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby-version }} + bundler-cache: true + + - name: Run tests + run: cd $CI_TEST && bundle exec rake diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000000..3294aeda67 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +ruby 3.3.0 diff --git a/cli/Gemfile b/cli/Gemfile index df432300b2..4eb38be853 100644 --- a/cli/Gemfile +++ b/cli/Gemfile @@ -4,11 +4,11 @@ gemspec unless defined?(CI) unless ENV['PKG'] - gem "sass", "~> 3.3.13" unless defined?(CI) + gem "sass", "~> 3.4.0" unless defined?(CI) gem "compass-core", :path => "../core" unless defined?(CI) gem "compass-import-once", :path => "../import-once" unless defined?(CI) gem 'sass-globbing', "~> 1.1.1" - gem "cucumber", "~> 1.2.1" + gem "cucumber", "~> 2.0" gem "rspec", "~> 2.0.0" gem "compass-validator", "3.0.1" gem "css_parser", "~> 1.0.1" @@ -19,7 +19,9 @@ unless ENV['PKG'] gem 'rake' gem 'json', '~> 1.7.7', :platforms => :ruby_18 gem 'true', "~> 0.2.3" - gem 'test-unit', '~> 3.0.9' + gem 'test-unit' + gem 'warning' + gem 'debug' # Warning be carful adding OS dependant gems above this line it will break the CI server please # place them below so they are excluded @@ -34,6 +36,5 @@ unless ENV['PKG'] gem 'guard-cucumber', :platforms => [:mri_20] # gem 'packager' gem 'colorize' - gem 'pry' end end diff --git a/cli/Rakefile b/cli/Rakefile index aaa1e2ca58..a58d6fbfc3 100644 --- a/cli/Rakefile +++ b/cli/Rakefile @@ -42,7 +42,7 @@ Rake::TestTask.new :test do |t| test_files = FileList['test/**/*_test.rb'] test_files.exclude('test/rails/*', 'test/haml/*') t.test_files = test_files - t.verbose = true + t.verbose = false end Rake::TestTask.new :units do |t| @@ -51,7 +51,7 @@ Rake::TestTask.new :units do |t| test_files = FileList['test/units/**/*_test.rb'] test_files.exclude('test/rails/*', 'test/haml/*') t.test_files = test_files - t.verbose = true + t.verbose = false end Rake::TestTask.new :integrations do |t| @@ -60,7 +60,7 @@ Rake::TestTask.new :integrations do |t| test_files = FileList['test/integrations/**/*_test.rb'] test_files.exclude('test/rails/*', 'test/haml/*') t.test_files = test_files - t.verbose = true + t.verbose = false end namespace :git do @@ -86,7 +86,7 @@ begin test_files.exclude('test/rails/*', 'test/haml/*') rcov.pattern = test_files rcov.output_dir = 'coverage' - rcov.verbose = true + rcov.verbose = false rcov.rcov_opts = %w{--exclude osx\/objc,gems\/,spec\/,features\/ --aggregate coverage.data} rcov.rcov_opts << %[-o "coverage" --sort coverage] end diff --git a/cli/features/step_definitions/command_line_steps.rb b/cli/features/step_definitions/command_line_steps.rb index a33b1e90e6..069dd0b3b1 100644 --- a/cli/features/step_definitions/command_line_steps.rb +++ b/cli/features/step_definitions/command_line_steps.rb @@ -114,11 +114,11 @@ end Then /an? \w+ file ([^ ]+) is (not )?removed/ do |filename, negated| - File.exists?(filename).should == !!negated + File.exist?(filename).should == !!negated end Then /an? \w+ file ([^ ]+) is (not )?created/ do |filename, negated| - File.exists?(filename).should == !negated + File.exist?(filename).should == !negated end Then "the following files are reported removed:" do |table| diff --git a/cli/gemfiles/listen_2.gemfile b/cli/gemfiles/listen_2.gemfile index bc47ebd872..db3c3bd838 100644 --- a/cli/gemfiles/listen_2.gemfile +++ b/cli/gemfiles/listen_2.gemfile @@ -1,11 +1,10 @@ CI=true -main_gemfile = File.expand_path(File.join(File.dirname(__FILE__), "..", "Gemfile")) +main_gemfile = File.expand_path(File.join(File.dirname(__FILE__), '..', 'Gemfile')) eval File.read(main_gemfile), nil, main_gemfile -gem 'sass', '~> 3.3.12' -gem 'compass', :path => "../" -gem 'compass-core', :path => "../../core" -gem 'compass-import-once', :path => "../../import-once" -gem 'listen', '~> 2.7.1' +gem 'sass', '~> 3.4.0' +gem 'compass-core', path: '../../core' +gem 'compass-import-once', path: '../../import-once' +gem 'listen' -gemspec :path=>"../" +gemspec path: '../' diff --git a/cli/gemfiles/sass_3_3.gemfile b/cli/gemfiles/sass_3_3.gemfile deleted file mode 100644 index 88b890a642..0000000000 --- a/cli/gemfiles/sass_3_3.gemfile +++ /dev/null @@ -1,10 +0,0 @@ -CI=true -main_gemfile = File.expand_path(File.join(File.dirname(__FILE__), "..", "Gemfile")) -eval File.read(main_gemfile), nil, main_gemfile - -gem 'sass', "~> 3.3.12" -gem 'compass', :path => "../" -gem 'compass-core', :path => "../../core" -gem 'compass-import-once', :path => "../../import-once" - -gemspec :path=>"../" diff --git a/cli/gemfiles/sass_3_4.gemfile b/cli/gemfiles/sass_3_4.gemfile new file mode 100644 index 0000000000..f72b5e50cd --- /dev/null +++ b/cli/gemfiles/sass_3_4.gemfile @@ -0,0 +1,9 @@ +CI=true +main_gemfile = File.expand_path(File.join(File.dirname(__FILE__), "..", "Gemfile")) +eval File.read(main_gemfile), nil, main_gemfile + +gem 'sass', '~> 3.4.0' +gem 'compass-core', path: '../../core' +gem 'compass-import-once', path: '../../import-once' + +gemspec path: '../' diff --git a/cli/lib/compass/actions.rb b/cli/lib/compass/actions.rb index e7d469c5a0..0f059358f2 100644 --- a/cli/lib/compass/actions.rb +++ b/cli/lib/compass/actions.rb @@ -22,9 +22,9 @@ def copy(from, to, options = nil, binary = false) def directory(dir, options = nil) options ||= self.options if self.respond_to?(:options) options ||= {} - if File.exists?(dir) && File.directory?(dir) + if File.exist?(dir) && File.directory?(dir) # do nothing - elsif File.exists?(dir) + elsif File.exist?(dir) msg = "#{basename(dir)} already exists and is not a directory." raise Compass::FilesystemConflict.new(msg) else @@ -38,7 +38,7 @@ def write_file(file_name, contents, options = nil, binary = false) options ||= self.options if self.respond_to?(:options) skip_write = false contents = process_erb(contents, options[:erb]) if options[:erb] - if File.exists?(file_name) + if File.exist?(file_name) existing_contents = IO.read(file_name) if existing_contents == contents log_action :identical, basename(file_name), options @@ -73,7 +73,7 @@ def remove(file_name) if File.directory?(file_name) FileUtils.rm_rf file_name log_action :remove, basename(file_name)+"/", options - elsif File.exists?(file_name) + elsif File.exist?(file_name) File.unlink file_name log_action :remove, basename(file_name), options end diff --git a/cli/lib/compass/app_integration/stand_alone/installer.rb b/cli/lib/compass/app_integration/stand_alone/installer.rb index 4a0664f161..a97814f8f8 100644 --- a/cli/lib/compass/app_integration/stand_alone/installer.rb +++ b/cli/lib/compass/app_integration/stand_alone/installer.rb @@ -21,7 +21,7 @@ def write_configuration_files(config_file = nil) end def config_files_exist? - File.exists? targetize('config.rb') + File.exist? targetize('config.rb') end def config_contents diff --git a/cli/lib/compass/commands/project_base.rb b/cli/lib/compass/commands/project_base.rb index cf51abfc86..54d31fed3f 100644 --- a/cli/lib/compass/commands/project_base.rb +++ b/cli/lib/compass/commands/project_base.rb @@ -60,7 +60,7 @@ def project_images_subdirectory end def assert_project_directory_exists! - if File.exists?(project_directory) && !File.directory?(project_directory) + if File.exist?(project_directory) && !File.directory?(project_directory) raise Compass::FilesystemConflict.new("#{project_directory} is not a directory.") elsif !File.directory?(project_directory) raise Compass::Error.new("#{project_directory} does not exist.") diff --git a/cli/lib/compass/commands/project_stats.rb b/cli/lib/compass/commands/project_stats.rb index 9c0b5c2a7e..7a5a365b6b 100644 --- a/cli/lib/compass/commands/project_stats.rb +++ b/cli/lib/compass/commands/project_stats.rb @@ -121,7 +121,7 @@ def sass_columns(sass_file) end def css_columns(css_file) - if File.exists?(css_file) + if File.exist?(css_file) cf = Compass::Stats::CssFile.new(css_file) cf.analyze! %w(selector_count prop_count file_size).map do |t| diff --git a/cli/lib/compass/commands/update_project.rb b/cli/lib/compass/commands/update_project.rb index 087b5e38b3..bf94837655 100644 --- a/cli/lib/compass/commands/update_project.rb +++ b/cli/lib/compass/commands/update_project.rb @@ -73,7 +73,7 @@ def new_config?(compiler) return false unless config_file config_mtime = File.mtime(config_file) compiler.file_list.each do |(_, css_filename, _)| - return config_file if File.exists?(css_filename) && config_mtime > File.mtime(css_filename) + return config_file if File.exist?(css_filename) && config_mtime > File.mtime(css_filename) end nil end diff --git a/cli/lib/compass/compiler.rb b/cli/lib/compass/compiler.rb index 638d52bd85..8a2b3d559b 100644 --- a/cli/lib/compass/compiler.rb +++ b/cli/lib/compass/compiler.rb @@ -93,7 +93,7 @@ def new_config? return false unless config_file config_mtime = File.mtime(config_file) css_files.each do |css_filename| - return config_file if File.exists?(css_filename) && config_mtime > File.mtime(css_filename) + return config_file if File.exist?(css_filename) && config_mtime > File.mtime(css_filename) end nil end diff --git a/cli/lib/compass/configuration/helpers.rb b/cli/lib/compass/configuration/helpers.rb index a9aef82e38..f86e43fc74 100644 --- a/cli/lib/compass/configuration/helpers.rb +++ b/cli/lib/compass/configuration/helpers.rb @@ -86,7 +86,7 @@ def add_project_configuration(*args) # Finds the configuration file, if it exists in a known location. def detect_configuration_file(project_path = nil) possible_files = KNOWN_CONFIG_LOCATIONS.map{|f| projectize(f, project_path) } - possible_files.detect{|f| File.exists?(f)} + possible_files.detect{|f| File.exist?(f)} end def handle_configuration_change! diff --git a/cli/lib/compass/installers/manifest.rb b/cli/lib/compass/installers/manifest.rb index 6e4f0cfb7f..200ffb1527 100644 --- a/cli/lib/compass/installers/manifest.rb +++ b/cli/lib/compass/installers/manifest.rb @@ -141,7 +141,7 @@ def with_manifest(manifest_file) # evaluated in a Manifest instance context def parse(manifest_file) with_manifest(manifest_file) do - if File.exists?(manifest_file) + if File.exist?(manifest_file) open(manifest_file) do |f| eval(f.read, instance_binding, manifest_file) end diff --git a/cli/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb b/cli/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb index 9c494438e6..3ffbb56754 100644 --- a/cli/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb +++ b/cli/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rb @@ -32,4 +32,4 @@ def save(filename) end end end -end \ No newline at end of file +end diff --git a/cli/lib/compass/sass_extensions/sprites/image.rb b/cli/lib/compass/sass_extensions/sprites/image.rb index 941a3038c7..aa46dfe9a8 100644 --- a/cli/lib/compass/sass_extensions/sprites/image.rb +++ b/cli/lib/compass/sass_extensions/sprites/image.rb @@ -32,7 +32,7 @@ def file def find_file Compass.configuration.sprite_load_path.compact.each do |path| f = File.join(path, relative_file) - if File.exists?(f) + if File.exist?(f) return f end end diff --git a/cli/lib/compass/sass_extensions/sprites/sprite_methods.rb b/cli/lib/compass/sass_extensions/sprites/sprite_methods.rb index a5295aee2a..438006990f 100644 --- a/cli/lib/compass/sass_extensions/sprites/sprite_methods.rb +++ b/cli/lib/compass/sass_extensions/sprites/sprite_methods.rb @@ -72,7 +72,7 @@ def cleanup_old_sprites # Does this sprite need to be generated def generation_required? - !File.exists?(filename) || outdated? || options[:force] + !File.exist?(filename) || outdated? || options[:force] end # Returns the uniqueness hash for this sprite object @@ -109,7 +109,7 @@ def image_filenames # Checks whether this sprite is outdated def outdated? - if File.exists?(filename) + if File.exist?(filename) return @images.any? {|image| image.mtime.to_i > self.mtime.to_i } end true diff --git a/cli/test/integrations/compass_test.rb b/cli/test/integrations/compass_test.rb index 59eeed29cd..0ded5421de 100644 --- a/cli/test/integrations/compass_test.rb +++ b/cli/test/integrations/compass_test.rb @@ -46,7 +46,7 @@ def test_on_stylesheet_error_callback def test_empty_project # With no sass files, we should have no css files. within_project(:empty) do |proj| - return unless proj.css_path && File.exists?(proj.css_path) + return unless proj.css_path && File.exist?(proj.css_path) Dir.new(proj.css_path).each do |f| fail "This file should not have been generated: #{f}" unless f == "." || f == ".." end @@ -186,7 +186,7 @@ def assert_renders_correctly(*arguments) def within_project(project_name, config_block = nil) @current_project = project_name - Compass.add_configuration(configuration_file(project_name)) if File.exists?(configuration_file(project_name)) + Compass.add_configuration(configuration_file(project_name)) if File.exist?(configuration_file(project_name)) Compass.configuration.project_path = project_path(project_name) Compass.configuration.environment = :production Compass.configuration.sourcemap = false unless Compass.configuration.sourcemap_set? @@ -195,7 +195,7 @@ def within_project(project_name, config_block = nil) config_block.call(Compass.configuration) end - if Compass.configuration.sass_path && File.exists?(Compass.configuration.sass_path) + if Compass.configuration.sass_path && File.exist?(Compass.configuration.sass_path) compiler = Compass.sass_compiler compiler.logger = Compass::NullLogger.new compiler.clean! @@ -221,7 +221,7 @@ def each_sass_file(sass_dir = nil) def save_output(dir) FileUtils.rm_rf(save_path(dir)) - FileUtils.cp_r(tempfile_path(dir), save_path(dir)) if File.exists?(tempfile_path(dir)) + FileUtils.cp_r(tempfile_path(dir), save_path(dir)) if File.exist?(tempfile_path(dir)) end def project_path(project_name) diff --git a/cli/test/test_helper.rb b/cli/test/test_helper.rb index 82c82f5d9e..39013dc857 100644 --- a/cli/test/test_helper.rb +++ b/cli/test/test_helper.rb @@ -3,6 +3,19 @@ test_dir = File.dirname(__FILE__) $:.unshift(test_dir) unless $:.include?(test_dir) +require 'warning' + +Warning.process do |w| + if w.include?("The $start value for random") + $stderr.puts(w) + elsif w.include?("keyword") + $stderr.puts(w) + elsif w.match?(/this is a warning/) + $stderr.puts(w) + else + nil + end +end require 'compass' require 'test/unit' require 'true' diff --git a/cli/test/units/command_line_test.rb b/cli/test/units/command_line_test.rb index 8771280286..7dbae6b508 100644 --- a/cli/test/units/command_line_test.rb +++ b/cli/test/units/command_line_test.rb @@ -21,7 +21,7 @@ def test_print_version def test_basic_install within_tmp_directory do compass(*%w(create --boring basic)) - assert File.exists?("basic/sass/screen.scss") + assert File.exist?("basic/sass/screen.scss") assert_action_performed :directory, "basic/" assert_action_performed :create, "basic/sass/screen.scss" end @@ -34,8 +34,8 @@ def test_basic_install define_method "test_#{framework.name}_installation" do within_tmp_directory do compass(*%W(create --boring --using #{framework.name} #{framework.name}_project)) - assert File.exists?("#{framework.name}_project/sass/screen.scss"), "sass/screen.scss is missing. Found: #{Dir.glob("#{framework.name}_project/**/*").join(", ")}" - assert File.exists?("#{framework.name}_project/stylesheets/screen.css") + assert File.exist?("#{framework.name}_project/sass/screen.scss"), "sass/screen.scss is missing. Found: #{Dir.glob("#{framework.name}_project/**/*").join(", ")}" + assert File.exist?("#{framework.name}_project/stylesheets/screen.css") assert_action_performed :directory, "#{framework.name}_project/" assert_action_performed :create, "#{framework.name}_project/sass/screen.scss" assert_action_performed :write, "#{framework.name}_project/stylesheets/screen.css" diff --git a/cli/test/units/sass_extensions_test.rb b/cli/test/units/sass_extensions_test.rb index e6ae94ae8c..c47e795639 100644 --- a/cli/test/units/sass_extensions_test.rb +++ b/cli/test/units/sass_extensions_test.rb @@ -79,9 +79,9 @@ def test_math_functions assert_equal "0.84147px", evaluate("sin(1px)") assert_equal "0.5236", evaluate("asin(0.5)") assert_equal "0.5236", evaluate("asin(100px/200px)") - assert_equal "0.0", evaluate("sin(pi())") + assert_equal 0.0, evaluate("sin(pi())").to_f assert_equal "1", evaluate("sin(pi() / 2)") - assert_equal "0.0", evaluate("sin(180deg)") + assert_equal 0.0, evaluate("sin(180deg)").to_f assert_equal "-1", evaluate("sin(3* pi() / 2)") assert_equal "-1", evaluate("cos(pi())") assert_equal "1", evaluate("cos(360deg)") @@ -89,11 +89,11 @@ def test_math_functions assert_equal "1.0472", evaluate("acos(100px/200px)") assert_equal "-0.17605", evaluate("sin(270)") assert_equal "1", evaluate("cos(2*pi())") - assert_equal "0.0", evaluate("cos(pi() / 2)") - assert_equal "0.0", evaluate("cos(3* pi() / 2)") - assert_equal "0.0", evaluate("tan(pi())") + assert_equal "0.0".to_f, evaluate("cos(pi() / 2)").to_f + assert_equal "0.0".to_f, evaluate("cos(3* pi() / 2)").to_f + assert_equal "0.0".to_f, evaluate("tan(pi())").to_f assert_equal "0.46365", evaluate("atan(0.5)") - assert_equal "0.0", evaluate("tan(360deg)") + assert_equal "0.0".to_f, evaluate("tan(360deg)").to_f assert_equal "0.95892", evaluate("sin(360)") assert evaluate("tan(pi()/2 - 0.0001)").to_f > 1000, evaluate("tan(pi()/2 - 0.0001)") assert evaluate("tan(pi()/2 + 0.0001)").to_f < -1000, evaluate("tan(pi()/2 - 0.0001)") diff --git a/cli/test/units/sprites/layout_test.rb b/cli/test/units/sprites/layout_test.rb index 8eca41eaac..fdb5c7b273 100644 --- a/cli/test/units/sprites/layout_test.rb +++ b/cli/test/units/sprites/layout_test.rb @@ -117,7 +117,7 @@ def horizontal(options= {}, uri=URI) assert_equal 400, base.width assert_equal 60, base.height assert_equal [[0, 0], [20, 120], [20, 0], [20, 100], [20, 160]], base.images.map {|i| [i.top, i.left]} - assert File.exists?(base.filename) + assert File.exist?(base.filename) FileUtils.rm base.filename end @@ -130,7 +130,7 @@ def horizontal(options= {}, uri=URI) assert_equal 40, base.width assert_equal 40, base.height assert_equal [[30, 0], [20, 10], [10, 20], [0, 30]], base.images.map {|i| [i.top, i.left]} - assert File.exists?(base.filename) + assert File.exist?(base.filename) FileUtils.rm base.filename end @@ -173,8 +173,8 @@ def horizontal(options= {}, uri=URI) it "should generate a horrizontal sprite" do base = horizontal base.generate - assert File.exists?(base.filename) + assert File.exist?(base.filename) FileUtils.rm base.filename end -end \ No newline at end of file +end diff --git a/cli/test/units/sprites/sprite_command_test.rb b/cli/test/units/sprites/sprite_command_test.rb index 2c30c1681c..78e1b32fd0 100644 --- a/cli/test/units/sprites/sprite_command_test.rb +++ b/cli/test/units/sprites/sprite_command_test.rb @@ -42,14 +42,14 @@ def options_to_cli(options) def teardown ::Dir.chdir @before_dir clean_up_sprites - if File.exists?(@test_dir) + if File.exist?(@test_dir) ::FileUtils.rm_r @test_dir end end it "should create sprite file" do assert_equal 0, run_compass_with_options(['sprite', "-f", 'stylesheet.scss', "squares/*.png"]).to_i - assert File.exists?(File.join(test_dir, 'stylesheet.scss')) + assert File.exist?(File.join(test_dir, 'stylesheet.scss')) end -end \ No newline at end of file +end diff --git a/cli/test/units/sprites/sprite_map_test.rb b/cli/test/units/sprites/sprite_map_test.rb index dc930607f5..b38077ebac 100644 --- a/cli/test/units/sprites/sprite_map_test.rb +++ b/cli/test/units/sprites/sprite_map_test.rb @@ -78,7 +78,7 @@ def teardown it "should generate sprite" do @base.generate - assert File.exists?(@base.filename) + assert File.exist?(@base.filename) assert !@base.generation_required? assert !@base.outdated? end @@ -86,13 +86,13 @@ def teardown it "should remove old sprite when generating new" do @base.generate file = @base.filename - assert File.exists?(file), "Original file does not exist" + assert File.exist?(file), "Original file does not exist" file_to_remove = File.join(@images_tmp_path, 'selectors', 'ten-by-ten.png') FileUtils.rm file_to_remove - assert !File.exists?(file_to_remove), "Failed to remove sprite file" + assert !File.exist?(file_to_remove), "Failed to remove sprite file" @base = sprite_map_test(@options) @base.generate - assert !File.exists?(file), "Sprite file did not get removed" + assert !File.exist?(file), "Sprite file did not get removed" end test "should get correct relative_name" do diff --git a/compass-style.org/.compass/config.rb b/compass-style.org/.compass/config.rb deleted file mode 100644 index a464f3d92a..0000000000 --- a/compass-style.org/.compass/config.rb +++ /dev/null @@ -1,17 +0,0 @@ -# Require any additional compass plugins here. -require 'susy' -require 'css-slideshow' -# Set this to the root of your project when deployed: -http_path = "/" -project_path = File.expand_path(File.join(File.dirname(__FILE__), '..')) -css_dir = "output/stylesheets" -sass_dir = "content/stylesheets" -images_dir = "assets/images" -javascripts_dir = "assets/javascripts" -fonts_dir = "assets/fonts" -http_javascripts_dir = "javascripts" -http_stylesheets_dir = "stylesheets" -http_images_dir = "images" -http_fonts_dir = "fonts" -# To enable relative paths to assets via compass helper functions. Uncomment: -# relative_assets = true diff --git a/compass-style.org/.gitignore b/compass-style.org/.gitignore deleted file mode 100644 index 624d6eeb2d..0000000000 --- a/compass-style.org/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -bin -vendor -output -vendor/ruby -crash.log -tmp -.bundle -sync -.rvmrc diff --git a/compass-style.org/.livereload b/compass-style.org/.livereload deleted file mode 100644 index b185045d56..0000000000 --- a/compass-style.org/.livereload +++ /dev/null @@ -1,19 +0,0 @@ -# Lines starting with pound sign (#) are ignored. - -# additional extensions to monitor -#config.exts << 'haml' - -# exclude files with NAMES matching this mask -#config.exclusions << '~*' -# exclude files with PATHS matching this mask (if the mask contains a slash) -#config.exclusions << '/excluded_dir/*' -# exclude files with PATHS matching this REGEXP -#config.exclusions << /somedir.*(ab){2,4}.(css|js)$/ - -# reload the whole page when .js changes -#config.apply_js_live = false -# reload the whole page when .css changes -#config.apply_css_live = false - -# wait 100ms for more changes before reloading a page -#config.grace_period = 0.1 diff --git a/compass-style.org/Gemfile b/compass-style.org/Gemfile index 936eda6e6f..bf93830ac1 100644 --- a/compass-style.org/Gemfile +++ b/compass-style.org/Gemfile @@ -23,3 +23,4 @@ gem 'json' gem 'css_parser', "1.0.1" gem 'rb-fsevent' gem 'builder' +gem 'warning' diff --git a/compass-style.org/Gemfile.lock b/compass-style.org/Gemfile.lock deleted file mode 100644 index e331aee2cc..0000000000 --- a/compass-style.org/Gemfile.lock +++ /dev/null @@ -1,96 +0,0 @@ -PATH - remote: .. - specs: - compass (1.0.1) - chunky_png (~> 1.2) - compass-core (~> 1.0.1) - compass-import-once (~> 1.0.5) - rb-fsevent (>= 0.9.3) - rb-inotify (>= 0.9) - sass (>= 3.3.13, < 3.5) - compass-core (1.0.1) - multi_json (~> 1.0) - sass (>= 3.3.0, < 3.5) - compass-import-once (1.0.5) - sass (>= 3.2, < 3.5) - -GEM - remote: https://rubygems.org/ - specs: - activesupport (3.0.20) - adsf (1.2.0) - rack (>= 1.0.0) - builder (3.2.2) - chunky_png (1.3.1) - coderay (1.1.0) - colored (1.2) - cri (2.6.1) - colored (~> 1.2) - css-slideshow (0.2.0) - compass (>= 0.10.0.rc3) - css_parser (1.0.1) - daemons (1.1.9) - dotenv (0.11.1) - dotenv-deployment (~> 0.0.2) - dotenv-deployment (0.0.2) - eventmachine (1.0.3) - ffi (1.9.3) - foreman (0.74.0) - dotenv (~> 0.11.1) - thor (~> 0.19.1) - fssm (0.2.10) - haml (4.0.5) - tilt - i18n (0.6.11) - json (1.8.1) - mime-types (2.3) - mini_portile (0.6.0) - multi_json (1.10.1) - nanoc (3.4.3) - cri (~> 2.2) - nokogiri (1.6.3.1) - mini_portile (= 0.6.0) - rack (1.5.2) - rake (10.3.2) - rb-fsevent (0.9.4) - rb-inotify (0.9.5) - ffi (>= 0.5.0) - rdiscount (2.1.7.1) - sass (3.3.14) - susy (2.1.3) - sass (>= 3.3.0, < 3.5) - thin (1.6.2) - daemons (>= 1.0.9) - eventmachine (>= 1.0.0) - rack (>= 1.0.0) - thor (0.19.1) - tilt (2.0.1) - -PLATFORMS - ruby - -DEPENDENCIES - activesupport (~> 3.0.10) - adsf - builder - coderay - compass! - css-slideshow (= 0.2.0) - css_parser (= 1.0.1) - foreman - fssm - haml - i18n - json - mime-types - nanoc (~> 3.4.2) - nokogiri - rack - rake - rb-fsevent - rb-inotify - rdiscount - sass (~> 3.3.0) - susy - thin - thor diff --git a/compass-style.org/Procfile b/compass-style.org/Procfile deleted file mode 100644 index 0cbf627b28..0000000000 --- a/compass-style.org/Procfile +++ /dev/null @@ -1,2 +0,0 @@ -watch: bundle exec nanoc watch -view: bundle exec nanoc view -H thin diff --git a/compass-style.org/README.markdown b/compass-style.org/README.markdown deleted file mode 100644 index aa92508b81..0000000000 --- a/compass-style.org/README.markdown +++ /dev/null @@ -1,422 +0,0 @@ -# Compass documentation - -* [About](#about) -* [Documentation setup](#documentation-setup) -* [Documentation project structure](#documentation-project-structure) -* [HOW-TOs](#how-tos) - -If you want to work on a specific part of the docs, please let everyone know via the [Compass-devs google group](http://groups.google.com/group/compass-devs/browse_thread/thread/41dc723721a194f8). - ---- - -## About - -This is the documentation for Compass. Much of the documentation is read from the -Sass source files to keep the docs in-line with current state of the code as much as -possible. - -If you're reading this, you might be thinking about helping to improve the Compass documentation by editing existing documentation or by adding new documentation. - -There are two main kinds of documentation: - -* Tutorials → Describe **how** to use Compass. -* Reference → Details about **what** Compass has. - -It's possible and encouraged for related tutorials and reference documentation to -link to each other. - -## Documentation setup - -So you want to help documenting Compass? - -Setting up the documentation for Compass is not super-easy, but it's pretty doable. - -The Compass docs live in the source code of Compass. Not directly in the Sass files though: the documentation is a combination of inline comments and source code read directly from the Sass files, and hand-maintained documentation and examples. We use [nanoc](http://nanoc.stoneship.org/) to generate a static website, combined with some Ruby to read the Compass source. - -The reasons for this setup are simple: - -* to keep the documentation current, we need to read from the source code -* to read from the source code, we need to be in the source code - -If you encounter any problems, there's usually some people around to help at #compass on freenode IRC. - -### Prerequisites: - -* a Github account, setup to be able to clone repos (see [GitHub Help](http://help.github.com/)) -* [Git](http://git-scm.com/downloads) installed on your computer -* a basic knowledge of Git ([Pro Git](http://git-scm.com/book) is an excellent free guide) - -Make sure that you have RubyGems v1.3.6 or greater: - -```sh -$ gem -v -``` - -If that doesn't work, RubyGems is probably out of date, try: - -```sh -$ (sudo) gem update --system -``` - -You will need the [Bundler](http://gembundler.com/) gem, so if you don't have it: - -```sh -$ (sudo) gem install bundler -``` - -A list of the gems on your system can be accessed via `gem list`. Run `gem list bundler` to see if you have bundler installed. - -### 1. Get your own copy of Compass (fork) - -Make your own fork of Compass on Github by clicking the "Fork" button on [http://github.com/chriseppstein/compass](http://github.com/chriseppstein/compass), then go to your fork of Compass on GitHub. Your compass fork will be available at `http://github.com//compass` . - -### 2. Directory setup - -`git clone` your fork of the Compass repository: - -```sh -$ git clone git@github.com:/compass.git -``` - -### 3. Bundler - -If you haven't yet done so, install bundler: - -```sh -$ (sudo) gem install bundler -``` - -Bundle the gems for this application: - -```sh -$ cd compass-style.org -$ bundle install -``` - -### 3/4. Binstubs - -If your bundler is still stuck with generating binstubs (an approach we -used before), check if there's a `.bundler` directory in -`compass-style.org`. If there is, delete it and try again. If you don't -know what we're talking about, then everything is fine, continue... :) - -### 4. Compile the docs - -First, make sure you're in the `compass-style.org` directory. To watch the folder for changes and to preview the site in your browser, run: - -```sh -$ foreman start -``` - -Then go to [http://localhost:3000](http://localhost:3000) to view the site. - -We use [foreman](https://github.com/ddollar/foreman) to combine two nanoc commands using a `Procfile`, which you'll find in `compass-style.org`. If you take a look a it, you'll see two processes, `watch` and `view`: - -```sh -watch: bundle exec nanoc watch -view: bundle exec nanoc view -H thin -``` - -`nanoc watch` watches for changes and `nanoc view -H thin` previews the site using thin (rather than WEBrick, which it would use by default). We suggest you install [Growl](http://growl.info/) or [rb-inotify](https://github.com/nex3/rb-inotify) so you can receive notifications when the site is done compiling. - -Your basic workflow might look like this: - -1. run `foreman start` -1. open [http://localhost:3000](http://localhost:3000) -1. make changes in the project files (and save them) -1. wait for the notification that the compilation is complete -1. refresh the browser to see the changes -1. go to 3. - -If you refresh the browser before the compilation is complete, nothing bad will happen, you just won't see the change until the compilation finishes (and you refresh again). That's because the site is compiling asynchronously. - -Auto-compiling on file change might not be your thing. In that case, keep this process running in a separate terminal window: - -```sh -$ bundle exec nanoc view -H thin -``` - -and run: - -```sh -$ bundle exec nanoc (compile) -``` - -every time you want to compile the site and see the changes. - -If this doesn't work for you, you could try nanoc's `aco` (or `autocompile`) command: - -```sh -$ bundle exec nanoc aco -H thin -``` - -It compiles and previews the site in the browser (also at [http://localhost:3000](http://localhost:3000)), then recompiles it on each request. The difference from the previous approach is that the site is recompiled each time a page is requested, not when a file is changed. This approach is usually more sluggish because it's synchronous. - -For convenience, all these commands are written as rake tasks: - -```sh -$ rake watch # bundle execn nanoc watch -$ rake view # bundle exec nanoc view -H thin -$ rake compile # bundle exec nanoc (compile) -$ rake aco # bundle exec nanoc aco -H thin -``` - -if you choose not to use the Procfile approach. - -It is recommended that you read the 5 minute [tutorial](http://nanoc.stoneship.org/tutorial/) on nanoc. - -### 5. Commit your changes to your fork - -When you're happy with the changes you made and you're ready to submit them, use `git add` to stage the changes, then commit them with: - -```sh -$ git commit -``` - -When you're ready to push your changes to your Compass fork on GitHub, run: - -```sh -$ git push -u origin -``` - -depending on which branch you want to push. Your changes are now reflected on your github repo. Go to Github and click the "Pull Request" button on top of your repo to notify Chris of changes. He will verify them and merge them into the master. - -#### How to pull in new changes - -Add the original Compass repository to your Git remotes: - -```sh -$ git remote add chris git://github.com/chriseppstein/compass.git -``` - -Then get the new changes with fetch: - -```sh -$ git fetch chris -``` - -And merge them with your local docs branch: - -```sh -$ git merge chris -``` - -## Documentation project structure - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
.compass/config.rbCompass configuration of the project.
content/Content of the project.
content/reference/Reference documentation.
content/examples/Examples.
content/help/tutorials/Tutorial documentation.
content/stylesheets/Sass stylesheets for the project.
assets/css/Third-party, plain old CSS files.
assets/images/Images.
assets/javascripts/JavaScript files.
layouts/Layouts for the project.
layouts/partials/Partials for the project.
lib/Ruby code – helper code and Sass source inspection is done here.
- -## HOW-TOs - -### How to Add an Asset - -If you are adding an asset (e.g. image, CSS, JavaScript) place the file(s) in the appropriate directories under the `assets` directory. - -### How to Add a New Example - -(Again, make sure you're in the `compass-style.org` directory.) - -We're using [Thor](https://github.com/wycats/thor) to generate examples and references. The command for generating examples is `generate:example`, you can see command's description and available options by running: - -```sh -$ thor help generate:example -``` - -which produces: - -```sh -Usage: - thor generate:example path/to/module - -Options: - -t, [--title=TITLE] # Title of the example. - -d, [--description=DESCRIPTION] # Description of the example, which is shown below the link. - -m, [--mixin=MIXIN] # Name of the specific mixin in the module if the example isn't about the whole module. - -Generates a new example. -``` - -All of these are optional and have reasonable defaults, you can use them when understand what exactly they are setting. They are all simple metadata values, so you can change them later on. - -**Note**: When generating examples or references, Thor is searching for the appropriate -module stylesheet. If it doesn't find one, it raises an error and doesn't -generate anything. So before generating anything make sure the stylesheet exists and is -under `../frameworks/compass/stylesheets/compass/path/to/module` (relative to the `compass-style.org` directory). If the path confuses you, just take a few minutes to study how other modules are organized and you'll quickly get the hang of it. - -Let's do an example: - -```sh -$ thor generate:example typography/lists/inline-block-list -``` - -which produces the following output: - -``` -Generating /examples/compass/typography/lists/inline-block-list/ -DIRECTORY content/examples/compass/typography/lists/inline-block-list/ - CREATE content/examples/compass/typography/lists/inline-block-list.haml - CREATE content/examples/compass/typography/lists/inline-block-list/markup.haml - CREATE content/examples/compass/typography/lists/inline-block-list/stylesheet.scss -``` - -The command generated three files: - -1. `inline-block-list.haml` → The main container, it contains example metadata - and description. -1. `markup.haml` → The markup for the example, it will be shown as HTML and as Haml and it's styled with `stylesheet.scss`. -1. `stylesheet.scss` → The style for the example, it will be shown as SCSS, Sass - and as CSS. This is the main file as it is demonstrating the module. - -`markup.haml` and `stylesheet.scss` are pretty self-explanatory, but we might want take a look at `inline-block-list.haml`. - -``` ---- -title: Inline Block List -description: How to use Inline Block List -framework: compass -stylesheet: compass/typography/lists/_inline-block-list.scss -example: true ---- -- render "partials/example" do - %p Lorem ipsum dolor sit amet. -``` - -The stuff between `---` is called YAML front matter, it's describes example's metadata which is used to associate the example to the reference documentation. - -If your example covers only a specific mixin, not the whole module, you can add -`mixin: ` to the metadata. This will display the example link right below -that mixin in the reference (otherwise, it will appear near the top, below the module -description). - -After adding the example and adjusting the metadata, go to the reference page in your browser and you can verify that a link to the example has appeared. - -### How to Add New Reference Documentation - -Existing modules already have reference files, so you'll most likely be adding -reference files to new modules. - -So we got a great idea for an awesome module, and after a lot of thinking we decided to name it `super-awesome-module`. The first step to adding a new module is creating the stylesheet. Let's say this will be a Compass CSS3 module, so we'll create a new file as `../frameworks/compass/stylesheets/compass/css3/_super-awesome-module.scss` (relative to the `compass-style.org` directory). Keep in mind that the comments inside those stylesheets are parsed with Markdown and output into the reference. - -The easiest way to find out how you should write your stylesheet is to take a look at some existing modules. This module won't be very useful, but you'll get the point: - -```scss -@import "shared"; - -// Super awesomeness variable. -$default-super-awesomeness : true !default; - -// Super awesome mixin. -@mixin super-awesome { - @if $default-super-awesomeness { - $a: 5; - } -} -``` - -Now that we have a stylesheet, we can generate the reference for it using the -`generate:reference` command. We can first see what it does by running: - -```sh -$ thor help generate:reference -``` - -which produces: - -```sh -Usage: - thor generate:reference path/to/module - -Options: - -t, [--title=TITLE] # Title of the reference. - -Generate a reference page for the given module. -``` - -Now we can create a reference file for our new module: - -```sh -$ thor generate:reference css3/super-awesome-module -``` - -Which produces the following output: - -``` -Generating /reference/compass/css3/super-awesome-module/ -DIRECTORY content/reference/compass/css3/super-awesome-module/ - CREATE content/reference/compass/css3/super-awesome-module.haml -``` - -If we open `super-awesome-module.haml`, we can see our reference template: - -``` ---- -title: Compass Super Awesome Module -crumb: Super Awesome Module -framework: compass -stylesheet: compass/css3/_super-awesome-module.scss -layout: core -classnames: - - reference - - core ---- -- render "reference" do - %p Lorem ipsum dolor sit amet. -``` - -If `title` and `crumb` are the way you want them to be, your metadata should be good to go. Check the reference in your browser (it should be listed as a module in CSS3), if the style appears broken, take a look at the metadata of sibling stylesheets and adjust yours accordingly. If everything looks fine you can start writing the module's description below. - -Unlike what you might have guessed, the reference file only holds the main -description of the module. Descriptions of specific variables, functions and -mixins should be written as comments in the stylesheet file. - -Happy documenting! diff --git a/compass-style.org/Rakefile b/compass-style.org/Rakefile deleted file mode 100644 index ab7a57a355..0000000000 --- a/compass-style.org/Rakefile +++ /dev/null @@ -1,24 +0,0 @@ -require "bundler" -Bundler.setup - -require "rake" - -desc "Watch the site for changes." -task :watch do - sh "nanoc watch" -end - -desc "Compile the site." -task :compile do - sh "nanoc compile" -end - -desc "View the site in a browser." -task :view do - sh "nanoc view -H thin" -end - -desc "View the site in a browser with live updating (sluggish)." -task :aco do - sh "nanoc aco -H thin" -end diff --git a/compass-style.org/Rules b/compass-style.org/Rules deleted file mode 100644 index 1121c1268e..0000000000 --- a/compass-style.org/Rules +++ /dev/null @@ -1,139 +0,0 @@ -#!/usr/bin/env ruby - -require 'sass' -require 'compass' - -Compass.add_configuration "#{File.dirname(__FILE__)}/.compass/config.rb" - -SITE_ROOT = "" - -compile '/assets/*/' do - nil -end - -['markup', 'stylesheet', 'background'].each do |ex_file| - compile "/examples/*/#{ex_file}/" do - snapshot :raw - nil - end -end - -compile '/' do - filter :haml, :ugly => true - layout item[:layout] ? item[:layout] : "main" -end - -compile '/search-data/' do - filter :erb -end - -compile '/examples/*/' do - filter :haml, :ugly => true - filter :highlight - layout item[:layout] ? item[:layout] : "example" -end - -sass_options = Compass.sass_engine_options - -(0..5).each do |i| - compile("/stylesheets/#{'*/' * i}_*/") {nil} -end - -compile '/stylesheets/*' do - filter :sass, sass_options.merge(:syntax => item[:extension].to_sym) -end - -compile '/reference/*/' do - filter :haml, :ugly => true - filter :highlight - layout item[:layout] ? item[:layout] : "main" -end - -compile '/posts/*/' do - filter :erb - filter :rdiscount if item[:extension] == "markdown" - layout 'post' -end - -compile "/blog/atom/" do - filter :haml, :attr_wrapper => '"' -end - -compile 'sitemap' do - filter :erb -end - -compile '*' do - if item[:extension] == "markdown" - filter :erb - filter :rdiscount - elsif item[:extension] == "haml" - filter :haml, :ugly => true - end - layout item[:layout] ? item[:layout] : "main" -end - -route 'sitemap' do - item.identifier.chop + '.xml' -end - -route "/blog/atom/" do - "/blog/atom.xml" -end - -route '/search-data/' do - "#{SITE_ROOT}/javascripts"+item.identifier[0..-2]+".js" -end - -(0..5).each do |i| - route("/stylesheets/#{'*/' * i}_*/") {nil} -end - -route '/assets/htaccess/' do - "#{SITE_ROOT}/.htaccess" -end - -route '/assets/css/*/' do - "#{SITE_ROOT}/stylesheets"+item.identifier.chop[11..-1] -end - -route '/assets/images/*/' do - SITE_ROOT+item.identifier.chop[7..-1] -end - -route '/assets/javascripts/*/' do - SITE_ROOT+item.identifier.chop[7..-1] -end - -route '/assets/fonts/*/' do - SITE_ROOT+item.identifier.chop[7..-1] -end - -route '/stylesheets/*/' do - # don't generate a directory like we do for HTML files - SITE_ROOT+item.identifier.chop + '.css' -end - -route '/posts/*/' do - if item[:draft] - puts "Skipping Draft post: #{item.identifier}" - nil - elsif item.identifier =~ %r{^/posts/(\d{4})-(\d{2})-(\d{2})-(.*)/$} - "/blog/#{$1}/#{$2}/#{$3}/#{$4}/index.html" - else - puts "WARNING: malformed post name: #{item.identifier}" - nil - end -end - -%w(markup stylesheet background).each do |ex_file| - route "/examples/*/#{ex_file}/" do - nil - end -end - -route '*' do - SITE_ROOT+item.identifier + 'index.html' -end - -layout '*', :haml, :ugly => true diff --git a/compass-style.org/assets/fonts/examples/bgrove.otf b/compass-style.org/assets/fonts/examples/bgrove.otf deleted file mode 100755 index 9b203da62c..0000000000 Binary files a/compass-style.org/assets/fonts/examples/bgrove.otf and /dev/null differ diff --git a/compass-style.org/assets/fonts/examples/bgrove.ttf b/compass-style.org/assets/fonts/examples/bgrove.ttf deleted file mode 100755 index 9f2d056f1e..0000000000 Binary files a/compass-style.org/assets/fonts/examples/bgrove.ttf and /dev/null differ diff --git a/compass-style.org/assets/fonts/museosans-web.eot b/compass-style.org/assets/fonts/museosans-web.eot deleted file mode 100755 index 4e1c50f713..0000000000 Binary files a/compass-style.org/assets/fonts/museosans-web.eot and /dev/null differ diff --git a/compass-style.org/assets/fonts/museosans-web.svg b/compass-style.org/assets/fonts/museosans-web.svg deleted file mode 100755 index 2b4a36e404..0000000000 --- a/compass-style.org/assets/fonts/museosans-web.svg +++ /dev/null @@ -1,241 +0,0 @@ - - - - -This is a custom SVG webfont generated by Font Squirrel. -Copyright : Copyright c 2008 by Jos Buivenga All rights reserved -Designer : Jos Buivenga -Foundry : Jos Buivenga -Foundry URL : httpwwwjosbuivengademonnl - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/compass-style.org/assets/fonts/museosans-web.ttf b/compass-style.org/assets/fonts/museosans-web.ttf deleted file mode 100755 index a158eb5fbe..0000000000 Binary files a/compass-style.org/assets/fonts/museosans-web.ttf and /dev/null differ diff --git a/compass-style.org/assets/fonts/museosans-web.woff b/compass-style.org/assets/fonts/museosans-web.woff deleted file mode 100755 index 97442ec9f3..0000000000 Binary files a/compass-style.org/assets/fonts/museosans-web.woff and /dev/null differ diff --git a/compass-style.org/assets/htaccess b/compass-style.org/assets/htaccess deleted file mode 100644 index 657d52bcda..0000000000 --- a/compass-style.org/assets/htaccess +++ /dev/null @@ -1,4 +0,0 @@ -RedirectMatch 301 /docs/$ /reference/compass/ -RedirectMatch 301 /docs/tutorials/(.*) /help/tutorials/$1 -RedirectMatch 301 /docs/(.*) /$1 -RedirectMatch 301 /reference/$ /reference/compass/ diff --git a/compass-style.org/assets/images/bg-light.jpg b/compass-style.org/assets/images/bg-light.jpg deleted file mode 100644 index 3d1fd2b12b..0000000000 Binary files a/compass-style.org/assets/images/bg-light.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/compass-logo-small-dark.png b/compass-style.org/assets/images/compass-logo-small-dark.png deleted file mode 100644 index 001ccfa25a..0000000000 Binary files a/compass-style.org/assets/images/compass-logo-small-dark.png and /dev/null differ diff --git a/compass-style.org/assets/images/compass-logo-small-light.png b/compass-style.org/assets/images/compass-logo-small-light.png deleted file mode 100644 index 4eee305cee..0000000000 Binary files a/compass-style.org/assets/images/compass-logo-small-light.png and /dev/null differ diff --git a/compass-style.org/assets/images/compass-logo.png b/compass-style.org/assets/images/compass-logo.png deleted file mode 100644 index 64d03b2e9b..0000000000 Binary files a/compass-style.org/assets/images/compass-logo.png and /dev/null differ diff --git a/compass-style.org/assets/images/compass.app.png b/compass-style.org/assets/images/compass.app.png deleted file mode 100644 index 1c761f0227..0000000000 Binary files a/compass-style.org/assets/images/compass.app.png and /dev/null differ diff --git a/compass-style.org/assets/images/compass.png b/compass-style.org/assets/images/compass.png deleted file mode 100644 index 2aece0af47..0000000000 Binary files a/compass-style.org/assets/images/compass.png and /dev/null differ diff --git a/compass-style.org/assets/images/compass_icon.png b/compass-style.org/assets/images/compass_icon.png deleted file mode 100644 index 201edfc565..0000000000 Binary files a/compass-style.org/assets/images/compass_icon.png and /dev/null differ diff --git a/compass-style.org/assets/images/examples/css3/bg-origin/bg.png b/compass-style.org/assets/images/examples/css3/bg-origin/bg.png deleted file mode 100644 index 020b4566bb..0000000000 Binary files a/compass-style.org/assets/images/examples/css3/bg-origin/bg.png and /dev/null differ diff --git a/compass-style.org/assets/images/sites/busyconf.jpg b/compass-style.org/assets/images/sites/busyconf.jpg deleted file mode 100644 index 6dcc2eecd9..0000000000 Binary files a/compass-style.org/assets/images/sites/busyconf.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/caring.jpg b/compass-style.org/assets/images/sites/caring.jpg deleted file mode 100644 index 1963e9dedc..0000000000 Binary files a/compass-style.org/assets/images/sites/caring.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/cofamilies.jpg b/compass-style.org/assets/images/sites/cofamilies.jpg deleted file mode 100644 index f361232975..0000000000 Binary files a/compass-style.org/assets/images/sites/cofamilies.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/cornell.jpg b/compass-style.org/assets/images/sites/cornell.jpg deleted file mode 100644 index 0c6363c1e1..0000000000 Binary files a/compass-style.org/assets/images/sites/cornell.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/dailymile.jpg b/compass-style.org/assets/images/sites/dailymile.jpg deleted file mode 100644 index 07874576d7..0000000000 Binary files a/compass-style.org/assets/images/sites/dailymile.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/hubblesite.jpg b/compass-style.org/assets/images/sites/hubblesite.jpg deleted file mode 100644 index 019bb56866..0000000000 Binary files a/compass-style.org/assets/images/sites/hubblesite.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/jumpstartlab.jpg b/compass-style.org/assets/images/sites/jumpstartlab.jpg deleted file mode 100644 index 41880b00ca..0000000000 Binary files a/compass-style.org/assets/images/sites/jumpstartlab.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/linkedin.png b/compass-style.org/assets/images/sites/linkedin.png deleted file mode 100644 index 26c771352a..0000000000 Binary files a/compass-style.org/assets/images/sites/linkedin.png and /dev/null differ diff --git a/compass-style.org/assets/images/sites/memberhub.jpg b/compass-style.org/assets/images/sites/memberhub.jpg deleted file mode 100644 index 08eb086fd2..0000000000 Binary files a/compass-style.org/assets/images/sites/memberhub.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/sencha.jpg b/compass-style.org/assets/images/sites/sencha.jpg deleted file mode 100644 index 4defec7067..0000000000 Binary files a/compass-style.org/assets/images/sites/sencha.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/sites/status.heroku.jpg b/compass-style.org/assets/images/sites/status.heroku.jpg deleted file mode 100644 index 32b7316fdf..0000000000 Binary files a/compass-style.org/assets/images/sites/status.heroku.jpg and /dev/null differ diff --git a/compass-style.org/assets/images/tutorials/sprites/layout/diagonal.png b/compass-style.org/assets/images/tutorials/sprites/layout/diagonal.png deleted file mode 100644 index a7b3f93d42..0000000000 Binary files a/compass-style.org/assets/images/tutorials/sprites/layout/diagonal.png and /dev/null differ diff --git a/compass-style.org/assets/images/tutorials/sprites/layout/horizontal.png b/compass-style.org/assets/images/tutorials/sprites/layout/horizontal.png deleted file mode 100644 index 057568e4d1..0000000000 Binary files a/compass-style.org/assets/images/tutorials/sprites/layout/horizontal.png and /dev/null differ diff --git a/compass-style.org/assets/images/tutorials/sprites/layout/smart.png b/compass-style.org/assets/images/tutorials/sprites/layout/smart.png deleted file mode 100644 index 7fe102a6c7..0000000000 Binary files a/compass-style.org/assets/images/tutorials/sprites/layout/smart.png and /dev/null differ diff --git a/compass-style.org/assets/images/tutorials/sprites/layout/vert.png b/compass-style.org/assets/images/tutorials/sprites/layout/vert.png deleted file mode 100644 index dde31b03ff..0000000000 Binary files a/compass-style.org/assets/images/tutorials/sprites/layout/vert.png and /dev/null differ diff --git a/compass-style.org/assets/javascripts/fixups.js b/compass-style.org/assets/javascripts/fixups.js deleted file mode 100644 index 3263c69e6e..0000000000 --- a/compass-style.org/assets/javascripts/fixups.js +++ /dev/null @@ -1,22 +0,0 @@ -$(function(){ - $('span.color').each(function(i,e){ - e = $(e); - e.after(''); - }); - $('span.arg[data-default-value]').each(function(i,e){ - e = $(e); - e.attr("title", "Defaults to: " + e.attr("data-default-value")) - }); -}); - -/*;(function() -{ - typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null; - function Brush(){}; - Brush.prototype = new SyntaxHighlighter.Highlighter(); - Brush.aliases = ['sass', 'scss', 'css', 'html']; - - SyntaxHighlighter.brushes.Sass = Brush; - - typeof(exports) != 'undefined' ? exports.Brush = Brush : null; -})();*/ diff --git a/compass-style.org/assets/javascripts/install.js b/compass-style.org/assets/javascripts/install.js deleted file mode 100644 index 31f371de35..0000000000 --- a/compass-style.org/assets/javascripts/install.js +++ /dev/null @@ -1,119 +0,0 @@ -function showInstallCommand() { - var cmd = $("#existence").val(); - var commands = []; - var notes = []; - var project_name = "<myproject>"; - var can_be_bare = true; - var in_working_dir = false; - var use_bundler = false; - if ($("#app-type").val() != "rails") { - commands.push("$ gem install compass"); - } - if (cmd == "init") { - commands.push("$ cd " + project_name); - in_working_dir = true - project_name = "."; - $(".creating").hide(); - } else { - $(".creating").show(); - if ($("#project_name").val() != "") - project_name = $("#project_name").val(); - } - if ($("#app-type").val() == "rails") { - notes.push("

Rails 2.3 and 3.0 users require additional installation steps. For full rails installation and upgrade instructions please refer to the compass-rails README.

"); - use_bundler = true; - } - if ($("#app-type").val() == "rails") { - if (cmd == "create") { - commands.push("$ rails new " + project_name); - commands.push("$ cd " + project_name); - in_working_dir = true - project_name = "."; - } - commands.push("> Edit Gemfile and add this:"); - commands.push(" group :assets do"); - commands.push(" gem 'compass-rails'"); - commands.push(" # Add any compass extensions here"); - commands.push(" end"); - commands.push("$ bundle"); - cmd = "init rails"; - can_be_bare = false; - } else if ($("#app-type").val() == "other") { - if (cmd == "init") { - cmd = "create"; - } - } else if ($("#app-type").val() == "stand-alone") { - if (cmd == "init") { - cmd = "install"; - can_be_bare = false; - } - } - var framework = $("#framework").val(); - var create_command; - if (cmd == "install") { - create_command = "$ compass install " + framework; - } else { - create_command = "$ compass " + cmd; - } - if (!in_working_dir) { - create_command = create_command + " " + project_name; - } - if (framework != "compass" && framework != "bare" && cmd != "install") { - create_command = create_command + " --using " + framework; - } else if (framework == "bare") { - if (can_be_bare) { - create_command = create_command + " --bare"; - } else { - notes.push("

You cannot create a bare project in this configuration. Feel free to remove any stylesheets that you don't want.

"); - } - } - if ($("#syntax").val() == "sass") { - create_command = create_command + " --syntax sass"; - } - if ($("#options").val() == "customized") { - $("#directories").show(); - if ($("#sassdir").val() != "") - create_command += " --sass-dir \"" + $("#sassdir").val() + "\""; - if ($("#cssdir").val() != "") - create_command += " --css-dir \"" + $("#cssdir").val() + "\""; - if ($("#jsdir").val() != "") - create_command += " --javascripts-dir \"" + $("#jsdir").val() + "\""; - if ($("#imagesdir").val() != "") - create_command += " --images-dir \"" + $("#imagesdir").val() + "\""; - } else { - $("#directories").hide(); - } - if (use_bundler) { - create_command = "$ bundle exec " + create_command.replace(/\$ /,''); - } - commands.push(create_command); - var instructions = "
" + commands.join("\n") + "
"; - if (instructions.match(/</)) { - notes.push("

Note: Values indicated by <> are placeholders. Change them to suit your needs."); - } - $("#steps").html(instructions + notes.join("")); -} - -function attachMadlibBehaviors() { - $("#app-type").change(function(event) { - var val = $(event.target).val(); - if (val == "other") { - $("#options").val("customized"); - $(".madlib").addClass("customizable"); - } else if (val == "rails") { - $("#options").val("default"); - $(".madlib").removeClass("customizable"); - } else { - $(".madlib").addClass("customizable"); - } - }); - $("#existence, #app-type, #framework, #syntax, #options").change(showInstallCommand); - $(".madlib input").keyup(function(){setTimeout(showInstallCommand, 0.1)}); -} - -function setupMadlib() { - attachMadlibBehaviors(); - showInstallCommand(); -} - -$(setupMadlib); diff --git a/compass-style.org/assets/javascripts/jquery-1.3.2.min.js b/compass-style.org/assets/javascripts/jquery-1.3.2.min.js deleted file mode 100755 index b1ae21d8b2..0000000000 --- a/compass-style.org/assets/javascripts/jquery-1.3.2.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div

","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/compass-style.org/assets/javascripts/jquery.cookie.js b/compass-style.org/assets/javascripts/jquery.cookie.js deleted file mode 100644 index 6df1faca25..0000000000 --- a/compass-style.org/assets/javascripts/jquery.cookie.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Cookie plugin - * - * Copyright (c) 2006 Klaus Hartl (stilbuero.de) - * Dual licensed under the MIT and GPL licenses: - * http://www.opensource.org/licenses/mit-license.php - * http://www.gnu.org/licenses/gpl.html - * - */ - -/** - * Create a cookie with the given name and value and other optional parameters. - * - * @example $.cookie('the_cookie', 'the_value'); - * @desc Set the value of a cookie. - * @example $.cookie('the_cookie', 'the_value', { expires: 7, path: '/', domain: 'jquery.com', secure: true }); - * @desc Create a cookie with all available options. - * @example $.cookie('the_cookie', 'the_value'); - * @desc Create a session cookie. - * @example $.cookie('the_cookie', null); - * @desc Delete a cookie by passing null as value. Keep in mind that you have to use the same path and domain - * used when the cookie was set. - * - * @param String name The name of the cookie. - * @param String value The value of the cookie. - * @param Object options An object literal containing key/value pairs to provide optional cookie attributes. - * @option Number|Date expires Either an integer specifying the expiration date from now on in days or a Date object. - * If a negative value is specified (e.g. a date in the past), the cookie will be deleted. - * If set to null or omitted, the cookie will be a session cookie and will not be retained - * when the the browser exits. - * @option String path The value of the path atribute of the cookie (default: path of page that created the cookie). - * @option String domain The value of the domain attribute of the cookie (default: domain of page that created the cookie). - * @option Boolean secure If true, the secure attribute of the cookie will be set and the cookie transmission will - * require a secure protocol (like HTTPS). - * @type undefined - * - * @name $.cookie - * @cat Plugins/Cookie - * @author Klaus Hartl/klaus.hartl@stilbuero.de - */ - -/** - * Get the value of a cookie with the given name. - * - * @example $.cookie('the_cookie'); - * @desc Get the value of a cookie. - * - * @param String name The name of the cookie. - * @return The value of the cookie. - * @type String - * - * @name $.cookie - * @cat Plugins/Cookie - * @author Klaus Hartl/klaus.hartl@stilbuero.de - */ -jQuery.cookie = function(name, value, options) { - if (typeof value != 'undefined') { // name and value given, set cookie - options = options || {}; - if (value === null) { - value = ''; - options.expires = -1; - } - var expires = ''; - if (options.expires && (typeof options.expires == 'number' || options.expires.toUTCString)) { - var date; - if (typeof options.expires == 'number') { - date = new Date(); - date.setTime(date.getTime() + (options.expires * 24 * 60 * 60 * 1000)); - } else { - date = options.expires; - } - expires = '; expires=' + date.toUTCString(); // use expires attribute, max-age is not supported by IE - } - // CAUTION: Needed to parenthesize options.path and options.domain - // in the following expressions, otherwise they evaluate to undefined - // in the packed version for some reason... - var path = options.path ? '; path=' + (options.path) : ''; - var domain = options.domain ? '; domain=' + (options.domain) : ''; - var secure = options.secure ? '; secure' : ''; - document.cookie = [name, '=', encodeURIComponent(value), expires, path, domain, secure].join(''); - } else { // only name given, get cookie - var cookieValue = null; - if (document.cookie && document.cookie != '') { - var cookies = document.cookie.split(';'); - for (var i = 0; i < cookies.length; i++) { - var cookie = jQuery.trim(cookies[i]); - // Does this cookie string begin with the name we want? - if (cookie.substring(0, name.length + 1) == (name + '=')) { - cookieValue = decodeURIComponent(cookie.substring(name.length + 1)); - break; - } - } - } - return cookieValue; - } -}; \ No newline at end of file diff --git a/compass-style.org/assets/javascripts/jquery.url.packed.js b/compass-style.org/assets/javascripts/jquery.url.packed.js deleted file mode 100644 index 14ae800f93..0000000000 --- a/compass-style.org/assets/javascripts/jquery.url.packed.js +++ /dev/null @@ -1 +0,0 @@ -jQuery.url=function(){var segments={};var parsed={};var options={url:window.location,strictMode:false,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var parseUri=function(){str=decodeURI(options.url);var m=options.parser[options.strictMode?"strict":"loose"].exec(str);var uri={};var i=14;while(i--){uri[options.key[i]]=m[i]||""}uri[options.q.name]={};uri[options.key[12]].replace(options.q.parser,function($0,$1,$2){if($1){uri[options.q.name][$1]=$2}});return uri};var key=function(key){if(!parsed.length){setUp()}if(key=="base"){if(parsed.port!==null&&parsed.port!==""){return parsed.protocol+"://"+parsed.host+":"+parsed.port+"/"}else{return parsed.protocol+"://"+parsed.host+"/"}}return(parsed[key]==="")?null:parsed[key]};var param=function(item){if(!parsed.length){setUp()}return(parsed.queryKey[item]===null)?null:parsed.queryKey[item]};var setUp=function(){parsed=parseUri();getSegments()};var getSegments=function(){var p=parsed.path;segments=[];segments=parsed.path.length==1?{}:(p.charAt(p.length-1)=="/"?p.substring(1,p.length-1):path=p.substring(1)).split("/")};return{setMode:function(mode){strictMode=mode=="strict"?true:false;return this},setUrl:function(newUri){options.url=newUri===undefined?window.location:newUri;setUp();return this},segment:function(pos){if(!parsed.length){setUp()}if(pos===undefined){return segments.length}return(segments[pos]===""||segments[pos]===undefined)?null:segments[pos]},attr:key,param:param}}(); \ No newline at end of file diff --git a/compass-style.org/assets/javascripts/modernizr-1.6.min.js b/compass-style.org/assets/javascripts/modernizr-1.6.min.js deleted file mode 100644 index c6a800a99c..0000000000 --- a/compass-style.org/assets/javascripts/modernizr-1.6.min.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * Modernizr v1.6 - * http://www.modernizr.com - * - * Developed by: - * - Faruk Ates http://farukat.es/ - * - Paul Irish http://paulirish.com/ - * - * Copyright (c) 2009-2010 - * Dual-licensed under the BSD or MIT licenses. - * http://www.modernizr.com/license/ - */ -window.Modernizr=function(i,e,u){function s(a,b){return(""+a).indexOf(b)!==-1}function D(a,b){for(var c in a)if(j[a[c]]!==u&&(!b||b(a[c],E)))return true}function n(a,b){var c=a.charAt(0).toUpperCase()+a.substr(1);c=(a+" "+F.join(c+" ")+c).split(" ");return!!D(c,b)}function S(){f.input=function(a){for(var b=0,c=a.length;b7)};d.history=function(){return!!(i.history&&history.pushState)};d.draganddrop=function(){return o("drag")&& -o("dragstart")&&o("dragenter")&&o("dragover")&&o("dragleave")&&o("dragend")&&o("drop")};d.websockets=function(){return"WebSocket"in i};d.rgba=function(){j.cssText="background-color:rgba(150,255,150,.5)";return s(j.backgroundColor,"rgba")};d.hsla=function(){j.cssText="background-color:hsla(120,40%,100%,.5)";return s(j.backgroundColor,"rgba")||s(j.backgroundColor,"hsla")};d.multiplebgs=function(){j.cssText="background:url(//:),url(//:),red url(//:)";return/(url\s*\(.*?){3}/.test(j.background)};d.backgroundsize= -function(){return n("backgroundSize")};d.borderimage=function(){return n("borderImage")};d.borderradius=function(){return n("borderRadius","",function(a){return s(a,"orderRadius")})};d.boxshadow=function(){return n("boxShadow")};d.textshadow=function(){return e.createElement("div").style.textShadow===""};d.opacity=function(){var a=q.join("opacity:.5;")+"";j.cssText=a;return s(j.opacity,"0.5")};d.cssanimations=function(){return n("animationName")};d.csscolumns=function(){return n("columnCount")};d.cssgradients= -function(){var a=("background-image:"+q.join("gradient(linear,left top,right bottom,from(#9f9),to(white));background-image:")+q.join("linear-gradient(left top,#9f9, white);background-image:")).slice(0,-17);j.cssText=a;return s(j.backgroundImage,"gradient")};d.cssreflections=function(){return n("boxReflect")};d.csstransforms=function(){return!!D(["transformProperty","WebkitTransform","MozTransform","OTransform","msTransform"])};d.csstransforms3d=function(){var a=!!D(["perspectiveProperty","WebkitPerspective", -"MozPerspective","OPerspective","msPerspective"]);if(a)a=Q("@media ("+q.join("transform-3d),(")+"modernizr)");return a};d.csstransitions=function(){return n("transitionProperty")};d.fontface=function(){var a,b=e.head||e.getElementsByTagName("head")[0]||l,c=e.createElement("style"),k=e.implementation||{hasFeature:function(){return false}};c.type="text/css";b.insertBefore(c,b.firstChild);a=c.sheet||c.styleSheet;b=k.hasFeature("CSS2","")?function(g){if(!(a&&g))return false;var r=false;try{a.insertRule(g, -0);r=!/unknown/i.test(a.cssRules[0].cssText);a.deleteRule(a.cssRules.length-1)}catch(x){}return r}:function(g){if(!(a&&g))return false;a.cssText=g;return a.cssText.length!==0&&!/unknown/i.test(a.cssText)&&a.cssText.replace(/\r+|\n+/g,"").indexOf(g.split(" ")[0])===0};f._fontfaceready=function(g){g(f.fontface)};return b('@font-face { font-family: "font"; src: "font.ttf"; }')};d.video=function(){var a=e.createElement("video"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('video/ogg; codecs="theora"'); -b.h264=a.canPlayType('video/mp4; codecs="avc1.42E01E"')||a.canPlayType('video/mp4; codecs="avc1.42E01E, mp4a.40.2"');b.webm=a.canPlayType('video/webm; codecs="vp8, vorbis"')}return b};d.audio=function(){var a=e.createElement("audio"),b=!!a.canPlayType;if(b){b=new Boolean(b);b.ogg=a.canPlayType('audio/ogg; codecs="vorbis"');b.mp3=a.canPlayType("audio/mpeg;");b.wav=a.canPlayType('audio/wav; codecs="1"');b.m4a=a.canPlayType("audio/x-m4a;")||a.canPlayType("audio/aac;")}return b};d.localstorage=function(){try{return"localStorage"in -i&&i.localStorage!==null}catch(a){return false}};d.sessionstorage=function(){try{return"sessionStorage"in i&&i.sessionStorage!==null}catch(a){return false}};d.webWorkers=function(){return!!i.Worker};d.applicationcache=function(){return!!i.applicationCache};d.svg=function(){return!!e.createElementNS&&!!e.createElementNS(v.svg,"svg").createSVGRect};d.inlinesvg=function(){var a=document.createElement("div");a.innerHTML="";return(a.firstChild&&a.firstChild.namespaceURI)==v.svg};d.smil=function(){return!!e.createElementNS&& -/SVG/.test(O.call(e.createElementNS(v.svg,"animate")))};d.svgclippaths=function(){return!!e.createElementNS&&/SVG/.test(O.call(e.createElementNS(v.svg,"clipPath")))};for(var H in d)if(R(d,H)){w=H.toLowerCase();f[w]=d[H]();P.push((f[w]?"":"no-")+w)}f.input||S();f.crosswindowmessaging=f.postmessage;f.historymanagement=f.history;f.addTest=function(a,b){a=a.toLowerCase();if(!f[a]){b=!!b();l.className+=" "+(b?"":"no-")+a;f[a]=b;return f}};j.cssText="";E=h=null;i.attachEvent&&function(){var a=e.createElement("div"); -a.innerHTML="";return a.childNodes.length!==1}()&&function(a,b){function c(p){for(var m=-1;++m 0) ? $this = $(this) : $this = $('input[placeholder]'); - return $this.each(function() { - - settings = jQuery.extend(options); - - var $placeholder = $(this); - - if ($placeholder.length > 0) { - - var attrPh = $placeholder.attr('placeholder'); - - $placeholder.attr('value', attrPh); - $placeholder.bind('focus', function() { - - var $this = $(this); - - if($this.val() === attrPh) - $this.val('').removeClass('placeholder'); - - }).bind('blur', function() { - - var $this = $(this); - - if($this.val() === '') - $this.val(attrPh).addClass('placeholder'); - - }); - - } - - }); - - }; - -})(jQuery); - -jQuery(function($){ - $(document).ready(function(){ - if (!Modernizr.input.placeholder) { $("input[placeholder], textarea[placeholder]").replaceholder() } - }) -}) diff --git a/compass-style.org/assets/javascripts/shAutoloader.js b/compass-style.org/assets/javascripts/shAutoloader.js deleted file mode 100644 index 4e29bddecb..0000000000 --- a/compass-style.org/assets/javascripts/shAutoloader.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * SyntaxHighlighter - * http://alexgorbatchev.com/SyntaxHighlighter - * - * SyntaxHighlighter is donationware. If you are using it, please donate. - * http://alexgorbatchev.com/SyntaxHighlighter/donate.html - * - * @version - * 3.0.83 (July 02 2010) - * - * @copyright - * Copyright (C) 2004-2010 Alex Gorbatchev. - * - * @license - * Dual licensed under the MIT and GPL licenses. - */ -eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('(2(){1 h=5;h.I=2(){2 n(c,a){4(1 d=0;d