Sha256: d89e402e00c88f295a37196b30580b0f70ca958d7d1d19950cf9734478a1c834

Contents?: true

Size: 742 Bytes

Versions: 16

Compression:

Stored size: 742 Bytes

Contents

// File URL Helpers - Used for loading in images
$file-url-helper-path: false !default;
$file-url-path: "/images/" !default;

// Font URL Helpers
$font-url-helper-path: false !default;
$font-url-path: "/fonts/" !default;

// A function which can either output a image-url to be used with the Rails
// Asset Pipeline or Compass or a plain url which is prefixed with a defined
// path variable.
@function file-url($file) {
  $url: '';
  @if $file-url-helper-path {
    $url: url($file-url-path + $file);
  } @else {
    $url: asset-url($file);
  }
  @return $url;
}

@function font-url-helper($file) {
  $url: '';
  @if $font-url-helper-path {
    $url: font-url($file);
  } @else {
    $url: url($font-url-path + $file);
  }
  @return $url;
}

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
pusher-chameleon-1.4.6 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.5 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.4 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.3 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.2 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.1 stylesheets/util/_url_helper.scss
pusher-chameleon-1.4.0 stylesheets/util/_url_helper.scss
pusher-chameleon-1.3.0 stylesheets/util/_url_helper.scss
pusher-chameleon-1.2.1 stylesheets/util/_url_helper.scss
pusher-chameleon-1.2.0 stylesheets/util/_url_helper.scss
pusher-chameleon-1.1.0 stylesheets/util/_url_helper.scss
pusher-chameleon-1.0.4 stylesheets/util/_url_helper.scss
pusher-chameleon-1.0.3 stylesheets/util/_url_helper.scss
pusher_chameleon-1.0.3 stylesheets/util/_url_helper.scss
pusher_chameleon-1.0.2 stylesheets/util/_url_helper.scss
pusher_chameleon-1.0.0 stylesheets/util/_url_helper.scss