Uko*_*Uko 1 ruby-on-rails twitter-bootstrap twitter-bootstrap-rails
我正在使用twitter-bootstrap-rails gem,在bootstrap_and_overrides.css.less文件中我有下一行:
// If you'd like to override bootstrap's own variables, you can do so here as well
// See http://twitter.github.com/bootstrap/less.html for their names and documentation
//
// Example:
// @linkColor: #ff0000;
Run Code Online (Sandbox Code Playgroud)
但是当我取消注释时,@linkColor: #ff0000;我收到以下错误:
Invalid CSS after "...icons-halflings": expected ")", was ".png"");"
Run Code Online (Sandbox Code Playgroud)
我做错了什么,或者是lib的问题?
似乎删除.pngs等变化
// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');
Run Code Online (Sandbox Code Playgroud)
成
// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white');
Run Code Online (Sandbox Code Playgroud)
解决了这个问题.我认为这是一个库错误
| 归档时间: |
|
| 查看次数: |
1810 次 |
| 最近记录: |