zuora_connect_ui 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/zuora_connect_ui.js +1 -0
- data/app/assets/javascripts/zuora_connect_ui/util.js +51 -0
- data/app/assets/stylesheets/_zuora_connect_ui.scss +4 -6
- data/app/assets/stylesheets/zuora_connect_ui/datatables.scss +3 -3
- data/app/helpers/zuora_connect_ui/application_helper.rb +28 -4
- data/app/views/partials/_table.html.erb +16 -7
- data/lib/zuora_connect_ui/version.rb +1 -1
- data/vendor/ruby/2.6.0/cache/autoprefixer-rails-9.6.1.1.gem +0 -0
- data/vendor/ruby/2.6.0/cache/parser-2.6.4.1.gem +0 -0
- data/vendor/ruby/2.6.0/cache/sassc-2.2.0.gem +0 -0
- data/vendor/ruby/2.6.0/cache/zeitwerk-2.1.10.gem +0 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/gem.build_complete +0 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/gem_make.out +75 -0
- data/vendor/ruby/2.6.0/extensions/x86_64-linux/2.6.0/sassc-2.2.0/sassc/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/CHANGELOG.md +1085 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Gemfile +10 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/LICENSE +20 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/README.md +237 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/Rakefile +53 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/autoprefixer-rails.gemspec +32 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails.rb +41 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/processor.rb +194 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/railtie.rb +50 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/result.rb +24 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/sprockets.rb +62 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/autoprefixer-rails/version.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/lib/rake/autoprefixer_tasks.rb +28 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/Rakefile +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/config/manifest.js +0 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/evaluate.css.erb +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/loaded.sass +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/sass.sass +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/test.css +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/assets/stylesheets/wrong.css +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/controllers/application_controller.rb +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/app/controllers/css_controller.rb +6 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config.ru +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/application.rb +16 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/autoprefixer.yml +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/boot.rb +2 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/environment.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/environments/test.rb +9 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/initializers/secret_token.rb +1 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/app/config/routes.rb +3 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/autoprefixer_spec.rb +121 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/processor_spec.rb +25 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/rails_spec.rb +40 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/railtie_spec.rb +29 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/spec/spec_helper.rb +16 -0
- data/vendor/ruby/2.6.0/gems/autoprefixer-rails-9.6.1.1/vendor/autoprefixer.js +67195 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/CHANGELOG.md +909 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/CONTRIBUTING.md +17 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/Gemfile +10 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/LICENSE.txt +25 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/README.md +301 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/Rakefile +166 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/bin/ruby-parse +7 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/bin/ruby-rewrite +7 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/ci/run_rubocop_specs +14 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/AST_FORMAT.md +1816 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/CUSTOMIZATION.md +37 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/INTERNALS.md +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/doc/css/common.css +68 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/gauntlet_parser.rb +123 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser.rb +82 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/all.rb +12 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ast/node.rb +40 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ast/processor.rb +264 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/base.rb +270 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/builders/default.rb +1741 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/clobbering_error.rb +13 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/color.rb +32 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/context.rb +59 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/current.rb +92 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/deprecation.rb +13 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/diagnostic.rb +163 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/diagnostic/engine.rb +105 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer.rb +23546 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer.rl +2503 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/dedenter.rb +79 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/explanation.rb +55 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/literal.rb +269 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/max_numparam_stack.rb +42 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/lexer/stack_state.rb +49 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/macruby.rb +6124 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/macruby.y +2198 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/messages.rb +90 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/meta.rb +33 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rewriter.rb +105 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby18.rb +5661 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby18.y +1934 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby19.rb +6084 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby19.y +2175 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby20.rb +6511 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby20.y +2353 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby21.rb +6570 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby21.y +2357 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby22.rb +6605 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby22.y +2364 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby23.rb +6624 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby23.y +2370 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby24.rb +6689 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby24.y +2408 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby25.rb +6656 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby25.y +2405 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby26.rb +6670 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby26.y +2413 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby27.rb +6893 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/ruby27.y +2470 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rubymotion.rb +6078 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/rubymotion.y +2182 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner.rb +253 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner/ruby_parse.rb +157 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/runner/ruby_rewrite.rb +101 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/buffer.rb +330 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/comment.rb +121 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/comment/associator.rb +210 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map.rb +186 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/collection.rb +18 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/condition.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/constant.rb +32 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/definition.rb +23 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/for.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/heredoc.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/index.rb +33 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/keyword.rb +20 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/objc_kwarg.rb +19 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/operator.rb +17 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/rescue_body.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/send.rb +36 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/ternary.rb +18 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/map/variable.rb +31 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/range.rb +310 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/rewriter.rb +513 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/rewriter/action.rb +44 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/tree_rewriter.rb +301 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/source/tree_rewriter/action.rb +133 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/static_environment.rb +46 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/syntax_error.rb +21 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/tree_rewriter.rb +134 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/lib/parser/version.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/parser.gemspec +51 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/fixtures/input.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/fixtures/output.rb +5 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/bug_163/rewriter.rb +20 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/helper.rb +59 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/parse_helper.rb +316 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/racc_coverage_helper.rb +133 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_base.rb +31 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_current.rb +29 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_diagnostic.rb +96 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_diagnostic_engine.rb +62 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_encoding.rb +99 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_lexer.rb +3659 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_lexer_stack_state.rb +78 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_parse_helper.rb +80 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_parser.rb +7579 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_runner_parse.rb +35 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_runner_rewrite.rb +47 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_buffer.rb +162 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_comment.rb +36 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_comment_associator.rb +367 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_map.rb +15 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_range.rb +172 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_rewriter.rb +541 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_rewriter_action.rb +46 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_source_tree_rewriter.rb +173 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/test_static_environment.rb +45 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/fixtures/input.rb +3 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/fixtures/output.rb +3 -0
- data/vendor/ruby/2.6.0/gems/parser-2.6.4.1/test/using_tree_rewriter/using_tree_rewriter.rb +9 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/CHANGELOG.md +77 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/CODE_OF_CONDUCT.md +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/Gemfile +2 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/LICENSE.txt +22 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/README.md +68 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/Rakefile +53 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/Makefile +271 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/SharedPtr.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast2c.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_fwd_decl.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_sel_cmp.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_sel_unify.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_selectors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_supports.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/ast_values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/backtrace.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/base64vlq.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/bind.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/c2ast.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/c99func.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/cencode.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/check_nesting.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/color_maps.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/constants.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/context.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/cssize.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/depend +4 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/emitter.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/environment.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/error_handling.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/eval.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/expand.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/extconf.rb +84 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/extend.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/file.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_colors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_lists.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_maps.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_miscs.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_numbers.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_selectors.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_strings.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/fn_utils.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/inspect.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/json.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/lexer.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/VERSION +1 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/contrib/plugin.cpp +60 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass.h +15 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/base.h +96 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/context.h +170 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/functions.h +139 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/values.h +145 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass/version.h +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/include/sass2scss.h +120 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast.cpp +963 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast.hpp +905 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast2c.cpp +80 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast2c.hpp +39 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_def_macros.hpp +132 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_fwd_decl.cpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_fwd_decl.hpp +341 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_sel_cmp.cpp +909 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_sel_unify.cpp +280 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_selectors.cpp +1475 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_selectors.hpp +568 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_supports.cpp +130 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_supports.hpp +121 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_values.cpp +967 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/ast_values.hpp +489 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/b64/cencode.h +32 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/b64/encode.h +79 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/backtrace.cpp +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/backtrace.hpp +29 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/base64vlq.cpp +47 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/base64vlq.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/bind.cpp +312 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/bind.hpp +15 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c2ast.cpp +64 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c2ast.hpp +14 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/c99func.c +54 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cencode.c +108 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/check_nesting.cpp +394 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/check_nesting.hpp +66 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/color_maps.cpp +651 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/color_maps.hpp +331 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/constants.cpp +194 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/constants.hpp +194 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/context.cpp +890 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/context.hpp +152 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cssize.cpp +604 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/cssize.hpp +77 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/debug.hpp +43 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/debugger.hpp +807 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/emitter.cpp +298 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/emitter.hpp +103 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/environment.cpp +260 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/environment.hpp +119 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/error_handling.cpp +212 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/error_handling.hpp +229 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/eval.cpp +1657 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/eval.hpp +112 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/expand.cpp +822 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/expand.hpp +78 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/extend.cpp +2132 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/extend.hpp +86 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/file.cpp +522 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/file.hpp +133 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_colors.cpp +594 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_colors.hpp +85 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_lists.cpp +284 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_lists.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_maps.cpp +94 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_maps.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_miscs.cpp +256 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_miscs.hpp +40 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_numbers.cpp +220 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_numbers.hpp +45 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_selectors.cpp +235 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_selectors.hpp +35 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_strings.cpp +254 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_strings.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_utils.cpp +156 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/fn_utils.hpp +56 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/inspect.cpp +1087 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/inspect.hpp +99 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/json.cpp +1436 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/json.hpp +117 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/kwd_arg_macros.hpp +28 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/lexer.cpp +184 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/lexer.hpp +315 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/listize.cpp +84 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/listize.hpp +38 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/mapping.hpp +18 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/memory/SharedPtr.cpp +33 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/memory/SharedPtr.hpp +286 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/node.cpp +322 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/node.hpp +118 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operation.hpp +213 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operators.cpp +266 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/operators.hpp +30 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/output.cpp +339 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/output.hpp +47 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/parser.cpp +3153 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/parser.hpp +402 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/paths.hpp +71 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/plugins.cpp +188 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/plugins.hpp +57 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/position.cpp +184 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/position.hpp +124 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/prelexer.cpp +1780 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/prelexer.hpp +484 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/remove_placeholders.cpp +87 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/remove_placeholders.hpp +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass.cpp +155 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass.hpp +142 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass2scss.cpp +895 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_context.cpp +772 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_context.hpp +129 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_functions.cpp +210 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_functions.hpp +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_util.cpp +152 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_util.hpp +256 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_values.cpp +365 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/sass_values.hpp +82 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/source_map.cpp +198 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/source_map.hpp +62 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/subset_map.cpp +58 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/subset_map.hpp +76 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/to_value.cpp +114 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/to_value.hpp +46 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/units.cpp +505 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/units.hpp +110 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8.h +34 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/checked.h +336 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/core.h +332 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8/unchecked.h +235 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8_string.cpp +105 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/utf8_string.hpp +37 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util.cpp +725 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util.hpp +106 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util_string.cpp +75 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/util_string.hpp +19 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/values.cpp +140 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/libsass/src/values.hpp +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/listize.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/node.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/operators.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/output.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/parser.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/plugins.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/position.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/prelexer.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/remove_placeholders.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass2scss.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_context.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_functions.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_util.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/sass_values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/source_map.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/subset_map.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/to_value.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/units.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/utf8_string.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/util.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/util_string.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/ext/values.o +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc.rb +57 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/dependency.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/engine.rb +139 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/error.rb +37 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/functions_handler.rb +73 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/import_handler.rb +50 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/importer.rb +31 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/libsass.so +0 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native.rb +62 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/lib_c.rb +21 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/native_context_api.rb +147 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/native_functions_api.rb +159 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass2scss_api.rb +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_input_style.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_output_style.rb +12 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/sass_value.rb +97 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/native/string_list.rb +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/sass_2_scss.rb +9 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/functions.rb +8 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value.rb +137 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/bool.rb +32 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/color.rb +95 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/list.rb +136 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/map.rb +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/number.rb +389 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value/string.rb +96 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion.rb +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/base.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/bool.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/color.rb +18 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/list.rb +25 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/map.rb +21 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/number.rb +13 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/script/value_conversion/string.rb +17 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/util.rb +231 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/util/normalized_map.rb +117 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/lib/sassc/version.rb +5 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/sassc.gemspec +69 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/custom_importer_test.rb +127 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/engine_test.rb +314 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/error_test.rb +29 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/fixtures/paths.scss +10 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/functions_test.rb +323 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/native_test.rb +213 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/output_style_test.rb +107 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/sass_2_scss_test.rb +14 -0
- data/vendor/ruby/2.6.0/gems/sassc-2.2.0/test/test_helper.rb +45 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/README.md +533 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk.rb +12 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/error.rb +10 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/explicit_namespace.rb +80 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/gem_inflector.rb +19 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/inflector.rb +19 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/kernel.rb +33 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader.rb +759 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/loader/callbacks.rb +71 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/real_mod_name.rb +15 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/registry.rb +147 -0
- data/vendor/ruby/2.6.0/gems/zeitwerk-2.1.10/lib/zeitwerk/version.rb +5 -0
- data/vendor/ruby/2.6.0/specifications/autoprefixer-rails-9.6.1.1.gemspec +47 -0
- data/vendor/ruby/2.6.0/specifications/parser-2.6.4.1.gemspec +62 -0
- data/vendor/ruby/2.6.0/specifications/sassc-2.2.0.gemspec +60 -0
- data/vendor/ruby/2.6.0/specifications/zeitwerk-2.1.10.gemspec +21 -0
- metadata +441 -4
- data/vendor/assets/anjuna/css/anjuna-application.css +0 -2
- data/vendor/assets/anjuna/css/anjuna-theme.css +0 -2
@@ -0,0 +1,133 @@
|
|
1
|
+
#ifndef SASS_FILE_H
|
2
|
+
#define SASS_FILE_H
|
3
|
+
|
4
|
+
#include <string>
|
5
|
+
#include <vector>
|
6
|
+
|
7
|
+
#include "sass/context.h"
|
8
|
+
#include "ast_fwd_decl.hpp"
|
9
|
+
|
10
|
+
namespace Sass {
|
11
|
+
|
12
|
+
namespace File {
|
13
|
+
|
14
|
+
// return the current directory
|
15
|
+
// always with forward slashes
|
16
|
+
std::string get_cwd();
|
17
|
+
|
18
|
+
// test if path exists and is a file
|
19
|
+
bool file_exists(const std::string& file);
|
20
|
+
|
21
|
+
// return if given path is absolute
|
22
|
+
// works with *nix and windows paths
|
23
|
+
bool is_absolute_path(const std::string& path);
|
24
|
+
|
25
|
+
// return only the directory part of path
|
26
|
+
std::string dir_name(const std::string& path);
|
27
|
+
|
28
|
+
// return only the filename part of path
|
29
|
+
std::string base_name(const std::string&);
|
30
|
+
|
31
|
+
// do a locigal clean up of the path
|
32
|
+
// no physical check on the filesystem
|
33
|
+
std::string make_canonical_path (std::string path);
|
34
|
+
|
35
|
+
// join two path segments cleanly together
|
36
|
+
// but only if right side is not absolute yet
|
37
|
+
std::string join_paths(std::string root, std::string name);
|
38
|
+
|
39
|
+
// if the relative path is outside of the cwd we want want to
|
40
|
+
// show the absolute path in console messages
|
41
|
+
std::string path_for_console(const std::string& rel_path, const std::string& abs_path, const std::string& orig_path);
|
42
|
+
|
43
|
+
// create an absolute path by resolving relative paths with cwd
|
44
|
+
std::string rel2abs(const std::string& path, const std::string& base = ".", const std::string& cwd = get_cwd());
|
45
|
+
|
46
|
+
// create a path that is relative to the given base directory
|
47
|
+
// path and base will first be resolved against cwd to make them absolute
|
48
|
+
std::string abs2rel(const std::string& path, const std::string& base = ".", const std::string& cwd = get_cwd());
|
49
|
+
|
50
|
+
// helper function to resolve a filename
|
51
|
+
// searching without variations in all paths
|
52
|
+
std::string find_file(const std::string& file, struct Sass_Compiler* options);
|
53
|
+
std::string find_file(const std::string& file, const std::vector<std::string> paths);
|
54
|
+
|
55
|
+
// helper function to resolve a include filename
|
56
|
+
// this has the original resolve logic for sass include
|
57
|
+
std::string find_include(const std::string& file, const std::vector<std::string> paths);
|
58
|
+
|
59
|
+
// split a path string delimited by semicolons or colons (OS dependent)
|
60
|
+
std::vector<std::string> split_path_list(const char* paths);
|
61
|
+
|
62
|
+
// try to load the given filename
|
63
|
+
// returned memory must be freed
|
64
|
+
// will auto convert .sass files
|
65
|
+
char* read_file(const std::string& file);
|
66
|
+
|
67
|
+
}
|
68
|
+
|
69
|
+
// requested import
|
70
|
+
class Importer {
|
71
|
+
public:
|
72
|
+
// requested import path
|
73
|
+
std::string imp_path;
|
74
|
+
// parent context path
|
75
|
+
std::string ctx_path;
|
76
|
+
// base derived from context path
|
77
|
+
// this really just acts as a cache
|
78
|
+
std::string base_path;
|
79
|
+
public:
|
80
|
+
Importer(std::string imp_path, std::string ctx_path)
|
81
|
+
: imp_path(File::make_canonical_path(imp_path)),
|
82
|
+
ctx_path(File::make_canonical_path(ctx_path)),
|
83
|
+
base_path(File::dir_name(ctx_path))
|
84
|
+
{ }
|
85
|
+
};
|
86
|
+
|
87
|
+
// a resolved include (final import)
|
88
|
+
class Include : public Importer {
|
89
|
+
public:
|
90
|
+
// resolved absolute path
|
91
|
+
std::string abs_path;
|
92
|
+
public:
|
93
|
+
Include(const Importer& imp, std::string abs_path)
|
94
|
+
: Importer(imp), abs_path(abs_path)
|
95
|
+
{ }
|
96
|
+
};
|
97
|
+
|
98
|
+
// a loaded resource
|
99
|
+
class Resource {
|
100
|
+
public:
|
101
|
+
// the file contents
|
102
|
+
char* contents;
|
103
|
+
// conected sourcemap
|
104
|
+
char* srcmap;
|
105
|
+
public:
|
106
|
+
Resource(char* contents, char* srcmap)
|
107
|
+
: contents(contents), srcmap(srcmap)
|
108
|
+
{ }
|
109
|
+
};
|
110
|
+
|
111
|
+
// parsed stylesheet from loaded resource
|
112
|
+
class StyleSheet : public Resource {
|
113
|
+
public:
|
114
|
+
// parsed root block
|
115
|
+
Block_Obj root;
|
116
|
+
public:
|
117
|
+
StyleSheet(const Resource& res, Block_Obj root)
|
118
|
+
: Resource(res), root(root)
|
119
|
+
{ }
|
120
|
+
};
|
121
|
+
|
122
|
+
namespace File {
|
123
|
+
|
124
|
+
static std::vector<std::string> defaultExtensions = { ".scss", ".sass", ".css" };
|
125
|
+
|
126
|
+
std::vector<Include> resolve_includes(const std::string& root, const std::string& file,
|
127
|
+
const std::vector<std::string>& exts = defaultExtensions);
|
128
|
+
|
129
|
+
}
|
130
|
+
|
131
|
+
}
|
132
|
+
|
133
|
+
#endif
|
@@ -0,0 +1,594 @@
|
|
1
|
+
// sass.hpp must go before all system headers to get the
|
2
|
+
// __EXTENSIONS__ fix on Solaris.
|
3
|
+
#include "sass.hpp"
|
4
|
+
|
5
|
+
#include <cctype>
|
6
|
+
#include <iomanip>
|
7
|
+
#include "ast.hpp"
|
8
|
+
#include "fn_utils.hpp"
|
9
|
+
#include "fn_colors.hpp"
|
10
|
+
#include "util.hpp"
|
11
|
+
|
12
|
+
namespace Sass {
|
13
|
+
|
14
|
+
namespace Functions {
|
15
|
+
|
16
|
+
bool string_argument(AST_Node_Obj obj) {
|
17
|
+
String_Constant* s = Cast<String_Constant>(obj);
|
18
|
+
if (s == nullptr) return false;
|
19
|
+
const std::string& str = s->value();
|
20
|
+
return starts_with(str, "calc(") ||
|
21
|
+
starts_with(str, "var(");
|
22
|
+
}
|
23
|
+
|
24
|
+
void hsla_alpha_percent_deprecation(const ParserState& pstate, const std::string val)
|
25
|
+
{
|
26
|
+
|
27
|
+
std::string msg("Passing a percentage as the alpha value to hsla() will be interpreted");
|
28
|
+
std::string tail("differently in future versions of Sass. For now, use " + val + " instead.");
|
29
|
+
|
30
|
+
deprecated(msg, tail, false, pstate);
|
31
|
+
|
32
|
+
}
|
33
|
+
|
34
|
+
Signature rgb_sig = "rgb($red, $green, $blue)";
|
35
|
+
BUILT_IN(rgb)
|
36
|
+
{
|
37
|
+
if (
|
38
|
+
string_argument(env["$red"]) ||
|
39
|
+
string_argument(env["$green"]) ||
|
40
|
+
string_argument(env["$blue"])
|
41
|
+
) {
|
42
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, "rgb("
|
43
|
+
+ env["$red"]->to_string()
|
44
|
+
+ ", "
|
45
|
+
+ env["$green"]->to_string()
|
46
|
+
+ ", "
|
47
|
+
+ env["$blue"]->to_string()
|
48
|
+
+ ")"
|
49
|
+
);
|
50
|
+
}
|
51
|
+
|
52
|
+
return SASS_MEMORY_NEW(Color_RGBA,
|
53
|
+
pstate,
|
54
|
+
COLOR_NUM("$red"),
|
55
|
+
COLOR_NUM("$green"),
|
56
|
+
COLOR_NUM("$blue"));
|
57
|
+
}
|
58
|
+
|
59
|
+
Signature rgba_4_sig = "rgba($red, $green, $blue, $alpha)";
|
60
|
+
BUILT_IN(rgba_4)
|
61
|
+
{
|
62
|
+
if (
|
63
|
+
string_argument(env["$red"]) ||
|
64
|
+
string_argument(env["$green"]) ||
|
65
|
+
string_argument(env["$blue"]) ||
|
66
|
+
string_argument(env["$alpha"])
|
67
|
+
) {
|
68
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, "rgba("
|
69
|
+
+ env["$red"]->to_string()
|
70
|
+
+ ", "
|
71
|
+
+ env["$green"]->to_string()
|
72
|
+
+ ", "
|
73
|
+
+ env["$blue"]->to_string()
|
74
|
+
+ ", "
|
75
|
+
+ env["$alpha"]->to_string()
|
76
|
+
+ ")"
|
77
|
+
);
|
78
|
+
}
|
79
|
+
|
80
|
+
return SASS_MEMORY_NEW(Color_RGBA,
|
81
|
+
pstate,
|
82
|
+
COLOR_NUM("$red"),
|
83
|
+
COLOR_NUM("$green"),
|
84
|
+
COLOR_NUM("$blue"),
|
85
|
+
ALPHA_NUM("$alpha"));
|
86
|
+
}
|
87
|
+
|
88
|
+
Signature rgba_2_sig = "rgba($color, $alpha)";
|
89
|
+
BUILT_IN(rgba_2)
|
90
|
+
{
|
91
|
+
if (
|
92
|
+
string_argument(env["$color"])
|
93
|
+
) {
|
94
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, "rgba("
|
95
|
+
+ env["$color"]->to_string()
|
96
|
+
+ ", "
|
97
|
+
+ env["$alpha"]->to_string()
|
98
|
+
+ ")"
|
99
|
+
);
|
100
|
+
}
|
101
|
+
|
102
|
+
Color_RGBA_Obj c_arg = ARG("$color", Color)->toRGBA();
|
103
|
+
|
104
|
+
if (
|
105
|
+
string_argument(env["$alpha"])
|
106
|
+
) {
|
107
|
+
std::stringstream strm;
|
108
|
+
strm << "rgba("
|
109
|
+
<< (int)c_arg->r() << ", "
|
110
|
+
<< (int)c_arg->g() << ", "
|
111
|
+
<< (int)c_arg->b() << ", "
|
112
|
+
<< env["$alpha"]->to_string()
|
113
|
+
<< ")";
|
114
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, strm.str());
|
115
|
+
}
|
116
|
+
|
117
|
+
Color_RGBA_Obj new_c = SASS_MEMORY_COPY(c_arg);
|
118
|
+
new_c->a(ALPHA_NUM("$alpha"));
|
119
|
+
new_c->disp("");
|
120
|
+
return new_c.detach();
|
121
|
+
}
|
122
|
+
|
123
|
+
////////////////
|
124
|
+
// RGB FUNCTIONS
|
125
|
+
////////////////
|
126
|
+
|
127
|
+
Signature red_sig = "red($color)";
|
128
|
+
BUILT_IN(red)
|
129
|
+
{
|
130
|
+
Color_RGBA_Obj color = ARG("$color", Color)->toRGBA();
|
131
|
+
return SASS_MEMORY_NEW(Number, pstate, color->r());
|
132
|
+
}
|
133
|
+
|
134
|
+
Signature green_sig = "green($color)";
|
135
|
+
BUILT_IN(green)
|
136
|
+
{
|
137
|
+
Color_RGBA_Obj color = ARG("$color", Color)->toRGBA();
|
138
|
+
return SASS_MEMORY_NEW(Number, pstate, color->g());
|
139
|
+
}
|
140
|
+
|
141
|
+
Signature blue_sig = "blue($color)";
|
142
|
+
BUILT_IN(blue)
|
143
|
+
{
|
144
|
+
Color_RGBA_Obj color = ARG("$color", Color)->toRGBA();
|
145
|
+
return SASS_MEMORY_NEW(Number, pstate, color->b());
|
146
|
+
}
|
147
|
+
|
148
|
+
Color_RGBA* colormix(Context& ctx, ParserState& pstate, Color* color1, Color* color2, double weight) {
|
149
|
+
Color_RGBA_Obj c1 = color1->toRGBA();
|
150
|
+
Color_RGBA_Obj c2 = color2->toRGBA();
|
151
|
+
double p = weight/100;
|
152
|
+
double w = 2*p - 1;
|
153
|
+
double a = c1->a() - c2->a();
|
154
|
+
|
155
|
+
double w1 = (((w * a == -1) ? w : (w + a)/(1 + w*a)) + 1)/2.0;
|
156
|
+
double w2 = 1 - w1;
|
157
|
+
|
158
|
+
return SASS_MEMORY_NEW(Color_RGBA,
|
159
|
+
pstate,
|
160
|
+
Sass::round(w1*c1->r() + w2*c2->r(), ctx.c_options.precision),
|
161
|
+
Sass::round(w1*c1->g() + w2*c2->g(), ctx.c_options.precision),
|
162
|
+
Sass::round(w1*c1->b() + w2*c2->b(), ctx.c_options.precision),
|
163
|
+
c1->a()*p + c2->a()*(1-p));
|
164
|
+
}
|
165
|
+
|
166
|
+
Signature mix_sig = "mix($color-1, $color-2, $weight: 50%)";
|
167
|
+
BUILT_IN(mix)
|
168
|
+
{
|
169
|
+
Color_Obj color1 = ARG("$color-1", Color);
|
170
|
+
Color_Obj color2 = ARG("$color-2", Color);
|
171
|
+
double weight = DARG_U_PRCT("$weight");
|
172
|
+
return colormix(ctx, pstate, color1, color2, weight);
|
173
|
+
|
174
|
+
}
|
175
|
+
|
176
|
+
////////////////
|
177
|
+
// HSL FUNCTIONS
|
178
|
+
////////////////
|
179
|
+
|
180
|
+
Signature hsl_sig = "hsl($hue, $saturation, $lightness)";
|
181
|
+
BUILT_IN(hsl)
|
182
|
+
{
|
183
|
+
if (
|
184
|
+
string_argument(env["$hue"]) ||
|
185
|
+
string_argument(env["$saturation"]) ||
|
186
|
+
string_argument(env["$lightness"])
|
187
|
+
) {
|
188
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, "hsl("
|
189
|
+
+ env["$hue"]->to_string()
|
190
|
+
+ ", "
|
191
|
+
+ env["$saturation"]->to_string()
|
192
|
+
+ ", "
|
193
|
+
+ env["$lightness"]->to_string()
|
194
|
+
+ ")"
|
195
|
+
);
|
196
|
+
}
|
197
|
+
|
198
|
+
return SASS_MEMORY_NEW(Color_HSLA,
|
199
|
+
pstate,
|
200
|
+
ARGVAL("$hue"),
|
201
|
+
ARGVAL("$saturation"),
|
202
|
+
ARGVAL("$lightness"),
|
203
|
+
1.0);
|
204
|
+
|
205
|
+
}
|
206
|
+
|
207
|
+
Signature hsla_sig = "hsla($hue, $saturation, $lightness, $alpha)";
|
208
|
+
BUILT_IN(hsla)
|
209
|
+
{
|
210
|
+
if (
|
211
|
+
string_argument(env["$hue"]) ||
|
212
|
+
string_argument(env["$saturation"]) ||
|
213
|
+
string_argument(env["$lightness"]) ||
|
214
|
+
string_argument(env["$alpha"])
|
215
|
+
) {
|
216
|
+
return SASS_MEMORY_NEW(String_Constant, pstate, "hsla("
|
217
|
+
+ env["$hue"]->to_string()
|
218
|
+
+ ", "
|
219
|
+
+ env["$saturation"]->to_string()
|
220
|
+
+ ", "
|
221
|
+
+ env["$lightness"]->to_string()
|
222
|
+
+ ", "
|
223
|
+
+ env["$alpha"]->to_string()
|
224
|
+
+ ")"
|
225
|
+
);
|
226
|
+
}
|
227
|
+
|
228
|
+
Number* alpha = ARG("$alpha", Number);
|
229
|
+
if (alpha && alpha->unit() == "%") {
|
230
|
+
Number_Obj val = SASS_MEMORY_COPY(alpha);
|
231
|
+
val->numerators.clear(); // convert
|
232
|
+
val->value(val->value() / 100.0);
|
233
|
+
std::string nr(val->to_string(ctx.c_options));
|
234
|
+
hsla_alpha_percent_deprecation(pstate, nr);
|
235
|
+
}
|
236
|
+
|
237
|
+
return SASS_MEMORY_NEW(Color_HSLA,
|
238
|
+
pstate,
|
239
|
+
ARGVAL("$hue"),
|
240
|
+
ARGVAL("$saturation"),
|
241
|
+
ARGVAL("$lightness"),
|
242
|
+
ARGVAL("$alpha"));
|
243
|
+
|
244
|
+
}
|
245
|
+
|
246
|
+
/////////////////////////////////////////////////////////////////////////
|
247
|
+
// Query functions
|
248
|
+
/////////////////////////////////////////////////////////////////////////
|
249
|
+
|
250
|
+
Signature hue_sig = "hue($color)";
|
251
|
+
BUILT_IN(hue)
|
252
|
+
{
|
253
|
+
Color_HSLA_Obj col = ARG("$color", Color)->toHSLA();
|
254
|
+
return SASS_MEMORY_NEW(Number, pstate, col->h(), "deg");
|
255
|
+
}
|
256
|
+
|
257
|
+
Signature saturation_sig = "saturation($color)";
|
258
|
+
BUILT_IN(saturation)
|
259
|
+
{
|
260
|
+
Color_HSLA_Obj col = ARG("$color", Color)->toHSLA();
|
261
|
+
return SASS_MEMORY_NEW(Number, pstate, col->s(), "%");
|
262
|
+
}
|
263
|
+
|
264
|
+
Signature lightness_sig = "lightness($color)";
|
265
|
+
BUILT_IN(lightness)
|
266
|
+
{
|
267
|
+
Color_HSLA_Obj col = ARG("$color", Color)->toHSLA();
|
268
|
+
return SASS_MEMORY_NEW(Number, pstate, col->l(), "%");
|
269
|
+
}
|
270
|
+
|
271
|
+
/////////////////////////////////////////////////////////////////////////
|
272
|
+
// HSL manipulation functions
|
273
|
+
/////////////////////////////////////////////////////////////////////////
|
274
|
+
|
275
|
+
Signature adjust_hue_sig = "adjust-hue($color, $degrees)";
|
276
|
+
BUILT_IN(adjust_hue)
|
277
|
+
{
|
278
|
+
Color* col = ARG("$color", Color);
|
279
|
+
double degrees = ARGVAL("$degrees");
|
280
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
281
|
+
copy->h(absmod(copy->h() + degrees, 360.0));
|
282
|
+
return copy.detach();
|
283
|
+
}
|
284
|
+
|
285
|
+
Signature lighten_sig = "lighten($color, $amount)";
|
286
|
+
BUILT_IN(lighten)
|
287
|
+
{
|
288
|
+
Color* col = ARG("$color", Color);
|
289
|
+
double amount = DARG_U_PRCT("$amount");
|
290
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
291
|
+
copy->l(clip(copy->l() + amount, 0.0, 100.0));
|
292
|
+
return copy.detach();
|
293
|
+
|
294
|
+
}
|
295
|
+
|
296
|
+
Signature darken_sig = "darken($color, $amount)";
|
297
|
+
BUILT_IN(darken)
|
298
|
+
{
|
299
|
+
Color* col = ARG("$color", Color);
|
300
|
+
double amount = DARG_U_PRCT("$amount");
|
301
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
302
|
+
copy->l(clip(copy->l() - amount, 0.0, 100.0));
|
303
|
+
return copy.detach();
|
304
|
+
}
|
305
|
+
|
306
|
+
Signature saturate_sig = "saturate($color, $amount: false)";
|
307
|
+
BUILT_IN(saturate)
|
308
|
+
{
|
309
|
+
// CSS3 filter function overload: pass literal through directly
|
310
|
+
if (!Cast<Number>(env["$amount"])) {
|
311
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, "saturate(" + env["$color"]->to_string(ctx.c_options) + ")");
|
312
|
+
}
|
313
|
+
|
314
|
+
Color* col = ARG("$color", Color);
|
315
|
+
double amount = DARG_U_PRCT("$amount");
|
316
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
317
|
+
copy->s(clip(copy->s() + amount, 0.0, 100.0));
|
318
|
+
return copy.detach();
|
319
|
+
}
|
320
|
+
|
321
|
+
Signature desaturate_sig = "desaturate($color, $amount)";
|
322
|
+
BUILT_IN(desaturate)
|
323
|
+
{
|
324
|
+
Color* col = ARG("$color", Color);
|
325
|
+
double amount = DARG_U_PRCT("$amount");
|
326
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
327
|
+
copy->s(clip(copy->s() - amount, 0.0, 100.0));
|
328
|
+
return copy.detach();
|
329
|
+
}
|
330
|
+
|
331
|
+
Signature grayscale_sig = "grayscale($color)";
|
332
|
+
BUILT_IN(grayscale)
|
333
|
+
{
|
334
|
+
// CSS3 filter function overload: pass literal through directly
|
335
|
+
Number* amount = Cast<Number>(env["$color"]);
|
336
|
+
if (amount) {
|
337
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, "grayscale(" + amount->to_string(ctx.c_options) + ")");
|
338
|
+
}
|
339
|
+
|
340
|
+
Color* col = ARG("$color", Color);
|
341
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
342
|
+
copy->s(0.0); // just reset saturation
|
343
|
+
return copy.detach();
|
344
|
+
}
|
345
|
+
|
346
|
+
/////////////////////////////////////////////////////////////////////////
|
347
|
+
// Misc manipulation functions
|
348
|
+
/////////////////////////////////////////////////////////////////////////
|
349
|
+
|
350
|
+
Signature complement_sig = "complement($color)";
|
351
|
+
BUILT_IN(complement)
|
352
|
+
{
|
353
|
+
Color* col = ARG("$color", Color);
|
354
|
+
Color_HSLA_Obj copy = col->copyAsHSLA();
|
355
|
+
copy->h(absmod(copy->h() - 180.0, 360.0));
|
356
|
+
return copy.detach();
|
357
|
+
}
|
358
|
+
|
359
|
+
Signature invert_sig = "invert($color, $weight: 100%)";
|
360
|
+
BUILT_IN(invert)
|
361
|
+
{
|
362
|
+
// CSS3 filter function overload: pass literal through directly
|
363
|
+
Number* amount = Cast<Number>(env["$color"]);
|
364
|
+
if (amount) {
|
365
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, "invert(" + amount->to_string(ctx.c_options) + ")");
|
366
|
+
}
|
367
|
+
|
368
|
+
Color* col = ARG("$color", Color);
|
369
|
+
double weight = DARG_U_PRCT("$weight");
|
370
|
+
Color_RGBA_Obj inv = col->copyAsRGBA();
|
371
|
+
inv->r(clip(255.0 - inv->r(), 0.0, 255.0));
|
372
|
+
inv->g(clip(255.0 - inv->g(), 0.0, 255.0));
|
373
|
+
inv->b(clip(255.0 - inv->b(), 0.0, 255.0));
|
374
|
+
return colormix(ctx, pstate, inv, col, weight);
|
375
|
+
}
|
376
|
+
|
377
|
+
/////////////////////////////////////////////////////////////////////////
|
378
|
+
// Opacity functions
|
379
|
+
/////////////////////////////////////////////////////////////////////////
|
380
|
+
|
381
|
+
Signature alpha_sig = "alpha($color)";
|
382
|
+
Signature opacity_sig = "opacity($color)";
|
383
|
+
BUILT_IN(alpha)
|
384
|
+
{
|
385
|
+
String_Constant* ie_kwd = Cast<String_Constant>(env["$color"]);
|
386
|
+
if (ie_kwd) {
|
387
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, "alpha(" + ie_kwd->value() + ")");
|
388
|
+
}
|
389
|
+
|
390
|
+
// CSS3 filter function overload: pass literal through directly
|
391
|
+
Number* amount = Cast<Number>(env["$color"]);
|
392
|
+
if (amount) {
|
393
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, "opacity(" + amount->to_string(ctx.c_options) + ")");
|
394
|
+
}
|
395
|
+
|
396
|
+
return SASS_MEMORY_NEW(Number, pstate, ARG("$color", Color)->a());
|
397
|
+
}
|
398
|
+
|
399
|
+
Signature opacify_sig = "opacify($color, $amount)";
|
400
|
+
Signature fade_in_sig = "fade-in($color, $amount)";
|
401
|
+
BUILT_IN(opacify)
|
402
|
+
{
|
403
|
+
Color* col = ARG("$color", Color);
|
404
|
+
double amount = DARG_U_FACT("$amount");
|
405
|
+
Color_Obj copy = SASS_MEMORY_COPY(col);
|
406
|
+
copy->a(clip(col->a() + amount, 0.0, 1.0));
|
407
|
+
return copy.detach();
|
408
|
+
}
|
409
|
+
|
410
|
+
Signature transparentize_sig = "transparentize($color, $amount)";
|
411
|
+
Signature fade_out_sig = "fade-out($color, $amount)";
|
412
|
+
BUILT_IN(transparentize)
|
413
|
+
{
|
414
|
+
Color* col = ARG("$color", Color);
|
415
|
+
double amount = DARG_U_FACT("$amount");
|
416
|
+
Color_Obj copy = SASS_MEMORY_COPY(col);
|
417
|
+
copy->a(std::max(col->a() - amount, 0.0));
|
418
|
+
return copy.detach();
|
419
|
+
}
|
420
|
+
|
421
|
+
////////////////////////
|
422
|
+
// OTHER COLOR FUNCTIONS
|
423
|
+
////////////////////////
|
424
|
+
|
425
|
+
Signature adjust_color_sig = "adjust-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
|
426
|
+
BUILT_IN(adjust_color)
|
427
|
+
{
|
428
|
+
Color* col = ARG("$color", Color);
|
429
|
+
Number* r = Cast<Number>(env["$red"]);
|
430
|
+
Number* g = Cast<Number>(env["$green"]);
|
431
|
+
Number* b = Cast<Number>(env["$blue"]);
|
432
|
+
Number* h = Cast<Number>(env["$hue"]);
|
433
|
+
Number* s = Cast<Number>(env["$saturation"]);
|
434
|
+
Number* l = Cast<Number>(env["$lightness"]);
|
435
|
+
Number* a = Cast<Number>(env["$alpha"]);
|
436
|
+
|
437
|
+
bool rgb = r || g || b;
|
438
|
+
bool hsl = h || s || l;
|
439
|
+
|
440
|
+
if (rgb && hsl) {
|
441
|
+
error("Cannot specify HSL and RGB values for a color at the same time for `adjust-color'", pstate, traces);
|
442
|
+
}
|
443
|
+
else if (rgb) {
|
444
|
+
Color_RGBA_Obj c = col->copyAsRGBA();
|
445
|
+
if (r) c->r(c->r() + DARG_R_BYTE("$red"));
|
446
|
+
if (g) c->g(c->g() + DARG_R_BYTE("$green"));
|
447
|
+
if (b) c->b(c->b() + DARG_R_BYTE("$blue"));
|
448
|
+
if (a) c->a(c->a() + DARG_R_FACT("$alpha"));
|
449
|
+
return c.detach();
|
450
|
+
}
|
451
|
+
else if (hsl) {
|
452
|
+
Color_HSLA_Obj c = col->copyAsHSLA();
|
453
|
+
if (h) c->h(c->h() + absmod(h->value(), 360.0));
|
454
|
+
if (s) c->s(c->s() + DARG_R_PRCT("$saturation"));
|
455
|
+
if (l) c->l(c->l() + DARG_R_PRCT("$lightness"));
|
456
|
+
if (a) c->a(c->a() + DARG_R_FACT("$alpha"));
|
457
|
+
return c.detach();
|
458
|
+
}
|
459
|
+
else if (a) {
|
460
|
+
Color_Obj c = SASS_MEMORY_COPY(col);
|
461
|
+
c->a(c->a() + DARG_R_FACT("$alpha"));
|
462
|
+
c->a(clip(c->a(), 0.0, 1.0));
|
463
|
+
return c.detach();
|
464
|
+
}
|
465
|
+
error("not enough arguments for `adjust-color'", pstate, traces);
|
466
|
+
// unreachable
|
467
|
+
return col;
|
468
|
+
}
|
469
|
+
|
470
|
+
Signature scale_color_sig = "scale-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
|
471
|
+
BUILT_IN(scale_color)
|
472
|
+
{
|
473
|
+
Color* col = ARG("$color", Color);
|
474
|
+
Number* r = Cast<Number>(env["$red"]);
|
475
|
+
Number* g = Cast<Number>(env["$green"]);
|
476
|
+
Number* b = Cast<Number>(env["$blue"]);
|
477
|
+
Number* h = Cast<Number>(env["$hue"]);
|
478
|
+
Number* s = Cast<Number>(env["$saturation"]);
|
479
|
+
Number* l = Cast<Number>(env["$lightness"]);
|
480
|
+
Number* a = Cast<Number>(env["$alpha"]);
|
481
|
+
|
482
|
+
bool rgb = r || g || b;
|
483
|
+
bool hsl = h || s || l;
|
484
|
+
|
485
|
+
if (rgb && hsl) {
|
486
|
+
error("Cannot specify HSL and RGB values for a color at the same time for `scale-color'", pstate, traces);
|
487
|
+
}
|
488
|
+
else if (rgb) {
|
489
|
+
Color_RGBA_Obj c = col->copyAsRGBA();
|
490
|
+
double rscale = (r ? DARG_R_PRCT("$red") : 0.0) / 100.0;
|
491
|
+
double gscale = (g ? DARG_R_PRCT("$green") : 0.0) / 100.0;
|
492
|
+
double bscale = (b ? DARG_R_PRCT("$blue") : 0.0) / 100.0;
|
493
|
+
double ascale = (a ? DARG_R_PRCT("$alpha") : 0.0) / 100.0;
|
494
|
+
if (rscale) c->r(c->r() + rscale * (rscale > 0.0 ? 255.0 - c->r() : c->r()));
|
495
|
+
if (gscale) c->g(c->g() + gscale * (gscale > 0.0 ? 255.0 - c->g() : c->g()));
|
496
|
+
if (bscale) c->b(c->b() + bscale * (bscale > 0.0 ? 255.0 - c->b() : c->b()));
|
497
|
+
if (ascale) c->a(c->a() + ascale * (ascale > 0.0 ? 1.0 - c->a() : c->a()));
|
498
|
+
return c.detach();
|
499
|
+
}
|
500
|
+
else if (hsl) {
|
501
|
+
Color_HSLA_Obj c = col->copyAsHSLA();
|
502
|
+
double hscale = (h ? DARG_R_PRCT("$hue") : 0.0) / 100.0;
|
503
|
+
double sscale = (s ? DARG_R_PRCT("$saturation") : 0.0) / 100.0;
|
504
|
+
double lscale = (l ? DARG_R_PRCT("$lightness") : 0.0) / 100.0;
|
505
|
+
double ascale = (a ? DARG_R_PRCT("$alpha") : 0.0) / 100.0;
|
506
|
+
if (hscale) c->h(c->h() + hscale * (hscale > 0.0 ? 360.0 - c->h() : c->h()));
|
507
|
+
if (sscale) c->s(c->s() + sscale * (sscale > 0.0 ? 100.0 - c->l() : c->s()));
|
508
|
+
if (lscale) c->l(c->l() + lscale * (lscale > 0.0 ? 100.0 - c->l() : c->l()));
|
509
|
+
if (ascale) c->a(c->a() + ascale * (ascale > 0.0 ? 1.0 - c->a() : c->a()));
|
510
|
+
return c.detach();
|
511
|
+
}
|
512
|
+
else if (a) {
|
513
|
+
Color_Obj c = SASS_MEMORY_COPY(col);
|
514
|
+
double ascale = DARG_R_PRCT("$alpha") / 100.0;
|
515
|
+
c->a(c->a() + ascale * (ascale > 0.0 ? 1.0 - c->a() : c->a()));
|
516
|
+
c->a(clip(c->a(), 0.0, 1.0));
|
517
|
+
return c.detach();
|
518
|
+
}
|
519
|
+
error("not enough arguments for `scale-color'", pstate, traces);
|
520
|
+
// unreachable
|
521
|
+
return col;
|
522
|
+
}
|
523
|
+
|
524
|
+
Signature change_color_sig = "change-color($color, $red: false, $green: false, $blue: false, $hue: false, $saturation: false, $lightness: false, $alpha: false)";
|
525
|
+
BUILT_IN(change_color)
|
526
|
+
{
|
527
|
+
Color* col = ARG("$color", Color);
|
528
|
+
Number* r = Cast<Number>(env["$red"]);
|
529
|
+
Number* g = Cast<Number>(env["$green"]);
|
530
|
+
Number* b = Cast<Number>(env["$blue"]);
|
531
|
+
Number* h = Cast<Number>(env["$hue"]);
|
532
|
+
Number* s = Cast<Number>(env["$saturation"]);
|
533
|
+
Number* l = Cast<Number>(env["$lightness"]);
|
534
|
+
Number* a = Cast<Number>(env["$alpha"]);
|
535
|
+
|
536
|
+
bool rgb = r || g || b;
|
537
|
+
bool hsl = h || s || l;
|
538
|
+
|
539
|
+
if (rgb && hsl) {
|
540
|
+
error("Cannot specify HSL and RGB values for a color at the same time for `change-color'", pstate, traces);
|
541
|
+
}
|
542
|
+
else if (rgb) {
|
543
|
+
Color_RGBA_Obj c = col->copyAsRGBA();
|
544
|
+
if (r) c->r(DARG_U_BYTE("$red"));
|
545
|
+
if (g) c->g(DARG_U_BYTE("$green"));
|
546
|
+
if (b) c->b(DARG_U_BYTE("$blue"));
|
547
|
+
if (a) c->a(DARG_U_FACT("$alpha"));
|
548
|
+
return c.detach();
|
549
|
+
}
|
550
|
+
else if (hsl) {
|
551
|
+
Color_HSLA_Obj c = col->copyAsHSLA();
|
552
|
+
if (h) c->h(absmod(h->value(), 360.0));
|
553
|
+
if (s) c->s(DARG_U_PRCT("$saturation"));
|
554
|
+
if (l) c->l(DARG_U_PRCT("$lightness"));
|
555
|
+
if (a) c->a(DARG_U_FACT("$alpha"));
|
556
|
+
return c.detach();
|
557
|
+
}
|
558
|
+
else if (a) {
|
559
|
+
Color_Obj c = SASS_MEMORY_COPY(col);
|
560
|
+
c->a(clip(DARG_U_FACT("$alpha"), 0.0, 1.0));
|
561
|
+
return c.detach();
|
562
|
+
}
|
563
|
+
error("not enough arguments for `change-color'", pstate, traces);
|
564
|
+
// unreachable
|
565
|
+
return col;
|
566
|
+
}
|
567
|
+
|
568
|
+
Signature ie_hex_str_sig = "ie-hex-str($color)";
|
569
|
+
BUILT_IN(ie_hex_str)
|
570
|
+
{
|
571
|
+
Color* col = ARG("$color", Color);
|
572
|
+
Color_RGBA_Obj c = col->toRGBA();
|
573
|
+
double r = clip(c->r(), 0.0, 255.0);
|
574
|
+
double g = clip(c->g(), 0.0, 255.0);
|
575
|
+
double b = clip(c->b(), 0.0, 255.0);
|
576
|
+
double a = clip(c->a(), 0.0, 1.0) * 255.0;
|
577
|
+
|
578
|
+
std::stringstream ss;
|
579
|
+
ss << '#' << std::setw(2) << std::setfill('0');
|
580
|
+
ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(a, ctx.c_options.precision));
|
581
|
+
ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(r, ctx.c_options.precision));
|
582
|
+
ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(g, ctx.c_options.precision));
|
583
|
+
ss << std::hex << std::setw(2) << static_cast<unsigned long>(Sass::round(b, ctx.c_options.precision));
|
584
|
+
|
585
|
+
std::string result(ss.str());
|
586
|
+
for (size_t i = 0, L = result.length(); i < L; ++i) {
|
587
|
+
result[i] = std::toupper(result[i]);
|
588
|
+
}
|
589
|
+
return SASS_MEMORY_NEW(String_Quoted, pstate, result);
|
590
|
+
}
|
591
|
+
|
592
|
+
}
|
593
|
+
|
594
|
+
}
|