Marton Kiss 6cbed3be20 New bootstrap based theme
Add a bootstrap css based theme to groups portal, and match the design
elements and layout of new openstack.org site. This patch will not
enable the theme by default, just add the bootstrap module and the
openstack subtheme. The subtheme is based on the sass version of
bootstrap with a bundle compass support.

Change-Id: Iae976151e87d4d2edd6e913a5aea16d9c13dc051
2014-10-28 12:30:32 +01:00

18 lines
720 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}') %>";
}