我正在使用 rails 4.2 和 bootstrap-sass -> 3.2.0 gem。我将 css 转换为 sass 并添加到 application.css.sass 文件中。
我收到非法嵌套:导入指令下不得嵌套任何内容。
@import "bootstrap"
height: 5px
border-top: 0
background: #c4e17f
border-radius: 5px
关于我为什么要解决这个问题的任何想法。
最佳答案
从您的代码示例中我看到您没有将样式关联到任何类或 ID。
它看起来像
.container
height: 5px
border-top: 0
background: #c4e17f
border-radius: 5px
关于css - 非法嵌套 : Nothing may be nested beneath import directives,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30473088/