首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在twitter-bootstrap-rails中覆盖较少的变量

在twitter-bootstrap-rails中覆盖较少的变量
EN

Stack Overflow用户
提问于 2012-06-09 15:26:09
回答 1查看 1.8K关注 0票数 1

我使用的是twitter-bootstrap-rails gem,在bootstrap_and_overrides.css.less文件中有以下几行:

代码语言:javascript
复制
// 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;

但是当我取消对@linkColor: #ff0000;的注释时,我得到了以下错误:

代码语言:javascript
复制
Invalid CSS after "...icons-halflings": expected ")", was ".png"");"

是我做错了什么,还是这是自由党的问题?

EN

回答 1

Stack Overflow用户

发布于 2012-06-09 15:49:27

删除.png似乎会发生变化

代码语言:javascript
复制
// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');

转到

代码语言:javascript
复制
// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white');

解决了这个问题。我认为这是一个库错误

票数 5
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/10959224

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档