I want to include bootsrtap3 only into a certain container. What I did, I downloaded bootstrap sources, went to \bootstrap-3.1.0\less
renamed bootstrap.less
to bootstrap2.less
, created bootsrap.less
, added to it
.tw-bs {
@import "bootstrap2.less";
}
Which I found in some answer on stackoverflow I don't remember now. And which should've enclosed every rule in .tw-bs
.
It worked for most rules, actually for all of them. But, when I looked closely at resulting .css
files, I found some strange rules, like:
td.tw-bs .visible-print
or
.tw-bs .tw-bs .modal-footer:after
or
a.tw-bs .bg-primary:hover
That doesn't make sence, as .tw-bs
should always be a parent. What I did wrong, and why this nonsence rules were generated?