简体   繁体   English

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

[英]Override less variables in twitter-bootstrap-rails

I'm using twitter-bootstrap-rails gem and in bootstrap_and_overrides.css.less file I have the next lines: 我正在使用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;

But when I uncomment @linkColor: #ff0000; 但是当我取消注释@linkColor: #ff0000; I get the following error: 我收到以下错误:

Invalid CSS after "...icons-halflings": expected ")", was ".png"");"

Am I doing something wrong, or it's the lib's problem? 我是在做错什么,还是lib的问题?

It seems that removing .png s and so changing 似乎删除.png并进行更改

// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings.png');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white.png');

into 进入

// Set the correct sprite paths
@iconSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings');
@iconWhiteSpritePath: asset-path('twitter/bootstrap/glyphicons-halflings-white');

Solved the problem. 解决了问题。 I think this is a library error 我认为这是图书馆错误

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM