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

imports without inclusion ( for multiple css files ) #102

Closed
dunkfordyce opened this issue Aug 13, 2010 · 3 comments
Closed

imports without inclusion ( for multiple css files ) #102

dunkfordyce opened this issue Aug 13, 2010 · 3 comments

Comments

@dunkfordyce
Copy link

I need the ability to generate several css files that are aware of the rules already generated in other files.

For example main.less may contain

.rounded { border-radius: 10px; }

and child.less may contain

@import "main.less";
#someid { .rounded; }

I dont want child.css to include the rules from main.less as both files would be included in my page.

I understand this would require a syntax change. perhaps an alternative to @import is required or another arguement to the @import rule could be provided.

this is the only thing thats stopping me using less.js right now...

@kigorw
Copy link

kigorw commented Dec 25, 2010

This is very important thing that the reason for me to move to sass for the next projects

@minipai
Copy link

minipai commented Jan 10, 2011

use .rounded(@var: 10px) { border-radius: @var; } instead

@lukeapage
Copy link
Member

This is provided through the @import-once feature

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

4 participants