在Less and Meteor中覆盖bootstrap基类属性 [英] Overide bootstrap base class attributes in less and meteor

查看:91
本文介绍了在Less and Meteor中覆盖bootstrap基类属性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更改流星代码中的引导类的行为,并且天真地尝试了以下操作.

I am trying to change the behaviour of a bootstrap class in my meteor code and have naively tried the following.

在我的html中,我向div类列表中添加了一个tb-sponsor类

In my html I have added a class tb-sponsor to the div class list

<div class="col-md-8 column tb-sponsor">
      <h4> <strong>Papallo Kitchen & Joinery</strong></h4>
    Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean enim diam, imperdiet et sem nec.
</div>

并在添加的tb.less文件中

and in the tb.less file added

.tb-sponsor{
   .h4 {
      color: @tb-color;
   }
}

尝试更改h4的颜色.什么都没发生.如果我在tb.less中使用id = blah #blah而不是在类中使用,则可以使事情发生.我显然在这里错过了一些东西.有什么想法吗?

to try and change the color of the h4. Nothing happens. I can get things to happen if I use id=blah the #blah in the tb.less but not for classes. I'm obviously a missing something here. Any ideas please?

推荐答案

删除h4

这篇关于在Less and Meteor中覆盖bootstrap基类属性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆