pax_global_header00006660000000000000000000000064135256162340014521gustar00rootroot0000000000000052 comment=a77240c30e98e2e7461868ece3d75799dfaa73f8 sass-rails-6.0.0/000077500000000000000000000000001352561623400136055ustar00rootroot00000000000000sass-rails-6.0.0/.gitignore000066400000000000000000000001061352561623400155720ustar00rootroot00000000000000*.gem .bundle *.lock pkg/* .sass-cache .ruby-version gemfiles/vendor/*sass-rails-6.0.0/Gemfile000066400000000000000000000001371352561623400151010ustar00rootroot00000000000000source "https://rubygems.org" # Specify your gem's dependencies in sass-rails.gemspec gemspec sass-rails-6.0.0/MIT-LICENSE000066400000000000000000000020561352561623400152440ustar00rootroot00000000000000Copyright (c) 2011-2019 Christopher Eppstein Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. sass-rails-6.0.0/README.md000066400000000000000000000101721352561623400150650ustar00rootroot00000000000000# Official Ruby-on-Rails Integration with Sass This gem provides official integration for Ruby on Rails projects with the Sass stylesheet language. ## Installing Since Rails 3.1, new Rails projects will be already configured to use Sass. If you are upgrading to Rails 3.1 you will need to add the following to your Gemfile: ```ruby gem 'sass-rails' ``` ## Configuration To configure Sass via Rails set use `config.sass` in your application and/or environment files to set configuration properties that will be passed to Sass. ### Options - `preferred_syntax` - This option determines the default Sass syntax and file extensions that will be used by Rails generators. Can be `:scss` (default CSS-compatible SCSS syntax) or `:sass` (indented Sass syntax). The [list of supported Sass options](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#options) can be found on the Sass Website with the following caveats: - `:style` - This option is not supported. This is determined by the Rails environment. It's `:expanded` only on development, otherwise it's `:compressed`. - `:never_update` - This option is not supported. Instead set `config.assets.enabled = false` - `:always_update` - This option is not supported. Sprockets uses a controller to access stylesheets in development mode instead of a full scan for changed files. - `:always_check` - This option is not supported. Sprockets always checks in development. - `:syntax` - This is determined by the file's extensions. - `:filename` - This is determined by the file's name. - `:line` - This is provided by the template handler. ### Example ```ruby MyProject::Application.configure do config.sass.preferred_syntax = :sass config.sass.line_comments = false config.sass.cache = false end ``` ## Important Note Sprockets provides some directives that are placed inside of comments called `require`, `require_tree`, and `require_self`. **DO NOT USE THEM IN YOUR SASS/SCSS FILES.** They are very primitive and do not work well with Sass files. Instead, use Sass's native `@import` directive which `sass-rails` has customized to integrate with the conventions of your Rails projects. ## Features ### Glob Imports When in Rails, there is a special import syntax that allows you to glob imports relative to the folder of the stylesheet that is doing the importing. * `@import "mixins/*"` will import all the files in the mixins folder * `@import "mixins/**/*"` will import all the files in the mixins tree Any valid ruby glob may be used. The imports are sorted alphabetically. **NOTE:** It is recommended that you only use this when importing pure library files (containing mixins and variables) because it is difficult to control the cascade ordering for imports that contain styles using this approach. ### Asset Helpers When using the asset pipeline, paths to assets must be rewritten. When referencing assets use the following asset helpers (underscored in Ruby, hyphenated in Sass): #### `asset-path($relative-asset-path)` Returns a string to the asset. * `asset-path("rails.png")` returns `"/assets/rails.png"` #### `asset-url($relative-asset-path)` Returns a url reference to the asset. * `asset-url("rails.png")` returns `url(/assets/rails.png)` As a convenience, for each of the following asset classes there are corresponding `-path` and `-url` helpers: image, font, video, audio, javascript, stylesheet. * `image-path("rails.png")` returns `"/assets/rails.png"` * `image-url("rails.png")` returns `url(/assets/rails.png)` #### `asset-data-url($relative-asset-path)` Returns a url reference to the Base64-encoded asset at the specified path. * `asset-data-url("rails.png")` returns `url(data:image/png;base64,iVBORw0K...)` ## Running Tests $ bundle install $ bundle exec rake test If you need to test against local gems, use Bundler's gem :path option in the Gemfile and also edit `test/support/test_helper.rb` and tell the tests where the gem is checked out. ## Code Status * [![Travis CI](https://api.travis-ci.org/rails/sass-rails.svg)](http://travis-ci.org/rails/sass-rails) * [![Gem Version](https://badge.fury.io/rb/sass-rails.svg)](http://badge.fury.io/rb/sass-rails) sass-rails-6.0.0/Rakefile000066400000000000000000000000631352561623400152510ustar00rootroot00000000000000require 'bundler' Bundler::GemHelper.install_tasks sass-rails-6.0.0/lib/000077500000000000000000000000001352561623400143535ustar00rootroot00000000000000sass-rails-6.0.0/lib/sass-rails.rb000066400000000000000000000000261352561623400167570ustar00rootroot00000000000000require 'sassc/rails' sass-rails-6.0.0/lib/sass/000077500000000000000000000000001352561623400153245ustar00rootroot00000000000000sass-rails-6.0.0/lib/sass/rails.rb000066400000000000000000000000261352561623400167610ustar00rootroot00000000000000require 'sassc/rails' sass-rails-6.0.0/lib/sass/rails/000077500000000000000000000000001352561623400164365ustar00rootroot00000000000000sass-rails-6.0.0/lib/sass/rails/importer.rb000066400000000000000000000002721352561623400206250ustar00rootroot00000000000000# frozen_string_literal: true require "active_support/deprecation" ActiveSupport::Deprecation.warn "Sass::Rails::Importer has been removed, please use SassC::Rails::Importer instead." sass-rails-6.0.0/lib/sass/rails/logger.rb000066400000000000000000000002661352561623400202460ustar00rootroot00000000000000# frozen_string_literal: true require "active_support/deprecation" ActiveSupport::Deprecation.warn "Sass::Rails::Logger has been removed, please stop requiring sass/rails/logger." sass-rails-6.0.0/lib/sass/rails/railtie.rb000066400000000000000000000000361352561623400204130ustar00rootroot00000000000000require 'sassc/rails/railtie' sass-rails-6.0.0/lib/sass/rails/version.rb000066400000000000000000000000731352561623400204500ustar00rootroot00000000000000module Sass module Rails VERSION = "6.0.0" end end sass-rails-6.0.0/sass-rails.gemspec000066400000000000000000000013101352561623400172260ustar00rootroot00000000000000# -*- encoding: utf-8 -*- $:.push File.expand_path("../lib", __FILE__) require "sass/rails/version" Gem::Specification.new do |s| s.name = "sass-rails" s.version = Sass::Rails::VERSION s.platform = Gem::Platform::RUBY s.authors = ["wycats", "chriseppstein"] s.email = ["wycats@gmail.com", "chris@eppsteins.net"] s.homepage = "https://github.com/rails/sass-rails" s.summary = %q{Sass adapter for the Rails asset pipeline.} s.description = %q{Sass adapter for the Rails asset pipeline.} s.license = %q{MIT} s.add_dependency 'sassc-rails', '~> 2.1', '>= 2.1.1' s.files = Dir["MIT-LICENSE", "README.md", "lib/**/*"] s.require_paths = ["lib"] end