Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Less compiles incorrectly when scoping certain bootstrap selectors #2534

Closed
dylanmensaert opened this issue Apr 3, 2015 · 2 comments
Closed

Comments

@dylanmensaert
Copy link

Trying to scope bootstrap into a single class gives me some unexpected results:

Writing following code:
.test-panel { @import 'bootstrap/less/bootstrap'; }

Outputs:
Screenshot compiled css file

Unexpected result on line 5865 -> 5910 where selectors are scoped into .test-panel a second time.
Expected result for line 5865 would be: .test-panel .dl-horizontal dd:before,

Note that this problem only occurs for the selectors seen in this screenshot. Every other selector in the bootstrap file compiles just fine.

I am using "grunt-contrib-less": "1.0.0" as the compiler.

@seven-phases-max
Copy link
Member

See #2052. For a workaround see #1709 (comment).

@seven-phases-max
Copy link
Member

Closing as expected behaviour. (More details in #1730, #1850, #2052).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants