diff options
author | Thomas Park <thomas@thomaspark.me> | 2014-11-15 16:43:59 -0500 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.me> | 2014-11-15 16:43:59 -0500 |
commit | 5366a6620906fba63e5b586a39a10e439c041297 (patch) | |
tree | 2d1f7e7bfaf049f0829f0896d3b0e7c3c16b7a63 /bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss | |
parent | 3f867ba1163807a2d43f33ba8d38b5947c45b6fe (diff) | |
parent | 28bd7c0707e3a29f4f74fbdeab88beaa81cd06d4 (diff) |
Merge pull request #361 from guru-digital/merge-upstream
Add support for SASS/SCSS
Diffstat (limited to 'bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss')
-rw-r--r-- | bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss b/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss new file mode 100644 index 00000000..34132501 --- /dev/null +++ b/bower_components/bootstrap-sass-official/assets/stylesheets/_bootstrap-mincer.scss @@ -0,0 +1,17 @@ +// 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}') %>"; +} |