【发布时间】:2014-08-27 07:25:51
【问题描述】:
我可以覆盖其他元素,如 body 和 jumbotron,但我对导航栏所做的任何更改都不会做任何事情。
我已确保 /public 中没有预编译资产。
我的 application.css.scss 文件是这样的:
@import "bootstrap-sprockets";
@import "bootstrap";
// ensure the body isn't overlaped by the fixed header since we're using that
body {
padding-top: 60px;
}
.jumbotron {
padding-top: 20px;
}
// this does nothing!
.navbar-default {
.navbar-text {
color: red; }
}
我做错了什么?
【问题讨论】:
标签: ruby-on-rails twitter-bootstrap sass