stackviz/app/styles/_bootstrap-mincer.scss
Tim Buckley 22803dc6d8 Add required styles and fonts.
Add static instances of FontAwesome, Bootstrap, and theme resources
to more fully move to NPM/Browserify package management.

Change-Id: I4ceb0cd44f1e54207fde9c6645931e3a29705894
2015-09-25 22:35:27 +00:00

20 lines
757 B
SCSS

// 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)) %>"
@return "<%- asset_path("#{$path}".replace(/[#?].*$/, '')) + "#{$path}".replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
}
@function twbs-image-path($file) {
@return "<%- asset_path("#{$file}") %>";
}
$bootstrap-sass-asset-helper: true;