Sass :: SyntaxError:未定义的变量:" $ alert-padding"

时间:2015-01-27 09:35:27

标签: ruby-on-rails twitter-bootstrap

我编译到生产时遇到此错误。

  

Sass :: SyntaxError:未定义的变量:“$ alert-padding”。

编译器工作正常,直到现在,只有在我备份styles.css.scss文件时才发生此错误。

在制作环境中我有

  config.assets.precompile =  ['*.js', '*.css', '*.css.erb', '*.scss'] 

styles.css.scss的内容

$btn-default-bg: green;
$btn-default-color: white;
$navbar-default-bg: white;
$navbar-default-border: white;
@import 'bootstrap';

html{

height:100%;  

}

body {
  height:100%;
  padding-top: 60px;
  background: rgba(0,123,91,1);
}

// @import 'bootstrap-responsive';
.navbar-header,
#bs-example-navbar-collapse-1{
  background: #004835 !important;
}

.navbar-default .navbar-brand,
.navbar-default .navbar-nav>li>a{
  color:#ffffff;
}

nav{
  border:none !important;
}

application.css

/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
 * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the top of the
 * compiled file, but it's generally better to create a new file per style scope.
 *
 *= require_self
 *= require phrasing
 *= require_tree .
 */

0 个答案:

没有答案