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:
parent
e551ce0a8f
commit
2cdb154a47
2 changed files with 4 additions and 5 deletions
|
@ -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/, '') %>
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue