這裏是在GitHub上一個Link to Source Code導航欄顏色Twitter的引導導軌
- 我爲了學習一些軌道和這樣
- 不過,我有麻煩不斷變化的顏色簡單的任務分叉項目設NavBar
- 看來我要改變
bootstrap_and_overrides.css.less
沒有任何效果
我嘗試了好幾種方法。 。 。
...
.....
....... app/assets/stylesheets/bootstrap_and_overrides.css.less
...........
.............
// Your custom LESS stylesheets goes here
//
// Since bootstrap was imported above you have access to its mixins which
// you may use and inherit here
//
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/customize.html#variables for their names and documentation
//
// Example:
// @linkColor: #036747;
.navbar {
background-color: #A4C8EC;
background-image: none;
}
方法2
...
.....
.......
...........
.navbar-inverse .navbar-inner {
background-color: #FFFFFFF;
border-color: #252525;
}
方法3
...
.....
.......
...........
@navbarBackground: #ffffff;
思想
- 我確定我正在使用bootstrap或更少的變量以錯誤的方式。
- 如果您需要更多的源代碼,它在GitHub - 鏈接頂部 頁面。
感謝
你嘗試加入'!important'? – Dudo 2014-10-07 20:51:24
你有沒有試過把頭撞在鍵盤上?這通常會讓我頭痛。 – 2014-10-07 21:39:41
@Mallanaga我試着加入'!important'但沒有改變。 – 2014-10-08 04:47:29