ffffng/app/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss

20 lines
757 B
SCSS
Raw Normal View History

2014-05-12 20:08:19 +02:00
// Mincer asset helper functions
//
// This must be imported into a .css.ejs.scss file.
// Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation.
@function twbs-font-path($path) {
// do something like following
// from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>"
// from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>"
// or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>"
2016-05-16 13:33:49 +02:00
@return "<%- asset_path("#{$path}".replace(/[#?].*$/, '')) + "#{$path}".replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
2014-05-12 20:08:19 +02:00
}
@function twbs-image-path($file) {
2016-05-16 13:33:49 +02:00
@return "<%- asset_path("#{$file}") %>";
2014-05-12 20:08:19 +02:00
}
2016-05-16 13:33:49 +02:00
$bootstrap-sass-asset-helper: true;