compass 0.12.rc.1 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -2
- data/bin/compass.compiled.rbc +707 -0
- data/examples/compass/images/emblem-a043c4f148.png +0 -0
- data/examples/compass/images/flag-03c3b29b35.png +0 -0
- data/examples/compass/images/flag-21cfbfbfc8.png +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/Prociono.otf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.otf +0 -0
- data/examples/css3/extensions/fancy-fonts/templates/project/bgrove.ttf +0 -0
- data/features/command_line.feature +14 -15
- data/frameworks/compass/stylesheets/compass/_css3.scss +1 -2
- data/frameworks/compass/stylesheets/compass/css3/_transform.scss +4 -4
- data/frameworks/compass/stylesheets/compass/css3/_transition.scss +59 -38
- data/frameworks/compass/stylesheets/compass/css3/_user-interface.scss +3 -5
- data/frameworks/compass/stylesheets/compass/typography/text/_replacement.scss +12 -4
- data/frameworks/compass/stylesheets/compass/utilities/_sprites.scss +1 -0
- data/frameworks/compass/stylesheets/compass/utilities/lists/_inline-block-list.scss +1 -1
- data/lib/compass.rb +2 -0
- data/lib/compass.rbc +796 -0
- data/lib/compass/actions.rbc +2736 -0
- data/lib/compass/app_integration.rbc +836 -0
- data/lib/compass/app_integration/merb.rbc +106 -0
- data/lib/compass/app_integration/rails.rbc +2096 -0
- data/lib/compass/app_integration/rails/configuration_defaults.rbc +2430 -0
- data/lib/compass/app_integration/rails/installer.rbc +3677 -0
- data/lib/compass/app_integration/stand_alone.rbc +589 -0
- data/lib/compass/app_integration/stand_alone/configuration_defaults.rbc +721 -0
- data/lib/compass/app_integration/stand_alone/installer.rbc +1487 -0
- data/lib/compass/browser_support.rbc +1144 -0
- data/lib/compass/commands.rbc +307 -0
- data/lib/compass/commands/base.rbc +1044 -0
- data/lib/compass/commands/clean_project.rbc +1856 -0
- data/lib/compass/commands/create_project.rbc +2691 -0
- data/lib/compass/commands/default.rbc +1677 -0
- data/lib/compass/commands/generate_grid_background.rbc +1939 -0
- data/lib/compass/commands/help.rbc +1921 -0
- data/lib/compass/commands/imports.rbc +969 -0
- data/lib/compass/commands/installer_command.rbc +807 -0
- data/lib/compass/commands/interactive.rbc +1341 -0
- data/lib/compass/commands/list_frameworks.rbc +1111 -0
- data/lib/compass/commands/print_version.rbc +2478 -0
- data/lib/compass/commands/project_base.rbc +2085 -0
- data/lib/compass/commands/project_stats.rb +28 -13
- data/lib/compass/commands/project_stats.rbc +4202 -0
- data/lib/compass/commands/registry.rbc +1350 -0
- data/lib/compass/commands/sprite.rbc +2212 -0
- data/lib/compass/commands/stamp_pattern.rbc +2011 -0
- data/lib/compass/commands/unpack_extension.rbc +2348 -0
- data/lib/compass/commands/update_project.rbc +3002 -0
- data/lib/compass/commands/validate_project.rbc +1686 -0
- data/lib/compass/commands/watch_project.rbc +4155 -0
- data/lib/compass/commands/write_configuration.rbc +2896 -0
- data/lib/compass/compiler.rb +3 -1
- data/lib/compass/compiler.rbc +4913 -0
- data/lib/compass/configuration.rbc +1398 -0
- data/lib/compass/configuration/adapters.rbc +2088 -0
- data/lib/compass/configuration/comments.rbc +843 -0
- data/lib/compass/configuration/data.rbc +2633 -0
- data/lib/compass/configuration/defaults.rbc +3617 -0
- data/lib/compass/configuration/file_data.rbc +643 -0
- data/lib/compass/configuration/helpers.rb +1 -4
- data/lib/compass/configuration/helpers.rbc +3500 -0
- data/lib/compass/configuration/inheritance.rbc +3592 -0
- data/lib/compass/configuration/paths.rbc +412 -0
- data/lib/compass/configuration/serialization.rbc +1996 -0
- data/lib/compass/dependencies.rbc +232 -0
- data/lib/compass/errors.rbc +176 -0
- data/lib/compass/exec.rbc +500 -0
- data/lib/compass/exec/command_option_parser.rbc +676 -0
- data/lib/compass/exec/global_options_parser.rbc +1306 -0
- data/lib/compass/exec/helpers.rbc +758 -0
- data/lib/compass/exec/project_options_parser.rbc +1515 -0
- data/lib/compass/exec/sub_command_ui.rbc +1191 -0
- data/lib/compass/frameworks.rbc +3640 -0
- data/lib/compass/grid_builder.rbc +0 -0
- data/lib/compass/installers.rbc +152 -0
- data/lib/compass/installers/bare_installer.rbc +939 -0
- data/lib/compass/installers/base.rbc +4427 -0
- data/lib/compass/installers/manifest.rb +1 -1
- data/lib/compass/installers/manifest.rbc +3335 -0
- data/lib/compass/installers/manifest_installer.rbc +1591 -0
- data/lib/compass/installers/template_context.rbc +1030 -0
- data/lib/compass/logger.rbc +2317 -0
- data/lib/compass/quick_cache.rbc +324 -0
- data/lib/compass/sass_extensions.rbc +213 -0
- data/lib/compass/sass_extensions/functions.rb +2 -2
- data/lib/compass/sass_extensions/functions.rbc +808 -0
- data/lib/compass/sass_extensions/functions/colors.rbc +1279 -0
- data/lib/compass/sass_extensions/functions/constants.rbc +1921 -0
- data/lib/compass/sass_extensions/functions/cross_browser_support.rbc +1966 -0
- data/lib/compass/sass_extensions/functions/display.rbc +1227 -0
- data/lib/compass/sass_extensions/functions/enumerate.rbc +446 -0
- data/lib/compass/sass_extensions/functions/env.rbc +299 -0
- data/lib/compass/sass_extensions/functions/font_files.rbc +821 -0
- data/lib/compass/sass_extensions/functions/gradient_support.rb +18 -7
- data/lib/compass/sass_extensions/functions/gradient_support.rbc +14147 -0
- data/lib/compass/sass_extensions/functions/image_size.rbc +3152 -0
- data/lib/compass/sass_extensions/functions/inline_image.rb +3 -1
- data/lib/compass/sass_extensions/functions/inline_image.rbc +1678 -0
- data/lib/compass/sass_extensions/functions/lists.rbc +2601 -0
- data/lib/compass/sass_extensions/functions/math.rb +63 -0
- data/lib/compass/sass_extensions/functions/selectors.rbc +1592 -0
- data/lib/compass/sass_extensions/functions/sprites.rbc +3792 -0
- data/lib/compass/sass_extensions/functions/trig.rbc +811 -0
- data/lib/compass/sass_extensions/functions/urls.rbc +5248 -0
- data/lib/compass/sass_extensions/monkey_patches.rbc +134 -0
- data/lib/compass/sass_extensions/monkey_patches/browser_support.rbc +2169 -0
- data/lib/compass/sass_extensions/monkey_patches/traversal.rbc +660 -0
- data/lib/compass/sass_extensions/sprites.rbc +363 -0
- data/lib/compass/sass_extensions/sprites/base.rbc +4529 -0
- data/lib/compass/sass_extensions/sprites/engines.rbc +662 -0
- data/lib/compass/sass_extensions/sprites/engines/chunky_png_engine.rbc +1074 -0
- data/lib/compass/sass_extensions/sprites/image.rbc +2961 -0
- data/lib/compass/sass_extensions/sprites/image_methods.rbc +900 -0
- data/lib/compass/sass_extensions/sprites/image_row.rbc +1168 -0
- data/lib/compass/sass_extensions/sprites/layout_methods.rbc +3236 -0
- data/lib/compass/sass_extensions/sprites/row_fitter.rbc +2067 -0
- data/lib/compass/sass_extensions/sprites/sprite_map.rbc +1991 -0
- data/lib/compass/sass_extensions/sprites/sprite_methods.rbc +3190 -0
- data/lib/compass/sass_extensions/sprites/sprites.rbc +1573 -0
- data/lib/compass/sprite_importer.rbc +3573 -0
- data/lib/compass/stats.rb +5 -0
- data/lib/compass/util.rbc +552 -0
- data/lib/compass/version.rbc +1245 -0
- data/test/fixtures/stylesheets/compass/css/background-clip.css +1 -1
- data/test/fixtures/stylesheets/compass/css/gradients.css +19 -369
- data/test/fixtures/stylesheets/compass/css/transition.css +44 -1
- data/test/fixtures/stylesheets/compass/css/utilities.css +1 -1
- data/test/fixtures/stylesheets/compass/css/vertical_rhythm.css +1 -1
- data/test/fixtures/stylesheets/compass/sass/gradients.sass +8 -143
- data/test/fixtures/stylesheets/compass/sass/transition.scss +7 -1
- data/test/helpers/command_line.rbc +2820 -0
- data/test/helpers/diff.rbc +1104 -0
- data/test/helpers/io.rbc +962 -0
- data/test/helpers/rails.rbc +1116 -0
- data/test/helpers/test_case.rbc +1255 -0
- data/test/integrations/compass_test.rbc +6589 -0
- data/test/integrations/rails_integration_test.rbc +1342 -0
- data/test/integrations/sprites_test.rb +4 -4
- data/test/integrations/sprites_test.rbc +6192 -0
- data/test/test_helper.rbc +1694 -0
- data/test/units/actions_test.rbc +644 -0
- data/test/units/command_line_test.rbc +1532 -0
- data/test/units/compass_module_test.rb +36 -0
- data/test/units/compass_png_test.rbc +0 -0
- data/test/units/configuration_test.rbc +3833 -0
- data/test/units/rails_configuration_test.rbc +1032 -0
- data/test/units/sass_extensions_test.rb +13 -1
- data/test/units/sass_extensions_test.rbc +3586 -0
- data/test/units/sprites/engine_test.rbc +962 -0
- data/test/units/sprites/image_row_test.rbc +1578 -0
- data/test/units/sprites/image_test.rbc +2836 -0
- data/test/units/sprites/importer_test.rb +1 -1
- data/test/units/sprites/importer_test.rbc +2620 -0
- data/test/units/sprites/row_fitter_test.rbc +1479 -0
- data/test/units/sprites/sprite_command_test.rbc +1147 -0
- data/test/units/sprites/sprite_map_test.rbc +6515 -0
- metadata +161 -15
- data/frameworks/compass/stylesheets/compass/css3/_gradient.scss +0 -99
- data/lib/compass/sass_extensions/functions/trig.rb +0 -28
@@ -1,28 +0,0 @@
|
|
1
|
-
module Compass::SassExtensions::Functions::Trig
|
2
|
-
|
3
|
-
def pi()
|
4
|
-
Sass::Script::Number.new(Math::PI)
|
5
|
-
end
|
6
|
-
|
7
|
-
def sin(number)
|
8
|
-
trig(:sin, number)
|
9
|
-
end
|
10
|
-
|
11
|
-
def cos(number)
|
12
|
-
trig(:cos, number)
|
13
|
-
end
|
14
|
-
|
15
|
-
def tan(number)
|
16
|
-
trig(:tan, number)
|
17
|
-
end
|
18
|
-
|
19
|
-
private
|
20
|
-
def trig(operation, number)
|
21
|
-
if number.numerator_units == ["deg"] && number.denominator_units == []
|
22
|
-
Sass::Script::Number.new(Math.send(operation, Math::PI * number.value / 180))
|
23
|
-
else
|
24
|
-
Sass::Script::Number.new(Math.send(operation, number.value), number.numerator_units, number.denominator_units)
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
|
-
end
|