变量内的rails语法错误变量

时间:2019-01-29 02:34:11

标签: ruby-on-rails sass

我正在向应用程序添加新的SCSS并收到以下错误:

  

Sass :: SyntaxError:未定义的变量:“ $ primary”。

我已经在本地服务器上执行此操作,但是部署后失败

.oauth {
  background-color: $primary;
  background: image-url('oauth-bg.svg') no-repeat center center ; 
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
  min-height: 100vh;

  &__logo img {
 max-width: 150px;
}

Application.scss

// @import 'vendor/bootstrap/bootstrap';
@import "variables";
@import "vendors";
@import "magnific-popup";

@import "navbar";
@import "dropzone";
@import "projects";

@import "home";
@import "typography";

@import "base/base";
@import "components/components";

@import "theme-charcoal";
@import "swiper";


// @import "style"; //this one should be loaded in the last place

/*
*= require_tree .
*= require_self


*/

[class*="col-"],
.col {
  padding-left: 0.5rem;
 padding-right: 0.5rem;
}
.row {
margin-left: -0.5rem !important;
margin-right: -0.5rem !important;
}

.container {
  padding-left: 2rem !important;
padding-right: 2rem !important;
}

添加SCSS文件以显示订单项

0 个答案:

没有答案