1
0
Fork 0
mirror of https://github.com/twbs/bootstrap-sass.git synced 2022-11-09 12:27:02 -05:00

refs #451 inject bs_variables_path

This commit is contained in:
Gleb Mazovetskiy 2013-10-24 18:48:16 +02:00
parent e551ce0a8f
commit 2cdb154a47
2 changed files with 4 additions and 5 deletions

View file

@ -1,6 +1,3 @@
<% require 'bootstrap-sass/version' %>
// Override Bootstrap variables here (defaults copied from bootstrap-sass version <%= Bootstrap::VERSION %>):
<%=
scss = File.read('vendor/assets/stylesheets/bootstrap/_variables.scss')
scss.gsub(/^(?=\$)/, '//').gsub(/ !default/, '')
%>
<%= File.read(@template[:options][:bs_variables_path]).gsub(/^(?=\$)/, '//').gsub(/ !default/, '') %>

View file

@ -4,7 +4,9 @@ description 'Bootstrap for Sass'
stylesheet 'styles.scss'
# SCSS:
stylesheet '_variables.scss.erb', to: '_variables.scss', erb: true
bs_stylesheets = "../../vendor/assets/stylesheets/bootstrap"
stylesheet '_variables.scss.erb', to: '_variables.scss', erb: true,
bs_variables_path: File.expand_path("#{bs_stylesheets}/_variables.scss", File.dirname(__FILE__))
# JS:
bs_javascripts = "../../vendor/assets/javascripts/bootstrap"