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