Sha256: f1d92d01f0ca82e869460d1d9c505d2bb828f139b51618498f3bd837935d02be

Contents?: true

Size: 651 Bytes

Versions: 43

Compression:

Stored size: 651 Bytes

Contents

// The Rails server imports this file via app/assets/stylesheets/application.css.scss
// The webpack HMR dev server loads this file via client/bootstrap-sass.config.js

// This file allows the same sass code with Rails and node-sass for the Webpack Dev Server.
// It is CRTICAL that this file is loaded first.

$rails: false !default; // defaults to false (e.g. webpack environment)

// Sass 3 removes image-url helper
// https://github.com/sass/libsass/issues/489
$image-url-path: '/assets/images/' !default;

@function img-url($image) {
  @if $rails {
    @return image-url($image);
  } @else {
    @return url('#{$image-url-path}#{$image}');
  }
}

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
react_on_rails-5.1.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-5.1.0 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-5.0.0 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-5.0.0.rc.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.3 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.2 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.0 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.0.beta.3 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.0.beta.2 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-4.0.0.beta.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.6 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.5 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.4 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.3 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.2 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.0 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.0.rc.2 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss
react_on_rails-3.0.0.rc.1 lib/generators/react_on_rails/templates/bootstrap/client/assets/stylesheets/_react-on-rails-sass-helper.scss